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

CI: fix semantics of the required check #464

Merged
merged 1 commit into from
Oct 23, 2023

Conversation

whitequark
Copy link
Member

@whitequark whitequark commented Oct 23, 2023

If a dependency of the required check, e.g. test-software fails, the required check as a whole is considered skipped. While this works as expected for gating PR merges, it does not work the same way in the merge queue: in the latter case, the non-successful status does not prevent the merge queue branch from being merged to main.

To address this, apply a workaround such that the required check always runs and programmatically checks the status of the required jobs rather than delegating this to GHA flow graph.

Fixes #462.

If a dependency of the `required` check, e.g. `test-software` fails,
the `required` check as a whole is considered skipped. While this works
as expected for gating PR merges, it does not work the same way in
the merge queue: in the latter case, the non-successful status does not
prevent the merge queue branch from being merged to `main`.

To address this, apply a workaround such that the `required` check
always runs and programmatically checks the status of the required jobs
rather than delegating this to GHA flow graph.
@whitequark whitequark added this pull request to the merge queue Oct 23, 2023
Merged via the queue into GlasgowEmbedded:main with commit 6c59f4b Oct 23, 2023
16 of 20 checks passed
@whitequark whitequark deleted the fix-gha-required-check branch October 23, 2023 19:31
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.

Merge queue ignores failing tests and merges PRs anyway
1 participant