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/gha: add all-done jobs #4376

Merged

Conversation

kolyshkin
Copy link
Contributor

@kolyshkin kolyshkin commented Aug 14, 2024

The sole reason is to simplify branch protection rules, requiring just these to be passed.

Currently a draft, pending #4374 #4360 merge.

@kolyshkin kolyshkin force-pushed the simplify-branch-protection branch 3 times, most recently from 6488daf to 9a2176c Compare August 14, 2024 02:18
@kolyshkin kolyshkin changed the title ci/gha: add test-all and validate-all jobs ci/gha: add all-done jobs Aug 14, 2024
@kolyshkin kolyshkin force-pushed the simplify-branch-protection branch from 9a2176c to fd43c2b Compare August 15, 2024 08:53
@kolyshkin kolyshkin marked this pull request as ready for review August 15, 2024 08:54
@kolyshkin
Copy link
Contributor Author

Once this is merged, we can edit branch protection rules to mark only "ci / all-done" and "validate / all-done" tasks as required, removing all other GHA entries. This solves the issue of needing to edit branch protection rules when we switch Go versions or some such.

@thaJeztah
Copy link
Member

Ah! I was considering something like this for auto-merge as well; auto-merge has the very confusing behavior to ONLY wait for required checks to complete. Any other check is simply ignored, which means that it can merge automatically if checks fail, or even didn't run at all 🙈

I wish GitHub actions had some option for this though that didn't require manually constructing the "needs" list 😞

Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

conceptually "LGTM"

happy to learn if someone would know a different approach to do the same that doesn't require manually maintaining the list (@crazy-max do you have some trick up your sleeve?)

@kolyshkin kolyshkin force-pushed the simplify-branch-protection branch from fd43c2b to 8d88fe0 Compare August 16, 2024 12:30
@kolyshkin
Copy link
Contributor Author

kolyshkin commented Aug 16, 2024

happy to learn if someone would know a different approach to do the same that doesn't require manually maintaining the list

Yeah, I thought about that, too, and read this document twice, alas, couldn't find a way.

The sole reason is to simplify branch protection rules,
requiring just these to be passed.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
@kolyshkin kolyshkin force-pushed the simplify-branch-protection branch from 8d88fe0 to 2cd24a4 Compare August 22, 2024 00:01
@kolyshkin
Copy link
Contributor Author

Can we please merge this @opencontainers/runc-maintainers ? I really want to simplify the branch protection rules.

@AkihiroSuda AkihiroSuda merged commit a41b62a into opencontainers:main Aug 22, 2024
42 checks passed
@kolyshkin
Copy link
Contributor Author

Awesome, I've simplified branch protection rules for the main branch, now we only require all-done jobs (and the ones from cirrus-ci).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants