Skip to content

CI: the Smoke suite plan selects the tests that name a changed tests/tools helper (Part of #6278, item 5) - #6981

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/6278-20261029T0520Z
Oct 29, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/6278-20261029T0520Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #6278 (item 5, a slice: tests/tools helpers; the engine side stays full).

What

suite_select_plan.py used to plan full for any changed non-test tests/tools/*.py helper. It now plans select: every tests/**/*.py test file naming the helper as a word, found transitively through the non-test helpers that name it, plus TREE_GUARDS. A helper named by more than HELPER_MAX (120) test files (equivalence.py, evidence.py, shepherd_gh.py, change_classifier.py) stays full. .py only: conftest, __init__, data and shell files, and anything beside an engine file, stay full.

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 mode and paths.

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 --fast 9/9; time_ratchet clean.

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 under tests/ (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 coverage contexts 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

…tools helper (Part of #6278, item 5)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 29, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

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