Repository navigation
fix(build): a directory gone from the worktree goes from the lane's copy (#628) - #633
Merged
Merged
Conversation
…opy (#628) The snapshot's sync removed the files of a directory renamed or removed in the worktree, but kept the directory, empty: a service that reads one folder per entry saw a phantom one. Now a directory the removal leaves empty, and the source no longer has, goes too; one that holds anything else (a build's output) stays. Covers a lane here, a lane on a node and the snapshot builds run in. Bug-Class: stale-copy Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merged
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.
What and why
Closes #628.
A lane's copy received the files of a directory renamed in the worktree
(
git mv org/agents/a org/agents/b) and lost the old files, but kept theold directory, empty. A service that reads one folder per definition
reported the phantom folder on every reload.
Snapshot::syncremoved the files that left the snapshot and never thedirectories this emptied. Now, after removing a file, it removes each
parent directory that is empty and that the source no longer has, up to the
copy's root. A directory that holds anything else (a build's output, a
prepared
node_modules) stays, sinceremove_dironly removes an emptyone. The node's mirror already did this (
safefs); a lane on a node runsfrom a
Snapshotof it and is covered by the same change.Empty directories a copy kept before this release stay until it is made
anew (a sweep at start could take directories that are empty on purpose,
such as
ensure_dirs). No card: no trust, concept, contract or termchanges.
Verified
a_directory_gone_from_the_source_goes_from_the_copy: redfirst at "the renamed directory stayed in the copy", green with the fix;
a build's output in the copy stays.
devstack up --on local): with 0.53.0 therenamed directory stayed empty in the copy; with this build it goes.
cargo fmt,cargo clippy --workspace --all-targets -D warnings,cargo test --workspace(916 passed).Bug-Class: stale-copy
🤖 Generated with Claude Code