Repository navigation
tests: workflow path-filter tests call workflow_inputs, not local glob copies (Part of #8434) - #8626
Merged
Merged
Conversation
…b copies (Part of #8434) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
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.
Part of #8434 (slice 4 of 4: the
tests/tools/*sweep).What changed
Two tests in
tests/toolscarried 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?);_startsnow callsworkflow_inputs.triggers(last matching pattern wins,!excludes).test_ci_replay_6278.py: dropped the localglob_regex;path_filtered_runsnow callsworkflow_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/inglob_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) intests/tools/test_*.pythat shares a name with a function intests/tools/*.pyorgitgalaxy/, then read each plausible hit.test_ci_critical_path_split.py_glob/_startsworkflow_inputs.glob_re/triggers: fixed heretest_ci_replay_6278.pyglob_regexworkflow_inputs.glob_re: fixed heretest_engine_reach_workflows.pyclosure,test_sweep_plan.py_sweep_import_closure,test_ground_truth_plan.py_closurewi.triggers): kepttest_equivalence_cics_comp5_*_oracle,test_embedded_verb_coverage.pycanonical snippetstest_ci_digest.py_chain,test_cache_keys.py_triggers,test_ctags_reader_qualify.py("mirrors" a guard in prose)_write,build,__init__,runner, ...)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/toolshandled 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 intest_ci_replay_6278.py/test_ci_critical_path_split.pypinsworkflow_inputs.glob_re's*stays inside one path segment (mutation 2 passes):tests/tools/test_workflow_inputs.pyis the home, not added to stay within this PR's files; (2)tests/core_enginegate tests beyond those fixed in #8605/#8619 andtests/security_auditing(#8620) were not re-swept here.Remaining slices
None for
tests/tools. Optional: theglob_resegment 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