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: All jobs should pass for CI to pass #533

Merged
merged 1 commit into from Apr 4, 2024
Merged

ci: All jobs should pass for CI to pass #533

merged 1 commit into from Apr 4, 2024

Conversation

mrobinson
Copy link
Member

This change makes it so that CI does not pass unless all jobs defined in
the workflow file pass. This is necessary in order to prevent landing
changes that break CI jobs. success() and failure() which were used
before do not take into account dependent jobs.

This change makes it so that CI does not pass unless all jobs defined in
the workflow file pass. This is necessary in order to prevent landing
changes that break CI jobs. `success()` and `failure()` which were used
before do not take into account dependent jobs.

This also fixes the "lint" job which was failing, by formatting the code.
Copy link
Contributor

@rillian rillian left a comment

Choose a reason for hiding this comment

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

So the issue is that the merge queue accepted #506 even though the lint job failed? If so this should fix it.

If I understand correctly, the build_results job is a way to encode which jobs are required in-tree, so only that job needs to be marked as required in the github settings. It's an extra review burden to check this is set correctly, but as far as I can tell, there's no way to require all status checks in a branch protection rule?

@mrobinson
Copy link
Member Author

@rillian Thanks for the review. This will also need a review from someone with write access to the repository. I think that for branch protection you have to manually add all jobs that you'd like to gate landing a change. We typically just use this "meta job" approach in Servo. Unfortunately, some of the "meta jobs" are not written correctly, as is the case here.

@mrobinson mrobinson requested a review from mukilan April 4, 2024 14:41
@mukilan mukilan added this pull request to the merge queue Apr 4, 2024
Merged via the queue into main with commit fdbd3bf Apr 4, 2024
6 checks passed
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.

None yet

3 participants