ci: let a push to main cancel the build of the previous one #6902
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/6902"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-16T17:14:27Z.
What
Push builds of main run one after another (
cancel-in-progressis off forpush). Each merge's build waits for the builds of every earlier merge, so main gets a result for its current tree only after all of them finish. #6889, a fix of a red main, waited behind the build of the tree it fixed and of one before it. Now the newest push cancels the build in progress, as pull request and dispatched builds already do: the group stays per ref, so only builds of main cancel each other.Nothing reads a main build per commit:
automerge.shalready skips cancelled main builds and falls back to the nearest completed ones before and after the base;mainfails,main-broken.shand the hold release only look at completedsuccess/failurepush builds.The trade-off is that a red main build can span several merges, which makes the culprit search wider.
Tested
build_eligibility,conventions_ci_gateandcheck_conventions.pypass.cancelled.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)