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

Skipped checks on automerge are falsly considered successful #3649

Open
evantahler opened this issue Jan 11, 2025 · 0 comments
Open

Skipped checks on automerge are falsly considered successful #3649

evantahler opened this issue Jan 11, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@evantahler
Copy link

evantahler commented Jan 11, 2025

We've got classic branch protections enabled on our main branch.

Screenshot 2025-01-11 at 11 14 00 AM

Our test suite is set up such that a number of sub-jobs need all pass which then trigger a final job, backend-test-complete, which is the required check in the branch protection.

jobs: 

...

  backend-test-complete:
    runs-on: ubuntu-latest
    needs:
      - backend-lint
      - backend-seed
      - backend-tests
      - backend-acceptance-tests
    steps:
      - run: echo "SUCCESS!"

If one of the sub jobs fails (in this example, backend-seed), the final job, backend-test-complete is skipped.

Screenshot 2025-01-11 at 11 16 14 AM Screenshot 2025-01-11 at 11 17 05 AM

However, auto-merge proceeded when it should have been prevented. The language about branch protections implies that "skipped" jobs should not pass the branch protection, and only "successful" jobs should pass:

Screenshot 2025-01-11 at 11 10 54 AM

So... I think it is a bug that automerge happened in this case. Thanks!

@evantahler evantahler added the bug Something isn't working label Jan 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant