Skip to content

fix(roadmap): name the nearest test of a module - #4696

Merged
dan-petty merged 4 commits into
mainfrom
fix/4519-nearest-module-test
Nov 11, 2026
Merged

dan-petty merged 4 commits into
mainfrom
fix/4519-nearest-module-test

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The module-test problem of the stage job named the first test of the record in path order, a test with no relation to the module. For src/devops_cli/lang/en/messages.py it named tests/ai/mcp/test_ai_benchmark_mcp_tool.py.

record_module_tests now lists the tests of a module nearest first: the mirror test, a test that imports the module by its own name, a test in the mirror folder, then the rest, each class in path order. A test that only another changed module imports comes last. No test leaves the record, and the problem sentence does not change.

Closes #4519

Change: openspec/changes/archive/2026-11-11-4519-the-module-test-problem-names-an/

The record of a module lists its tests nearest first: the mirror test, a
direct importer, a test in the mirror folder, then the rest.

Refs #4519
@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them labels Nov 11, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Measurements for #4519.

uv run devops ci fail-to-pass --base origin/main: 5 of the 7 new tests fail on the base. The 2 that pass on the base prove that path order and the top-of-package rule stay as they were.

uv run devops roadmap eval stage --replay, base and change give the same result: 58 cases, every gate catches what it must refuse (paths 53 of 53, kind 25 of 25, content 3 of 3, prompt_keys 1 of 1), and 5 of 5 good plans pass.

@dan-petty
dan-petty marked this pull request as ready for review November 11, 2026 17:31
@dan-petty
dan-petty enabled auto-merge (squash) November 11, 2026 17:32
@dan-petty
dan-petty merged commit b746c95 into main Nov 11, 2026
32 checks passed
@dan-petty
dan-petty deleted the fix/4519-nearest-module-test branch November 11, 2026 17:54
dan-petty pushed a commit that referenced this pull request Nov 11, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.112.3](v0.112.2...v0.112.3)
(2026-11-11)


### Bug Fixes

* **ai:** record the duration of each agent model request
([#4717](#4717))
([1930b71](1930b71))
* **devcontainer:** poll the Docker daemon through the clock
([#4721](#4721))
([be32268](be32268))
* **roadmap:** confine repair fix turns to the plan files
([#4689](#4689))
([d2e7597](d2e7597))
* **roadmap:** name the nearest test of a module
([#4696](#4696))
([b746c95](b746c95))
* **roadmap:** scoped intake reads a bounded page count
([#4740](#4740))
([f89ccc5](f89ccc5))
* **roadmap:** stage context reads runner facts from the package
([#4723](#4723))
([05e09dc](05e09dc))
* **roadmap:** stage holds an item where openspec is not set up
([#4749](#4749))
([45bd54a](45bd54a))
* **roadmap:** trace gate reads a tool call citation
([#4694](#4694))
([5c71ad4](5c71ad4))


### Performance Improvements

* **ci:** cancel superseded CodeQL runs and idle triggers
([#4763](#4763))
([c951368](c951368))


### Code Refactoring

* **ai:** delete orphan prompts and the prompt fallbacks
([#4710](#4710))
([38a1b13](38a1b13))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(roadmap): the module-test problem names an unrelated test

1 participant