Skip to content

fix(roadmap): accept a test-only group that changes a test helper - #4465

Merged
dan-petty merged 3 commits into
mainfrom
fix/3462-accept-a-test-only-group-that
Nov 11, 2026
Merged

dan-petty merged 3 commits into
mainfrom
fix/3462-accept-a-test-only-group-that

Conversation

@devops-cli-service

@devops-cli-service devops-cli-service Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

The stage plan check refused an other group whose every changed path is under tests/ when its implementation named no test function. That rule also refused a sound group that changes only a test helper or a fixture, because such a group names a helper and no test function. The rule now judges only a group whose every changed path is a test module under tests/, as the public is_test_module of the core test selection module decides it. A group that changes a test helper or a fixture passes. A group that changes only test modules and names only a test file path is still refused, and the refusal names the group. The requirement of the roadmap-stage spec states the narrowed rule.

Closes #3462

Change: openspec/changes/archive/2026-11-11-3462-accept-a-test-only-group-that/

@dan-petty

Copy link
Copy Markdown
Owner

Evidence for this pull request.

Fail-to-pass (uv run devops ci fail-to-pass --base origin/main, head ae41b46f): 1 test fails on the base and passes on the head, tests/roadmap/stage/test_roadmap_stage_content.py::test_a_test_only_other_group_that_changes_a_test_helper_is_accepted. The other 86 tests of the module pass on both.

Stage replay (uv run devops roadmap eval stage --replay, task 1.2), the same on the base (8fec1f63) and on the change:

  • 57 cases, 5 good.
  • Defects that a gate judges: 81 of 318 (25%).
  • Good plans that every gate accepts: 5 of 5.
  • Result: every gate refuses what it must refuse.

Why the implement run stopped. The run of the Service finished both tasks and stopped at openspec archive. The strict validation refused the merged roadmap-stage spec, because the requirement text of the delta was 543 characters and the limit is 500. That text came from a revision of the plan in #4435. The commit a3257c16 shortens the requirement to 451 characters and keeps the same rule. The strict archive then passes, and ae41b46f holds the archive as the last commit. The stop also left the archive output in the work tree before the rebase, which is a separate defect of the stop path (a fix is in progress).

uv run devops ci test tests/roadmap/stage/test_roadmap_stage_content.py: 87 passed.

@dan-petty
dan-petty marked this pull request as ready for review November 11, 2026 04:57
@dan-petty
dan-petty self-requested a review as a code owner November 11, 2026 04:57
@dan-petty
dan-petty merged commit 74d358a into main Nov 11, 2026
34 of 35 checks passed
@dan-petty
dan-petty deleted the fix/3462-accept-a-test-only-group-that branch November 11, 2026 04:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(roadmap): accept a test-only group that changes a test helper

1 participant