Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Marshal Input Vertices in a consistent order #4706

Merged
merged 6 commits into from
Mar 5, 2024

Conversation

adamperlin
Copy link
Contributor

@adamperlin adamperlin commented Feb 27, 2024

This is a possible fix for #4695. I am opening to run against CI, as I've had trouble running full tests locally

…averse input vertices in a consistent order

Signed-off-by: adamperlin <adamp@nanosoft.com>
Signed-off-by: adamperlin <adamp@nanosoft.com>
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.

In the issue you have pointed out a different place. I think it makes more sense to guarantee that Inputs() always returns consistent results, rather than try to patch this in the specific caller later.

client/llb/state.go Outdated Show resolved Hide resolved
…FileOp).Inputs() and (*ExecOp).Inputs()

Signed-off-by: adamperlin <adamp@nanosoft.com>
Signed-off-by: adamperlin <adamp@nanosoft.com>
@adamperlin
Copy link
Contributor Author

@tonistiigi should be ready for another look. I've revised my fix to address the ordering directly in (*ExecOp).Inputs() and (*FileOp).Inputs

Signed-off-by: adamperlin <adamp@nanosoft.com>
@adamperlin
Copy link
Contributor Author

adamperlin commented Mar 1, 2024

Not sure what the CI failure is here? Unsure if it's related?

client/llb/exec.go Outdated Show resolved Hide resolved
client/llb/exec.go Show resolved Hide resolved
client/llb/exec.go Outdated Show resolved Hide resolved
client/llb/fileop.go Outdated Show resolved Hide resolved
Signed-off-by: adamperlin <adamp@nanosoft.com>
@adamperlin
Copy link
Contributor Author

@tonistiigi should be ready for another look

@adamperlin
Copy link
Contributor Author

adamperlin commented Mar 5, 2024

@tonistiigi can we run CI again?

@adamperlin
Copy link
Contributor Author

@tonistiigi CI is passing now, looks like this can be merged?

@tonistiigi tonistiigi merged commit a90ed2b into moby:master Mar 5, 2024
73 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants