Skip to content

tests: workflow path-filter tests call workflow_inputs, not local glob copies (Part of #8434) - #8626

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8434-20261118T1835Z
Nov 18, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8434-20261118T1835Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #8434 (slice 4 of 4: the tests/tools/* sweep).

What changed

Two tests in tests/tools carried a private copy of GitHub's path-filter glob and decided "does this workflow start" with it, so a bug in the planners' own matcher (workflow_inputs.glob_re / triggers) could not fail them:

  • test_ci_critical_path_split.py: dropped the local _glob (which also lacked ?); _starts now calls workflow_inputs.triggers (last matching pattern wins, ! excludes).
  • test_ci_replay_6278.py: dropped the local glob_regex; path_filtered_runs now calls workflow_inputs.glob_re.

Mutation check

Broke the production matcher in tests/tools/workflow_inputs.py::triggers (first match wins: hit = not neg; break) and ran both files:
FAILED test_ci_critical_path_split.py::test_golden_crucible_skips_translator_only_and_prose_changes (1 failed, 31 passed). Restored; 32 passed.
A second mutation (* crossing / in glob_re) did NOT fail either file: no test in them covers segment-bounded * through the production glob (see Sibling gaps). Not added here.

Sweep result for tests/tools (229 test files)

Method: grep for "manually / mirror / reimplement / copy of / by hand", plus an AST pass listing every non-test_ helper (3+ statements) in tests/tools/test_*.py that shares a name with a function in tests/tools/*.py or gitgalaxy/, then read each plausible hit.

Member Verdict
test_ci_critical_path_split.py _glob / _starts copy of workflow_inputs.glob_re / triggers: fixed here
test_ci_replay_6278.py glob_regex copy of workflow_inputs.glob_re: fixed here
test_engine_reach_workflows.py closure, test_sweep_plan.py _sweep_import_closure, test_ground_truth_plan.py _closure independent oracle for the planner (they assert the planner's filter against a separately derived import closure; the filter itself is called via wi.triggers): kept
test_equivalence_cics_comp5_* _oracle, test_embedded_verb_coverage.py canonical snippets build fixture bytes / expected owners as data, then call the real decoder / verdict: kept
test_ci_digest.py _chain, test_cache_keys.py _triggers, test_ctags_reader_qualify.py ("mirrors" a guard in prose) fixtures / yaml readers; call the real code: kept
remaining AST name hits (_write, build, __init__, runner, ...) same name only, no shared logic: kept

Class / Sibling gaps

Class: a test that decides its verdict with its own copy of the production function it claims to test (a local helper that duplicates a repo module's logic), so the production function can break unseen. Members in tests/tools handled here: the two glob copies above; every other helper in the sweep table is a fixture builder or an independent oracle. Sibling gaps: (1) no test in test_ci_replay_6278.py / test_ci_critical_path_split.py pins workflow_inputs.glob_re's * stays inside one path segment (mutation 2 passes): tests/tools/test_workflow_inputs.py is the home, not added to stay within this PR's files; (2) tests/core_engine gate tests beyond those fixed in #8605/#8619 and tests/security_auditing (#8620) were not re-swept here.

Remaining slices

None for tests/tools. Optional: the glob_re segment test in (1).

Gates

pr_gates.py --fast (lint, audits) PASS; ruff format --check (0.17.4) clean; both edited files 32 passed locally. No ratchets run (tests only, no engine or golden change).

🤖 Generated with Claude Code

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 18, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 18, 2026 19:00
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 18, 2026 19:01
@squid-shepherd
squid-shepherd Bot merged commit 3b271d0 into main Nov 18, 2026
57 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8434-20261118T1835Z branch November 18, 2026 19:05
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