Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement caching of records returned from registry clients #809

Merged
merged 1 commit into from
Nov 13, 2023

Conversation

mkaput
Copy link
Member

@mkaput mkaput commented Oct 20, 2023

NOTE: Nothing is cached actually yet, because no registry client uses hooks provided by this code. This will come in subsequent PRs.


Stack:

⚠️ Part of a stack created by spr. Do not merge manually using the UI - doing so may have unexpected results.

@mkaput mkaput requested review from maciektr and szymmis October 20, 2023 18:13
@mkaput mkaput changed the title Cache records returned by registry clients Implement caching of records returned from registry clients Oct 20, 2023
@mkaput mkaput force-pushed the spr/main/97fc578f branch 2 times, most recently from 10d387b to 99fdd2e Compare October 23, 2023 06:18
@mkaput mkaput force-pushed the spr/main/97fc578f branch from 99fdd2e to c75e92f Compare October 23, 2023 17:59
github-merge-queue bot pushed a commit that referenced this pull request Oct 25, 2023
This implementation focuses solely on local registries, and it has
almost no security.

---

**Stack**:
- #819
- #818
- #809
- #808
- #807
- #806
- #805
- #803
- #802
- #799
- #798
- #793
- #790⚠️ *Part of a stack created by [spr](https://github.com/ejoffe/spr). Do
not merge manually using the UI - doing so may have unexpected results.*
@mkaput mkaput force-pushed the spr/main/afcc7328 branch from a0d0ae3 to ec66146 Compare October 25, 2023 12:21
@mkaput mkaput force-pushed the spr/main/97fc578f branch from c75e92f to 95e0a46 Compare October 25, 2023 12:21
github-merge-queue bot pushed a commit that referenced this pull request Oct 25, 2023
There are some rough untested edges, but in general this command is
capable of building a local registry from scratch 🎉

---

**Stack**:
- #819
- #818
- #809
- #808
- #807
- #806
- #805
- #803
- #802
- #799
- #798
- #793⚠️ *Part of a stack created by [spr](https://github.com/ejoffe/spr). Do
not merge manually using the UI - doing so may have unexpected results.*
@mkaput mkaput force-pushed the spr/main/97fc578f branch from 95e0a46 to d293563 Compare October 27, 2023 12:44
github-merge-queue bot pushed a commit that referenced this pull request Oct 27, 2023
These tests depend on both #790 and #793, hence they come in separate
PR.

---

**Stack**:
- #819
- #818
- #809
- #808
- #807
- #806
- #805
- #803
- #802
- #799
- #798⚠️ *Part of a stack created by [spr](https://github.com/ejoffe/spr). Do
not merge manually using the UI - doing so may have unexpected results.*
@mkaput mkaput force-pushed the spr/main/afcc7328 branch from 661603a to f6f6ee8 Compare October 27, 2023 13:24
@mkaput mkaput force-pushed the spr/main/97fc578f branch from d293563 to 8268aa2 Compare October 27, 2023 13:24
github-merge-queue bot pushed a commit that referenced this pull request Oct 27, 2023
**Stack**:
- #819
- #818
- #809
- #808
- #807
- #806
- #805
- #803
- #802
- #799⚠️ *Part of a stack created by [spr](https://github.com/ejoffe/spr). Do
not merge manually using the UI - doing so may have unexpected results.*
@mkaput mkaput force-pushed the spr/main/afcc7328 branch from f6f6ee8 to e5f7598 Compare October 27, 2023 14:16
@mkaput mkaput force-pushed the spr/main/97fc578f branch from 8268aa2 to b7b62c1 Compare October 27, 2023 14:16
github-merge-queue bot pushed a commit that referenced this pull request Oct 27, 2023
**Stack**:
- #819
- #818
- #809
- #808
- #807
- #806
- #805
- #803
- #802⚠️ *Part of a stack created by [spr](https://github.com/ejoffe/spr). Do
not merge manually using the UI - doing so may have unexpected results.*
@mkaput mkaput force-pushed the spr/main/97fc578f branch from 74e0606 to 09a9e0f Compare October 30, 2023 16:14
github-merge-queue bot pushed a commit that referenced this pull request Oct 30, 2023
- `gix`
- `typed-builder`
- `which`
- `zstd`

---

**Stack**:
- #819
- #818
- #809
- #808
- #807
- #806⚠️ *Part of a stack created by [spr](https://github.com/ejoffe/spr). Do
not merge manually using the UI - doing so may have unexpected results.*
@mkaput mkaput force-pushed the spr/main/afcc7328 branch from fd6251b to 2e18bf7 Compare October 30, 2023 17:56
@mkaput mkaput force-pushed the spr/main/97fc578f branch from 09a9e0f to 12c9170 Compare October 30, 2023 17:56
github-merge-queue bot pushed a commit that referenced this pull request Oct 30, 2023
**Stack**:
- #846
- #845
- #844
- #843
- #819
- #818
- #809
- #808
- #807⚠️ *Part of a stack created by [spr](https://github.com/ejoffe/spr). Do
not merge manually using the UI - doing so may have unexpected results.*
@mkaput mkaput force-pushed the spr/main/afcc7328 branch from 2e18bf7 to 5f110a7 Compare October 31, 2023 08:19
@mkaput mkaput force-pushed the spr/main/97fc578f branch from 12c9170 to 5b767e2 Compare October 31, 2023 08:19
Copy link
Contributor

@maciektr maciektr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@mkaput mkaput force-pushed the spr/main/afcc7328 branch from 5f110a7 to 24894d7 Compare November 7, 2023 14:26
@mkaput mkaput force-pushed the spr/main/97fc578f branch from 5b767e2 to 89b884a Compare November 7, 2023 14:26
@mkaput mkaput force-pushed the spr/main/afcc7328 branch from 24894d7 to f0228e2 Compare November 8, 2023 08:57
@mkaput mkaput force-pushed the spr/main/97fc578f branch 2 times, most recently from d2e41f1 to a9a4b50 Compare November 8, 2023 10:39
@mkaput mkaput mentioned this pull request Nov 9, 2023
@mkaput mkaput force-pushed the spr/main/afcc7328 branch from 32c0736 to 42f4f49 Compare November 9, 2023 15:25
@mkaput mkaput force-pushed the spr/main/97fc578f branch from a9a4b50 to 3df7e3a Compare November 9, 2023 15:25
Base automatically changed from spr/main/afcc7328 to main November 13, 2023 09:47
github-merge-queue bot pushed a commit that referenced this pull request Nov 13, 2023
This PR lays groundwork for implementing caching of `RegistryClient`
instances.
It just sets up all the types and refactors, no caching is done yet.

There is also a small functional change: local registry client does not
print
`Unpacking` status in normal mode. This wasn't a big deal, and it
allowed removing
the `is_offline` method from `RegistryClient`.

---

**Stack**:
- #892
- #846
- #845
- #844
- #819
- #818
- #809
- #808⚠️ *Part of a stack created by [spr](https://github.com/ejoffe/spr). Do
not merge manually using the UI - doing so may have unexpected results.*

Signed-off-by: Marek Kaput <[email protected]>
NOTE: Nothing is cached actually yet, because no registry client uses hooks provided by this code. This will come in subsequent PRs.

commit-id:97fc578f
@mkaput mkaput added this pull request to the merge queue Nov 13, 2023
Merged via the queue into main with commit a747a60 Nov 13, 2023
11 checks passed
@mkaput mkaput deleted the spr/main/97fc578f branch November 13, 2023 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants