Repository navigation
remotecache: rebind registry cache sessions - #7047
Merged
tonistiigi merged 3 commits intoAug 19, 2026
Merged
Conversation
Registry cache imports keep layer content lazy. The resolver and fetcher used for the import were bound to the session of the Solve that read the cache manifest. Identical active vertices can be shared by concurrent jobs, and cache managers for the same registry ref are deduplicated. This can leave a provider created by build A in shared state after A exits, so a later lazy read from build B requests credentials from an inactive A session. Make registry cache providers session-aware and propagate that behavior through descriptor pairs and multi-providers. Worker.FromRemote now binds descriptor handlers to the session group supplied by the lazy-read caller, and the registry fetcher is recreated from Resolver.WithSession for that group. Keep direct cache-export behavior unchanged. Add an authenticated regression test that closes session A, starts session B with distinct credentials, and verifies that the lazy cache blob is fetched through B. Signed-off-by: Eli Uriegas <eliuriegas@meta.com>
Signed-off-by: eliuriegas <eliuriegas@meta.com>
crazy-max
approved these changes
Aug 18, 2026
Add an integration test that closes the cache import session before a lazy registry layer is read. Verify the active build session supplies credentials. Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
tonistiigi
force-pushed
the
registry-cache-session-rebind
branch
from
August 18, 2026 15:13
0fffa17 to
2e2b4a4
Compare
crazy-max
approved these changes
Aug 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
replaces and closes #7037
Adds integration test for the regression