Skip to content

docs(openspec): plan #3462 Accept a test helper group in the plan check - #4435

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 10, 2026 •

Copy link
Copy Markdown
Contributor

Plans #3462

The stage plan check refuses an other group whose every changed path is under tests/ 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 under tests/. It decides the test-module form with the public is_test_module of the core test selection module, which the test selector of devops 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/

@devops-cli-service devops-cli-service Bot added type/docs Type docs: a change to the documents scope/openspec OpenSpec changes, specs and their checks labels Nov 10, 2026
@devops-cli-service
devops-cli-service Bot marked this pull request as ready for review November 10, 2026 23:14
devops-cli-service Bot and others added 3 commits November 11, 2026 01:38
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
dan-petty force-pushed the fix/3462-accept-a-test-only-group-that branch from c7ecfd5 to 854fe3b Compare November 11, 2026 02:16
@dan-petty
dan-petty merged commit 776054b into main Nov 11, 2026
33 checks passed
@dan-petty
dan-petty deleted the fix/3462-accept-a-test-only-group-that branch November 11, 2026 02:21
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/`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/openspec OpenSpec changes, specs and their checks type/docs Type docs: a change to the documents

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant