Skip to content

fix(workspace): compare template copies by checksum so same-size changes land - #1345

Merged
c-vigo merged 2 commits into
release/1.6.0from
bugfix/1344-rsync-checksum
Aug 4, 2026
Merged

c-vigo merged 2 commits into
release/1.6.0from
bugfix/1344-rsync-checksum

Conversation

@c-vigo

@c-vigo c-vigo commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Closes #1344.

What

Adds --checksum to all three template rsync -avL invocations in assets/init-workspace.sh (consumer upgrade copy, smoke clean deploy, smoke overlay), so template delivery is decided by content rather than rsync's size+mtime quick-check.

Why

The dereferenced template files carry the Nix store's canonical epoch+1 mtime, and -a (-t) stamps that mtime onto workspace copies at scaffold time. A later template change that keeps the byte count identical — the digest-for-digest codeql-action bump from #1330 in scorecard.yml is the live case — then matches the consumer copy on both size and mtime, and rsync silently skips it: the upgrade claims success but never delivers the change. Fresh checkouts (CI) are unaffected, which is exactly how the scaffold-drift gate (#1295) caught it on its first live exercise: 4 of 5 1.6.0-rc1 consumer lanes went red on scaffolds the host-side upgrade itself had produced (org-config#85, sync-issues-action#160, commit-action#124, exo-fleet#268; vault#48 ran from a fresh worktree and passed).

How verified

  • TDD: new bats test scaffolds a workspace, ships a same-length template change with both sides at mtime epoch+1, and asserts the re-scaffold delivers it — RED before the fix (rsync itemize shows .f...p....., no transfer), GREEN after.
  • Full tests/bats/init-workspace.bats suite: 279/279 pass (two tests pinning the literal smoke rsync invocation updated to the new flag string).
  • Full pre-commit suite green.

Release-train blocker for 1.6.0 → cut rc2 after merge, then re-bump the five lanes.

@c-vigo
c-vigo merged commit f022883 into release/1.6.0 Aug 4, 2026
13 checks passed
@c-vigo
c-vigo deleted the bugfix/1344-rsync-checksum branch August 4, 2026 11:33
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