Repository navigation
feat: rewrite Container.withExec to use DagOp - #10457
Merged
Merged
Conversation
This was referenced May 9, 2025
jedevc
force-pushed
the
dagop-exec
branch
9 times, most recently
from
May 28, 2025 16:01
05d12af to
be52f19
Compare
jedevc
force-pushed
the
dagop-exec
branch
5 times, most recently
from
May 30, 2025 14:48
e3b8085 to
862bb9c
Compare
This comment was marked as resolved.
This comment was marked as resolved.
jedevc
force-pushed
the
dagop-exec
branch
8 times, most recently
from
June 3, 2025 15:04
b64c751 to
3bd62cc
Compare
jedevc
force-pushed
the
dagop-exec
branch
4 times, most recently
from
June 13, 2025 14:10
7206f93 to
553e1f2
Compare
jedevc
marked this pull request as ready for review
June 20, 2025 11:56
jedevc
force-pushed
the
dagop-exec
branch
3 times, most recently
from
June 23, 2025 15:36
6a10622 to
fae6ff1
Compare
sipsma
approved these changes
Jun 24, 2025
jedevc
force-pushed
the
dagop-exec
branch
5 times, most recently
from
June 26, 2025 16:27
9bdf407 to
a18bce9
Compare
This is no longer allowed, since we'd require a dagop for this - we can instead just re-call `withExec` through the server to get it working. Signed-off-by: Justin Chadwell <[email protected]>
Signed-off-by: Justin Chadwell <[email protected]>
Signed-off-by: Justin Chadwell <[email protected]>
Signed-off-by: Justin Chadwell <[email protected]>
We need to make sure that we pass this into the top-most context, since it can be used during `Load`. Signed-off-by: Justin Chadwell <[email protected]>
Signed-off-by: Justin Chadwell <[email protected]>
This is useful, so now we can use dag.Select over it. Signed-off-by: Justin Chadwell <[email protected]>
We already have this implemented through the Server function. Don't really know why it needed to be duplicated (seems like a past-me brainfart). Signed-off-by: Justin Chadwell <[email protected]>
Signed-off-by: Justin Chadwell <[email protected]>
Various improvements, including: - Allow configuring the entire buildkit cache map, instead of just the cache key - Track the cause context.Context, useful for tracing (this is ideally where spans should be attached to) - Fallback to getting client metadata using the weird hacky session manager thing that buildkit has. This is annoying, but if we don't do this, it's very easy to end up in strange edge merging bugs (and I don't want to remove that as part of this work). Signed-off-by: Justin Chadwell <[email protected]>
This helps to pass JSON-serializable objects through the schema easily. It's not a directly exposed type, just a helper. Signed-off-by: Justin Chadwell <[email protected]>
Reimplement it *entirely* inside of dagop! There are a few different things components that this interacts with that makes it a bit tricky to integrate. - `asService` had a dependency on `ExecOp` - this needed to be entirely removed, which is a real pain for the legacy case, so we do an ID inspection. - `ExecError` also depended on using `ExecOp`, so this needed reworking, it's now a `RichError` type which can be used for *any* sort of live ref debugging. - Module calls, these for now still depend on using `withExec` in a super hacky way, but in the future, this should hopefully be removed as we cache module calls natively in dagql caching. Signed-off-by: Justin Chadwell <[email protected]>
Signed-off-by: Justin Chadwell <[email protected]>
Co-authored-by: Alex Couture-Beil <[email protected]> Signed-off-by: Justin Chadwell <[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.
The continuation of #10367, converts
withExecto completely avoid generating LLB, and instead lifting all the relevant functionality into dagger.TODO:
RawDigestfunctionality I've added so we can get a form of content-caching for operations doesn't make me super happy.