Repository navigation
CI: cancel superseded PR runs and stop rerunning on PR edits - #2352
Conversation
|
This change can also help us save runner quota. Otherwise, we’ll use more of it and have to wait longer to run the tests. |
leborchuk
left a comment
There was a problem hiding this comment.
LGTM, it's really annoying issue, we have an old still running checks after force-push. Last day I killed them manually to free resources but better do it automatically.
93f559c to
1455bc2
Compare
|
Hi @Alena0704 Can you help to approve this PR? Let's merge it soon to save more CI resources. |
|
Priority this PR merge queue for saving more resources. FYI |
1455bc2 to
22772e6
Compare
76436c8 to
078885b
Compare
MisterRaindrop
left a comment
There was a problem hiding this comment.
The change looks right to me. Dropping edited is now required, not just nice to have. With cancel-in-progress on for PRs, a title or description edit would start a new run in the same group, and that run would cancel the one testing the code.
One thing to fix before merging: this PR has no real CI result yet. The description contains the literal [skip ci] ("It was added so that a "[skip ci]" put into the PR text later…"). check-skip scans the PR title and body. So on every head so far, including the current 078885bc418, the workflows logged CI Skip flag detected in PR - skipping all checks. and skipped prepare-test-matrix / prepare-test-matrix-deb. #2412 removes check-skip altogether; if it lands first, a rebase of this PR runs the full matrix. Otherwise, remove the text from the description and push again. This PR's own workflows no longer react to edited, so the edit alone does not start a run.
The three red DEB Install Test jobs come from the same skip. In build-deb-cloudberry.yml, the download step has if: needs.check-skip.outputs.should_skip != 'true', but Verify DEB artifacts has no condition, so it runs and fails on the missing .deb. That part is already on main and not caused by this PR, and #2412 removes it with the rest of the skip path.
Nit: the description says pushes to main are not cancelled. Since 0ba1b11, pushes to main no longer trigger the Rocky, Debug and Debian builds at all, and only Behave still runs there. It may be worth updating that sentence before the squash.
yes, the |
A new push to a PR now cancels the run still going for the old head, instead of letting it finish while the new run waits. This applies to build, build-dbg, behave and build-deb; build-deb had no concurrency group before and gets one. Pushes to main and REL_2_STABLE and manual runs are not cancelled. Editing a PR's title or description no longer starts the whole test matrix again: drop the "edited" trigger from build, build-dbg, build-deb and sqlancer. It was added so that a "[skip ci]" put into the PR text later would take effect, but such a skip leaves the required checks unreported and the PR unmergeable. Changing only a PR's base branch no longer reruns CI; push again or close and reopen the PR.
Co-authored-by: Alena Rybakina <58230554+Alena0704@users.noreply.github.com>
Apply the group that build-deb now uses to build, build-dbg and behave too. PR runs still share one group per PR and cancel superseded runs. Pushes to main and REL_2_STABLE and manual runs each get a group of their own, so a later run no longer drops a pending one from the queue.
078885b to
8495ff4
Compare
A new push to a PR now cancels the run still going for the old head, instead of letting it finish while the new run waits. This applies to build, build-dbg, behave and build-deb; build-deb had no concurrency group before and gets one. Pushes to main and REL_2_STABLE and manual runs are not cancelled.
Editing a PR's title or description no longer starts the whole test matrix again: drop the "edited" trigger from build, build-dbg, build-deb and sqlancer. It was added so that a CI skip flag put into the PR text later would take effect, but such a skip leaves the required checks unreported and the PR unmergeable.
Changing only a PR's base branch no longer reruns CI; push again or close and reopen the PR.
Fixes #ISSUE_Number
What does this PR do?
Type of Change
Breaking Changes
Test Plan
make installcheckmake -C src/test installcheck-cbdb-parallelImpact
Performance:
User-facing changes:
Dependencies:
Checklist
Additional Context
CI Skip Instructions