Skip to content

CI queue: tested-tree on push only; OS grid + read-only crucibles to cadence-capped post-merge dispatch (#5129 #5130 #5131 #5136) - #5140

Merged
squid-protocol merged 3 commits into
mainfrom
churn/5129-20261014T1742Z
Oct 14, 2026
Merged

squid-protocol merged 3 commits into
mainfrom
churn/5129-20261014T1742Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Closes #5129, closes #5130, closes #5131, closes #5136 (bundled by the owner: they edit the same workflows and post-merge.yml).

Class: read-only heavy CI work started by a main push/merge that competes with PR jobs for the shared ~20-job pool, plus its PR-side twin: the post-merge-only tested-tree gate job that also ran on PRs.

What changed

  • CI queue: skip tested-tree gate jobs on pull_request (9 workflows) #5129 tested-tree now runs only on a main push (if: ${{ github.event_name == 'push' }}) in the 3 workflows that keep a push run (smoke-test, mainframe-ground-truth, java-compile). On a PR it could never skip, so it only took a runner and added a serial queue wait before the heavy jobs. A skipped gate leaves skip empty, and the dependent jobs' !cancelled() && needs.tested-tree.outputs.skip != 'true' lets them run (smoke-test's full-suite aggregator is always() and checks PARTS == success). The gate is removed from the other 6 workflows, which no longer have a push run to skip.
    Jobs removed per PR push: one tested-tree job per triggered workflow: 2 always (smoke-test, ground-truth), up to 9 when every path filter matches. The serial gate wait in front of each workflow's heavy jobs goes too.

  • CI queue: move the 9-leg OS smoke grid off every push to main (idle-only/nightly) #5130 The 9-leg OS x Python smoke grid moves from smoke-test.yml into a new os-smoke-grid.yml ("OS Smoke Grid"): post-merge dispatch, plus nightly and v* tags. It is a separate workflow so Main Watch tracks a grid red apart from a full-suite red. Added to main-watch's list. The ubuntu PR full suite is unchanged.

  • CI queue: extend post-merge idle-only dispatch to the remaining push-to-main workflows #5131 cics-crucible, estate-crucible, fact-crosscheck, ports-compile, unicode-gauntlet and tree-sitter-accuracy-audit lose their main push trigger. Each gets a nightly schedule and is dispatched by post-merge (tree-sitter also gains workflow_dispatch, which it lacked).

  • CI queue: Full Suite Gate on main = 15.6% of CI minutes; cap its cadence (every N h + nightly + tags) #5136 New tests/tools/post_merge_dispatch.py (stdlib, pure decide(), tests in test_post_merge_dispatch.py) replaces post-merge.yml's inline loop. Nothing is dispatched while a PR job is waiting. Otherwise it dispatches a target on main's head only when all of these hold:

    • that SHA has no run yet;
    • the target's newest non-cancelled run on main (dispatch, nightly or push) started at least CADENCE_HOURS = 3 h ago;
    • main changed a file the target reads since that run.

    If the comparison fails or is truncated, the target is dispatched. If a target's run list can't be read, it is skipped this tick and the job fails visibly. Dispatch still uses AUTOMATION_PAT (main-watch never sees dispatched Full Suite Gate runs (GITHUB_TOKEN dispatch raises no workflow_run) #4859).

Moved / kept

Workflow Main trigger now Reason Jobs per merge saved
full-suite-gate dispatch (≤ 1 per 3 h, relevant change) + nightly + v* #5136: was 22 runs / 39 h, 15.6% of CI minutes one ~10-job run per idle SHA → at most 8 per day
os-smoke-grid (new) dispatch (cadence) + nightly + v* #5130 9 (3 macOS)
cics-crucible, estate-crucible, fact-crosscheck, ports-compile, unicode-gauntlet dispatch (cadence) + nightly; relevance = own PR paths #5131: read-only ratchets; their main cache saves (event_name != 'pull_request') still run on a dispatch on main 1-2 each, when their push paths matched
tree-sitter-accuracy-audit dispatch (cadence) + nightly; relevance = every file (#4599) #5131 1-2 on every merge (it had no push filter)
smoke-test (full suite) push (tested-tree) the per-merge ubuntu regression net —
mainframe-ground-truth push (tested-tree) its push run appends and publishes the ground-truth history —
java-compile push (tested-tree) its push run seeds java-same-base-<corpus>-<sha>, which PRs based on that SHA restore; a miss would put a base generation on the PR's critical path —
history bots / evidence-pages / generated-docs / deploy-docs / archetype-validation push publishers to generated / Pages from the newest main —

Main Watch

Every target is in main-watch's workflow_run list (pinned by test_target_is_watched_by_main_watch). A dispatched run, created with the PAT, raises workflow_run; the hourly reconcile still backs that up. A red result surfaces within one cadence window (3 h) plus the idle wait, and covers the merges since the previous run.

Tests / gates

  • New tests/tools/test_post_merge_dispatch.py (48 tests) covers:
    • every decide() branch: same SHA, cadence for each event, in-progress and cancelled runs, PR runs ignored, relevant change, docs/.md-only change, ! exclusions, an unknown comparison;
    • glob parity with workflow_inputs.glob_re, and the stdlib PR-filter reader checked against PyYAML for every from-pr-filter target;
    • for every target: dispatchable, nightly present, no main push trigger, watched by main-watch.
  • test_tested_tree_workflows.py: new class invariant: a tested-tree job exists exactly where a workflow runs on both a PR and a main push (generated-docs exempted, with its reason). The gate must be push-only.
  • test_workflow_draft_gate.py, test_main_watch.py and workflow_inputs.py are updated for the new shape.
  • Locally:
    • the affected workflow tests: 198 passed (-k subset of tests/tools plus the draft-gate test);
    • workflow_inputs.py: clean;
    • ruff / mypy audits: no new findings;
    • pr_gates.py --fast: 6/6 pass;
    • post_merge_dispatch.py --dry-run against the live API: decisions as expected, and a 404 for os-smoke-grid.yml, which doesn't exist on main until this merges.
  • No engine code changed: no golden-master or ratchet movers.

Cross-repo: none.

🤖 Generated with Claude Code

…o cadence-capped post-merge dispatch (Fixes #5129, #5130, #5131, #5136)

- #5129: the tested-tree gate (smoke-test, mainframe-ground-truth, java-compile) runs on a main push only;
  PR runs start their heavy jobs without it.
- #5130: the 9-leg OS smoke grid moves from smoke-test.yml to os-smoke-grid.yml (dispatch + nightly + v* tags).
- #5131: cics-crucible, estate-crucible, fact-crosscheck, ports-compile, unicode-gauntlet and
  tree-sitter-accuracy-audit lose their main push trigger (and gate); nightly + post-merge dispatch instead.
- #5136: tests/tools/post_merge_dispatch.py: at most one run per target per CADENCE_HOURS (3) on the
  newest main SHA, only when PR runners are idle and main changed a file the target reads.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 14, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 14, 2026 19:01
@squid-protocol
squid-protocol enabled auto-merge (squash) October 14, 2026 19:08
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol

Copy link
Copy Markdown
Owner Author

PR #5140 @ 4cc396d: 2 failed check(s)

== full-suite part 2/3 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/38620196863/job/116045422469
repro: python -m pytest -q tests/core_engine/test_pipeline_pins.py::test_our_own_pipelines_are_clean[.github/workflows/os-smoke-grid.yml] tests/core_engine/test_pipeline_pins.py::test_our_own_pipelines_are_clean[.github/workflows/smoke-test.yml]
failing tests: tests/core_engine/test_pipeline_pins.py::test_our_own_pipelines_are_clean[.github/workflows/os-smoke-grid.yml] tests/core_engine/test_pipeline_pins.py::test_our_own_pipelines_are_clean[.github/workflows/smoke-test.yml]
errors:
fail-on-cache-miss: false
E AssertionError: {(58, 'brew')}
tests/core_engine/test_pipeline_pins.py:367: AssertionError
E AssertionError: set()
FAILED tests/core_engine/test_pipeline_pins.py::test_our_own_pipelines_are_clean[.github/workflows/os-smoke-grid.yml] - AssertionError: {(58, 'brew')}
FAILED tests/core_engine/test_pipeline_pins.py::test_our_own_pipelines_are_clean[.github/workflows/smoke-test.yml] - AssertionError: set()
##[error]Process completed with exit code 1.
log tail:
Extra items in the left set:
(58, 'brew')
Full diff:
- set()
+ {
+ (
+ 58,
+ 'brew',
+ ),
+ }
FAILED tests/core_engine/test_pipeline_pins.py::test_our_own_pipelines_are_clean[.github/workflows/smoke-test.yml] - AssertionError: set()
assert set() == {(112, 'brew')}
Extra items in the right set:
(112, 'brew')
Full diff:
+ set()
- {
- (
- 112,
- 'brew',
- ),
- }
2 failed, 6505 passed, 387 skipped, 1 xfailed, 16 warnings, 9 subtests passed in 439.09s (0:07:19)
##[error]Process completed with exit code 1.
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/053436ad-6ce9-4d75-879e-ea2c4b737057' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes

== full-suite part 3/3 (failure) -- main
https://github.com/squid-protocol/gitgalaxy/actions/runs/38620196863/job/116045422053
repro: fails on main too: fix main (then merge origin/main here)
failing tests: tests/tools/test_det_sweep_balance.py::test_a_rerun_shard_overwrites_its_sweep_json_and_merges_without_a_duplicate
errors:
fail-on-cache-miss: false
FAILED tests/tools/test_det_sweep_balance.py::test_a_rerun_shard_overwrites_its_sweep_json_and_merges_without_a_duplicate - Failed: DID NOT RAISE ValueError
##[error]Process completed with exit code 1.
log tail:
XFAIL tests/extraction/languages/test_dart.py::test_dart_dependency_capture_xfail_invalid[/* \n import 'package:foo/foo.dart'; \n /] - String/comment lookalikes lack AST block shielding
XFAIL tests/extraction/languages/test_zig.py::test_zig_args_invalid["fn (a: i32, b: i32)"] - Known limitation: No block shielding for args inside strings
XFAIL tests/extraction/languages/test_zig.py::test_zig_args_invalid[// fn (a: i32, b: i32)] - Known limitation: No block shielding for args inside comments
XPASS tests/extraction/languages/test_jcl.py::test_jcl_args_valid["//STEP1 EXEC PGM=PROG,PARM='THIS STRI"...len102-1d86da8b-"'THIS STRING CONTINUES "...len72-7c3fedb5] - Known limitation: Engine cannot parse JCL line con
XPASS tests/extraction/languages/test_jcl.py::test_jcl_dependency_invalid[//DD DATA \n INCLUDE MEMBER=NOPE \n/
] - Known limitation: No block shielding for instream data in JCL
XPASS tests/extraction/languages/test_jcl.py::test_jcl_dependency_invalid['//STEP1 EXEC PGM=PROG1 THIS COMMENT CO'...len69-d3e393cd] - Known limitation: Inline comments aren't stripped before dependency capture
FAILED tests/tools/test_det_sweep_balance.py::test_a_rerun_shard_overwrites_its_sweep_json_and_merges_without_a_duplicate - Failed: DID NOT RAISE ValueError
1 failed, 9497 passed, 21 skipped, 8 xfailed, 3 xpassed, 2 warnings in 624.86s (0:10:24)
##[error]Process completed with exit code 1.
##[group]Run python tests/tools/evidence_report.py --deltas --live >> "$GITHUB_STEP_SUMMARY"
python tests/tools/evidence_report.py --deltas --live >> "$GITHUB_STEP_SUMMARY"
shell: /usr/bin/bash -e {0}
env:
PYTHONUTF8: 1
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
OMP_NUM_THREADS: 1
EVIDENCE_REPORT_ADVISORY: 1
pythonLocation: /opt/hostedtoolcache/Python/3.12.15/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib
##[endgroup]
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/b68fe73a-8963-490c-9d1f-89eef2727d7f' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes

@squid-protocol squid-protocol added shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md and removed shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md labels Oct 14, 2026
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Oct 14, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol squid-protocol removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md labels Oct 14, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol squid-protocol added shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md and removed shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md labels Oct 14, 2026
@squid-protocol
squid-protocol merged commit b9b6f3a into main Oct 14, 2026
52 of 54 checks passed
@squid-protocol
squid-protocol deleted the churn/5129-20261014T1742Z branch October 14, 2026 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

1 participant