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

Remove broken ci-success check #2084

Merged
merged 1 commit into from
Apr 29, 2021
Merged

Remove broken ci-success check #2084

merged 1 commit into from
Apr 29, 2021

Conversation

teor2345
Copy link
Contributor

Motivation

Previously, Zebra made ci-success a required check for merges to main. And then we made ci-success depend on a bunch of other CI checks.

But this doesn't work as expected, because if the dependent checks fail, ci-success is skipped, and the branch protection rules allow the branch to be merged to main.

As a side-effect, CI will be slightly faster, because the number of jobs is reduced by 1. (Even though it is a short job, it still needs an extra VM.)

Solution

In this PR: delete the broken ci-success check

In the GitHub admin interface: make the branch protection rule depend directly on the 5 CI checks we intended to require

I also opened a GitHub help issue, to get them to update their documentation to includes skipped tasks.

Review

@dconnolly can review this PR as a routine cleanup.

Related Issues

We discovered this issue because #2075 unexpectedly merged with broken tests.

@teor2345 teor2345 added C-bug Category: This is a bug A-devops Area: Pipelines, CI/CD and Dockerfiles C-cleanup Category: This is a cleanup P-Medium labels Apr 29, 2021
@teor2345 teor2345 added this to the 2021 Sprint 8 milestone Apr 29, 2021
@teor2345 teor2345 requested a review from dconnolly April 29, 2021 05:37
@teor2345 teor2345 self-assigned this Apr 29, 2021
@teor2345 teor2345 mentioned this pull request Apr 29, 2021
@teor2345 teor2345 removed this from the 2021 Sprint 8 milestone Apr 29, 2021
@dconnolly
Copy link
Contributor

It's so unfortunate that this mechanism fails in this way, it was so handy 😭

@teor2345
Copy link
Contributor Author

This PR failed because main was broken due to #2075. Hopefully #2085 fixes that, I'll do a rebuild on this PR to check.

@teor2345
Copy link
Contributor Author

Ah, it's hasn't re-merged the merge commit with the fixed main.

So I'll have to manually rebase.

Previously, Zebra made ci-success a required check for merges to main. And then we made ci-success depend on a bunch of other CI checks.

But this doesn't work as expected, because if the dependent checks fail, ci-success is skipped, and the branch protection rules allow the branch to be merged to main.
@teor2345 teor2345 force-pushed the remove-ci-success branch from 63389d5 to e50a1df Compare April 29, 2021 20:14
Copy link
Contributor

@dconnolly dconnolly left a comment

Choose a reason for hiding this comment

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

Remove for now

@dconnolly dconnolly added this to the 2021 Sprint 8 milestone Apr 29, 2021
@dconnolly dconnolly merged commit f33db69 into main Apr 29, 2021
@dconnolly dconnolly deleted the remove-ci-success branch April 29, 2021 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-devops Area: Pipelines, CI/CD and Dockerfiles C-bug Category: This is a bug C-cleanup Category: This is a cleanup
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants