-
-
Notifications
You must be signed in to change notification settings - Fork 30.5k
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
Auto-cancel old builds when new commit pushed to branch #98009
Conversation
Co-authored-by: Ezio Melotti <[email protected]>
I'm going to merge this and see what happens. If everything works well I will backport it. |
Thanks @hugovk for the PR, and @ezio-melotti for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11. |
Thanks @hugovk for the PR, and @ezio-melotti for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10. |
Sorry, @hugovk and @ezio-melotti, I could not cleanly backport this to |
Sorry @hugovk and @ezio-melotti, I had trouble checking out the |
(If we backport #92999 the conflict should go away and make the workflow files more consistent between branches, so I'm waiting for that before backporting this.) |
* main: Minor edits to the Descriptor HowTo Guide (pythonGH-24901) Fix link to Lifecycle of a Pull Request in CONTRIBUTING (python#98102) pythonGH-94597: deprecate `SafeChildWatcher`, `FastChildWatcher` and `MultiLoopChildWatcher` child watchers (python#98089) Auto-cancel old builds when new commit pushed to branch (python#98009) pythongh-95011: Migrate syslog module to Argument Clinic (pythonGH-95012)
* main: (5519 commits) Minor edits to the Descriptor HowTo Guide (pythonGH-24901) Fix link to Lifecycle of a Pull Request in CONTRIBUTING (python#98102) pythonGH-94597: deprecate `SafeChildWatcher`, `FastChildWatcher` and `MultiLoopChildWatcher` child watchers (python#98089) Auto-cancel old builds when new commit pushed to branch (python#98009) pythongh-95011: Migrate syslog module to Argument Clinic (pythonGH-95012) pythongh-68686: Retire eptag ptag scripts (python#98064) pythongh-97922: Run the GC only on eval breaker (python#97920) GitHub Workflows security hardening (python#96492) Add `@ezio-melotti` as codeowner for `.github/`. (python#98079) pythongh-97913 Docs: Add walrus operator to the index (python#97921) [doc] Fix broken links to C extensions accelerating stdlib modules (python#96914) pythongh-97822: Fix http.server documentation reference to test() function (python#98027) pythongh-91052: Add PyDict_Unwatch for unwatching a dictionary (python#98055) pythonGH-98023: Change default child watcher to PidfdChildWatcher on supported systems (python#98024) pythonGH-94182: Run the PidfdChildWatcher on the running loop (python#94184) pythongh-92886: make test_ast pass with -O (assertions off) (pythonGH-98058) pythongh-92886: make test_coroutines pass with -O (assertions off) (pythonGH-98060) pythongh-57179: Add note on symlinks for os.walk (python#94799) pythongh-94808: Fix regex on exotic platforms (python#98036) pythongh-90085: Remove vestigial -t and -c timeit options (python#94941) ...
Thanks @hugovk for the PR, and @ezio-melotti for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10. |
Thanks @hugovk for the PR, and @ezio-melotti for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11. |
Sorry @hugovk and @ezio-melotti, I had trouble checking out the |
* Auto-cancel old builds when new commit pushed to branch * Add a fallback Co-authored-by: Ezio Melotti <[email protected]> * Use the same group for all workflows. Co-authored-by: Ezio Melotti <[email protected]> (cherry picked from commit 75751f4) Co-authored-by: Hugo van Kemenade <[email protected]>
GH-98162 is a backport of this pull request to the 3.11 branch. |
GH-98163 is a backport of this pull request to the 3.10 branch. |
* Auto-cancel old builds when new commit pushed to branch * Add a fallback Co-authored-by: Ezio Melotti <[email protected]> * Use the same group for all workflows. Co-authored-by: Ezio Melotti <[email protected]> (cherry picked from commit 75751f4) Co-authored-by: Hugo van Kemenade <[email protected]>
) (#98163) * Auto-cancel old builds when new commit pushed to branch * Add a fallback Co-authored-by: Ezio Melotti <[email protected]> * Use the same group for all workflows. Co-authored-by: Ezio Melotti <[email protected]> (cherry picked from commit 75751f4) Co-authored-by: Hugo van Kemenade <[email protected]> Co-authored-by: Hugo van Kemenade <[email protected]>
Backported 🥳 |
* Auto-cancel old builds when new commit pushed to branch * Add a fallback Co-authored-by: Ezio Melotti <[email protected]> * Use the same group for all workflows. Co-authored-by: Ezio Melotti <[email protected]>
Let's use GitHub Actions'
concurrency
to cancel outdated runs.So if you push more than once to a given branch, it auto-cancels runs for older commits to make way for the newest commit to run.
This will help when there's a large backlog of builds and we're hitting limits.
Docs:
Is an issue needed?