Skip to content

fix: drop copied tool versions from generated files - #6487

Merged
dan-petty merged 13 commits into
mainfrom
fix/6412-drop-copied-tool-versions
Nov 20, 2026
Merged

dan-petty merged 13 commits into
mainfrom
fix/6412-drop-copied-tool-versions

Conversation

@dan-petty

@dan-petty dan-petty commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

Files that devops-cli writes or reads held copies of tool versions, and the copies drifted. A version lives only in the manifest that its package manager owns.

  • The osv-scanner CycloneDX inventory and the empty-database digest seed name no version. The digest of an empty cache changes one time. A grep proves the seed: a test of a fixed string is a value test.
  • devops devcontainer init writes no features key: the eight Features (docker-in-docker:2 with them) and the unreachable python image branch go. The image supplies the user vscode and the tools, and the label of the published image gives DOCKER_HOST.
  • The scaffold drops DOCKER_CLI_HINTS and takes the extension lists of .devcontainer/devcontainer.json. The --minikube help says what the option does.
  • The knowledge base names no package version. pyproject.toml and uv.lock own them.

Closes #6412

Change: openspec/changes/archive/2026-11-20-6412-drop-copied-tool-versions/

@dan-petty dan-petty added the type/bug Type bug: the code does not do what it must label Nov 20, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Test record

Local checks on the final code (head of the push):

  • uv run devops ci --check --only lint,format,docs,constructs,openspec,test-settings,test-tree,startup-imports,swallowed-failures: all rows pass.
  • uv run devops ci test of 17 files (osv-scanner, dependency audit, devcontainer command, template render, telemetry, uv malware check, devcontainer config, knowledge base, KB gold set, KB manual metadata, RAG sync and drift, docs): 353 passed.
  • uv run mypy src/devops_cli/security/osv_scanner.py src/devops_cli/lang/en/help.py: no issues.
  • uv run devops devcontainer init <tmp>: the output has no features, no remoteEnv and no DOCKER_CLI_HINTS, and jq finds the extension lists equal to the lists of .devcontainer/devcontainer.json.
  • ! git grep -nE '[a-z0-9-]+==[0-9]' -- src/devops_cli/ai/knowledge_base and ! git grep -nE '[0-9]+\.[0-9]+\.[0-9]+' -- src/devops_cli/security/osv_scanner.py: no match.

Fail-to-pass

uv run devops ci fail-to-pass --base origin/main:

5 failed on base (5 failed and 143 passed in tests/commands/test_devcontainer.py, tests/core/test_template_rendering.py, tests/security/test_osv_scanner.py; 0 errored).
These changed tests fail or error on base and prove the fix: tests.core.test_template_rendering::test_minikube_adds_only_the_forwarded_ports, tests.core.test_template_rendering::test_no_path_declares_a_feature[other-image-no-minikube], tests.core.test_template_rendering::test_no_path_declares_a_feature[other-image-minikube], tests.security.test_osv_scanner::test_parse_osv_scanner_output_anchors_and_cyclonedx, tests.commands.test_devcontainer.TestDevcontainerCli::test_init_with_an_image_adds_the_claude_extension_and_no_feature.

Decision for the coordinator

The coordinator note asked for remoteEnv DOCKER_HOST on the published path of the template. The change does not add it. .devcontainer/devcontainer.json on main does not set DOCKER_HOST: .devcontainer/image/devcontainer.json sets it, the Dev Containers CLI writes it into the devcontainer.metadata label of the image, and .github/actions/devcontainer-smoke checks it in an image that it starts with no remoteEnv of its own. A copy in the template is a second source.

No live step is necessary.

@dan-petty
dan-petty force-pushed the fix/6412-drop-copied-tool-versions branch from bf8ecd2 to 76f0754 Compare November 20, 2026 01:32
@dan-petty
dan-petty marked this pull request as ready for review November 20, 2026 01:42
@dan-petty
dan-petty merged commit 6b51b58 into main Nov 20, 2026
26 checks passed
@dan-petty
dan-petty deleted the fix/6412-drop-copied-tool-versions branch November 20, 2026 01:43
dan-petty pushed a commit that referenced this pull request Nov 20, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.182.2](v0.182.1...v0.182.2)
(2026-11-20)


### Bug Fixes

* drop copied tool versions from generated files
([#6487](#6487))
([6b51b58](6b51b58))

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

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: drop copied tool versions from generated files

1 participant