Skip to content

fix(roadmap): name every module of a group that has no named test #5068

Closed

Description

@dan-petty

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

  1. Make a behavior StageGroup that changes two existing modules, a.py and b.py, and names no test of either module.
  2. Call existing_test_problems([group], tree, {"a.py": ("test_a.py",), "b.py": ("test_b.py",)}).
  3. 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

  1. added
    source/agent
    type/bug
    scope/roadmap
    status/new
    value/medium
    effort/low
    on Nov 12, 2026
  2. dan-petty commented on Nov 12, 2026

    @dan-petty
    OwnerAuthor
  3. added
    priority/p2-medium
    owner/agent
    status/in-review
    and removed
    status/new
    on Nov 12, 2026
  4. removed
    status/in-review
    owner/agent
    on Nov 12, 2026
  5. devops-cli-service commented on Nov 12, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-12 15:46 UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/lowpriority/p2-mediumscope/roadmapsource/agenttype/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions