ci: let a push to main cancel the build of the previous one #6902

Merged
adriadam10 merged 1 commit from upstream-pr/6902 into main 2026-10-16 17:14:53 +00:00
adriadam10 commented 2026-10-16 17:14:27 +00:00 (Migrated from github.com)

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-progress is off for push). 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:

  • the baseline in automerge.sh already skips cancelled main builds and falls back to the nearest completed ones before and after the base;
  • mainfails, main-broken.sh and the hold release only look at completed success/failure push 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_gate and check_conventions.py pass.
  • The concurrency setting only applies to push builds of main, so the first two merges after this one are the test: the earlier build shows cancelled.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4891790289 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6902). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-16T17:14:27Z. --- ### What Push builds of main run one after another (`cancel-in-progress` is off for `push`). 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: - the baseline in `automerge.sh` already skips cancelled main builds and falls back to the nearest completed ones before and after the base; - `mainfails`, `main-broken.sh` and the hold release only look at completed `success`/`failure` push 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_gate` and `check_conventions.py` pass. - The concurrency setting only applies to push builds of main, so the first two merges after this one are the test: the earlier build shows `cancelled`. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!6902
No description provided.