You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(workspace): scaffold rsync quick-check skips same-size template updates on epoch-mtime consumer trees #1344
The scaffold-drift CI gate (#1295), on its first live exercise: 4 of 5 devkit 1.6.0-rc1 consumer lanes (org-config#85, sync-issues-action#160, commit-action#124, exo-fleet#268) went red on Scaffold Drift with a one-hunk diff — .github/workflows/scorecard.yml still carrying codeql-action/upload-sarif@e4fba868 where rc1 scaffolds @d1ba80a1 (#1330). The 5th lane (vault#48), run from a freshly created git worktree, committed the correct new digest and passed.
Root cause
init-workspace.sh copies the template with rsync -avL (no --checksum). rsync's quick-check skips any file whose size and mtime both match the source:
The image template files are symlinks into the Nix store; dereferenced (-L) they carry the store's canonical mtime epoch+1.
-a implies -t, so every previous nix-image scaffold stamped the consumer's managed files with that same epoch+1 mtime (verified: scorecard.yml in the failing clones is 1970-01-01 00:00:01Z).
Same size + same mtime → rsync silently declares the file up-to-date and the template change is never delivered. Reproduced with rsync -avL --dry-run --itemize-changes inside the rc1 container against an affected clone: .f...p..... scorecard.yml (perms-only, no data transfer).
Impact
Any host-side upgrade of a previously nix-scaffolded consumer silently drops managed-file changes whose size happens to be unchanged (digest-for-digest bumps are the canonical case). CI paths (drift gate, devkit-upgrade.yml) are unaffected because fresh checkouts have current mtimes — so the failure mode is local upgrades producing commits that the drift gate then correctly rejects.
Fix
Add --checksum to the scaffold rsync (template is small; the cost is negligible) so the quick-check compares content, not size+mtime. Audit the other rsync invocations in init-workspace.sh for the same pattern.
Blocker for the 1.6.0 train: fix on release/1.6.0, cut rc2, re-bump the five lanes.
Fixed on release/1.6.0 via PR #1345 (--checksum on all three template rsync invocations; TDD bats coverage). Ships in 1.6.0-rc2 — live proof will be the scorecard.yml diff finally appearing in the four previously-red consumer lanes on the rc2 re-bump.
Activity
fix(workspace): compare template copies by checksum so same-size chan…
c-vigo commentedon Aug 4, 2026
Fixed on release/1.6.0 via PR #1345 (--checksum on all three template rsync invocations; TDD bats coverage). Ships in 1.6.0-rc2 — live proof will be the scorecard.yml diff finally appearing in the four previously-red consumer lanes on the rc2 re-bump.
chore: release 1.6.0 (#337)
chore: release 1.6.0 (#1341)
docs(changelog): restore the #1434 entry title bullet in 1.8.0 (#1457)
chore: release 1.8.0 (#1441)