Repository navigation
CI: the Smoke suite plan selects the tests that name a changed tests/tools helper (Part of #6278, item 5) - #6981
Merged
Conversation
…tools helper (Part of #6278, item 5) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
This was referenced Oct 29, 2026
Merged
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 #6278 (item 5, a slice:
tests/toolshelpers; the engine side stays full).What
suite_select_plan.pyused to planfullfor any changed non-testtests/tools/*.pyhelper. It now plansselect: everytests/**/*.pytest file naming the helper as a word, found transitively through the non-test helpers that name it, plusTREE_GUARDS. A helper named by more thanHELPER_MAX(120) test files (equivalence.py,evidence.py,shepherd_gh.py,change_classifier.py) staysfull..pyonly: conftest,__init__, data and shell files, and anything beside an engine file, stayfull.Measured
Replay over the 50 newest merged PRs: select 6 (12%) to 9 (18%), full 44 to 41. Over 80 PRs: 18 select (22.5%). The word match over-selects by design and never under-selects a name reference; a helper run only by a workflow is covered by that workflow's own gate. No workflow file changed: the existing plan job already consumes
modeandpaths.Tests
6 new tests in
tests/tools/test_suite_select_plan.py: direct selection, transitive helper chain, the cap, non-helper files stay full, engine-beside-helper full, the spine helper full.pr_gates --fast9/9;time_ratchetclean.Class / Sibling gaps
Class: changed files the Smoke plan cannot map to tests and so runs in full. Members: tests/tools helper
.py(handled here, up to the cap); test modules (handled in #6857); docs and agent config (handled);tests/conftest.py, fixtures and data undertests/(full: no name maps them to a reader); spine helpers over the cap (full by design);gitgalaxy/**engine files (full: measured in #6913, needs the nightly per-test coverage map: collection job, committed map, freshness test, planner falling back to full for a module absent from the map).Sibling gaps: engine selection via a coverage map (different mechanism, more than 5 files, needs
coveragecontexts and a full instrumented run);tests/fixtures/*selection by reader (different mechanism).Remaining slices: the per-test coverage map for
gitgalaxy/(collector script, committed map, freshness test, planner branch, workflow collection step), in that order.Cost note (ci-workflows rule 5)
No new job or step. Share of recent PRs reached: 18% select of the last 50 (was 12%), measured by
suite_select_plan.py --replay.🤖 Generated with Claude Code