ci: add nightly main snapshots without expanding push queues (CI-MAIN-SIGNAL) #771

Merged
djrolfes merged 1 commit from upstream-pr/771 into main 2026-11-25 21:48:35 +00:00
djrolfes commented 2026-11-24 13:36:37 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by djrolfes on 2026-11-24T13:36:37Z.


Claimed: CI-MAIN-SIGNAL (coordination).

Depends on: none.

Revised after review: bounded nightly snapshots

The original per-push run_id proposal 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:

  • Add one daily default-branch CI snapshot at 03:23 UTC.
  • Add one daily Runtime snapshot at 03:53 UTC, staggered after CI.
  • Scheduled runs already have separate schedule-<run_id> groups, so queued pushes cannot replace them.
  • No changes to No Game Data, jactionlint or XMA2 concurrency. There is no competing per-push policy for #608 to adopt.

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 325ce06eb

Base e18b59a5b; clean merge-tree against 5da72d19f.

  • New standard-library schedule/concurrency tests: 6 passed. Controls fail without schedules and when the expensive per-push run_id policy is reintroduced.
  • CI-registration tests: 16 passed; No Game Data workflow tests: 3 passed.
  • PyYAML 6.0.3 parses all four relevant workflows.
  • Exact pinned jactionlint 2.6.0, correctness profile, network disabled: zero findings on the two changed workflows, both baseline and candidate. Shellcheck is not installed locally, so its 36 unchanged shell scripts were not checked.
  • Compileall, changed-file scanner and diff checks pass.
  • Known baseline failure, not waived: test_runtime_paths.py passes 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: none declarations 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.

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5473193105 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/771). Originally posted by [djrolfes](https://github.com/djrolfes) on 2026-11-24T13:36:37Z. --- Claimed: **CI-MAIN-SIGNAL** ([coordination](https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7133007785)). Depends on: none. ### Revised after review: bounded nightly snapshots The original per-push `run_id` proposal 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**: - Add one daily default-branch CI snapshot at **03:23 UTC**. - Add one daily Runtime snapshot at **03:53 UTC**, staggered after CI. - Scheduled runs already have separate `schedule-<run_id>` groups, so queued pushes cannot replace them. - No changes to No Game Data, jactionlint or XMA2 concurrency. There is no competing per-push policy for #608 to adopt. 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 `325ce06eb` Base `e18b59a5b`; clean merge-tree against `5da72d19f`. - New standard-library schedule/concurrency tests: **6 passed**. Controls fail without schedules and when the expensive per-push `run_id` policy is reintroduced. - CI-registration tests: **16 passed**; No Game Data workflow tests: **3 passed**. - PyYAML 6.0.3 parses all four relevant workflows. - Exact pinned **jactionlint 2.6.0**, correctness profile, network disabled: **zero findings** on the two changed workflows, both baseline and candidate. Shellcheck is not installed locally, so its 36 unchanged shell scripts were **not** checked. - Compileall, changed-file scanner and diff checks pass. - **Known baseline failure, not waived:** `test_runtime_paths.py` passes 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: none` declarations 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 commented 2026-11-24 14:27:44 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by moffington on 2026-11-24T14:27:44Z.


Reviewed 9e7bbff72 and confirmed a clean trial merge against main at d0da7dade.

The current cancellation problem is substantial:

  • CI: 37/40 main push runs cancelled.
  • No Game Data: 19/20 cancelled.
  • Runtime: 17/20 cancelled.

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.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7134413079 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/771#issuecomment-7134413079). Originally posted by [moffington](https://github.com/moffington) on 2026-11-24T14:27:44Z. --- Reviewed `9e7bbff72` and confirmed a clean trial merge against `main` at `d0da7dade`. The current cancellation problem is substantial: - CI: 37/40 main push runs cancelled. - No Game Data: 19/20 cancelled. - Runtime: 17/20 cancelled. 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 commented 2026-11-24 14:37:35 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-24T14:37:35Z.


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:

  1. 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.

  2. 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).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7134682603 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/771#issuecomment-7134682603). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-24T14:37:35Z. --- 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-<n> and cancel each other, and different PRs don't interact. Two points before merging: 1. 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. 2. 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 commented 2026-11-24 18:29:40 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-11-24T18:29:40Z.


