Skip to content

Conversation

@jsternberg
Copy link
Collaborator

This measures the duration of exec operations. It does not factor in
whether the operation was cached or not so this should include the
amount of time to determine whether an operation was cached.

@jsternberg jsternberg force-pushed the build-exec-command-time branch from 356856c to dba6544 Compare March 6, 2024 21:28
}
}

var reExecType = regexp.MustCompile(`^\[.*] RUN `)
Copy link
Collaborator

Choose a reason for hiding this comment

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

It feels weird to rely on regex of the progress stream for this.

This will only work with the dockerfile frontend, since not all exec ops will necessarily begin with RUN.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Likewise in #2317, #2271, etc.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The general plan is to do it this way to start and then, when we have a better idea of what it looks like, modify the solve status to include a better way to track these or track them closer to their source rather than through the progress meter.

The initial version of these is only meant to work with the dockerfile frontend.

This measures the duration of exec operations. It does not factor in
whether the operation was cached or not so this should include the
amount of time to determine whether an operation was cached.

Signed-off-by: Jonathan A. Sternberg <[email protected]>
@jsternberg jsternberg force-pushed the build-exec-command-time branch from dba6544 to 9016d85 Compare March 14, 2024 19:51
@tonistiigi tonistiigi merged commit d410597 into docker:master Mar 14, 2024
@jsternberg jsternberg deleted the build-exec-command-time branch March 14, 2024 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

5 participants