Skip to content

fix(devcontainer): isolate image build metadata from workspace settings - #2309

Merged
dan-petty merged 3 commits into
mainfrom
fix/1898-devcontainer-image-metadata
Oct 26, 2026
Merged

dan-petty merged 3 commits into
mainfrom
fix/1898-devcontainer-image-metadata

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Summary

The published devcontainer image previously built from the workspace configuration .devcontainer/devcontainer.json. Dev Containers CLI embedded workspace properties (volume mounts, lifecycle hooks, and editor settings) into the image label devcontainer.metadata. Child repositories that used the image inherited these settings.

This change implements the upstream two-configuration pattern:

  • Adds .devcontainer/image/devcontainer.json and .devcontainer/image/devcontainer-lock.json containing the Dockerfile build, features, remoteUser: vscode, and common container environment variables without workspace mounts, lifecycle hooks, or editor customizations.
  • Updates .github/actions/devcontainer-image/action.yml to build from .devcontainer/image/devcontainer.json.
  • Adds automated tests in tests/test_devcontainer.py, tests/test_workflow_contracts.py, and tests/test_third_party_telemetry.py to ensure workspace settings are omitted from the image configuration, feature dependencies stay equal, and the composite action builds the image configuration.

Closes #1898

Change: openspec/changes/archive/2026-10-26-1898-devcontainer-image-metadata/

Verification

Failing test evidence verified against base tree:

$ uv run devops ci fail-to-pass --base origin/main
6 failed on base (6 failed and 147 passed in tests/test_devcontainer.py, tests/test_third_party_telemetry.py, tests/test_workflow_contracts.py; 0 errored).

Full CI suite:

$ uv run devops ci
Total Elapsed: 5m 47s (concurrent async execution) - all checks passed.

@dan-petty
dan-petty marked this pull request as ready for review October 26, 2026 17:29
@dan-petty
dan-petty merged commit 7672c71 into main Oct 26, 2026
16 checks passed
@dan-petty
dan-petty deleted the fix/1898-devcontainer-image-metadata branch October 26, 2026 17:30
dan-petty pushed a commit that referenced this pull request Oct 26, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.6.5](v0.6.4...v0.6.5)
(2026-10-26)


### Bug Fixes

* **ai:** analyze pr previews under --dry-run and contacts no service
([#2327](#2327))
([c402b6d](c402b6d))
* **dashboard:** reject unknown tab option values and remove refresh_all
([#2310](#2310))
([27f8c60](27f8c60)),
closes [#1904](#1904)
* **deps:** renovate updates the image tags in k8s/ manifests
([#2325](#2325))
([b0ebce0](b0ebce0))
* **devcontainer:** isolate image build metadata from workspace settings
([#2309](#2309))
([7672c71](7672c71))
* **output:** remove duplicated check marks from success messages
([#2313](#2313))
([db7c3c4](db7c3c4))
* **review:** record coverage gaps on base read failures and accept
empty diffs
([#2326](#2326))
([a307ac0](a307ac0))
* **roadmap:** the roadmap runs on a rebuilt board, because GitHub
refuses to add 149 issues to board 2
([#2320](#2320))
([48c78ca](48c78ca))
* **security:** cloudflared 2026.10.4 replaces 2026.9.3, which trusts
eight compromised eMudhra certificates
([#2324](#2324))
([e6750be](e6750be))
* **security:** prevent directory traversal in response cache and
isolate storage
([#2321](#2321))
([1967695](1967695))
* **telemetry:** send project gauges through OTLP only
([#2288](#2288))
([#2315](#2315))
([aeaa52e](aeaa52e))

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

None yet

Projects

None yet

1 participant