Introduce a gate/check GHA job#97533
Conversation
1e1bf94 to
75801c3
Compare
October 14, 2022 20:43
75801c3 to
e441450
Compare
October 14, 2022 20:49
|
Thanks for the PR! Some points to consider:
|
Sorry, something went wrong.
|
@hugovk these are good points and I haven't considered some of them.
|
Sorry, something went wrong.
46d97b5 to
b436563
Compare
January 6, 2023 19:19
|
I don't know if this is worth it for CPython as a number of jobs we require are outside of GitHub Actions (CLA, Issue Number, and News). So this check will increase complexity but won't actually solve the problem of bringing all required checks in one place. |
Sorry, something went wrong.
|
@hugovk , as you've worked a lot of CI stuff lately across the various Python-org repos, do you have further feedback on this?
Just to note, that would be a pretty huge change in terms of workflow for this repo, since |
Sorry, something went wrong.
|
Agreed with @ambv: this looks like significant added complexity for not much actual gain in this project. It looks like a nice idea for some other setups, but doesn't feel like a great fit for us here. It's also possible I'm just missing the point, though :) |
Sorry, something went wrong.
FYI the SC has explicitly stated individuals cannot act as owners on any one piece of code (i.e. we all own the code), so requiring |
Sorry, something went wrong.
|
Alright, so I'm closing this based on the latest feedback. Thanks for putting this together, @webknjaz, and sorry it wasn't a good match for us at this time! |
Sorry, something went wrong.
|
Given that our requirements changed, with Auto-merge enabled, and more checks existing now, I would like to reconsider this PR for inclusion. @webknjaz, would you be so kind as to adapt this to the current state of |
Sorry, something went wrong.
2e9f6a1 to
0abb403
Compare
April 26, 2023 20:38
|
@ambv so I just realized that the docs are its own workflow. The only way this is gonna work is wiring that in as a reusable workflow. |
Sorry, something went wrong.
0abb403 to
9ac328e
Compare
April 26, 2023 21:13
|
A quick summary of our in-person interaction. Łukasz and I agreed to implement the following:
@ambv do we need to do the same to the |
Sorry, something went wrong.
46004d0 to
71f3a64
Compare
April 26, 2023 23:41
Sorry, something went wrong.
136fda2 to
79f84d7
Compare
June 26, 2023 16:46
Sorry, something went wrong.
79f84d7 to
d363de3
Compare
June 26, 2023 17:22
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, conda, coveragepy, Open edX, Towncrier some of the Ansible repositories, pip-tools, all of the jaraco's projects (like `setuptools`, `importlib_metadata`), some of 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 figured, this might be useful for CPython too, which is why I'm submitting this patch. The story behind this is explained in more detail at https://github.com/marketplace/actions/alls-green#why. Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
bfa9d60 to
0fa6164
Compare
June 26, 2023 19:34
|
@hugovk IIRC Łukasz and I talked about merging this PR but not changing the branch protection settings for a while so the check name would start being reported in the Checks widget on old PR updates, otherwise they'll get blocked until updated. |
Sorry, something went wrong.
|
Thanks again! |
Sorry, something went wrong.
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> (cherry picked from commit e7cd557) Co-authored-by: Sviatoslav Sydorenko <wk@sydorenko.org.ua>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> (cherry picked from commit e7cd557) Co-authored-by: Sviatoslav Sydorenko <wk@sydorenko.org.ua>
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.
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.
|
UPD: this has been backported to 3.12 and 3.11 and the branch protection changed accordingly. |
Sorry, something went wrong.
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 (likeattrs,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.