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

[5.0] fix "All Required Tests Passed" CI Branch Protection #1753

Merged
merged 1 commit into from
Oct 12, 2023

Conversation

spoonincode
Copy link
Member

The leap repo has a branch protection rule that "All Required Tests Passed" is required to pass. At least I think that's what it's suppose to mean. Now I'm not sure because, mind bogglingly, when that test is skipped (because a dependent job failed) it doesn't block the PR! Consider this example where,

  • "NP Tests (ubuntu20)" failed
  • "All Required Tests Passed" was skipped, and
  • Had 2 approvals
    Screenshot 2023-10-04 at 13-00-31 generate  tar zst out of cpack instead of  tar gz by spoonincode · Pull Request #1714 · AntelopeIO_leap
    Screenshot 2023-10-04 at 13-00-42 generate  tar zst out of cpack instead of  tar gz by spoonincode · Pull Request #1714 · AntelopeIO_leap

Expected behavior in this case is to not have the "white" merge button (it should be red for admins; and simply not allowed for non-admins).

So... restore this job back to how it was previously via if: always() and status checks on the dependent jobs.

Sending to 5.0 because this branch protection rule is important.

@spoonincode spoonincode added the CICD Anything dealing with the CI workflow behavior label Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CICD Anything dealing with the CI workflow behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants