Repository navigation
Conversation
eunomie
force-pushed
the
eunomie/module-clients-3-entrypoint-call-digest
branch
from
October 5, 2026 16:10
fad903b to
27e87d2
Compare
eunomie
marked this pull request as ready for review
October 5, 2026 16:31
eunomie
force-pushed
the
eunomie/module-clients-3-entrypoint-call-digest
branch
from
October 6, 2026 11:05
27e87d2 to
d5eb124
Compare
An entrypoint's module exec is cached by its own recipe, which misses the call's declared clients, so a changed client target was served stale. Signed-off-by: Yves Brissaud <[email protected]>
eunomie
force-pushed
the
eunomie/module-clients-3-entrypoint-call-digest
branch
from
October 6, 2026 12:26
d5eb124 to
2fc8594
Compare
TomChv
approved these changes
Oct 6, 2026
eunomie
added a commit
to dagger/python-sdk
that referenced
this pull request
Oct 7, 2026
A generated entrypoint refused `cache=` and the shared one declared it without effect: the exec both start is cached on its own recipe, which the engine's call digest now joins (dagger/dagger#14491). Signed-off-by: Yves Brissaud <[email protected]>
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 Dang entrypoint runs a module's code in an exec it starts. That exec is cached by its own recipe, which misses the call's implicit inputs — such as the declared clients added by #14489. A call whose implicit inputs changed could therefore reuse a cached exec and return a stale result.
Change
The engine now passes the call digest to the entrypoint's
callwhen the entrypoint declares a nullablecallDigestargument, so the entrypoint can key the exec it starts on the call. An entrypoint that does not declarecallDigestnever receives it and is unchanged; theModuleEntrypointinterface does not change. The code change is small (a handful of lines incore/sdk/dang/v2/entrypoint.go).Test
Two subtests added to #14489's
TestServeModuleDeclaredClientCache: an unchanged target hits the cache from an entrypoint, and a changed target misses the cache from an entrypoint. Their entrypoint declarescallDigestand sends it into its exec.Depends on
#14489 and #14490 (stack positions 1 and 2).