Thanks. The expression change is correct: push runs get …-push-<run_id>, PR runs keep …-pull_request-<number> with cancel-in-progress: true, and it merges cleanly onto current main. MoonEyes's cost point and the #608 consistency point are still open; besides those:

  • It won't make the main result 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 the main group now (45405317016) has been queued, waiting for runners, since 13:37Z. With per-sha groups, each main run joins the same queue (about 664 queued runs) and finishes hours later, while PR runs wait behind it.
  • The cost is unbounded. At about 200 merges a day this adds about 440 runs, about 2,000 jobs and about 12,000 job-minutes a day, which is roughly 8 runners and 1.7 macOS runners busy around the clock.
  • A bounded option: keep the current group for ci.yml and runtime.yml and add a schedule: 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 for no-game-data.yml (1 job, seconds) and jactionlint.yml (rare) are cheap and could stay as they are here.
  • #782, #789 and #794 already contain this PR's commit but say Depends on: none. Merging any of them would land this concurrency change under an unrelated title. Please rebase them off it, or mark them Depends on: #771.
  • The hosted checks on 9e7bbff72 are action_required, so jactionlint hasn't run on this change yet.

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7140722834 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/771#issuecomment-7140722834). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-11-24T18:29:40Z. --- Thanks. The expression change is correct: push runs get `…-push-<run_id>`, PR runs keep `…-pull_request-<number>` with `cancel-in-progress: true`, and it merges cleanly onto current `main`. MoonEyes's cost point and the #608 consistency point are still open; besides those: - **It won't make the `main` result 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 the `main` group now (45405317016) has been `queued`, waiting for runners, since 13:37Z. With per-sha groups, each `main` run joins the same queue (about 664 queued runs) and finishes hours later, while PR runs wait behind it. - **The cost is unbounded.** At about 200 merges a day this adds about 440 runs, about 2,000 jobs and about 12,000 job-minutes a day, which is roughly 8 runners and 1.7 macOS runners busy around the clock. - **A bounded option:** keep the current group for `ci.yml` and `runtime.yml` and add a `schedule:` 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 for `no-game-data.yml` (1 job, seconds) and `jactionlint.yml` (rare) are cheap and could stay as they are here. - **#782, #789 and #794 already contain this PR's commit** but say `Depends on: none`. Merging any of them would land this concurrency change under an unrelated title. Please rebase them off it, or mark them `Depends on: #771`. - The hosted checks on `9e7bbff72` are `action_required`, so `jactionlint` hasn't run on this change yet. AI-assisted (Claude Code, Claude Opus 5.5).
djrolfes commented 2026-11-25 19:48:28 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by djrolfes on 2026-11-25T19:48:28Z.


Thanks @MoonEyes @aslan2142 @moffington. Addressed the concerns in replacement head 325ce06eb:

  • Removed the per-merge run_id expansion entirely. Existing push/PR groups and cancellation remain unchanged in all workflows. CI and Runtime instead get one staggered nightly snapshot each (03:23 / 03:53 UTC), independent of queued pushes. This limits additional arrival to two workflow invocations/day; it does not make a delayed queue faster or guarantee a green run.
  • Corrected the description: the reviewed sample was 37 cancelled, one completed failure, two pending—not zero completed. I have not recast those historical numbers as a fresh Actions measurement.
  • #608 no longer needs to adopt a different push policy; XMA2 is untouched.
  • Removed the accidentally inherited CI commit and sibling commits from #782 (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.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7172791108 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/771#issuecomment-7172791108). Originally posted by [djrolfes](https://github.com/djrolfes) on 2026-11-25T19:48:28Z. --- Thanks @MoonEyes @aslan2142 @moffington. Addressed the concerns in replacement head 325ce06eb: - Removed the per-merge run_id expansion entirely. Existing push/PR groups and cancellation remain unchanged in all workflows. CI and Runtime instead get one staggered nightly snapshot each (03:23 / 03:53 UTC), independent of queued pushes. This limits additional arrival to two workflow invocations/day; it does not make a delayed queue faster or guarantee a green run. - Corrected the description: the reviewed sample was 37 cancelled, one completed failure, two pending—not zero completed. I have not recast those historical numbers as a fresh Actions measurement. - #608 no longer needs to adopt a different push policy; XMA2 is untouched. - Removed the accidentally inherited CI commit and sibling commits from #782 (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 commented 2026-11-25 21:48:39 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-11-25T21:48:39Z.


Merged, thanks! The scheduled snapshots are the bounded option: ordinary pushes keep coalescing, and two runs a day give main a real signal.

  • The open points are addressed: the extra cost is two scheduled runs a day, XMA2 (#608) is untouched, and #782, #789 and #794 no longer carry this commit.
  • Checked on main 1fe5072af + 325ce06eb: the semantic suite passes (491 files, 6,312 tests, 0 files failed); test_ci_main_signal pass; the 15 docs and writer tests pass; check_no_game_data.py is clean on the 3 changed files.

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7175567957 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/771#issuecomment-7175567957). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-11-25T21:48:39Z. --- Merged, thanks! The scheduled snapshots are the bounded option: ordinary pushes keep coalescing, and two runs a day give `main` a real signal. - **The open points are addressed:** the extra cost is two scheduled runs a day, XMA2 (#608) is untouched, and #782, #789 and #794 no longer carry this commit. - **Checked on `main` `1fe5072af` + `325ce06eb`:** the semantic suite passes (491 files, 6,312 tests, 0 files failed); `test_ci_main_signal` pass; the 15 docs and writer tests pass; `check_no_game_data.py` is clean on the 3 changed files. AI-assisted (Claude Code, Claude Opus 5.5).
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
ProjectLeonida/mandy!771
No description provided.