Repository navigation
Conversation
The integration suite scaffolds from the freshly-built image but `devcontainer up` resolves the runtime image from DEVCONTAINER_VERSION, so it validates fresh scaffolding inside the stale published image. Add a regression test asserting the running devcontainer uses the image under test (TEST_CONTAINER_TAG). Refs: #701
The devcontainer_up/devcontainer_with_sidecar fixtures scaffolded a workspace from the freshly-built image but let `devcontainer up` resolve the runtime image from DEVCONTAINER_VERSION (the published release baked into the scaffolded .vig-os/.env), so the suite validated fresh scaffolding inside a stale image. Export DEVCONTAINER_VERSION = TEST_CONTAINER_TAG; compose reads the shell environment over .env, so the scaffolded docker-compose.yml resolves the build under test, and the in-test `devcontainer exec` calls inherit it. Refs: #701
post-create.sh ran an unguarded `sed` on the venv activate script before `just sync`. The Debian image baked that venv at build time, but the Nix image populates /root/assets/workspace/.venv during post-create, so the script did not exist yet and post-create aborted (exit 2), failing `devcontainer up`. Move the prompt rewrite after `just sync` and guard it on the file's existence. uv writes the prompt as the venv parent's basename, so rewrite the VIRTUAL_ENV_PROMPT assignment directly instead of substituting the no-longer-present "template-project" literal. Refs: #701
The #697 decoupling shipped the scaffolded ruff/ruff-format/typos hooks as self-contained upstream (manylinux) hooks because the integration suite still ran the published Debian image, whose PATH lacked those tools. Now that the suite runs the freshly-built Nix image -- whose non-FHS userland cannot execute those manylinux binaries -- the workaround breaks the in-container `git commit`. Restore the repo's repo-local language:system hooks in the scaffold (resolved from the image's baked devTools), and drop the now-unused ReplacePrecommitRepoBlock transform and its tests. Refs: #701
Explain in tests/README.md how TEST_CONTAINER_TAG selects the image under test and why the devcontainer fixtures override DEVCONTAINER_VERSION so compose uses it. Record the fixes under CHANGELOG Unreleased. Refs: #701
This was referenced Jun 25, 2026
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.
Description
The integration suite scaffolded a workspace from the freshly-built image (
TEST_CONTAINER_TAG) but then randevcontainer upfrom whateverDEVCONTAINER_VERSIONresolved to — the published0.3.9. So it validated fresh scaffolding inside a stale image, not the image under test. Pointing it at the fresh Nix image then surfaced real bring-up failures. This fixes all of it. Closes the gap tracked in #701.Type of Change
fix-- Bug fixChanges Made
devcontainer_up/devcontainer_with_sidecarnow exportDEVCONTAINER_VERSION=TEST_CONTAINER_TAG. Compose resolves shell env over.env, so the scaffoldeddocker-compose.yml(image: …:${DEVCONTAINER_VERSION:-latest}) selects the build under test, and the in-testdevcontainer execcalls inherit it. Addedtest_devcontainer_runs_image_under_testasserting the running container's image.post-create.shran an unguardedsedon the venvactivatescript beforejust sync. The Debian image baked that venv at build time; the Nix image creates it during post-create, so the script didn't exist yet and post-create aborted (exit 2). Moved the prompt rewrite afterjust sync, guarded it, and rewrote theVIRTUAL_ENV_PROMPTassignment directly (uv sets the prompt to the venv parent's basename, so the oldtemplate-projectliteral is never present).language: system. Reverted the [BUG] pre-commit: source binary hooks (ruff, ruff-format, typos) from the flake for NixOS compatibility #697 decoupling: those scaffolded hooks pulled upstream manylinux binaries, which the non-FHS Nix userland cannot execute (No such file or directoryon the ELF interpreter), breaking the in-containergit commit. They now resolve from the image's bakeddevTools, like the repo's own config. Removed the now-unusedReplacePrecommitRepoBlocksync-manifest transform and its tests.tests/README.md.Changelog Entry
Fixed
DEVCONTAINER_VERSION(#701)DEVCONTAINER_VERSION=TEST_CONTAINER_TAGso compose resolves the build under test; addedtest_devcontainer_runs_image_under_testpost-create.shvenv-promptsedso the Nix image comes up cleanly underdevcontainer upruff/ruff-format/typosarelanguage: systemagain; removed the unusedReplacePrecommitRepoBlocktransformTesting
just test)Manual Testing Details
Run against the freshly-built Nix image (
TEST_CONTAINER_TAG=dev, podman socket + standalonedocker-composeas CI provides):tests/test_integration.py: 123 passed, 7 skipped (skips are host-environmental: SSH signing config + sidecar compose), 0 failedtests/test_image.py: 64 passedtests/test_transforms.py+tests/test_flake_devshell.py: passtest_devcontainer_runs_image_under_testconfirmed RED against0.3.9→ GREEN againstdevtest_pre_commit_hookexercises the in-container ruff+typos run that previously failed on the Nix image — now passes.test_git_commit_ssh_signatureskips locally (no host SSH signing config) but runs in CI's test-integration action.Checklist
CHANGELOG.mdin the[Unreleased]section (and pasted the entry above)Additional Notes
Sub-issue of the Nix migration epic #625; targets
feature/625-nix-claude-migration. Theinstall.shhost-side/etc/os-releaseprobe mentioned in the issue is not exercised bydevcontainer up(it has alinuxfallback) and is left unchanged.Refs: #701