Repository navigation
docs(openspec): plan #3462 Accept a test helper group in the plan check - #4435
Merged
Merged
Conversation
The plan published `_is_test_module` of `stage_paths.py` as a second public `is_test_module` with a wider rule than the one that `src/devops_cli/core/test_selection.py` holds. The rule now uses that core test, which the test selector, the coverage index and `devops ci test` share, so the plan check counts a file as a test module exactly when `devops ci test` runs it as one. The rename group goes away, and the plan changes one source file.
A What Changes item of the plan of #3462 named `src/devops_cli/core/test_selection.py` in a code span, and no group changes that file, so the stage gate refused the plan. The item now names the function and the module in words. The plan states what the shared test-module test does without the claim that a full run of `devops ci test` agrees with it, because pytest also collects `*_test.py` there. The Dependencies section drops #4425, which is merged, and long sentences are split.
dan-petty
force-pushed
the
fix/3462-accept-a-test-only-group-that
branch
from
November 11, 2026 02:16
c7ecfd5 to
854fe3b
Compare
This was referenced Nov 11, 2026
dan-petty
added a commit
that referenced
this pull request
Nov 11, 2026
The stage gates and `plan-check` accepted a spec requirement text over 500 characters. The implement run then stopped at `openspec archive`, because `openspec validate --all --strict` refuses it in the merged spec. OpenSpec 1.14.3 checks the length of an ADDED requirement in a change, and not of a MODIFIED one, as in the #3462 plan. - `_length_problems`, which `_delta_problems` calls, refuses each ADDED and MODIFIED text over `REQUIREMENT_MAX_CHARS` (500). It counts UTF-16 units, as OpenSpec does. The problem names the requirement, its length and the limit. `plan-check` gets it through `check_proposal`. - The #3462 plan (PR #4435) is a golden case that the gate `paths` catches. Closes #4524 Change: `openspec/changes/archive/2026-11-11-4524-plan-gates-miss-a-spec-requirement/`
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.
Plans #3462
The stage plan check refuses an
othergroup whose every changed path is undertests/when its implementation names no test function. That rule stops a group that guards a conditional test. It also refuses a sound group that changes only a test helper or a fixture, because the implementation names a helper and no test function. The rule now judges only a group whose every changed path is a test module undertests/. It decides the test-module form with the publicis_test_moduleof the core test selection module, which the test selector ofdevops ci test <paths>and the coverage index share, so the plan check and the selector agree on which file is a test module. A helper group 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 rule landed with #3433; this change narrows it.Change:
openspec/changes/3462-accept-a-test-only-group-that/