ci: add nightly main snapshots without expanding push queues (CI-MAIN-SIGNAL) #771
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs rebase
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!771
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/771/head"
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?
@djrolfes on GitHub · 2026-11-24 13:36 UTC · original
djrolfes:djrolfes-ci-main-signal→main· +82 −0 · 3 files · 1 commits · merged 2026-11-25 21:48 UTCClaimed: CI-MAIN-SIGNAL (coordination).
Depends on: none.
Revised after review: bounded nightly snapshots
The original per-push
run_idproposal is withdrawn. It prevented replacement of queued merges but expanded runner demand without making results arrive sooner.This replacement keeps all existing push/PR concurrency expressions and cancellation behavior unchanged:
schedule-<run_id>groups, so queued pushes cannot replace them.This adds two scheduled workflow invocations per day, not full CI/Runtime work for every merge. Schedules run only from the default branch after merge. They may still queue, be delayed or fail; this does not promise immediate results, a green run, or coverage of every intermediate merge.
Accuracy correction
“Zero completed runs” in the original description was incorrect. The reviewer's historical 40-run sample contained 37 cancelled, one completed failure and two pending, with no green run in that sample. Those are the review's measurements, not a new claim about current Actions history.
Tested at
325ce06ebBase
e18b59a5b; clean merge-tree against5da72d19f.run_idpolicy is reintroduced.test_runtime_paths.pypasses 4/5 on both main baseline and candidate.tools/conformance/**is missing from Runtime's path filters despite a CMake dependency; existing #1657 owns the correction. This PR does not hide or disable that check.Hosted workflow execution and an actual scheduled run remain unverified. A passing label check is not full CI.
Independent cleanup branches
#782, #789 and #794 have been rebuilt independently from main, each with only its own cleanup commit. The original concurrency commit and sibling cleanup commits were removed, so their
Depends on: nonedeclarations are now accurate.GPUs tested: n/a; workflow/test-only change, Linux, no game files.
AI-assisted: yes. Original heads preserved; same PR/branch updated with an explicit old-head lease.
@moffington on GitHub · 2026-11-24 14:27 UTC · original
Reviewed
9e7bbff72and confirmed a clean trial merge againstmainatd0da7dade.The current cancellation problem is substantial:
Local expression simulation confirms unique concurrency groups for successive pushes, preserved per-PR cancellation, and no cross-workflow group collisions. Triggers and permissions remain unchanged.
All four modified YAML files parse successfully. The 23 existing workflow checks also pass on main. Full actionlint/jactionlint validation remains unverified locally, and hosted checks await maintainer approval.
The increased runner backlog is a legitimate trade-off, but the concurrency change itself looks correct.
LGTM, pending hosted checks.
@MoonEyes on GitHub · 2026-11-24 14:37 UTC · original
The expression does what the PR says. I parsed all four files with PyYAML and simulated the group: two pushes to main now get distinct groups (ci-push-<run_id>), two runs of the same PR still share ci-pull_request- and cancel each other, and different PRs don't interact.
Two points before merging:
Cost. The old group capped main at 1 running + 1 pending run per workflow. With run_id, every push runs in full. Measured today: 40 CI push runs on main between 09:26 and 13:44 UTC (about 9/h). A main CI run is 8 jobs (1 macOS, 2 Windows), about 47 job-minutes (run 45369028646), and Runtime adds 5 jobs, about 40 job-minutes (run 45360188231). Jobs already wait about 50 min to start, and macos-python waited 174 min. In a merge burst this could add about 10 runners of continuous main load, plus about 18 macOS jobs/h, on top of 109 PR runs since 09:00. Coalescing with a scheduled main run, or a unique group only in ci.yml, would restore the signal without an unbounded queue.
Accuracy. Of the last 40 CI push runs on main, 37 were cancelled, 1 completed (failure) and 2 are pending. Over 7 days: 141 cancelled, 11 failed, 0 succeeded. So main has no green run, rather than "zero completed".
Consistency: #608 adds the old pattern (
(github.event_name == 'push' && github.ref)) to xma2-decoder.yml. Whichever option lands, the two PRs should use the same one.AI-assisted review (Claude Code).
@aslan2142 on GitHub · 2026-11-24 18:29 UTC · original
Thanks. The expression change is correct: push runs get
…-push-<run_id>, PR runs keep…-pull_request-<number>withcancel-in-progress: true, and it merges cleanly onto currentmain. MoonEyes's cost point and the #608 consistency point are still open; besides those:mainresult arrive sooner. The old group never cancels the run that holds it, only the pending one (median life 12 s today). The CI run holding themaingroup now (45405317016) has beenqueued, waiting for runners, since 13:37Z. With per-sha groups, eachmainrun joins the same queue (about 664 queued runs) and finishes hours later, while PR runs wait behind it.ci.ymlandruntime.ymland add aschedule:trigger (every 6 h, or nightly). The existing expression already gives a scheduled run its own…-schedule-<run_id>group, so merges can't replace it. Per-sha groups forno-game-data.yml(1 job, seconds) andjactionlint.yml(rare) are cheap and could stay as they are here.Depends on: none. Merging any of them would land this concurrency change under an unrelated title. Please rebase them off it, or mark themDepends on: #771.9e7bbff72areaction_required, sojactionlinthasn't run on this change yet.AI-assisted (Claude Code, Claude Opus 5.5).
@djrolfes on GitHub · 2026-11-25 19:48 UTC · original
Thanks @MoonEyes @aslan2142 @moffington. Addressed the concerns in replacement head
325ce06eb:9a3ee25fd), #789 (692b65cb1) and #794 (beb75ec56). Each now has one independently tested cleanup commit on main, so none can merge this CI policy indirectly.Local evidence: six new schedule/group tests with negative controls, 16 CI-registration tests and three workflow tests pass; YAML parses; pinned jactionlint 2.6.0 correctness reports no findings on baseline/candidate. Shellcheck was unavailable and its 36 unchanged scripts were not checked. Runtime-path tests retain the identical main failure for missing tools/conformance/** (4/5 pass); no check was disabled. Hosted CI/scheduled execution remain unverified, and the label check is not full CI. Full details in the updated body. AI-assisted; original heads preserved and explicit leases used.
@aslan2142 on GitHub · 2026-11-25 21:48 UTC · original
Merged, thanks! The scheduled snapshots are the bounded option: ordinary pushes keep coalescing, and two runs a day give
maina real signal.main1fe5072af+325ce06eb: the semantic suite passes (491 files, 6,312 tests, 0 files failed);test_ci_main_signalpass; the 15 docs and writer tests pass;check_no_game_data.pyis clean on the 3 changed files.AI-assisted (Claude Code, Claude Opus 5.5).