Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

perf(ci): collapse pending main runs into one queue slot

rubenluetke10-beep4830216f6cad
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 4e6a1cd7b9..6341b6c4c0 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -55,10 +55,13 @@ on:
default: false
# A pull request (or a train-dispatched branch run) collapses to its newest
-# commit. main, the nightly run and a full manual dispatch are never cancelled:
-# every commit on main gets its own verdict.
+# commit. A run on main is never cancelled once it runs, but pushes to main
+# share one group: GitHub keeps a single PENDING run and drops older pending
+# ones, so a burst of agent pushes cannot stack a backlog behind the
+# organisation's concurrent-job limit — the newest run covers every commit
+# before it. The nightly run and manual dispatches get their own group.
concurrency:
- group: ci-${{ github.event_name == 'pull_request' && format('pr-{0}', github.event.pull_request.number) || (github.event_name == 'workflow_dispatch' && github.ref != 'refs/heads/main' && format('branch-{0}', github.ref)) || github.run_id }}
+ group: ci-${{ github.event_name == 'pull_request' && format('pr-{0}', github.event.pull_request.number) || (github.event_name == 'workflow_dispatch' && github.ref != 'refs/heads/main' && format('branch-{0}', github.ref)) || (github.event_name == 'push' && 'main-push') || github.run_id }}
cancel-in-progress: ${{ github.event_name == 'pull_request' || (github.event_name == 'workflow_dispatch' && github.ref != 'refs/heads/main') }}
permissions:
diff --git a/docs/ci-pipeline.md b/docs/ci-pipeline.md
index 25858c01fb..f11831a3ad 100644
--- a/docs/ci-pipeline.md
+++ b/docs/ci-pipeline.md
@@ -47,8 +47,10 @@ produces one.
### Concurrency
A pull request (or a branch run the merge train dispatched) keeps only its
-newest run. Pushes to main, the nightly run and manual full runs are never
-cancelled — every commit on main gets its own verdict.
+newest run. A run on main is never cancelled once it started; pushes to main
+share one queue slot, so a burst of pushes leaves one pending run that covers
+every commit before it instead of a backlog behind the organisation's
+concurrent-job limit. The nightly run and manual runs have their own slots.
## 2. Integrating several agents — `.github/workflows/merge-train.yml`