Repository navigation
fix(setup): pin the scaffolded .vig-os to the requested install version - #853
Merged
Merged
Conversation
RED: the two init-workspace.bats structure tests and the install.bats forwarding test fail (3 failures confirmed locally via bats); the new integration test exercises the override end-to-end against the CI-built image (VIG_OS_VERSION env -> scaffolded .vig-os pin). The 0.4.0-rc1 smoke test surfaced the gap: the image bakes the release it was built from into the scaffolded .vig-os (repo pin, which only advances at finalize), so an RC install scaffolds a stale 0.3.9 pin and consumer CI runs the new prek-era scaffold against the old Debian image. Refs: #852
install.sh forwards an explicit --version into the init container as VIG_OS_VERSION, and init-workspace.sh pins it in the scaffolded .vig-os after the mode prune (validated against a safe tag charset). Plain "latest" installs keep the image-baked pin, which equals the release the image was built from. The Nix image bakes the repo-root DEVCONTAINER_VERSION into the template .vig-os at build time; that pin only advances at finalize, so every RC image scaffolds the previous release's pin. The 0.4.0-rc1 smoke test hit exactly this: a new prek-era scaffold pinned to Debian 0.3.9, whose CI lint died with "prek: command not found". (The Debian build passed the per-tag IMAGE_TAG build-arg; the reproducible Nix build cannot without breaking the same-commit-same-digest property, hence the install-time override.) Verified: bats structure tests green (were RED); host-side functional run of init-workspace.sh with VIG_OS_VERSION=9.9.9-rc9 writes the pin; install.sh --dry-run shows the forwarded env only for explicit versions. Refs: #852
This was referenced Jul 4, 2026
c-vigo
added a commit
that referenced
this pull request
Jul 4, 2026
## Summary Forward-fix for the rc2 smoke-test failure ([#855](#855), diagnosis posted there). Strong convergence signal from rc2: the #853 `.vig-os` pin works (`DEVCONTAINER_VERSION=0.4.0-rc2` in the deploy PR), the Lint job runs inside the rc2 image, the **whole prek suite executes and the Tests job passes** — the only remaining failure is the `typos` hook flagging scaffold-shipped content (`Nd`, `unexcepted`) that this repo excepts in `.typos.toml` but never shipped. Fix: add `.typos.toml` to `scripts/manifest.toml` so sync-manifest ships it with the workspace template — the same SSoT mechanism as `.yamllint`/`.pymarkdown`. ## Verification - TDD: new bats template test RED before (`not ok 56`), GREEN after the manifest entry + sync. - Shipped copy content-identical to the repo root config (sync-manifest keeps it so). - `just precommit` (full suite, all files): green, exit 0. - Changelog entry added to the open `## [0.4.0] - TBD` section. Refs: #855
c-vigo
added a commit
that referenced
this pull request
Jul 4, 2026
…#858) ## Summary Forward-fix for the rc3 smoke-test failure ([#857](#857), diagnosis posted there). rc3 convergence signal: consumer CI green inside the rc3 image, **deploy PR merged** (validating #853 + #856), downstream release cycle started — and died at `Create draft PR to main` with `GraphQL: Body is too long`. It's the #810 bug shipped to consumers: #812 capped only this repo's own `prepare-release.yml`; the scaffolded copy (`assets/workspace/.github/workflows/prepare-release.yml`) still interpolated the full changelog section uncapped, and the smoke-test repo's CHANGELOG is seeded from our ~67k-char 0.4.0 section. This ports the identical cap (65,000-char budget, line-boundary truncation, pointer to the release branch's full `CHANGELOG.md`). `release-core.yml` (shipped) has no PR-body write, so this is the only consumer-side site. The deploy sync carries the fixed workflow to the smoke-test repo on the next candidate (rc4), which should complete the downstream cycle. ## Verification - Identical cap logic harness-verified against the real 0.4.0 section in #830 (66,794 → 64,869 chars, line-boundary truncation; sub-threshold passthrough byte-identical). - YAML de-indentation of the new `HEADER` asserted via `yaml.safe_load` (no indent leak). - `just precommit` (full suite, all files): green, exit 0. - Changelog entry added to the open `## [0.4.0] - TBD` section. Refs: #857
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.
Summary
Forward-fix for the 0.4.0-rc1 smoke-test failure (#852). The candidate run itself was fully green — the failure was downstream, in the consumer scaffold the RC installs.
Root cause chain: the Nix image bakes the release it was built from into the scaffolded
.vig-os(flake bootstrap, from the repo-root pin). That pin only advances at finalize, so every RC image scaffolds the previous release's pin — andinstall.shnever wrote its--versioninto the scaffold. The smoke-test receiver raninstall.sh --version 0.4.0-rc1 --force, got a deploy PR with the new prek-era scaffold still pinned toDEVCONTAINER_VERSION=0.3.9, and its CI Lint job ranjust precommit→prek run --all-filesinside the Debian 0.3.9 image →command not found. (The Debian build passed the per-tagIMAGE_TAGbuild-arg at build time; the reproducible Nix build can't bake the tag without breaking the same-commit-same-digest property — hence an install-time override.)Fix (TDD, RED → GREEN commits):
install.sh: an explicit--versionis forwarded into the init container asVIG_OS_VERSION(bash-3.2-safe empty-array expansion;latestkeeps the baked pin, which equals the promoted release).assets/init-workspace.sh: pinsDEVCONTAINER_VERSION=${VIG_OS_VERSION}in the scaffolded.vig-ospost-prune, charset-validated.The receiver needs no change — it already passes
--version "${TAG}"and curlsinstall.shfrom the dispatched tag, so rc2 will exercise the fixed path end-to-end.Verification
init-workspace.bats+install.bats).test_init_workspace_pins_requested_version) runs the real containerized init withVIG_OS_VERSION=9.9.9-rc9and asserts the scaffolded pin — runs in CI against the image built from this branch.TEMPLATE_DIR=assets/workspace ... VIG_OS_VERSION=9.9.9-rc9 bash assets/init-workspace.sh --no-prompts --force→.vig-oscontainsDEVCONTAINER_VERSION=9.9.9-rc9.install.sh --dry-run --version 0.4.0-rc1shows-e VIG_OS_VERSION=0.4.0-rc1; dry-run without--versionshows no override.just precommit(full suite, all files): green, exit 0.Refs: #852