mirror of
https://github.com/floci-io/floci.git
synced 2026-12-05 11:07:59 -05:00
ci: let a running main CI run finish instead of cancelling it (#5396)
* ci: let a running main CI run finish instead of cancelling it A CI run takes about 18 minutes and merges often land closer together than that, so cancel-in-progress on refs/heads/main stopped runs partway through: from 2026-10-05 to 2026-10-09, 77 of 138 CI runs on main were cancelled, leaving most main commits without a result and a break pointing at the wrong commit. Cancel only on pull requests. On main the concurrency group still holds one pending run that a newer merge replaces before it starts, so a burst of merges is tested once, at its newest commit, and no run stops halfway. Refs #5085 * ci: stop cancelling main runs in the other workflows that run on pushes to main Checkstyle, Docs in sync and Partition Literals run on pull requests and on pushes to main, so they get the same rule as ci.yml: cancel a superseded run only on pull requests. The docs deploy never runs on pull requests, so it stops cancelling altogether. The remaining workflows named in #5085 (compatibility, compat-partitions, iam-namespace-drift, nightly) have no push trigger, so a merge to main never cancels them and they are left as they are. Refs #5085 * ci: state the measured cancellation figures in the ci.yml comment The comment quoted one-day figures (30 of 47 runs, a 13 minute median gap, 546 runner-minutes) that the run history does not reproduce. Replace them with the count measured from it: 77 of 138 CI runs on main cancelled from 2026-10-05 to 2026-10-09. Refs #5085 Signed-off-by: Hector Ventura <hectorvent@gmail.com> --------- Signed-off-by: Hector Ventura <hectorvent@gmail.com>
This commit is contained in:
1 parent
47d1e10e5c
commit
379086f818
5 files changed
+16
-5
No files matched your search
@@ -26,7 +26,8 @@ permissions:
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
# Cancel a superseded run only on pull requests; a run on main is left to finish (see ci.yml).
|
||||
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||
|
||||
jobs:
|
||||
checkstyle:
|
||||
|
||||
@@ -22,9 +22,16 @@ on:
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
# A new push to a pull request cancels its older run: only the latest head matters there.
|
||||
# On main a running run is left to finish. A run takes about 18 minutes and merges often
|
||||
# land closer together than that, so cancelling stopped 77 of 138 main runs partway through
|
||||
# between 2026-10-05 and 2026-10-09 and left most main commits with no result.
|
||||
# Without cancelling, the concurrency group still holds at most one pending run: a newer
|
||||
# merge replaces the waiting one before it starts, so a burst of merges is tested once, at
|
||||
# its newest commit, and no run is stopped halfway.
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||
|
||||
env:
|
||||
# Hardcoded on purpose: strategy.job-total counts EVERY matrix job, so adding an
|
||||
|
||||
@@ -33,7 +33,8 @@ permissions:
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
# Cancel a superseded run only on pull requests; a run on main is left to finish (see ci.yml).
|
||||
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||
|
||||
jobs:
|
||||
action-tables:
|
||||
|
||||
@@ -16,7 +16,8 @@ permissions:
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
# This workflow never runs on pull requests, so a running deploy is left to finish (see ci.yml).
|
||||
cancel-in-progress: false
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
|
||||
@@ -46,7 +46,8 @@ permissions:
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
# Cancel a superseded run only on pull requests; a run on main is left to finish (see ci.yml).
|
||||
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||
|
||||
jobs:
|
||||
partition-literals:
|
||||
|
||||
Reference in new issue
Block a user