Repository navigation
Release v0.3.4 - #5
Merged
Merged
Conversation
Upgrading - Goldens and worktrees made with v0.3.3 keep working. - Windows: keep ReFS dedup off on the volume that holds the project and its worktrees, and run doctor to see how many more worktrees fit. seed, new and hydrate can now fail with exit 2 and reason clone_copied where they used to report success after a byte copy (see Fixes). A script that branches on reason should handle it. Added - .uwt-keep: a committed file at the root of the repo or workspace listing untracked paths that new keeps instead of cleaning, such as build output (AssetBundles, Assets/StreamingAssets/aa) that a warmup would otherwise rebuild in every worktree. One plain path per line, no globs. new reads the copy committed on the branch it checks out, so a branch can keep less; an untracked .uwt-keep is ignored. new names what it kept, and new --json reports it as kept. Kept files can be stale on a branch that changes what they are built from. Works for git and Plastic. - doctor on Windows estimates how many more worktrees fit under ReFS's limit of 8,176 references per block, from the reference counts of the golden's 32 largest Library files. It warns under 50 and fails at none. - measure reports compressed extents. On ReFS, extents left by dedup or compression have no physical address; they are now listed per tree as compressed (logical size) and kept out of allocated, private and shared, instead of being reported as unmapped. On btrfs, --json gains inline_bytes and encoded_extents. Existing keys are unchanged. Fixes - Windows: a clone that robocopy turned into a byte copy is now refused. robocopy copies a file ReFS will not clone and still reports success. ReFS stops cloning a block at 8,176 references, and with dedup on, which spends most of them inside a single file, that came at the seventh worktree of a mid-size project: whole-file copies of its DataStore and ArtifactDB, reported as ready. seed, new and hydrate now read the reference counts of the 32 largest files each clone wrote, and if any was copied they fail with exit 2, reason clone_copied, and roll back. Cost: a few ms per file. - measure on btrfs: compressed extents were counted at their uncompressed length, which inflated allocated and could make a group larger than its whole tree, and files stored inline in metadata counted 4 KiB each. Compressed extent sizes are now estimated (an upper bound, within 1.4% of compsize when tested), inline files count their size, and the block size is read from the volume. Each byte counts once per tree, in one group, so the groups add up to the tree. - measure on Windows without --json failed under Windows PowerShell 5.1, i.e. on any machine without pwsh. Under PowerShell 7 it never printed the unmapped line. - The scripts ship executable. unity-worktree-cow.sh and measure.py were mode 644, so running them directly on macOS or Linux failed with Permission denied. - Troubleshooting no longer says to re-seed after ReFS error 347. A re-seed shares the source's blocks and does not reset the count.
brian-taylor-unity
requested review from
elbert-s-perez and
josephburchettunity
December 2, 2026 16:31
elbert-s-perez
approved these changes
Dec 2, 2026
elbert-s-perez
left a comment
There was a problem hiding this comment.
Approving at b2f8f93. I read the script and workflow changes; all eleven checks are green, including the two new ReFS jobs. I did not run the tests locally or try it on a ReFS volume, so the reference-count behaviour rests on your measurements.
Notes, none blocking:
.uwt-keeponly ever spares files from the clean, andkeep_loadrejects globs, absolute paths,..and.git, so a bad entry cannot widen what is deleted.clone_copiedis a behaviour change for callers that branch onreason; the Upgrading note covers it.- Small one: on the git path
keep_matchedis called withoutfold, so on a case-insensitive volume a kept path spelled with different case is still kept by git but may be missing from thekeptreport.
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.
Upgrading
Added
Fixes