Skip to content

ci: drop nix-image dev push paths filter so nix-dev tracks dev - #1242

Merged
c-vigo merged 1 commit into
devfrom
bugfix/1236-nix-image-trigger-paths
Jul 21, 2026
Merged

c-vigo merged 1 commit into
devfrom
bugfix/1236-nix-image-trigger-paths

Conversation

@c-vigo

@c-vigo c-vigo commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes the stale-tag gap on the nix-dev discovery image. nix-image.yml keeps
the mutable ghcr.io/vig-os/devcontainer:nix-dev tag (plus -amd64/-arm64 and
the multi-arch index) tracking dev, but its dev push trigger was
path-filtered to only flake.nix, flake.lock, and the workflow file:

paths:
  - 'flake.nix'
  - 'flake.lock'
  - '.github/workflows/nix-image.yml'

The image content is not a function of the flake files alone — the flake
bakes broad repo content at build time. A dev push touching only that baked
content changed the image without rebuilding or repushing nix-dev, so the
discovery tag silently drifted behind dev with no signal.

Baked-input analysis

The devkitImage output in flake.nix bakes, beyond the flake files:

  • assets/ — the whole workspace scaffold tree (cp -r ${./assets}/.)
  • docs/MIGRATION.md — copied to /root/assets/MIGRATION.md
  • packages/vig-utils/ — the console scripts (prepare-changelog,
    check-expirations, …) that reach the image via devTools
  • nix/home/ — the vigos home environment
  • scripts/ — the runtime smoke script bind-mounted/executed against the image

A precise paths: allowlist tracking every one of these baked inputs is fragile
and 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 push
to dev (or the epic branch) rebuilds, tests (portable testinfra + runtime
smoke, 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 / nightly alias is added — per the issue scope note, the
flake 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 (via just precommit) fully green — actionlint,
    yamllint, and sync-manifest all pass. The sync-manifest hook propagated
    the CHANGELOG.md edit to assets/workspace/.devcontainer/CHANGELOG.md (staged).
  • zizmor is covered in CI (not on the local PATH here).

Observation (out of scope)

The paths:-adjacent feature/625-nix-claude-migration branch entry in the push
trigger 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

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
@c-vigo
c-vigo merged commit 79b018a into dev Jul 21, 2026
13 checks passed
@c-vigo
c-vigo deleted the bugfix/1236-nix-image-trigger-paths branch July 21, 2026 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant