Repository navigation
fix(workspace): compare template copies by checksum so same-size changes land - #1345
Merged
Merged
Conversation
This was referenced Aug 4, 2026
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.
Closes #1344.
What
Adds
--checksumto all three templatersync -avLinvocations inassets/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-digestcodeql-actionbump from #1330 inscorecard.ymlis 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
.f...p....., no transfer), GREEN after.tests/bats/init-workspace.batssuite: 279/279 pass (two tests pinning the literal smoke rsync invocation updated to the new flag string).Release-train blocker for 1.6.0 → cut rc2 after merge, then re-bump the five lanes.