Skip to content

fix(review): Limit lockfile bucket to CONST_LOCKFILE_NAMES - #3808

Merged
dan-petty merged 6 commits into
mainfrom
fix/3536-limit-lockfile-bucket-to-const-lockfile
Nov 6, 2026
Merged

dan-petty merged 6 commits into
mainfrom
fix/3536-limit-lockfile-bucket-to-const-lockfile

Conversation

@devops-cli-service

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

Copy link
Copy Markdown
Contributor

Closes #3536

#3536 reports that classify_scanner_files in src/devops_cli/ai/review/pipeline.py puts every file that ends in .lock or .lockb in the lockfile bucket, and the review hands that bucket to osv-scanner as --lockfile arguments. osv-scanner reads no such file and stops, so a review that covers rules.lock reports a failed scan and loses the advisories of the real lockfiles.

Change: openspec/changes/archive/2026-11-06-3536-limit-lockfile-bucket-to-const-lockfile/

@devops-cli-service devops-cli-service Bot added type/docs Type docs: a change to the documents scope/openspec OpenSpec changes, specs and their checks labels Nov 6, 2026
@devops-cli-service devops-cli-service Bot changed the title docs(openspec): plan #3536 Limit the review lockfile bucket to known names fix(review): Limit lockfile bucket to CONST_LOCKFILE_NAMES Nov 6, 2026
@devops-cli-service

Copy link
Copy Markdown
Contributor Author

The steps of the job:

Step Status Attempts Tokens in/out Last failing command
group 1 done 1 824892/5011 pytest on base: tests/security/test_review_pipeline_go.py
  • scoped check pre-push: passed, 10 s
  • scoped check static: passed, 39 s
  • scoped check tests: passed, 9 s
  • scoped check tests: the changed files select more than 30 test modules, so only the changed test modules ran. The required checks of CI run the others
  • fail-to-pass of group 1: fails on the base commit. Tests that fail on the base commit: tests.security.test_review_pipeline_go::test_classify_scanner_files_keeps_unknown_lock_names_out.

@devops-cli-service devops-cli-service Bot added type/bug Type bug: the code does not do what it must scope/review Multi-persona code review engine, verification, and findings and removed type/docs Type docs: a change to the documents scope/openspec OpenSpec changes, specs and their checks labels Nov 6, 2026
@devops-cli-service

Copy link
Copy Markdown
Contributor Author

The steps of the job:

Step Status Attempts Tokens in/out Last failing command
fix done 1 5964962/44810 -
  • scoped check pre-push: passed, 7 s
  • scoped check static: passed, 39 s
  • scoped check tests: passed, 9 s
  • verify of group 0: uv run devops ci test tests/security/test_review_pipeline_go.py exits 0.
\u2139 Quality gate root: /home/devops/.data/agent/worktrees/w-3536
No coverage index found. Run `devops ci coverage --build-index` to build one.
  tests/security/test_review_pipeline_go.py \u2192 tests/security/test_review_pipeline_go.py
================================================================================================================== test session starts ===================================================================================================================
platform linux -- Python 3.14.8, pytest-9.1.1, pluggy-1.6.0
rootdir: /home/devops/.data/agent/worktrees/w-3536
configfile: pyproject.toml
plugins: xdist-3.8.0, cov-7.1.0, hypothesis-6.168.3, asyncio-1.4.0, syrupy-6.1.1, split-0.11.0, time-machine-3.5.1, mock-3.16.0, timeout-2.4.0, anyio-4.15.1
asyncio: mode=Mode.AUTO, debug=False, asyncio_default_fixture_loop_scope=None, asyncio_default_test_loop_scope=function
timeout: 600.0s
timeout method: signal
timeout func_only: False
collected 7 items

tests/security/test_review_pipeline_go.py .......                                                                                                                                                                                                  [100%]

=================================================================================================================== 7 passed in 0.30s ====================================================================================================================
Bytecode compiled 19152 files in 812ms
Bytecode compiled 19152 files in 877ms
Elapsed: 7.01s

@devops-cli-service

Copy link
Copy Markdown
Contributor Author

The steps of the job:

Step Status Attempts Tokens in/out Last failing command
fix done 1 1028147/10012 -
  • scoped check pre-push: passed, 7 s
  • scoped check static: passed, 39 s
  • scoped check tests: passed, 20 s
  • verify of group 0: uv run devops ci test tests/security/test_review_pipeline_go.py exits 0.
