GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — fix(core): preserve pending lazy container parents by sipsma · Pull Request #13365 · dagger/dagger Conversation
Contributor
What changedContainer schema child constructors now capture The PR also adds an integration repro for same-session concurrent child operations from a parent container with a lazily materialized writable directory mount. Root causeChild container methods cloned parent container state and then checked That left the child looking ready while carrying an empty cloned ReproductionThe new integration test runs concurrent operations in one engine client/session. One goroutine forces a shared parent container while sibling goroutines derive children from the same parent ID with Validation
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsContainer child schema methods cloned parent state and then decided whether to install a child lazy wrapper by checking parent.Self().Lazy. That pointer is cleared by successful lazy evaluation, so concurrent requests could observe a parent that was still pending when cloning started but no longer had Lazy set by the time the child was returned. When the clone copied an unevaluated writable directory mount, the copied LazyAccessor stayed empty. If the child was then returned without its own lazy wrapper, later withExec evaluation treated the child as ready and failed while preparing writable mount outputs with errors like 'exec directory mount N is missing materialized input'. Reproduce this with an integration test that runs same-session concurrent operations from one parent container: one goroutine forces the parent while sibling goroutines derive children with withEnvVariable and exec against a mounted .git directory. Before the fix this reliably reproduced the missing materialized input invariant failure. Capture dagql.HasPendingLazyEvaluation(parent) before cloning parent state and use that cache-owned pending state to decide whether child container mutation methods need to preserve lazy evaluation. Apply this across container schema methods that previously checked parent.Self().Lazy directly. Validated with go test ./core/schema and three consecutive targeted runs of the new integration repro. Signed-off-by: Erik Sipsma <[email protected]>
marcosnils
approved these changes
Uh oh!
There was an error while loading. Please reload this page.
marcosnils
pushed a commit
that referenced
this pull request
Container child schema methods cloned parent state and then decided whether to install a child lazy wrapper by checking parent.Self().Lazy. That pointer is cleared by successful lazy evaluation, so concurrent requests could observe a parent that was still pending when cloning started but no longer had Lazy set by the time the child was returned. When the clone copied an unevaluated writable directory mount, the copied LazyAccessor stayed empty. If the child was then returned without its own lazy wrapper, later withExec evaluation treated the child as ready and failed while preparing writable mount outputs with errors like 'exec directory mount N is missing materialized input'. Reproduce this with an integration test that runs same-session concurrent operations from one parent container: one goroutine forces the parent while sibling goroutines derive children with withEnvVariable and exec against a mounted .git directory. Before the fix this reliably reproduced the missing materialized input invariant failure. Capture dagql.HasPendingLazyEvaluation(parent) before cloning parent state and use that cache-owned pending state to decide whether child container mutation methods need to preserve lazy evaluation. Apply this across container schema methods that previously checked parent.Self().Lazy directly. Validated with go test ./core/schema and three consecutive targeted runs of the new integration repro. Signed-off-by: Erik Sipsma <[email protected]>
social4hyq
pushed a commit
to social4hyq/homebrew-core
that referenced
this pull request
dagger 0.21.5 Created-by: HarmonybrewBot Commit-by: HarmonybrewBot Merged-by: HarmonybrewBot Description: Created by `brew bump` --- Created with `brew bump-formula-pr`.<details> <summary>release notes</summary> <pre>## v0.21.5 - 2026-06-10 ### Added - Added expand option to container.exists by @alexcb in dagger/dagger#13310 - Support both Dang v1 and v2, routed by module engineVersion by @vito in dagger/dagger#13388 ### Changed - Prune local cache during disk pressure by @sipsma in dagger/dagger#13375 - Persist trivial core objects by @sipsma in dagger/dagger#13387 ### Fixed - Correct namespaced type-name mangling and cross-dependency interface dispatch in Dang by @vito in dagger/dagger#13377 - Surface exec errors correctly on the Bun runtime in the TypeScript SDK by @marcosnils in dagger/dagger#13395 - Ignore host xattrs for local filesync import identity by @sipsma in dagger/dagger#13389 - Don't shallow-clone the user's repo for git telemetry labels by @marcosnils in dagger/dagger#13363 - Preserve pending lazy container parents by @sipsma in dagger/dagger#13365 - Preserve withChanges parent layers by @dagger-codex[bot] + @shykes in dagger/dagger#13342 - Treat incomplete image metadata as cache miss by @sipsma in dagger/dagger#13346 - Cache registry image metadata by @dagger-codex[bot] + @shykes in dagger/dagger#13341 - Don't require id field for interface conformance in Dang by @vito in dagger/dagger#13318 - Use module-local check names for scale-out by @dagger-codex[bot] + @tiborvass in dagger/dagger#13329 - Fix snapshot owner lease attach/remove race by @sipsma in dagger/dagger#13321 - Follow source symlinks when copying directory contents in layercopy by @marcosnils in dagger/dagger#13326 ### What to do next? - Read the [documentation](https://docs.dagger.io) - Join our [Discord server](https://discord.gg/dagger-io) - Follow us on [Twitter](https://twitter.com/dagger_io) </pre> <p>View the full release notes at <a href="https://github.com/dagger/dagger/releases/tag/v0.21.5">https://github.com/dagger/dagger/releases/tag/v0.21.5</a>.</p> </details> <hr> See merge request: Harmonybrew/homebrew-core!11205
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ReviewersUh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedLabels
None yet
ProjectsDevelopmentSuccessfully merging this pull request may close these issues. Uh oh!
There was an error while loading. Please reload this page. 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. |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |