Repository navigation
fix(roadmap): format changed Python files in the job - #2791
Merged
Merged
Conversation
The format run writes files. A changed Python file that is a symbolic link let ruff write to a file outside the checkout. A file name that starts with a dash was read as an option. The step now stops on a link before it runs a tool, and it gives the file names to ruff and mypy after --.
Owner
Author
|
Test results and review notes. Fail-to-pass run: Full Review findings:
No finding was declined. |
dan-petty
marked this pull request as ready for review
October 30, 2026 18:03
dan-petty
pushed a commit
that referenced
this pull request
Oct 30, 2026
🤖 I have created a release *beep* *boop* --- ## [0.22.6](v0.22.5...v0.22.6) (2026-10-30) ### Bug Fixes * **roadmap:** format changed Python files in the job ([#2791](#2791)) ([18a6e2b](18a6e2b)), closes [#2789](#2789) * **roadmap:** the job owns tasks.md in an implement step ([#2792](#2792)) ([2e9552f](2e9552f)), closes [#2790](#2790) --- 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>
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The implement step stops when
ruff format --checkfails, and the job then discards correct work. Jobdevops-cli-runner-20261030-165513-98d9on #2656 stopped for one longraiseline.The job now runs
uv run ruff formaton the changed Python files, outside the shell of the agent. It stages the files that the formatter changed. It prints one line,Formatted: <paths>, to the error stream. A formatter that fails stops the step with its output. Theruff format --checkrow of the static checks is gone.ruff checkstill fixes nothing.The format run writes files, so it has two guards:
ruff format,ruff checkandmypy --strictafter--. A name that starts with-is a path, not an option.The prompt of the step says that the job formats the changed Python files. The change adds one requirement to
roadmap-implement-step.Closes #2789