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

[3.11] Introduce a gate/check GHA job (GH-97533) #107115

Merged
merged 1 commit into from
Jul 23, 2023

Conversation

webknjaz
Copy link
Contributor

This adds a GHA job that reliably determines if all the required dependencies have succeeded or not.

It also allows to reduce the list of required branch protection CI statuses to just one — check. This reduces the maintenance burden by a lot and have been battle-tested across a small bunch of projects in its action form and in-house implementations of other people.

This action is now in use in aiohttp (and other aio-libs projects), CherryPy, some of the Ansible repositories, pip-tools, all of the jaraco's projects (like setuptools, importlib_metadata), some of the hynek's projects (like attrs, structlog), some PyCQA, PyCA, PyPA and pytest projects, a few AWS Labs projects. Admittedly, I maintain a few of these but it seems to address some of the pain folks have: jaraco/skeleton#55 (comment).

I saw a few attempts to reduce the maintenance burden for GHA and figured
this might be useful for CPython too, which is why I'm submitting this patch.
Looking forward to hearing what you think!

The story behind this is explained in more detail at https://github.com/marketplace/actions/alls-green#why.

(cherry picked from commit e7cd557)

Co-authored-by: Hugo van Kemenade <[email protected]>
(cherry picked from commit e7cd557)

Co-authored-by: Sviatoslav Sydorenko <[email protected]>
@ambv ambv merged commit 0cdc3a5 into python:3.11 Jul 23, 2023
4 checks passed
webknjaz added a commit to webknjaz/cpython that referenced this pull request Jul 23, 2023
This fixes an incorrect conflict resolution problem that happened
in 0cdc3a5 while backporting
PR python#97533 as PR python#107115 (merged prematurely). This problem caused
GitHub Actions CI/CD to crash while attempting to load the workflow
file definition, preventing the jobs that are defined in
`.github/workflows/build.yml` from actually starting.
ambv pushed a commit that referenced this pull request Jul 23, 2023
This fixes an incorrect conflict resolution problem that happened
in 0cdc3a5 while backporting
PR #97533 as PR #107115 (merged prematurely). This problem caused
GitHub Actions CI/CD to crash while attempting to load the workflow
file definition, preventing the jobs that are defined in
`.github/workflows/build.yml` from actually starting.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants