Repository navigation
Description
Problem Description
The module-test check of the stage paths gate (#3414) names only the first module of a behavior group that has no named test. _unnamed_module_test in src/devops_cli/roadmap/stage/stage_paths.py returns at the first module in group.changes whose existing test the group names nowhere, and existing_test_problems gives one problem for each group. The repair round then fixes that one module, and the next reply is refused for the next module of the same group. Each such module uses one gate return. The stage gate has 3 returns (DEFAULT_ROADMAP_STAGE_GATE_RETURNS), so a group that changes 3 or more modules with no named test is refused, although one repair could fix all of them.
Reproduction Steps
- Make a behavior
StageGroupthat changes two existing modules,a.pyandb.py, and names no test of either module. - Call
existing_test_problems([group], tree, {"a.py": ("test_a.py",), "b.py": ("test_b.py",)}). - Read the problems.
Expected vs Actual Behavior
Expected: the problem list names each module of the group that has no named test, with its test, so that one repair can add all of them.
Actual: the list names only a.py. A reply that adds test_a.py is then refused for b.py.
Environment Diagnostics
- DevOps CLI Version: 0.118.0
- Execution Environment: Local Workstation
Logs, Traces, or Terminal Output
Stage refusals of 2026-11-10 and 2026-11-11 (stored stage traces):
#2530 group 1: refused for constants.py, then for messages.py in the repair round.
#3387 group 5: refused for stage.py, then for store.py in the repair round.
module_has_no_test was the first reason of 2 of 9 failed runs on 2026-11-10; it was also a problem in #3398 and #3389.
Code on origin/main (16356d817): stage_paths.py:618-629, `return path, tests[0]` inside the loop over `group.changes`.
Fix: give one problem for each module of the group that has no named test. The rule stays the same: a group that leaves out an existing test of a module that it changes is still refused.
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.
Activity
dan-petty commentedon Nov 12, 2026
Both fix _unnamed_module_test in stage_paths.py, but #4519 names the correct test while the candidate names every module that lacks a test.devops-cli-service commentedon Nov 12, 2026
Released in v0.119.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.119.0
devops-cli-service commentedon Nov 12, 2026
Live since 2026-11-12 15:46 UTC