Skip to content

ci: path-filtered workflows trigger on what they read (17 gaps fixed; a test keeps it so) (#4825) - #4832

Merged
squid-protocol merged 1 commit into
mainfrom
ci/4825-path-filters
Oct 10, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
ci/4825-path-filters

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

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 PR paths::

  • the repo scripts its steps run must be matched by the filter;
  • if it reads the crucible pins, tests/crucible_pins.toml must be matched.

It uses GitHub glob semantics (* one segment, ** any depth, ! exclusions, last match wins). tests/tools/test_workflow_inputs.py makes it a ratchet: a new gap fails the suite with the fix spelled out. Intentional exceptions go in ALLOW with a reason.

Fixed (17 gaps, 12 workflows):

  • 5 accuracy audits (call-graph, detection, graph, tree-sitter, tri-comparison) test the pinned language-crucible corpus but never ran on a pin bump.
  • 10 workflows run tests/tools/crucible_pins.py without triggering on it.
  • answer-key-guard runs ground_truth_diff.py and java-compile runs mainframe_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 --fast 5/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

… 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
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol marked this pull request as ready for review October 10, 2026 11:03
@squid-protocol
squid-protocol merged commit 4655f37 into main Oct 10, 2026
41 checks passed
@squid-protocol
squid-protocol deleted the ci/4825-path-filters branch October 10, 2026 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant