Repository navigation
refactor(ci): collapse per-mode ci.yml overlays into one mode-aware workflow - #1005
Merged
c-vigo merged 4 commits intoJul 13, 2026
Merged
Conversation
Rework the per-mode ci.yml render assertions (#854/#885) for the collapsed, mode-aware ci.yml: every mode's rendered ci.yml wires both the resolve-toolchain and setup-devkit-toolchain composites, selects its container via the resolved-image expression, carries no hardcoded devcontainer image literal, and delegates provisioning to the composite (no inline nix develop, container-only env, or prek skew guard). Drop the now-obsolete overlay-specific tests and assert the overlay dirs are no longer deployed by init-workspace. Refs: #991
…orkflow Replace the container-based ci.yml plus the direnv and bare per-mode overlays with a single mode-aware workflow (ADR Option A). A leading resolve-toolchain job reads .vig-os and outputs the delivery mode + container image (empty for direnv/bare, so the job runs on the host); every job declares container: image via that output with an unconditional-but-inert GHCR credentials block, and calls the setup-devkit-toolchain composite as its first step to provision the toolchain for its mode. Plain just sync|precommit|test then runs identically in every mode. Remove the workspace-direnv and workspace-bare overlay trees and the init-workspace.sh overlay-deployment blocks that applied them. Refs: #991
The rendered-ci.yml assertion greps for a literal GitHub Actions expression; annotate the intentional single-quoted string so shellcheck (SC2016) stays green. Refs: #991
Update the delivery-mode descriptions and rename the direnv-mode CI section to 'Mode-aware CI', describing how one ci.yml serves every mode via resolve-toolchain + setup-devkit-toolchain. Add the Unreleased Changed entry for collapsing the per-mode overlays. The release-workflow supported-boundary prose is left for the release-set conversion. Refs: #991
This was referenced Jul 13, 2026
c-vigo
added a commit
that referenced
this pull request
Jul 13, 2026
…997) One release choreography, mode-aware toolchain provisioning: resolve-toolchain + setup-devkit-toolchain composites (ADR Option A), single mode-aware ci.yml, all release/automation workflows container-free in direnv/bare, opt-in .devcontainer/ prune, vig-utils host-side, actionlint. Sub-PRs: #998 #999 #1000 #1001 #1002 #1005 #1006 #1007. Refs: #988
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
Part A of #991: collapse the three per-mode
ci.ymloverlays (container /direnv/bare) into one mode-aware workflow, built on the compositesmerged in #1002 and the Option A verdict of
docs/rfcs/ADR-conditional-container-toolchain.md.A leading
resolve-toolchainjob reads.vig-osand outputs the deliverymode, containerimage, andimage-tag. Every downstream job declarescontainer: image: ${{ needs.resolve-toolchain.outputs.image }}— thedevcontainer image in container-ish modes, an empty string in
direnv/barethat makes the job run on the host runner (proven by the #992 spike) — carries
the GHCR
credentials:block unconditionally (inert on the host), and calls thesetup-devkit-toolchaincomposite as its first step. After that preamble, plainjust sync|precommit|testruns identically in every mode (nonix develop -cprefixes).
The former per-mode overlay trees
assets/workspace-direnv/andassets/workspace-bare/and theirinit-workspace.shdeployment blocks areremoved. The rendered
ci.ymlis now byte-identical across all four modes.Design notes
env:(
PREK_HOME/UV_PROJECT_ENVIRONMENT), the "Fix git safe.directory" step,and the inline prek version-skew guard step.
permissions(incl.packages: readfor container mode),the
test-suitedispatch gatingif:s, theimage-tagdispatch override(threaded into
resolve-toolchain), and the summary job (restored toneeds: [resolve-toolchain, lint, test]with aresolve-toolchain.resultcheck like the container variant).
resolve-toolchain2,lint15 (was direnv's 15),test20 (direnv's 20),summary5.ADR and CI + release workflows hard-coupled to the container image regardless of DEVKIT_MODE #991.
Files
assets/workspace/.github/workflows/ci.yml— new single mode-aware workflow.assets/workspace-direnv/,assets/workspace-bare/— deleted.assets/init-workspace.sh— overlay-deployment blocks removed.docs/MIGRATION.md— mode descriptions + the renamed "Mode-aware CI" section(ci.yml only; the release-workflow supported-boundary prose is left for the
release-set conversion / Part B).
CHANGELOG.md(+ synced.devcontainer/CHANGELOG.md) — UnreleasedChangedentry.
tests/bats/init-workspace.bats— reworked render assertions (see Evidence).Tests
Reworked the #854/#885 per-mode
ci.ymlassertions into a single loop over allfour modes asserting the rendered
ci.yml: wires./.github/actions/resolve-toolchainand
./.github/actions/setup-devkit-toolchain; selects the container via theneeds.resolve-toolchain.outputs.imageexpression; carries no hardcodedghcr.io/vig-os/devcontainerliteral, noresolve-image, no inlinenix develop/ container-only env / prek guard; every external
uses:SHA-pinned (local./refs exempt, matching
check-action-pins). Added an assertion thatinit-workspace.shno longer references the overlay dirs, and updated the bareupgrade test. Dropped the now-obsolete overlay-specific tests. The #995
actionlintfixtures and #994 composite tests stay green over the new tree.Evidence (local — no automated CI on epic-branch PRs)
actionlintpasses over the rendered devcontainer / direnv / bare / both trees(tests 132-135) — the new
resolve-toolchain+setup-devkit-toolchainwiringvalidates cleanly.
Notes for Part B (release/automation set)
docs/MIGRATION.md: I renamed### direnv-mode CI→### Mode-aware CIandrewrote its first paragraph (ci.yml) only. The "Supported boundary"
paragraph that follows (the release-workflow / devcontainer-mode-only
sentences) is left untouched for you to rewrite — clean seam right after "…no
per-mode overlay." The mode-description bullets now link to
#mode-aware-ci.Changedbullet is scoped toci.yml; add the release-setbullet separately (both coexist under
### Changed).test(ci): prepare-release.yml uses the shared resolve-image actionbatstest is left intact — it is release-workflow territory.
container:with the resolved-image expression + unconditional
credentials:+setup-devkit-toolchainfirst step is valid; reuse it for the release jobs.Refs: #991