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

verifier: do not run invalid platforms check when there are no results #5730

Merged
merged 1 commit into from
Feb 13, 2025

Conversation

jsternberg
Copy link
Collaborator

When --call=lint or --call=outline were used, the intention wasn't to run this check because the result doesn't have a platform. When those checks are run, there is no exporter platforms key.

We would check Request from the request operations, but this wasn't a reliable way to determine whether the result was from a lint because it is possible for subrequests to have different frontend attributes than the primary request and the primary request would sometimes not have the requestid attribute set.

Instead of detecting a subrequest with that method, the check has been updated to exit if there are no references and if there is no exporter key.

Fixes #5693.

When `--call=lint` or `--call=outline` were used, the intention wasn't
to run this check because the result doesn't have a platform. When those
checks are run, there is no exporter platforms key.

We would check `Request` from the request operations, but this wasn't a
reliable way to determine whether the result was from a lint because it
is possible for subrequests to have different frontend attributes than
the primary request and the primary request would sometimes not have the
`requestid` attribute set.

Instead of detecting a subrequest with that method, the check has been
updated to exit if there are no references and if there is no exporter
key.

Signed-off-by: Jonathan A. Sternberg <[email protected]>
@jsternberg
Copy link
Collaborator Author

Added an integration test.

@tonistiigi tonistiigi merged commit a9720d0 into moby:master Feb 13, 2025
104 checks passed
@jsternberg jsternberg deleted the fix-check-invalid-platforms branch February 13, 2025 15:43
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.

Target platforms not being considered for "frontend.lint" request
2 participants