Skip to content

fix(roadmap): type-check in the step as the gate does - #3100

Merged
dan-petty merged 7 commits into
mainfrom
fix/3090-step-runs-the-gate-type-check
Nov 1, 2026
Merged

dan-petty merged 7 commits into
mainfrom
fix/3090-step-runs-the-gate-type-check

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The implement step ran mypy --strict on every changed Python file. A step that changed a test file stopped on old errors of the test tree. The gate (devops ci) type-checks src only.

Now one module, src/devops_cli/ci/typecheck.py, defines the type check of the gate: the paths, the options and the command line. The row typecheck of devops ci and the implement step both build their command from it. The step runs mypy with the options of the gate on the changed files under src/. It runs no type check on a test file. ruff check and ruff format stay on every changed Python file.

The prompt, the help text, k8s/README.md and the generated documents say what the step type-checks. A drift test fails if the step and the gate differ.

Closes #3090

…3090)

The step type-checked every changed Python file with mypy --strict, so a step that changed a test file stopped on old errors of the test tree. It now takes the paths and options from src/devops_cli/ci/typecheck.py, the definition that the typecheck row of devops ci uses.
The prompt, the help text of devops roadmap implement and k8s/README.md now say that a step runs mypy on the changed files under src, as the gate does, and no type check on a test file.
@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 1, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Fail-to-pass: uv run devops ci fail-to-pass --base origin/main ran 163 tests in 5 files. 5 failed on base and pass on the branch. 2 errored on base because src/devops_cli/ci/typecheck.py does not exist there (tests/ci/test_typecheck.py and the typecheck step test import it).

Tests on the branch:

Review findings:

@dan-petty
dan-petty marked this pull request as ready for review November 1, 2026 20:25
@dan-petty
dan-petty merged commit 6e8b4ca into main Nov 1, 2026
20 checks passed
@dan-petty
dan-petty deleted the fix/3090-step-runs-the-gate-type-check branch November 1, 2026 20:26
dan-petty pushed a commit that referenced this pull request Nov 1, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.37.4](v0.37.3...v0.37.4)
(2026-11-01)


### Bug Fixes

* **roadmap:** type-check in the step as the gate does
([#3100](#3100))
([6e8b4ca](6e8b4ca)),
closes [#3090](#3090)


### Code Refactoring

* **cli:** delete five unused definitions from src
([#3086](#3086))
([3e23dd9](3e23dd9))

---
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 implement step runs the type check of the gate, not strict mypy on every file

1 participant