Skip to content

Conversation

@jsternberg
Copy link
Collaborator

@jsternberg jsternberg commented Oct 23, 2025

This change modifies how steps are evaluated in the program. Previously,
the execution relied on looking for the digest we were going to stop at
and evaluating the step right before that digest. This could result in
some gaps where it erroneously didn't execute inputs for the current
step as it skipped those digests.

Now, the evaluation reads the inputs and executed those directly rather
than relying on the evaluation of previous steps in the sequence. This
should make the evaluation of inputs more accurate and allow us to have
better breakpoints on things like the copy operation.

Due to the change, it's also easier for us to include the different
inputs in the file explorer.

Fixes #3469.

@jsternberg jsternberg force-pushed the dap-eval-dependencies branch 2 times, most recently from 2aa9ec9 to 28fad83 Compare October 24, 2025 15:37
This change modifies how steps are evaluated in the program. Previously,
the execution relied on looking for the digest we were going to stop at
and evaluating the step right before that digest. This could result in
some gaps where it erroneously didn't execute inputs for the current
step as it skipped those digests.

Now, the evaluation reads the inputs and executed those directly rather
than relying on the evaluation of previous steps in the sequence. This
should make the evaluation of inputs more accurate and allow us to have
better breakpoints on things like the copy operation.

Due to the change, it's also easier for us to include the different
inputs in the file explorer.

Signed-off-by: Jonathan A. Sternberg <jonathan.sternberg@docker.com>
@jsternberg jsternberg force-pushed the dap-eval-dependencies branch from 28fad83 to 4345a8e Compare October 24, 2025 16:13
@jsternberg jsternberg marked this pull request as ready for review October 24, 2025 18:36
Copy link
Member

@tonistiigi tonistiigi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SGTM but as this is getting quite complicated I think we need to improve unit and integration test coverage in follow-up.

@tonistiigi tonistiigi merged commit 00502c0 into docker:master Oct 29, 2025
138 checks passed
@jsternberg jsternberg deleted the dap-eval-dependencies branch October 29, 2025 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

exec command does not work if the debugger is suspended on a COPY line

2 participants