Skip to content

ci: tested-tree gate for the 7 remaining pull_request+push workflows (Closes #4964) - #5001

Merged
squid-protocol merged 4 commits into
mainfrom
churn/4964-20261012T1659Z
Oct 12, 2026
Merged

squid-protocol merged 4 commits into
mainfrom
churn/4964-20261012T1659Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Closes #4964. Sibling of #4935 / #4961. Owner-queued, workflow edits allowed.

What

The tested-tree job (tests/tools/skip_tested_tree.py, as #4961) is wired into the 7 gap workflows: fact-crosscheck, estate-crucible, ports-compile, java-compile, cics-crucible, unicode-gauntlet, tree-sitter-accuracy-audit. The heavy job needs: tested-tree and runs unless skip == 'true' (!cancelled(), so a crashed gate runs it). A push is skipped ONLY on the #4961 rule (one parent, tree == PR head tree, parent in head, newest PR run of the same workflow = success), plus one new condition: the PR's base must be main.

Paths filters

The proof is a pull_request run of the same workflow on the head. GitHub creates it only if the PR's paths filter matched, so a PR the filter skipped has no run and the push runs even though its filter matched on main (or, tree-sitter-accuracy-audit, has none): absence is never proof. Filter pairs: the push paths are a subset of the PR paths in all six filtered workflows (PR-only extras are harmless and pinned in the test); tree-sitter-accuracy-audit has no push filter (61 of 205 pushes in 7 days had no PR run and still run).
java-compile: its PR run can skip the build when the generated Java equals the base's (--same-as); a skipped push is then the same tree as a base whose own push built it.

Main Watch

Untouched. The gate job always runs, the workflow concludes success/failure; skipped heavy jobs conclude success, which is a true verdict for that tree. schedule / dispatch never skip.

Tests

test_skip_tested_tree.py (+ paths-filter-skipped PR => no run => push runs; base != main; base unknown) and new test_tested_tree_workflows.py (each workflow's wiring, gate asks about its own file, heavy job gated, PR/push filter pair pinned incl. the filter-less push).
pr_gates --fast 5/5, --ratchets 7/7, nothing skipped.

Measured (7 days, replaying decide() over each workflow's completed push runs with gh api)

workflow push runs would skip run-wall min saved job-min saved
fact-crosscheck 134 39 199 140
estate-crucible 64 13 41 6
ports-compile 159 50 301 195
java-compile 121 33 321 647
cics-crucible 171 58 815 675
unicode-gauntlet 146 40 308 257
tree-sitter-accuracy-audit 205 4 16 14

Most pushes don't skip because the PR was behind main (tree differs). tree-sitter saves little: its PR filter is narrow and most PRs have no run.

Cross-repo: none.

🤖 Generated with Claude Code

…ile, java-compile, cics-crucible, unicode-gauntlet, tree-sitter-accuracy-audit (Part of #4964)

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 12, 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 12, 2026 17:51
@squid-protocol
squid-protocol enabled auto-merge (squash) October 12, 2026 17:52
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@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

PR #5001 @ bad7b4c: 1 failed check(s)

== full-suite part 3/3 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/38286512570/job/114937996448
repro: python -m pytest -q tests/tools/test_workflow_inputs.py::test_every_path_filtered_workflow_triggers_on_what_it_reads
failing tests: tests/tools/test_workflow_inputs.py::test_every_path_filtered_workflow_triggers_on_what_it_reads
errors:
fail-on-cache-miss: false
E AssertionError: add these to the workflow's pull_request paths (or to ALLOW, with the reason): cics-crucible.yml: tests/tools/skip_tested_tree.py; estate-crucible.yml: tests/tools/skip_tested_tree.py; fact-crosscheck.yml: tests/tool
tests/tools/test_workflow_inputs.py:36: AssertionError
FAILED tests/tools/test_workflow_inputs.py::test_every_path_filtered_workflow_triggers_on_what_it_reads - AssertionError: add these to the workflow's pull_request paths (or to ALLOW, with the reason): cics-crucible.yml: tests/tools/skip_tes
##[error]Process completed with exit code 1.
log tail:
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]
##[group]Run {
{
echo "## CICS spec status page (advisory)"
if python tests/tools/cics_spec_status.py render --check 2>&1; then :; else
echo "The evidence-refresh bot re-renders docs/language_status/cics_spec_status.md on main after merge; do not commit it here."
fi
} >> "$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/706a2ca1-42b5-4933-a9d5-7bb85cde7f19' 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 the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Oct 12, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

CI shepherd: the head of this PR (cdbffc1) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then).

@squid-protocol squid-protocol removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 12, 2026
@squid-protocol squid-protocol added shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md and removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md labels Oct 12, 2026
@squid-protocol
squid-protocol merged commit 81f860d into main Oct 12, 2026
46 checks passed
@squid-protocol
squid-protocol deleted the churn/4964-20261012T1659Z branch October 12, 2026 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI minutes: tested-tree gate for the remaining pull_request+push workflows (siblings of #4935/#4961)

1 participant