Repository navigation
fix(devcontainer): build the devcontainer image FROM devtools - #6472
Conversation
Test recordHead before the push: rebased on Scoped checks (local, devcontainer)
Fail-to-pass (
|
9eef771 to
d0e8c7d
Compare
Review of head 9eef771: how each item is handledNew head: d0e8c7d (two fix commits, then the archive commit, on the current
Test record
Fail-to-passNone. No fix changes src behavior: the src edits are knowledge base text, and the other edits are a workflow step and comments. So no new test applies. |
Second review of head d0e8c7d: how the blocking item is handled
Proof (read 2026-11-19)
Fail-to-passNone: this round changes no file of this PR. |
…6482) GitHub published GHSA-qx49-fqc8-xw99 (HIGH, fixed in mcp 1.30.0) on 2026-11-19. `src/devops_cli/tools_lock/semgrep.txt` pins `mcp==1.29.0`, so the audit row of Static Analysis fails on each new pull request (for example #6472). No released Semgrep takes the fix: 1.186.0, the newest release, requires `mcp==1.29.0`. As SECURITY.md "A Finding with No Fix" says, `.osv-scanner-ignore.yaml` gets one entry for that advisory and that file until 2026-11-22. #6480 tracks the bump and the removal of the entry. Closes #6481 Change: `openspec/changes/archive/2026-11-19-6481-ignore-mcp-qx49/`
Plan of #6414: the image builds FROM the devtools image by digest, Podman takes the place of Docker, and the image actions take the Dev Containers CLI from the devtools image.
.devcontainer/Dockerfile builds FROM the devtools image at a digest, with a hashed venv in /opt/devops-cli/.venv and the project as the last layer. The hand download stages, the tool venvs and the os-release rewrite go. The image config keeps common-utils and adds podman-in-podman with dockerCompat, and the GIT_CONFIG_* entries move to remoteEnv with DOCKER_HOST. The pin-comparison test goes.
The build action exports the devcontainers-cli stage of the Dockerfile and builds with that CLI, and the smoke action copies the CLI from the image that it starts. Neither action runs devops install-tools, so the uv steps of their jobs go. The smoke action checks devops from the venv, the tools, Podman, the rootful API socket and the order of the credential helpers. The tools_lock path filter goes.
One pull request moves each reference of ghcr.io/dan-petty/devtools. The Python-minor custom manager of the devcontainer Dockerfile goes, and the descriptions that named devcontainer copies change.
DEVCONTAINER_USAGE.md names the devtools base, Podman in place of Docker-in-Docker, the two image stores, DOCKER_HOST, the inotify risk, the devcontainer upgrade step after a Feature bump and the GIT_CONFIG_* entries in remoteEnv. SDLC.md, the knowledge base, the Purpose of the devcontainer-image-tools spec and a comment of constants.py follow.
The build action writes its Dev Containers CLI to $RUNNER_TEMP/devcontainers-cli on the same runner, and docker cp copies into a directory that exists. So the smoke step ran the CLI of the build action. Now it removes and writes $RUNNER_TEMP/devcontainer-smoke-cli, and it starts the image with the CLI of that image, as the ci-devcontainer-image spec says.
…ledge base - ci.yml: the devcontainer gets actionlint from the devtools image, not from a COPY of the CI image. - Dockerfile: the venv stage writes the tiktoken encodings to /usr/local/share/tiktoken, and the Features add their layers over the project layer (#6470). - Knowledge base: the host engine is Podman or Docker, the image has Podman and no Docker CLI, and the local build example is the devcontainer build command of docs/DEVCONTAINER_USAGE.md.
d0e8c7d to
13a5cd0
Compare
🤖 I have created a release *beep* *boop* --- ## [0.182.1](v0.182.0...v0.182.1) (2026-11-20) ### Bug Fixes * **devcontainer:** build the devcontainer image FROM devtools ([#6472](#6472)) ([58e7b0d](58e7b0d)) * **security:** scan each image with one Trivy action and SARIF ([#6488](#6488)) ([26e2a99](26e2a99)) --- 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>
The DevContainer Image job took 386 s on average, over the limit, because .devcontainer/Dockerfile downloaded each tool by hand and seven Features had copied pins. Now the Dockerfile builds FROM the devtools image at a digest, with a hashed venv and the project last. podman-in-podman replaces docker-in-docker, so the os-release rewrite goes and the image has no Docker CLI. GIT_CONFIG_* and DOCKER_HOST move to remoteEnv. The image actions run the Dev Containers CLI of devtools on the runner, not in a job container (devtools has no Buildx), and run no devops install-tools. Renovate groups the devtools image. Risk: docker is Podman, with two image stores.
Two Proof lines cannot hold yet: GHCR reuse of all layers but the project layer (#6470), and the ci.yml docker run steps with --tmpfs uid options under Podman (#6468). A person checks the image on the Podman host (#6471).
Closes #6414
Change:
openspec/changes/archive/2026-11-19-6414-devcontainer-from-devtools/