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

debug: evaluate all refs to allow multi-platform debugging #1786

Merged
merged 1 commit into from
May 11, 2023

Conversation

jedevc
Copy link
Collaborator

@jedevc jedevc commented May 10, 2023

🛠️ Fixes #1640 (comment).

This is a bit of a hack for now, but this allows us to debug multi-platform results.

On a success, the first entry in the result's platform metadata key is selected, on a failure, the platform which encountered an error is selected.

@jedevc jedevc added this to the v0.11.0 milestone May 10, 2023
@jedevc jedevc requested review from tonistiigi and ktock May 10, 2023 10:45
@jedevc jedevc assigned jedevc and unassigned jedevc May 10, 2023
Comment on lines -209 to -227
imgRef, err := c.Solve(ctx, gateway.SolveRequest{
Definition: def.ToPB(),
})
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@ktock I'm not quite sure if I'm missing something here - I don't think this second evaluation is necessary?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yes, I think it's not necessary.

@jedevc jedevc force-pushed the debug-multi-platform branch from 00a2fc8 to 45fccef Compare May 11, 2023 08:46
@jedevc jedevc merged commit 32009a7 into docker:master May 11, 2023
@jedevc jedevc deleted the debug-multi-platform branch May 11, 2023 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants