Skip to content

feat(roadmap): Check the strength of the new tests (#3051) - #5770

Merged
dan-petty merged 2 commits into
mainfrom
feat/3051-new-tests-of-an-implementation-are
Nov 15, 2026
Merged

dan-petty merged 2 commits into
mainfrom
feat/3051-new-tests-of-an-implementation-are

Conversation

@devops-cli-service

@devops-cli-service devops-cli-service Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Check the strength of the new tests in the implement job. The check scans the new test files for missing assertions, runs a bounded mutation test, and measures the coverage delta of the changed files. The check skips groups of kind other.

Closes #3051

Change: openspec/changes/archive/2026-11-15-3051-new-tests-of-an-implementation-are/

@devops-cli-service
devops-cli-service Bot force-pushed the feat/3051-new-tests-of-an-implementation-are branch 2 times, most recently from 49bd38a to 256c48e Compare November 15, 2026 01:01
@devops-cli-service

Copy link
Copy Markdown
Contributor Author

The steps of the job:

Stopped at group 2.

Failure class: plan_defect.
Action taken: none.
Action left: wait: wait for a person.

Step Status Attempts Tokens in/out Last failing command
group 1 done 2 5377779/16947 pytest on base: tests/roadmap/implement/test_roadmap_implement_strength.py
group 2 stopped 1 6794139/35478 -

Reason:

The plan request was refused: An amendment cannot change the criteria section.. Defect: Task 2.2 requires run_mutation to pass PYTEST_ADDOPTS in the child environment so mutmut's stats collection runs only the scoped test modules. The subprocess environment guard refuses PYTEST_ADDOPTS from a caller (#2747), so the real implement job raises SecurityError before mutmut starts. ProcessFake records the env without the guard, so the unit tests cannot see the failure. The design decision 'Scope the mutmut stats run to the scoped test modules with PYTEST_ADDOPTS' and the proposal line 'scope mutmut stats collection to the scoped test modules via PYTEST_ADDOPTS' need the same correction.. Evidence: src/devops_cli/config/constants.py:1949 holds "PYTEST_ADDOPTS" in CONST_CODE_LOADING_ENV_PATTERNS; src/devops_cli/core/process.py:221-229 refuses each caller key that matches it, with isolate_env true or false; a probe of build_subprocess_env(env={"PYTEST_ADDOPTS": "tests/test_sample.py"}) printed "SecurityError Prohibited dangerous environment variable override: 'PYTEST_ADDOPTS'"; uv run devops ci test tests/core/test_subprocess_env_file_write.py passed 57 tests, which include that refusal; tests/support/fakes/process.py records call.env without calling build_subprocess_env.

Last message of the agent (a claim that no check verified): Group 2 cannot be built as written: task 2.2 requires run_mutation to pass PYTEST_ADDOPTS in the child environment, and the subprocess guard refuses that key from a caller. What I checked against the real system: - src/devops_cli/config/constants.py:1949 lists PYTEST_ADDOPTS in CONST_CODE_LOADING_ENV_PATTERNS. - src/devops_cli/core/process.py:221-229 refuses every caller env key that matches it, with isolate_env true or false, and extra_allowed_keys does not exempt a caller override. A scratch probe of build_subprocess_env(env={"PYTEST_ADDOPTS": ...}) raised SecurityError: Prohibited dangerous environment variable override: 'PYTEST_ADDOPTS' (probe deleted). - uv run devops ci test tests/core/test_subprocess_env_file_write.py returned 57 passed, including the refusal of PYTEST_ADDOPTS in upper and lower case, isolated and not isolated. - ProcessFake records call.env without calling build_subprocess_env, so the group's tests would pass while the real implement job would raise SecurityError on every strength check. I changed no file and ticked no task. ```plan-request { "kind": "task", "group": 2, "defect": "Task 2.2 requires run_mutation to pass PYTEST_ADDOPTS in the child environment so mutmut's stats collection runs only the scoped test modules. The subprocess environment guard refuses PYTEST_ADDOPTS from a caller (#2747), so the real implement job raises SecurityError before mutmut starts. ProcessFake records the env without the guard, so

The item is Blocked, and the job will not run it. Fix the cause. Then comment implement: retry. The Service clears the stop on its own when a new runner image rolls out, but only if a retry can fix the class of the stop and the limits of roadmap.implement.digest_clears_per_class and roadmap.implement.digest_clears_per_item allow it.

Step Status Attempts Tokens in/out Last failing command
group 1 done 2 5377779/16947 pytest on base: tests/roadmap/implement/test_roadmap_implement_strength.py
group 2 stopped 1 6794139/35478 -
  • fail-to-pass of group 1: fails on the base commit. Tests that fail on the base commit: tests.roadmap.implement.test_roadmap_implement_strength::test_a_new_test_file_that_asserts_nothing_is_flagged.

@dan-petty
dan-petty force-pushed the feat/3051-new-tests-of-an-implementation-are branch from 256c48e to 32d9a6e Compare November 15, 2026 04:23
@dan-petty dan-petty changed the title feat(roadmap): Check the strength of the new tests feat(roadmap): Check the strength of the new tests (#3051) Nov 15, 2026
@dan-petty
dan-petty force-pushed the feat/3051-new-tests-of-an-implementation-are branch from 32d9a6e to 3bd32e1 Compare November 15, 2026 04:32
@dan-petty
dan-petty force-pushed the feat/3051-new-tests-of-an-implementation-are branch from 3bd32e1 to 02801e8 Compare November 15, 2026 04:49
@dan-petty
dan-petty marked this pull request as ready for review November 15, 2026 04:58
@dan-petty
dan-petty self-requested a review as a code owner November 15, 2026 04:58
@dan-petty
dan-petty merged commit 041ad79 into main Nov 15, 2026
30 checks passed
@dan-petty
dan-petty deleted the feat/3051-new-tests-of-an-implementation-are branch November 15, 2026 05:43
dan-petty pushed a commit that referenced this pull request Nov 15, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.150.0](v0.149.0...v0.150.0)
(2026-11-15)


### Features

* **roadmap:** Add a console that follows a roadmap run
([#5774](#5774))
([75b15c2](75b15c2))
* **roadmap:** Check the strength of the new tests
([#3051](#3051))
([#5770](#5770))
([041ad79](041ad79))
* **roadmap:** Export eval fixtures as Harbor tasks
([#5780](#5780))
([bc9f2f8](bc9f2f8))

---
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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(roadmap): new tests of an implementation are checked for strength

1 participant