Repository navigation
ci: path-filtered workflows trigger on what they read (17 gaps fixed; a test keeps it so) (#4825) - #4832
Merged
Conversation
… a test keeps it so) (#4825) A pull_request `paths:` filter that misses a workflow's own inputs means a PR can change what the check would say and the check never runs; a later, unrelated PR that triggers it fails instead. - tests/tools/workflow_inputs.py: for every workflow with PR `paths:`, the repo scripts its steps run and, when it reads the crucible pins, tests/crucible_pins.toml must be matched (GitHub glob semantics, `!` exclusions, last match wins). tests/tools/test_workflow_inputs.py makes it a ratchet. - Fixed: 5 accuracy audits (call-graph, detection, graph, tree-sitter, tri-comparison) never ran on a crucible pin bump although they test the pinned corpus; 10 workflows ran tests/tools/crucible_pins.py untriggered; answer-key-guard (ground_truth_diff.py) and java-compile (mainframe_corpus.py) ran scripts outside their filter. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01TBJdDBRtJis5hzE244NQKV
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Item 1 of #4825's remaining list: a gate that silently doesn't run.
Problem: a pull_request
paths:filter that misses a workflow's own inputs means a PR can change what the check would say while the check never runs. A later, unrelated PR that does trigger it then fails instead (the "pin bump → stale PRs" pattern).Checker:
tests/tools/workflow_inputs.py. For every workflow with PRpaths::tests/crucible_pins.tomlmust be matched.It uses GitHub glob semantics (
*one segment,**any depth,!exclusions, last match wins).tests/tools/test_workflow_inputs.pymakes it a ratchet: a new gap fails the suite with the fix spelled out. Intentional exceptions go inALLOWwith a reason.Fixed (17 gaps, 12 workflows):
tests/tools/crucible_pins.pywithout triggering on it.ground_truth_diff.pyand java-compile runsmainframe_corpus.py, both outside their filters.Only pull_request filters change; push/schedule triggers are untouched.
Tests: 9 passed (glob semantics, input detection, no gaps in the repo);
pr_gates --fast5/5; ruff and mypy audits clean. agy's earlier workflow audit flagged the candidates; this checker verifies them deterministically.🤖 Generated with Claude Code
https://claude.ai/code/session_01TBJdDBRtJis5hzE244NQKV