Repository navigation
Description
Problem Description
The stage gate refuses a plan for a test path that the plan did not write. _stale_test_path_problems in src/devops_cli/roadmap/stage/stage_change.py reads the docstrings of each .py file that a group changes, at the staged base commit. It gives stage_problem_missing_test_file for each tests/...py path in these docstrings that names no file of the commit. The plan cannot change the base text, so no repair reply can remove the problem, and the item fails.
Many docstrings name a test path that is an example input or an old location. A scan of origin/main finds 43 such paths in the docstrings of 33 tracked .py files, for example tests/test_x.py in tests/commands/test_ci.py, tests/helper.py in tests/commands/test_test_selection.py, and tests/test_item_grounding.py in tests/commands/test_pr.py.
The gate came with #3999 (2026-11-07). #4498 and #4591 added a same-name hint to the problem. The hint does not help, because the path is in the base docstring and not in the plan: #4401 failed again with the hint at 16:22Z on 2026-11-11.
Measured on 2026-11-11:
- 4 of 11 refused stage items had this problem: fix(ci): a narrowed ci test runs many slow tests serially #4472, fix(pr): Require a replay score in stage-change PRs #3398, fix(security): 52 Trivy-config alerts stay open, none judged #4401 and fix(github): Fix check-readiness base and monitor merged state #2530.
- In fix(pr): Require a replay score in stage-change PRs #3398 and fix(security): 52 Trivy-config alerts stay open, none judged #4401, it was the only problem left after the repair reply.
- A replay of
missing_test_pathsover the base docstrings of the changed files of each refused plan gives exactly the paths of the refusal texts: fix(security): 52 Trivy-config alerts stay open, none judged #4401tests/test_k8s_monitoring_alerting.py; fix(pr): Require a replay score in stage-change PRs #3398tests/test_item_grounding.py; fix(ci): a narrowed ci test runs many slow tests serially #4472tests/helper.py,tests/security/conftest.py,tests/test_x.py; fix(github): Fix check-readiness base and monitor merged state #2530tests/test_item_grounding.py,tests/test_merge_readiness.py. The last reply text of each plan holds none of these paths (0 matches). - Service job errors with this problem: 2026-11-09 20:30Z; 2026-11-10 07:43Z and 18:33Z; 2026-11-11 02:27Z, 03:41Z, 04:49Z, 11:57Z, 16:22Z, 19:08Z and 19:17Z.
Reproduction Steps
- Make a plan with one group that changes
src/devops_cli/sample.py, and no spec text that names a missing test path. - Give
check_proposalaread_textthat returnsdef helper():\n """Seetests/test_x.py."""\nfor that file, and a tree that does not holdtests/test_x.py. - Read the problems.
Expected vs Actual Behavior
Expected: the plan gets no stage_problem_missing_test_file problem, because the plan names no missing test path. A spec of the plan that names a missing test path is still refused.
Actual: the plan gets "The test path tests/test_x.py names no file of the staged commit", and no repair can remove it.
Environment Diagnostics
- DevOps CLI:
mainat 84df338 (release 0.113.0). - Requirement: "A test path in a docstring or a spec names a file of the commit" in
openspec/specs/roadmap-stage/spec.md.
Logs, Traces, or Terminal Output
stage gate returns: item=#4472 returns=1 result=refused version=0.112.2
The test path `tests/test_item_grounding.py` names no file of the staged commit.
Pre-Submission Checklist
- I have verified that no sensitive credentials, private keys, or internal tokens are contained in this issue report.
- I have checked existing issues and pull requests to ensure this is not a duplicate. fix(roadmap): name the same-name file of a missing test path #4498 and fix(roadmap): name the same-name file of a stale test path #4591 are closed and fixed only the hint.
Activity
dan-petty commentedon Nov 11, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
fixprefix of the title gives the type.(roadmap)scope of the title gives the scope.Four of eleven refused stage items fail on this defect, and service job errors recur daily.Legitimate plans are blocked with no repair path, so the stage job cannot complete for affected items.The fix removes or skips the base-docstring read in one function, _stale_test_path_problems.Both target stage_problem_missing_test_file, but #4498 adds a hint to the message while this candidate removes the base-docstring scan entirely.devops-cli-service commentedon Nov 11, 2026
Released in v0.114.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.114.0
devops-cli-service commentedon Nov 11, 2026
Live since 2026-11-11 22:57 UTC