Skip to content

Ground Truth: plan job proves nothing when a PR changes no input (Part of #5164) - #5165

Merged
squid-protocol merged 4 commits into
mainfrom
churn/5164-20261014T2323Z
Oct 15, 2026
Merged

squid-protocol merged 4 commits into
mainfrom
churn/5164-20261014T2323Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5164

What

ground-truth stays a required check that always reports, but a new plan job (tests/tools/ground_truth_plan.py, the Det Sweep pattern of #4825) decides first: when every changed file is a provable non-input, both ground-truth-part jobs are skipped and the aggregate passes (about a minute). Any other file is an input and runs the full check. Push, nightly and dispatch are always full; an empty/unreadable diff or a failed plan job also runs in full (an empty mode is not none). The #5151 split (parts 1/2, ground-truth aggregate, publish-history needs it) is unchanged.

The classifier is an allow-list of what the job does not read (INPUTS win, an unlisted file is an input), because the job reads the whole engine plus tests/tools transitively. Non-inputs: docs/** except docs/language_status/** (register, rule catalogue and cics spec are read by tests) and the history file; *.md outside gitgalaxy//tests/cobol_mainframe/; .claude/; .github/ except the three workflows tests read; churn/shepherd/CI-digest tooling in tests/tools; tests/tools/test_*.py (not run by the job) except four modules a cobol test imports; test dirs the job does not run.

Tests

tests/tools/test_ground_truth_plan.py: skip direction (20 paths), run direction (27 paths incl. unknown files), mixed, non-PR events, empty diff, CLI + unreadable diff; a guard that no skippable tool is reached (word-reference closure) from tests/cobol_mainframe/ or the ledger tool; workflow wiring of the required check.

Before / after

Last 99 merged PRs (changed files via gh): 10 of 99 (10%) would have skipped (9 under the first draft of the list). The honest result: most PRs touch gitgalaxy/ or tests/cobol_mainframe/. Saving per skipped run ~ 303 runner-min / 37 runs ~ 8 min billed (parts ran ~16 min wall on 2 runners), so ~ 10% of ~303 runner-min per 3 h ~ 30 runner-min per 3 h at current volume. The next biggest blockers among the rest: workflow edits to java-compile.yml/det-sweep.yml/mainframe-ground-truth.yml, tests/tools/{proof_blockers,pr_check,ci_digest}.py, tests/cics_crucible/. They stay inputs (in the tests' import closure or in doubt).

Cross-repo

None.

🤖 Generated with Claude Code

@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 23:44
@squid-protocol
squid-protocol enabled auto-merge (squash) October 14, 2026 23:44
@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 #5165 @ a877a14: 1 failed check(s)

== full-suite part 3/3 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/38655899702/job/116165462513
repro: python -m pytest -q tests/test_source_reads.py::test_no_source_read_loses_a_byte
failing tests: tests/test_source_reads.py::test_no_source_read_loses_a_byte
errors:
fail-on-cache-miss: false
E AssertionError: #3813: decode through gitgalaxy.core.source_text (read_source / open_source / decode_bytes) instead of a lossy errors= handler or a text-mode read of an estate file:
tests/test_source_reads.py:137: AssertionError
FAILED tests/test_source_reads.py::test_no_source_read_loses_a_byte - AssertionError: #3813: decode through gitgalaxy.core.source_text (read_source / open_source / decode_bytes) instead of a lossy errors= handler or a text-mode read of an e
##[error]Process completed with exit code 1.
log tail:
SKIPPED [1] tests/tools/test_crucible_case.py:157: no cics-crucible checkout (CICS_CRUCIBLE_PATH)
SKIPPED [1] tests/tools/test_crucible_case.py:232: no cics-crucible checkout (CICS_CRUCIBLE_PATH)
SKIPPED [1] tests/tools/test_ctags_reader_qualify.py:35: ctags not on PATH
SKIPPED [1] tests/tools/test_ctags_reader_qualify.py:56: ctags not on PATH
SKIPPED [1] tests/tools/test_ctags_reader_qualify.py:75: ctags not on PATH
SKIPPED [1] tests/tools/test_cache_keys.py:62: owner-protected (#4935): hashes gitgalaxy/pyproject.toml alone
SKIPPED [2] tests/tools/test_cache_keys.py:62: owner-protected (#4935): hashes pyproject.toml alone
SKIPPED [1] tests/tools/test_call_graph_resolution_gate.py:107: no typescript with the JavaScript compiler API (<= 6.x) on NODE_PATH
SKIPPED [1] tests/tools/test_evidence_report.py:60: #4703: per-PR CI is advisory (smoke-test.yml / full-suite-gate.yml print the level deltas); the evidence-refresh bot regenerates the reports on main and the release gate (publish.yml) runs
SKIPPED [1] tests/tools/test_pin_requirements.py:28: uv executable not installed in this environment
SKIPPED [1] tests/tools/test_pin_requirements.py:94: uv executable not installed in this environment
SKIPPED [1] tests/tools/test_unicode_gauntlet_vs_treesitter.py:52: keyword-rosetta corpus not available
XFAIL tests/extraction/languages/test_jcl.py::test_jcl_func_start_invalid[//SYSUDUMP DD DATA,DLM=$$\n//BAD EXEC PGM=X\n$$] - Known limitation: No block shielding for instream data in JCL
XFAIL tests/extraction/languages/test_jcl.py::test_jcl_class_start_invalid[//SYSIN DD \n//FAKE JOB 1\n/] - Known limitation: No block shielding for instream data in JCL
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/test_source_reads.py::test_no_source_read_loses_a_byte - AssertionError: #3813: decode through gitgalaxy.core.source_text (read_source / open_source / decode_bytes) instead of a lossy errors= handler or a text-mode read of an e
tests/tools/test_ground_truth_plan.py:129 in named() [lossy-errors]
assert not [('tests/tools/test_ground_truth_plan.py', 'named', 'lossy-errors', 129)]
1 failed, 8088 passed, 20 skipped, 4 xfailed, 3 xpassed, 2 warnings in 576.39s (0:09:36)
##[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/b4c29642-9fba-45d8-93be-bc735d9378b8' 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 15, 2026
@squid-protocol squid-protocol removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 15, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

CI shepherd: the head of this PR (eb07011) 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 added shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Oct 15, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol enabled auto-merge (squash) October 15, 2026 00:47
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

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

Development

Successfully merging this pull request may close these issues.

1 participant