\u2139 Quality gate root: /home/devops/.data/agent/worktrees/w-3536
No coverage index found. Run `devops ci coverage --build-index` to build one.
  tests/security/test_review_pipeline_go.py \u2192 tests/security/test_review_pipeline_go.py
================================================================================================================== test session starts ===================================================================================================================
platform linux -- Python 3.14.8, pytest-9.1.1, pluggy-1.6.0
rootdir: /home/devops/.data/agent/worktrees/w-3536
configfile: pyproject.toml
plugins: xdist-3.8.0, cov-7.1.0, hypothesis-6.168.3, asyncio-1.4.0, syrupy-6.1.1, split-0.11.0, time-machine-3.5.1, mock-3.16.0, timeout-2.4.0, anyio-4.15.1
asyncio: mode=Mode.AUTO, debug=False, asyncio_default_fixture_loop_scope=None, asyncio_default_test_loop_scope=function
timeout: 600.0s
timeout method: signal
timeout func_only: False
collected 7 items

tests/security/test_review_pipeline_go.py .......                                                                                                                                                                                                  [100%]

=================================================================================================================== 7 passed in 0.31s ====================================================================================================================
Bytecode compiled 19152 files in 881ms
Bytecode compiled 19152 files in 891ms
Elapsed: 7.28s

@devops-cli-service
devops-cli-service Bot force-pushed the fix/3536-limit-lockfile-bucket-to-const-lockfile branch from db1ee18 to 4b6c21e Compare November 6, 2026 17:48
The lockfile fix needs no change to plan-check. The workflow job already
runs only for a pull request whose title starts with the plan form, and the
changed command let a plan pull request with a wrong title and no Plans line
pass. Remove it and keep the fix to the lockfile bucket.
@devops-cli-service
devops-cli-service Bot marked this pull request as ready for review November 6, 2026 17:53
@dan-petty

Copy link
Copy Markdown
Owner

Review of the Service commits, and one fix.

Removed from this pull request (commit ad96a4b): the change to plan_check.py, its test, docs/roadmap/plan-check.md and the roadmap-plan-check spec. They did not belong to #3536, and the pull request body did not name them. They also made the check weaker: a plan pull request with a wrong title and no Plans # line passed with no problem. The workflow job already runs only when the title starts with docs(openspec): plan #, so the change added no scope that the job lacked. After the removal, every required check passes.

The lockfile fix is correct. classify_scanner_files now takes a file as a lockfile only when its name is in CONST_LOCKFILE_NAMES, and the new test fails on the base. The filter that the change adds in _lockfiles_beside has no effect today: all 10 names of CONST_REVIEW_GENERATED_FILES are already in CONST_LOCKFILE_NAMES. It is harmless and it keeps the two lists from drifting apart, so it stays.

Cause of the two red Plan Check runs on the earlier heads (not a defect of this change; filed as separate issues):

  • Head 2dac29a: The tiktoken encoding is unavailable on the runner.
  • Head 3bf7e41: the job read the live title after the implement job had renamed the pull request.

@dan-petty
dan-petty merged commit 0b2909a into main Nov 6, 2026
24 checks passed
@dan-petty
dan-petty deleted the fix/3536-limit-lockfile-bucket-to-const-lockfile branch November 6, 2026 18:13
dan-petty pushed a commit that referenced this pull request Nov 6, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.71.0](v0.70.2...v0.71.0)
(2026-11-06)


### Features

* **roadmap:** a Service row runs the retitle job
([#3811](#3811))
([f1130d3](f1130d3))
* **roadmap:** list moved plan paths in the stage comment
([#3805](#3805))
([b550b07](b550b07))


### Bug Fixes

* **review:** Limit lockfile bucket to CONST_LOCKFILE_NAMES
([#3808](#3808))
([0b2909a](0b2909a))
* **security:** make clean-default model fields required
([#3807](#3807))
([dcc22b0](dcc22b0))


### Code Refactoring

* **ci:** record keep-port decision
([#3816](#3816))
([7ca3afd](7ca3afd))
* **mcp:** delete the outbound MCP code that nothing reaches
([#3817](#3817))
([b28fd4d](b28fd4d))

---
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/review Multi-persona code review engine, verification, and findings 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(review): Limit lockfile bucket to CONST_LOCKFILE_NAMES

1 participant