Skip to content

tests/tools: Smoke suite plan selects a changed test module, its importers and the tree guards (Part of #6278) - #6857

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/6278-s5-test-select
Oct 28, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/6278-s5-test-select

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #6278

Checklist: partial [c:cc68bcd4] -- test-module PRs now select; engine-module selection (nightly per-test coverage map) is not done

What

suite_select_plan.py (the Smoke suite-plan job) gains one more select class: a PR whose changed files are docs, agent config and/or test modules (tests/**/test_*.py). It runs the changed module, every test module that imports it by bare name (e.g. test_cics_runtimes), and TREE_GUARDS (the six tests that scan the whole tests/ tree for a repo rule). Any other tests/ file (conftest, fixtures, data, helpers) or any engine file is still full. The workflow already wires select; no YAML change. Push, nightly and dispatch stay full.

Replay (last 50 merged PRs, --replay 50)

select 3 -> 4 PRs (6% -> 8%); skip 0; full 46. Small: most PRs touch the engine, which this slice does not map.

Class / Sibling gaps

Class: changed files the suite can map to the tests that reach them. Handled: prose (skip), test-read docs / agent config (readers), test modules (self + importers + guards). Sibling gaps: engine modules (gitgalaxy/**) -> a static import graph misses subprocess / galaxyscope-driven tests, so it needs a nightly per-test coverage map; tests/tools/<helper>.py is already mapped only for the docs path, not as a code change; conftest / fixtures / data under tests/ stay full. Remaining slices: coverage-map generator + planner consumer (2-3 files).

Gates

test_suite_select_plan.py 32 pass; pre-PR tree guards pass; pr_gates --fast 9/9 pass.

🤖 Generated with Claude Code

…importers and the tree guards (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 28, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review October 28, 2026 04:10
@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