Repository navigation
ci: drop nix-image dev push paths filter so nix-dev tracks dev - #1242
Merged
Merged
Conversation
The nix-image.yml dev push trigger only watched flake.nix, flake.lock, and the workflow file, but the image bakes broader repo content at build time (the assets/ scaffold tree, docs/MIGRATION.md, the packages/vig-utils console scripts, the nix/home environment, scripts/). A dev push touching only baked content left the mutable nix-dev discovery tag stale with no rebuild. A precise allowlist tracking every baked input is fragile, so drop the paths filter and let every push to dev (or the epic branch) rebuild, test, and repush the tag. Cachix/eval caching keeps a no-op rebuild of an unchanged closure cheap. Refs: #1236
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
Fixes the stale-tag gap on the
nix-devdiscovery image.nix-image.ymlkeepsthe mutable
ghcr.io/vig-os/devcontainer:nix-devtag (plus-amd64/-arm64andthe multi-arch index) tracking
dev, but itsdevpush trigger waspath-filtered to only
flake.nix,flake.lock, and the workflow file:The image content is not a function of the flake files alone — the flake
bakes broad repo content at build time. A
devpush touching only that bakedcontent changed the image without rebuilding or repushing
nix-dev, so thediscovery tag silently drifted behind
devwith no signal.Baked-input analysis
The
devkitImageoutput inflake.nixbakes, beyond the flake files:assets/— the whole workspace scaffold tree (cp -r ${./assets}/.)docs/MIGRATION.md— copied to/root/assets/MIGRATION.mdpackages/vig-utils/— the console scripts (prepare-changelog,check-expirations, …) that reach the image viadevToolsnix/home/— the vigos home environmentscripts/— the runtime smoke script bind-mounted/executed against the imageA precise
paths:allowlist tracking every one of these baked inputs is fragileand drifts out of sync with the flake outputs it feeds — exactly the failure mode
the issue calls out.
Fix
Per the issue's recommended solution, drop the
paths:filter so every pushto
dev(or the epic branch) rebuilds, tests (portable testinfra + runtimesmoke, both arches), and repushes the tag. Cachix/eval caching keeps a no-op
rebuild of an unchanged closure cheap, so the cost of an over-trigger is minimal.
The trigger header comment is updated to match.
No scheduled nightly /
nightlyalias is added — per the issue scope note, theflake is fully pinned, so correctness of the event-driven trigger is the whole
fix.
Testing
This is a workflow-trigger config change with no runtime test surface, so TDD
is skipped (noted here per convention). Validation:
pre-commit run --all-files(viajust precommit) fully green —actionlint,yamllint, andsync-manifestall pass. Thesync-manifesthook propagatedthe
CHANGELOG.mdedit toassets/workspace/.devcontainer/CHANGELOG.md(staged).zizmoris covered in CI (not on the local PATH here).Observation (out of scope)
The
paths:-adjacentfeature/625-nix-claude-migrationbranch entry in the pushtrigger looks stale (the migration epic branch). The issue does not ask to remove
it, so it is left untouched here — flagging it as a possible follow-up cleanup.
Closes #1236