Repository navigation
snapshots: import and reuse locally exported chains - #14051
Merged
Merged
Conversation
sipsma
force-pushed
the
sipsma/remote-cache-snapshot-chains
branch
from
September 9, 2026 22:09
50016de to
9bebd3a
Compare
sipsma
force-pushed
the
sipsma/remote-cache-snapshot-chains
branch
from
September 9, 2026 23:32
9bebd3a to
62d62bd
Compare
sipsma
force-pushed
the
sipsma/remote-cache-snapshot-chains
branch
from
September 18, 2026 19:48
62d62bd to
d709b70
Compare
sipsma
force-pushed
the
sipsma/remote-cache-snapshot-chains
branch
from
September 18, 2026 19:56
d709b70 to
31f7c8d
Compare
sipsma
force-pushed
the
sipsma/remote-cache-snapshot-chains
branch
from
September 18, 2026 20:55
31f7c8d to
a4f7b28
Compare
sipsma
force-pushed
the
sipsma/remote-cache-snapshot-chains
branch
from
September 19, 2026 02:24
a4f7b28 to
612f0fc
Compare
sipsma
force-pushed
the
sipsma/remote-cache-snapshot-chains
branch
from
September 19, 2026 03:42
612f0fc to
ce8895c
Compare
sipsma
force-pushed
the
sipsma/remote-cache-snapshot-chains
branch
from
September 19, 2026 04:52
ce8895c to
e982b14
Compare
Base automatically changed from
sipsma/remote-cache-container-part-persistence
to
main
September 19, 2026 05:11
Specify supplied-source import, local export reuse, and resource ownership. Keep recipe reconstruction separate from this snapshot work. Signed-off-by: Erik Sipsma <[email protected]>
Model import reuse, partial resource attachment, export ownership, and pruning independently of the result cache. Register the component without changing existing cache model sources or configuration selection. Signed-off-by: Erik Sipsma <[email protected]>
Carry independent selection evidence through fetch and apply. Assert terminal producer cleanup and record measured control and reachability results. Signed-off-by: Erik Sipsma <[email protected]>
Start local execution with an ordinary snapshot owner. Check present content retained for continuing owners and record the new witness and control. Signed-off-by: Erik Sipsma <[email protected]>
Share layer reuse and apply with image import. Pin transfer resources through ref adoption and provider consumption. Register the selected local export encoding under its actual import prefix, including omitted roots. Signed-off-by: Erik Sipsma <[email protected]>
Use cancelable per-snapshot exclusion. Exercise real stores, resource attachment, pruning, partial writes, mounted failures, provider copies, typed adoption, and restart. Signed-off-by: Erik Sipsma <[email protected]>
Publish arbitrary completion under the cache lock and take abandoned cleanup once. Keep initializer cleanup visible to Close with an independent operation token. Verify cancellation, replacement, remaining waiters, and prepared image leases. Signed-off-by: Erik Sipsma <[email protected]>
Signed-off-by: Erik Sipsma <[email protected]>
Signed-off-by: Erik Sipsma <[email protected]>
Signed-off-by: Erik Sipsma <[email protected]>
Signed-off-by: Erik Sipsma <[email protected]>
Record reusable chain import, export indexing, and provider ownership. Describe startup cleanup after durable owner restoration. Keep recipe decisions separate and state the limits of the local evidence. Signed-off-by: Erik Sipsma <[email protected]>
Signed-off-by: Erik Sipsma <[email protected]>
Check the native bind operation and its cleanup before opening a physical store. Skip only permission failures so root without mount capability does not enter transfer tests. Signed-off-by: Erik Sipsma <[email protected]>
Observe caller completion while waiting for image readiness. Fail immediately on an early result, including nil, while retaining the cancellation and ownership assertions after successful setup. Signed-off-by: Erik Sipsma <[email protected]>
Retain the import flow and out-of-lock cleanup probes with local explanations. Normalize import groups and express the existing root fixture choices as a switch. Signed-off-by: Erik Sipsma <[email protected]>
Fresh dagger generate go-sdk:generate on this branch: the two snapshot configuration map entries and the modelFiles helper move the source-map lines. Signed-off-by: Erik Sipsma <[email protected]>
sipsma
force-pushed
the
sipsma/remote-cache-snapshot-chains
branch
from
September 19, 2026 05:11
e982b14 to
87a8043
Compare
shykes
approved these changes
Sep 21, 2026
grouville
approved these changes
Sep 21, 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.
A locally built snapshot could be exported and then applied again on import even while the original snapshot was still present. Reuse paths could also return handles or providers whose resources were no longer owned through consumption.
This adds supplied-provider
ImportChainusing the same layer helper as image import. Imports prefer an existing snapshot, then local bytes, then the provider. Exports register the descriptor actually returned, including requested compression and omitted-root keys, in the existing persisted reuse indexes.Each returned ref or provider retains independent transfer ownership. Import/export waits honor cancellation. Prepared-image ownership uses the existing arbitrary-cache release hook, with late completion cleanup included in cache shutdown accounting. Startup removes only marked prior-process transfer leases after durable owners are restored. No storage format changes are needed.
Depends on #14050 and its engine/cache foundations. This operates below Container, Directory and File. The broader goal remains caching all persistable results; this PR makes no new type-eligibility decision and adds no remote service, foreign-result learning, or recipe execution. The design and implementation record records the boundary and remaining decisions.
Validation:
dagger --env dev check tla-check:quick: all 18 existing shapes passed.dagger --env dev call tla-check some --configs=snapshot_import,snapshot_export: both names passed through the runner. Final direct TLC runs, after the owner-content assertion refinement, passed 475,119 and 5,185,181 distinct states in 4.51s and 24.80s. The new component has named reachability and deliberate-break evidence; existing CacheLifecycle source/configs are unchanged. The model does not establish concurrent producer cancellation, arbitrary-cache completion or startup restoration; focused Go checks cover those paths.No full Go/TLA suite or remote-service integration was run. Checks were selected as the source changed; final documentation/import grouping did not repeat successful behavior checks. The model README records bounds and source-qualified evidence.
Recorded focused Go commands
The physical-store binaries ran as root, with no skipped acceptance cases. Commands below retain the artifact paths used by the recorded runs. Core was rebuilt for the startup cleanup refinement.