Skip to content

Remove system rsync delegation for server mode - #2255

Merged
oferchen merged 2 commits into
masterfrom
remove-delegation-and-fallback-logic
Nov 30, 2025
Merged

oferchen merged 2 commits into
masterfrom
remove-delegation-and-fallback-logic

Conversation

@oferchen

@oferchen oferchen commented Nov 30, 2025 •

Copy link
Copy Markdown
Owner

User description

Summary

  • stop the CLI --server path from spawning an external rsync binary and emit a branded unsupported message instead
  • document the no-delegation rule in internal docs and update frontend docs to match the native-only server expectation
  • adjust server-mode tests to assert no delegation or side effects occur

Testing

  • cargo test --all-features --workspace

[Codex Task](


PR Type

Enhancement


Description

  • Remove system rsync delegation from --server mode

  • Replace fallback binary spawning with explicit error message

  • Simplify server handler by eliminating process management code

  • Update documentation to reflect native-only server requirement

  • Consolidate tests to verify no delegation occurs


Diagram Walkthrough

flowchart LR
  A["--server invocation"] --> B["run_server_mode"]
  B --> C["Check program brand"]
  C --> D["Write unavailable error"]
  D --> E["Return exit code 1"]
  F["Previous: Fallback logic"] -.->|removed| B
Loading

File Walkthrough

Relevant files
Documentation
mod.rs
Update frontend module documentation for server mode         

crates/cli/src/frontend/mod.rs

  • Updated module documentation to reflect removal of system rsync
    delegation
  • Changed description from spawning external rsync to reporting explicit
    error
  • Clarified that --server now reports error until native implementation
    complete
  • Removed references to OC_RSYNC_FALLBACK environment variable
+3/-4     
internal docs
Update agent documentation to remove fallback guardrails 

internal docs

  • Removed "Remote fallback guardrails" section documenting fallback
    binary validation
  • Removed references to core::fallback helper functions and caching
    behavior
  • Added "No delegation to system rsync" section stating all entry points
    execute natively
  • Clarified that historical fallbacks like OC_RSYNC_FALLBACK are ignored
+4/-18   
Enhancement
server.rs
Remove fallback binary delegation from server handler       

crates/cli/src/frontend/server.rs

  • Removed all fallback binary spawning and process management code
  • Eliminated imports for process handling, threading, and fallback
    utilities
  • Replaced run_server_mode implementation with simple error reporting
  • Simplified write_server_fallback_error to
    write_server_unavailable_error
  • Removed 200+ lines of delegation logic including stream forwarding and
    thread management
+12/-213
Tests
server.rs
Consolidate server tests to verify no delegation                 

crates/cli/src/frontend/tests/server.rs

  • Removed platform-specific #[cfg(unix)] guards from tests
  • Consolidated multiple fallback-related tests into single test
  • Changed test focus from verifying delegation to verifying no
    delegation occurs
  • Removed tests for fallback binary resolution, output forwarding, and
    recursive fallback detection
  • Updated test to assert marker file is not created and error message is
    displayed
+7/-140 

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@qodo-code-review

qodo-code-review Bot commented Nov 30, 2025 •

Copy link
Copy Markdown

PR Compliance Guide 🔍

Below is a summary of compliance checks for this PR:

Security Compliance
🟢
No security concerns identified No security vulnerabilities detected by AI analysis. Human verification advised for critical code.
Ticket Compliance
⚪
🎫 No ticket provided
  • Create ticket/issue
Codebase Duplication Compliance
⚪
Codebase context is not defined

Follow the guide to enable codebase context checks.

Custom Compliance
🟢
Generic: Meaningful Naming and Self-Documenting Code

Objective: Ensure all identifiers clearly express their purpose and intent, making code
self-documenting

Status: Passed

Learn more about managing compliance generic rules or creating your own custom rules

Generic: Robust Error Handling and Edge Case Management

Objective: Ensure comprehensive error handling that provides meaningful context and graceful
degradation

Status: Passed

Learn more about managing compliance generic rules or creating your own custom rules

Generic: Secure Error Handling

Objective: To prevent the leakage of sensitive system information through error messages while
providing sufficient detail for internal debugging.

Status: Passed

Learn more about managing compliance generic rules or creating your own custom rules

Generic: Secure Logging Practices

Objective: To ensure logs are useful for debugging and auditing without exposing sensitive
information like PII, PHI, or cardholder data.

Status: Passed

Learn more about managing compliance generic rules or creating your own custom rules

Generic: Security-First Input Validation and Data Handling

Objective: Ensure all data inputs are validated, sanitized, and handled securely to prevent
vulnerabilities

Status: Passed

Learn more about managing compliance generic rules or creating your own custom rules

⚪
Generic: Comprehensive Audit Trails

Objective: To create a detailed and reliable record of critical system actions for security analysis
and compliance.

Status:
Missing audit log: The new server-mode path returns an error without any explicit audit logging of the
critical action (server invocation and denial), which may be required for audit trails.

Referred Code
where
    Out: Write,
    Err: Write,
{
    let _ = stdout.flush();
    let _ = stderr.flush();

    let program_brand = super::detect_program_name(args.first().map(OsString::as_os_str)).brand();

    write_server_unavailable_error(stderr, program_brand);
    1
}

fn write_server_unavailable_error<Err: Write>(stderr: &mut Err, brand: Brand) {
    let mut sink = MessageSink::with_brand(stderr, brand);
    let mut message = rsync_error!(
        1,
        "remote server mode is not yet implemented; oc-rsync no longer delegates to a system rsync"
    );
    message = message.with_role(Role::Server);
    if let Err(error) = super::write_message(&message, &mut sink) {


 ... (clipped 3 lines)

Learn more about managing compliance generic rules or creating your own custom rules

  • Update
Compliance status legend 🟢 - Fully Compliant
🟡 - Partial Compliant
🔴 - Not Compliant
⚪ - Requires Further Human Verification
🏷️ - Compliance label

@qodo-code-review

Copy link
Copy Markdown

PR Code Suggestions ✨

Explore these optional code suggestions:

CategorySuggestion                                                                                                                                    Impact
High-level
Consider the impact of removing functionality

The PR removes the --server mode fallback to a system rsync, which is a breaking
change. It should justify why this feature regression is preferable to keeping
the workaround until a native implementation is ready.

Examples:

crates/cli/src/frontend/server.rs [87-104]
/// Handles `--server` invocations without delegating to a system `rsync`.
pub(crate) fn run_server_mode<Out, Err>(
    args: &[OsString],
    stdout: &mut Out,
    stderr: &mut Err,
) -> i32
where
    Out: Write,
    Err: Write,
{

 ... (clipped 8 lines)
crates/cli/src/frontend/tests/server.rs [5-51]
fn server_mode_reports_unimplemented_without_delegating() {
    use std::fs;
    use tempfile::tempdir;

    let _env_lock = ENV_LOCK.lock().expect("env lock");

    let temp = tempdir().expect("tempdir");
    let script_path = temp.path().join("server.sh");
    let marker_path = temp.path().join("marker.txt");


 ... (clipped 37 lines)

Solution Walkthrough:

Before:

// in crates/cli/src/frontend/server.rs
pub(crate) fn run_server_mode(...) -> i32 {
    // ...
    // Logic to find and validate a fallback rsync binary
    let Some(resolved_fallback) = fallback_binary_path(...) else {
        write_server_fallback_error(...);
        return 1;
    };

    // Spawn the fallback binary as a child process
    let mut child = Command::new(&resolved_fallback).spawn(...);

    // Create threads to forward stdout and stderr from the child process
    spawn_server_reader(child.stdout, ...);
    spawn_server_reader(child.stderr, ...);

    // Wait for the child process to finish and return its exit code
    let status = child.wait();
    return status.code().unwrap_or(1);
}

After:

// in crates/cli/src/frontend/server.rs
pub(crate) fn run_server_mode<Out, Err>(
    args: &[OsString],
    stdout: &mut Out,
    stderr: &mut Err,
) -> i32
where
    Out: Write,
    Err: Write,
{
    let program_brand = super::detect_program_name(...).brand();
    write_server_unavailable_error(stderr, program_brand);
    1
}

fn write_server_unavailable_error<Err: Write>(stderr: &mut Err, brand: Brand) {
    // ... write "remote server mode is not yet implemented" error
}
Suggestion importance[1-10]: 6

__

Why: The suggestion correctly identifies a significant breaking change and raises a valid point about justifying the removal of existing functionality, which impacts users.

Low
  • More

@qodo-code-review

Copy link
Copy Markdown

CI Feedback 🧐

A test triggered by this PR failed. Here is an AI-generated analysis of the failure:

Action: fmt + clippy + nextest

Failed stage: Clippy [❌]

Failed test name: ""

Failure summary:

The action failed during Rust linting/build because RUSTFLAGS: -D warnings escalated lints and
warnings to errors, and there were compile/lint issues in the repository code:
- Unused imports
causing errors:
- crates/engine/src/local_copy/tests/execute_sparse.rs: unused use
std::os::unix::fs::MetadataExt; at lines 466:9 and 526:9.
- crates/core/src/server/writer.rs:
unused use std::io::Write as _; at lines 113:17 and 54:25.
- Trait not in scope for read_exact on
std::fs::File in tests:
- Multiple occurrences in
crates/engine/src/local_copy/tests/execute_sparse.rs (e.g., lines 434:15, 441:15, 448:15, 454:15,
654:15, 660:15, 666:15); std::io::Read must be imported (hint points to
crates/engine/src/local_copy/tests/mod.rs:1:1 to add use std::io::Read;).
- Clippy
uninlined_format_args violations (due to -D warnings):
- crates/core/src/server/setup.rs: lines
53–56, 62–65, 69–72, 134, 139–142, 146; change eprintln!("... {:?}", var) to use inline capture like
eprintln!("... {var:?}").
- crates/core/src/server/writer.rs: lines 47 and 127; similarly use
inline capture for buf.
- Additional warnings-as-errors:
- crates/core/src/server/mod.rs:131:9:
variable marked mut unnecessarily.
- crates/core/src/server/reader.rs: dead code — enum variant
Multiplex never constructed (line 18), method activate_multiplex never used (line 28), and
associated function MultiplexReader::new never used (line 65).
- Struct initialization missing
field:
- error[E0063] missing compat_exchanged in server::handshake::HandshakeResult initializers
at:
- crates/core/src/server/generator.rs:313:9
- crates/core/src/server/receiver.rs:134:9

Because these compile and clippy errors occurred under -D warnings, cargo clippy/build exited with
code 101, failing the action.

Relevant error logs:
1:  ##[group]Runner Image Provisioner
2:  Hosted Compute Agent
...

153:  RUSTFLAGS: -D warnings
154:  targets: 
155:  components: rustfmt, clippy
156:  ##[endgroup]
157:  ##[group]Run : set $CARGO_HOME
158:  �[36;1m: set $CARGO_HOME�[0m
159:  �[36;1mecho CARGO_HOME=${CARGO_HOME:-"$HOME/.cargo"} >> $GITHUB_ENV�[0m
160:  shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
161:  env:
162:  CARGO_TERM_COLOR: always
163:  RUSTFLAGS: -D warnings
164:  ##[endgroup]
165:  ##[group]Run : install rustup if needed
166:  �[36;1m: install rustup if needed�[0m
167:  �[36;1mif ! command -v rustup &>/dev/null; then�[0m
168:  �[36;1m  curl --proto '=https' --tlsv1.2 --retry 10 --retry-connrefused --location --silent --show-error --fail https://sh.rustup.rs | sh -s -- --default-toolchain none -y�[0m
169:  �[36;1m  echo "$CARGO_HOME/bin" >> $GITHUB_PATH�[0m
...

240:  �[36;1m  if rustc +stable --version --verbose | grep -q '^release: 1\.6[89]\.'; then�[0m
241:  �[36;1m    touch "/home/runner/work/_temp"/.implicit_cargo_registries_crates_io_protocol || true�[0m
242:  �[36;1m    echo CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse >> $GITHUB_ENV�[0m
243:  �[36;1m  elif rustc +stable --version --verbose | grep -q '^release: 1\.6[67]\.'; then�[0m
244:  �[36;1m    touch "/home/runner/work/_temp"/.implicit_cargo_registries_crates_io_protocol || true�[0m
245:  �[36;1m    echo CARGO_REGISTRIES_CRATES_IO_PROTOCOL=git >> $GITHUB_ENV�[0m
246:  �[36;1m  fi�[0m
247:  �[36;1mfi�[0m
248:  shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
249:  env:
250:  CARGO_TERM_COLOR: always
251:  RUSTFLAGS: -D warnings
252:  CARGO_HOME: /home/runner/.cargo
253:  CARGO_INCREMENTAL: 0
254:  ##[endgroup]
255:  ##[group]Run : work around spurious network errors in curl 8.0
256:  �[36;1m: work around spurious network errors in curl 8.0�[0m
257:  �[36;1m# https://rust-lang.zulipchat.com/#narrow/stream/246057-t-cargo/topic/timeout.20investigation�[0m
...

353:  Received 134217728 of 279066673 (48.1%), 62.4 MBs/sec
354:  Received 239075328 of 279066673 (85.7%), 74.7 MBs/sec
355:  Received 279066673 of 279066673 (100.0%), 69.1 MBs/sec
356:  Cache Size: ~266 MB (279066673 B)
357:  [command]/usr/bin/tar -xf /home/runner/work/_temp/a795648f-a762-44c9-b13b-f77778fce069/cache.tzst -P -C /home/runner/work/rsync/rsync --use-compress-program unzstd
358:  Cache restored successfully
359:  Restored from cache key "v0-rust-lint-and-test-Linux-x64-dc57f834-a729faaa" full match: true.
360:  ##[group]Run cargo fmt --all -- --check
361:  �[36;1mcargo fmt --all -- --check�[0m
362:  shell: /usr/bin/bash -e {0}
363:  env:
364:  CARGO_TERM_COLOR: always
365:  RUSTFLAGS: -D warnings
366:  CARGO_HOME: /home/runner/.cargo
367:  CARGO_INCREMENTAL: 0
368:  CACHE_ON_FAILURE: false
369:  ##[endgroup]
370:  ##[group]Run cargo clippy --workspace --all-targets --all-features --no-deps
371:  �[36;1mcargo clippy --workspace --all-targets --all-features --no-deps�[0m
372:  shell: /usr/bin/bash -e {0}
373:  env:
374:  CARGO_TERM_COLOR: always
375:  RUSTFLAGS: -D warnings
376:  CARGO_HOME: /home/runner/.cargo
377:  CARGO_INCREMENTAL: 0
378:  CACHE_ON_FAILURE: false
379:  ##[endgroup]
380:  �[1m�[32m    Updating�[0m crates.io index
381:  �[1m�[32m   Compiling�[0m branding v3.4.1-rust (/home/runner/work/rsync/rsync/crates/branding)
382:  �[1m�[32m    Checking�[0m protocol v3.4.1-rust (/home/runner/work/rsync/rsync/crates/protocol)
383:  �[1m�[32m   Compiling�[0m metadata v3.4.1-rust (/home/runner/work/rsync/rsync/crates/metadata)
384:  �[1m�[32m    Checking�[0m bandwidth v3.4.1-rust (/home/runner/work/rsync/rsync/crates/bandwidth)
385:  �[1m�[32m    Checking�[0m checksums v3.4.1-rust (/home/runner/work/rsync/rsync/crates/checksums)
386:  �[1m�[32m    Checking�[0m filters v3.4.1-rust (/home/runner/work/rsync/rsync/crates/filters)
387:  �[1m�[32m    Checking�[0m compress v3.4.1-rust (/home/runner/work/rsync/rsync/crates/compress)
388:  �[1m�[32m   Compiling�[0m core v3.4.1-rust (/home/runner/work/rsync/rsync/crates/core)
389:  �[1m�[32m    Checking�[0m walk v3.4.1-rust (/home/runner/work/rsync/rsync/crates/walk)
390:  �[1m�[32m    Checking�[0m apple-fs v3.4.1-rust (/home/runner/work/rsync/rsync/crates/apple-fs)
391:  �[1m�[32m    Checking�[0m xtask v3.4.1-rust (/home/runner/work/rsync/rsync/xtask)
392:  �[1m�[32m    Checking�[0m transport v3.4.1-rust (/home/runner/work/rsync/rsync/crates/transport)
393:  �[1m�[32m    Checking�[0m engine v3.4.1-rust (/home/runner/work/rsync/rsync/crates/engine)
394:  �[0m�[1m�[38;5;9merror�[0m�[0m�[1m: unused import: `std::os::unix::fs::MetadataExt`�[0m
395:  �[0m   �[0m�[0m�[1m�[38;5;12m--> �[0m�[0mcrates/engine/src/local_copy/tests/execute_sparse.rs:466:9�[0m
396:  �[0m    �[0m�[0m�[1m�[38;5;12m|�[0m
397:  �[0m�[1m�[38;5;12m466�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m    use std::os::unix::fs::MetadataExt;�[0m
398:  �[0m    �[0m�[0m�[1m�[38;5;12m|�[0m�[0m         �[0m�[0m�[1m�[38;5;9m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^�[0m
399:  �[0m    �[0m�[0m�[1m�[38;5;12m|�[0m
400:  �[0m    �[0m�[0m�[1m�[38;5;12m= �[0m�[0m�[1mnote�[0m�[0m: `-D unused-imports` implied by `-D warnings`�[0m
401:  �[0m    �[0m�[0m�[1m�[38;5;12m= �[0m�[0m�[1mhelp�[0m�[0m: to override `-D warnings` add `#[allow(unused_imports)]`�[0m
402:  �[0m�[1m�[38;5;9merror�[0m�[0m�[1m: unused import: `std::os::unix::fs::MetadataExt`�[0m
403:  �[0m   �[0m�[0m�[1m�[38;5;12m--> �[0m�[0mcrates/engine/src/local_copy/tests/execute_sparse.rs:526:9�[0m
404:  �[0m    �[0m�[0m�[1m�[38;5;12m|�[0m
405:  �[0m�[1m�[38;5;12m526�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m    use std::os::unix::fs::MetadataExt;�[0m
406:  �[0m    �[0m�[0m�[1m�[38;5;12m|�[0m�[0m         �[0m�[0m�[1m�[38;5;9m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^�[0m
407:  �[0m�[1m�[38;5;9merror[E0599]�[0m�[0m�[1m: no method named `read_exact` found for struct `std::fs::File` in the current scope�[0m
408:  �[0m    �[0m�[0m�[1m�[38;5;12m--> �[0m�[0mcrates/engine/src/local_copy/tests/execute_sparse.rs:434:15�[0m
...

414:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
415:  �[0m�[1m�[38;5;12m1018�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m    fn read_exact(&mut self, buf: &mut [u8]) -> Result<()> {�[0m
416:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m�[0m        �[0m�[0m�[1m�[38;5;12m----------�[0m�[0m �[0m�[0m�[1m�[38;5;12mthe method is available for `std::fs::File` here�[0m
417:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
418:  �[0m     �[0m�[0m�[1m�[38;5;12m= �[0m�[0m�[1mhelp�[0m�[0m: items from traits can only be used if the trait is in scope�[0m
419:  �[0m�[1m�[38;5;14mhelp�[0m�[0m: there is a method `read_at` with a similar name, but with different arguments�[0m
420:  �[0m    �[0m�[0m�[1m�[38;5;12m--> �[0m�[0m/home/runner/.rustup/toolchains/1.88.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/os/unix/fs.rs:59:5�[0m
421:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
422:  �[0m�[1m�[38;5;12m59�[0m�[0m   �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m    fn read_at(&self, buf: &mut [u8], offset: u64) -> io::Result<usize>;�[0m
423:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m�[0m     �[0m�[0m�[1m�[38;5;14m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^�[0m
424:  �[0m�[1m�[38;5;14mhelp�[0m�[0m: trait `Read` which provides `read_exact` is implemented but not in scope; perhaps you want to import it�[0m
425:  �[0m    �[0m�[0m�[1m�[38;5;12m--> �[0m�[0m �[0m�[0mcrates/engine/src/local_copy/tests/mod.rs:1:1�[0m
426:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
427:  �[0m�[1m�[38;5;12m1�[0m�[0m    �[0m�[0m�[38;5;10m+ use std::io::Read;�[0m
428:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
429:  �[0m�[1m�[38;5;9merror[E0599]�[0m�[0m�[1m: no method named `read_exact` found for struct `std::fs::File` in the current scope�[0m
430:  �[0m    �[0m�[0m�[1m�[38;5;12m--> �[0m�[0mcrates/engine/src/local_copy/tests/execute_sparse.rs:441:15�[0m
...

436:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
437:  �[0m�[1m�[38;5;12m1018�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m    fn read_exact(&mut self, buf: &mut [u8]) -> Result<()> {�[0m
438:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m�[0m        �[0m�[0m�[1m�[38;5;12m----------�[0m�[0m �[0m�[0m�[1m�[38;5;12mthe method is available for `std::fs::File` here�[0m
439:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
440:  �[0m     �[0m�[0m�[1m�[38;5;12m= �[0m�[0m�[1mhelp�[0m�[0m: items from traits can only be used if the trait is in scope�[0m
441:  �[0m�[1m�[38;5;14mhelp�[0m�[0m: there is a method `read_at` with a similar name, but with different arguments�[0m
442:  �[0m    �[0m�[0m�[1m�[38;5;12m--> �[0m�[0m/home/runner/.rustup/toolchains/1.88.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/os/unix/fs.rs:59:5�[0m
443:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
444:  �[0m�[1m�[38;5;12m59�[0m�[0m   �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m    fn read_at(&self, buf: &mut [u8], offset: u64) -> io::Result<usize>;�[0m
445:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m�[0m     �[0m�[0m�[1m�[38;5;14m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^�[0m
446:  �[0m�[1m�[38;5;14mhelp�[0m�[0m: trait `Read` which provides `read_exact` is implemented but not in scope; perhaps you want to import it�[0m
447:  �[0m    �[0m�[0m�[1m�[38;5;12m--> �[0m�[0m �[0m�[0mcrates/engine/src/local_copy/tests/mod.rs:1:1�[0m
448:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
449:  �[0m�[1m�[38;5;12m1�[0m�[0m    �[0m�[0m�[38;5;10m+ use std::io::Read;�[0m
450:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
451:  �[0m�[1m�[38;5;9merror[E0599]�[0m�[0m�[1m: no method named `read_exact` found for struct `std::fs::File` in the current scope�[0m
452:  �[0m    �[0m�[0m�[1m�[38;5;12m--> �[0m�[0mcrates/engine/src/local_copy/tests/execute_sparse.rs:448:15�[0m
...

458:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
459:  �[0m�[1m�[38;5;12m1018�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m    fn read_exact(&mut self, buf: &mut [u8]) -> Result<()> {�[0m
460:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m�[0m        �[0m�[0m�[1m�[38;5;12m----------�[0m�[0m �[0m�[0m�[1m�[38;5;12mthe method is available for `std::fs::File` here�[0m
461:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
462:  �[0m     �[0m�[0m�[1m�[38;5;12m= �[0m�[0m�[1mhelp�[0m�[0m: items from traits can only be used if the trait is in scope�[0m
463:  �[0m�[1m�[38;5;14mhelp�[0m�[0m: there is a method `read_at` with a similar name, but with different arguments�[0m
464:  �[0m    �[0m�[0m�[1m�[38;5;12m--> �[0m�[0m/home/runner/.rustup/toolchains/1.88.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/os/unix/fs.rs:59:5�[0m
465:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
466:  �[0m�[1m�[38;5;12m59�[0m�[0m   �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m    fn read_at(&self, buf: &mut [u8], offset: u64) -> io::Result<usize>;�[0m
467:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m�[0m     �[0m�[0m�[1m�[38;5;14m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^�[0m
468:  �[0m�[1m�[38;5;14mhelp�[0m�[0m: trait `Read` which provides `read_exact` is implemented but not in scope; perhaps you want to import it�[0m
469:  �[0m    �[0m�[0m�[1m�[38;5;12m--> �[0m�[0m �[0m�[0mcrates/engine/src/local_copy/tests/mod.rs:1:1�[0m
470:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
471:  �[0m�[1m�[38;5;12m1�[0m�[0m    �[0m�[0m�[38;5;10m+ use std::io::Read;�[0m
472:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
473:  �[0m�[1m�[38;5;9merror[E0599]�[0m�[0m�[1m: no method named `read_exact` found for struct `std::fs::File` in the current scope�[0m
474:  �[0m    �[0m�[0m�[1m�[38;5;12m--> �[0m�[0mcrates/engine/src/local_copy/tests/execute_sparse.rs:454:15�[0m
...

480:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
481:  �[0m�[1m�[38;5;12m1018�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m    fn read_exact(&mut self, buf: &mut [u8]) -> Result<()> {�[0m
482:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m�[0m        �[0m�[0m�[1m�[38;5;12m----------�[0m�[0m �[0m�[0m�[1m�[38;5;12mthe method is available for `std::fs::File` here�[0m
483:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
484:  �[0m     �[0m�[0m�[1m�[38;5;12m= �[0m�[0m�[1mhelp�[0m�[0m: items from traits can only be used if the trait is in scope�[0m
485:  �[0m�[1m�[38;5;14mhelp�[0m�[0m: there is a method `read_at` with a similar name, but with different arguments�[0m
486:  �[0m    �[0m�[0m�[1m�[38;5;12m--> �[0m�[0m/home/runner/.rustup/toolchains/1.88.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/os/unix/fs.rs:59:5�[0m
487:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
488:  �[0m�[1m�[38;5;12m59�[0m�[0m   �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m    fn read_at(&self, buf: &mut [u8], offset: u64) -> io::Result<usize>;�[0m
489:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m�[0m     �[0m�[0m�[1m�[38;5;14m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^�[0m
490:  �[0m�[1m�[38;5;14mhelp�[0m�[0m: trait `Read` which provides `read_exact` is implemented but not in scope; perhaps you want to import it�[0m
491:  �[0m    �[0m�[0m�[1m�[38;5;12m--> �[0m�[0m �[0m�[0mcrates/engine/src/local_copy/tests/mod.rs:1:1�[0m
492:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
493:  �[0m�[1m�[38;5;12m1�[0m�[0m    �[0m�[0m�[38;5;10m+ use std::io::Read;�[0m
494:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
495:  �[0m�[1m�[38;5;9merror[E0599]�[0m�[0m�[1m: no method named `read_exact` found for struct `std::fs::File` in the current scope�[0m
496:  �[0m    �[0m�[0m�[1m�[38;5;12m--> �[0m�[0mcrates/engine/src/local_copy/tests/execute_sparse.rs:654:15�[0m
...

502:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
503:  �[0m�[1m�[38;5;12m1018�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m    fn read_exact(&mut self, buf: &mut [u8]) -> Result<()> {�[0m
504:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m�[0m        �[0m�[0m�[1m�[38;5;12m----------�[0m�[0m �[0m�[0m�[1m�[38;5;12mthe method is available for `std::fs::File` here�[0m
505:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
506:  �[0m     �[0m�[0m�[1m�[38;5;12m= �[0m�[0m�[1mhelp�[0m�[0m: items from traits can only be used if the trait is in scope�[0m
507:  �[0m�[1m�[38;5;14mhelp�[0m�[0m: there is a method `read_at` with a similar name, but with different arguments�[0m
508:  �[0m    �[0m�[0m�[1m�[38;5;12m--> �[0m�[0m/home/runner/.rustup/toolchains/1.88.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/os/unix/fs.rs:59:5�[0m
509:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
510:  �[0m�[1m�[38;5;12m59�[0m�[0m   �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m    fn read_at(&self, buf: &mut [u8], offset: u64) -> io::Result<usize>;�[0m
511:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m�[0m     �[0m�[0m�[1m�[38;5;14m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^�[0m
512:  �[0m�[1m�[38;5;14mhelp�[0m�[0m: trait `Read` which provides `read_exact` is implemented but not in scope; perhaps you want to import it�[0m
513:  �[0m    �[0m�[0m�[1m�[38;5;12m--> �[0m�[0m �[0m�[0mcrates/engine/src/local_copy/tests/mod.rs:1:1�[0m
514:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
515:  �[0m�[1m�[38;5;12m1�[0m�[0m    �[0m�[0m�[38;5;10m+ use std::io::Read;�[0m
516:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
517:  �[0m�[1m�[38;5;9merror[E0599]�[0m�[0m�[1m: no method named `read_exact` found for struct `std::fs::File` in the current scope�[0m
518:  �[0m    �[0m�[0m�[1m�[38;5;12m--> �[0m�[0mcrates/engine/src/local_copy/tests/execute_sparse.rs:660:15�[0m
...

524:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
525:  �[0m�[1m�[38;5;12m1018�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m    fn read_exact(&mut self, buf: &mut [u8]) -> Result<()> {�[0m
526:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m�[0m        �[0m�[0m�[1m�[38;5;12m----------�[0m�[0m �[0m�[0m�[1m�[38;5;12mthe method is available for `std::fs::File` here�[0m
527:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
528:  �[0m     �[0m�[0m�[1m�[38;5;12m= �[0m�[0m�[1mhelp�[0m�[0m: items from traits can only be used if the trait is in scope�[0m
529:  �[0m�[1m�[38;5;14mhelp�[0m�[0m: there is a method `read_at` with a similar name, but with different arguments�[0m
530:  �[0m    �[0m�[0m�[1m�[38;5;12m--> �[0m�[0m/home/runner/.rustup/toolchains/1.88.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/os/unix/fs.rs:59:5�[0m
531:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
532:  �[0m�[1m�[38;5;12m59�[0m�[0m   �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m    fn read_at(&self, buf: &mut [u8], offset: u64) -> io::Result<usize>;�[0m
533:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m�[0m     �[0m�[0m�[1m�[38;5;14m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^�[0m
534:  �[0m�[1m�[38;5;14mhelp�[0m�[0m: trait `Read` which provides `read_exact` is implemented but not in scope; perhaps you want to import it�[0m
535:  �[0m    �[0m�[0m�[1m�[38;5;12m--> �[0m�[0m �[0m�[0mcrates/engine/src/local_copy/tests/mod.rs:1:1�[0m
536:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
537:  �[0m�[1m�[38;5;12m1�[0m�[0m    �[0m�[0m�[38;5;10m+ use std::io::Read;�[0m
538:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
539:  �[0m�[1m�[38;5;9merror[E0599]�[0m�[0m�[1m: no method named `read_exact` found for struct `std::fs::File` in the current scope�[0m
540:  �[0m    �[0m�[0m�[1m�[38;5;12m--> �[0m�[0mcrates/engine/src/local_copy/tests/execute_sparse.rs:666:15�[0m
...

546:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
547:  �[0m�[1m�[38;5;12m1018�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m    fn read_exact(&mut self, buf: &mut [u8]) -> Result<()> {�[0m
548:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m�[0m        �[0m�[0m�[1m�[38;5;12m----------�[0m�[0m �[0m�[0m�[1m�[38;5;12mthe method is available for `std::fs::File` here�[0m
549:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
550:  �[0m     �[0m�[0m�[1m�[38;5;12m= �[0m�[0m�[1mhelp�[0m�[0m: items from traits can only be used if the trait is in scope�[0m
551:  �[0m�[1m�[38;5;14mhelp�[0m�[0m: there is a method `read_at` with a similar name, but with different arguments�[0m
552:  �[0m    �[0m�[0m�[1m�[38;5;12m--> �[0m�[0m/home/runner/.rustup/toolchains/1.88.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/os/unix/fs.rs:59:5�[0m
553:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
554:  �[0m�[1m�[38;5;12m59�[0m�[0m   �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m    fn read_at(&self, buf: &mut [u8], offset: u64) -> io::Result<usize>;�[0m
555:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m�[0m     �[0m�[0m�[1m�[38;5;14m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^�[0m
556:  �[0m�[1m�[38;5;14mhelp�[0m�[0m: trait `Read` which provides `read_exact` is implemented but not in scope; perhaps you want to import it�[0m
557:  �[0m    �[0m�[0m�[1m�[38;5;12m--> �[0m�[0m �[0m�[0mcrates/engine/src/local_copy/tests/mod.rs:1:1�[0m
558:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
559:  �[0m�[1m�[38;5;12m1�[0m�[0m    �[0m�[0m�[38;5;10m+ use std::io::Read;�[0m
560:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
561:  �[0m�[1mFor more information about this error, try `rustc --explain E0599`.�[0m
562:  �[1m�[31merror�[0m�[1m:�[0m could not compile `engine` (lib test) due to 9 previous errors
563:  �[1m�[33mwarning�[0m�[1m:�[0m build failed, waiting for other jobs to finish...
564:  �[0m�[1m�[38;5;9merror�[0m�[0m�[1m: unused import: `std::io::Write`�[0m
565:  �[0m   �[0m�[0m�[1m�[38;5;12m--> �[0m�[0mcrates/core/src/server/writer.rs:113:17�[0m
566:  �[0m    �[0m�[0m�[1m�[38;5;12m|�[0m
567:  �[0m�[1m�[38;5;12m113�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m            use std::io::Write as _;�[0m
568:  �[0m    �[0m�[0m�[1m�[38;5;12m|�[0m�[0m                 �[0m�[0m�[1m�[38;5;9m^^^^^^^^^^^^^^�[0m
569:  �[0m    �[0m�[0m�[1m�[38;5;12m|�[0m
570:  �[0m    �[0m�[0m�[1m�[38;5;12m= �[0m�[0m�[1mnote�[0m�[0m: `-D unused-imports` implied by `-D warnings`�[0m
571:  �[0m    �[0m�[0m�[1m�[38;5;12m= �[0m�[0m�[1mhelp�[0m�[0m: to override `-D warnings` add `#[allow(unused_imports)]`�[0m
572:  �[0m�[1m�[38;5;9merror�[0m�[0m�[1m: unused import: `std::io::Write`�[0m
573:  �[0m  �[0m�[0m�[1m�[38;5;12m--> �[0m�[0mcrates/core/src/server/writer.rs:54:25�[0m
574:  �[0m   �[0m�[0m�[1m�[38;5;12m|�[0m
575:  �[0m�[1m�[38;5;12m54�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m                    use std::io::Write as _;�[0m
576:  �[0m   �[0m�[0m�[1m�[38;5;12m|�[0m�[0m                         �[0m�[0m�[1m�[38;5;9m^^^^^^^^^^^^^^�[0m
577:  �[0m�[1m�[38;5;9merror�[0m�[0m�[1m: variable does not need to be mutable�[0m
578:  �[0m   �[0m�[0m�[1m�[38;5;12m--> �[0m�[0mcrates/core/src/server/mod.rs:131:9�[0m
579:  �[0m    �[0m�[0m�[1m�[38;5;12m|�[0m
580:  �[0m�[1m�[38;5;12m131�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m    let mut reader = reader::ServerReader::new_plain(chained_stdin);�[0m
581:  �[0m    �[0m�[0m�[1m�[38;5;12m|�[0m�[0m         �[0m�[0m�[1m�[38;5;12m----�[0m�[0m�[1m�[38;5;9m^^^^^^�[0m
582:  �[0m    �[0m�[0m�[1m�[38;5;12m|�[0m�[0m         �[0m�[0m�[1m�[38;5;12m|�[0m
583:  �[0m    �[0m�[0m�[1m�[38;5;12m|�[0m�[0m         �[0m�[0m�[1m�[38;5;12mhelp: remove this `mut`�[0m
584:  �[0m    �[0m�[0m�[1m�[38;5;12m|�[0m
585:  �[0m    �[0m�[0m�[1m�[38;5;12m= �[0m�[0m�[1mnote�[0m�[0m: `-D unused-mut` implied by `-D warnings`�[0m
586:  �[0m    �[0m�[0m�[1m�[38;5;12m= �[0m�[0m�[1mhelp�[0m�[0m: to override `-D warnings` add `#[allow(unused_mut)]`�[0m
587:  �[0m�[1m�[38;5;9merror�[0m�[0m�[1m: variant `Multiplex` is never constructed�[0m
588:  �[0m  �[0m�[0m�[1m�[38;5;12m--> �[0m�[0mcrates/core/src/server/reader.rs:18:5�[0m
589:  �[0m   �[0m�[0m�[1m�[38;5;12m|�[0m
590:  �[0m�[1m�[38;5;12m14�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0mpub enum ServerReader<R: Read> {�[0m
591:  �[0m   �[0m�[0m�[1m�[38;5;12m|�[0m�[0m          �[0m�[0m�[1m�[38;5;12m------------�[0m�[0m �[0m�[0m�[1m�[38;5;12mvariant in this enum�[0m
592:  �[0m�[1m�[38;5;12m...�[0m
593:  �[0m�[1m�[38;5;12m18�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m    Multiplex(MultiplexReader<R>),�[0m
594:  �[0m   �[0m�[0m�[1m�[38;5;12m|�[0m�[0m     �[0m�[0m�[1m�[38;5;9m^^^^^^^^^�[0m
595:  �[0m   �[0m�[0m�[1m�[38;5;12m|�[0m
596:  �[0m   �[0m�[0m�[1m�[38;5;12m= �[0m�[0m�[1mnote�[0m�[0m: `-D dead-code` implied by `-D warnings`�[0m
597:  �[0m   �[0m�[0m�[1m�[38;5;12m= �[0m�[0m�[1mhelp�[0m�[0m: to override `-D warnings` add `#[allow(dead_code)]`�[0m
598:  �[0m�[1m�[38;5;9merror�[0m�[0m�[1m: method `activate_multiplex` is never used�[0m
599:  �[0m  �[0m�[0m�[1m�[38;5;12m--> �[0m�[0mcrates/core/src/server/reader.rs:28:12�[0m
600:  �[0m   �[0m�[0m�[1m�[38;5;12m|�[0m
601:  �[0m�[1m�[38;5;12m21�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0mimpl<R: Read> ServerReader<R> {�[0m
602:  �[0m   �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m�[1m�[38;5;12m-----------------------------�[0m�[0m �[0m�[0m�[1m�[38;5;12mmethod in this implementation�[0m
603:  �[0m�[1m�[38;5;12m...�[0m
604:  �[0m�[1m�[38;5;12m28�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m    pub fn activate_multiplex(self) -> io::Result<Self> {�[0m
605:  �[0m   �[0m�[0m�[1m�[38;5;12m|�[0m�[0m            �[0m�[0m�[1m�[38;5;9m^^^^^^^^^^^^^^^^^^�[0m
606:  �[0m�[1m�[38;5;9merror�[0m�[0m�[1m: associated function `new` is never used�[0m
607:  �[0m  �[0m�[0m�[1m�[38;5;12m--> �[0m�[0mcrates/core/src/server/reader.rs:65:8�[0m
608:  �[0m   �[0m�[0m�[1m�[38;5;12m|�[0m
609:  �[0m�[1m�[38;5;12m64�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0mimpl<R: Read> MultiplexReader<R> {�[0m
610:  �[0m   �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m�[1m�[38;5;12m--------------------------------�[0m�[0m �[0m�[0m�[1m�[38;5;12massociated function in this implementation�[0m
611:  �[0m�[1m�[38;5;12m65�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m    fn new(inner: R) -> Self {�[0m
612:  �[0m   �[0m�[0m�[1m�[38;5;12m|�[0m�[0m        �[0m�[0m�[1m�[38;5;9m^^^�[0m
613:  �[0m�[1m�[38;5;9merror�[0m�[0m�[1m: variables can be used directly in the `format!` string�[0m
614:  �[0m  �[0m�[0m�[1m�[38;5;12m--> �[0m�[0mcrates/core/src/server/setup.rs:53:5�[0m
615:  �[0m   �[0m�[0m�[1m�[38;5;12m|�[0m
616:  �[0m�[1m�[38;5;12m53�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m�[1m�[38;5;9m/�[0m�[0m �[0m�[0m    eprintln!(�[0m
617:  �[0m�[1m�[38;5;12m54�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m�[1m�[38;5;9m|�[0m�[0m �[0m�[0m        "[exchange_compat_flags_direct] Sent compat flags: {:?}",�[0m
618:  �[0m�[1m�[38;5;12m55�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m�[1m�[38;5;9m|�[0m�[0m �[0m�[0m        our_flags�[0m
619:  �[0m�[1m�[38;5;12m56�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m�[1m�[38;5;9m|�[0m�[0m �[0m�[0m    );�[0m
620:  �[0m   �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m�[1m�[38;5;9m|_____^�[0m
621:  �[0m   �[0m�[0m�[1m�[38;5;12m|�[0m
622:  �[0m   �[0m�[0m�[1m�[38;5;12m= �[0m�[0m�[1mhelp�[0m�[0m: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args�[0m
623:  �[0m   �[0m�[0m�[1m�[38;5;12m= �[0m�[0m�[1mnote�[0m�[0m: `-D clippy::uninlined-format-args` implied by `-D warnings`�[0m
624:  �[0m   �[0m�[0m�[1m�[38;5;12m= �[0m�[0m�[1mhelp�[0m�[0m: to override `-D warnings` add `#[allow(clippy::uninlined_format_args)]`�[0m
625:  �[0m�[1m�[38;5;9merror�[0m�[0m�[1m: variables can be used directly in the `format!` string�[0m
626:  �[0m  �[0m�[0m�[1m�[38;5;12m--> �[0m�[0mcrates/core/src/server/setup.rs:62:5�[0m
627:  �[0m   �[0m�[0m�[1m�[38;5;12m|�[0m
628:  �[0m�[1m�[38;5;12m62�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m�[1m�[38;5;9m/�[0m�[0m �[0m�[0m    eprintln!(�[0m
629:  �[0m�[1m�[38;5;12m63�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m�[1m�[38;5;9m|�[0m�[0m �[0m�[0m        "[exchange_compat_flags_direct] Received client compat flags: {:?}",�[0m
630:  �[0m�[1m�[38;5;12m64�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m�[1m�[38;5;9m|�[0m�[0m �[0m�[0m        client_flags�[0m
631:  �[0m�[1m�[38;5;12m65�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m�[1m�[38;5;9m|�[0m�[0m �[0m�[0m    );�[0m
632:  �[0m   �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m�[1m�[38;5;9m|_____^�[0m
633:  �[0m   �[0m�[0m�[1m�[38;5;12m|�[0m
634:  �[0m   �[0m�[0m�[1m�[38;5;12m= �[0m�[0m�[1mhelp�[0m�[0m: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args�[0m
635:  �[0m�[1m�[38;5;9merror�[0m�[0m�[1m: variables can be used directly in the `format!` string�[0m
636:  �[0m  �[0m�[0m�[1m�[38;5;12m--> �[0m�[0mcrates/core/src/server/setup.rs:69:5�[0m
637:  �[0m   �[0m�[0m�[1m�[38;5;12m|�[0m
638:  �[0m�[1m�[38;5;12m69�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m�[1m�[38;5;9m/�[0m�[0m �[0m�[0m    eprintln!(�[0m
639:  �[0m�[1m�[38;5;12m70�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m�[1m�[38;5;9m|�[0m�[0m �[0m�[0m        "[exchange_compat_flags_direct] Final compat flags: {:?}",�[0m
640:  �[0m�[1m�[38;5;12m71�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m�[1m�[38;5;9m|�[0m�[0m �[0m�[0m        final_flags�[0m
641:  �[0m�[1m�[38;5;12m72�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m�[1m�[38;5;9m|�[0m�[0m �[0m�[0m    );�[0m
642:  �[0m   �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m�[1m�[38;5;9m|_____^�[0m
643:  �[0m   �[0m�[0m�[1m�[38;5;12m|�[0m
644:  �[0m   �[0m�[0m�[1m�[38;5;12m= �[0m�[0m�[1mhelp�[0m�[0m: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args�[0m
645:  �[0m�[1m�[38;5;9merror�[0m�[0m�[1m: variables can be used directly in the `format!` string�[0m
646:  �[0m   �[0m�[0m�[1m�[38;5;12m--> �[0m�[0mcrates/core/src/server/setup.rs:134:9�[0m
647:  �[0m    �[0m�[0m�[1m�[38;5;12m|�[0m
648:  �[0m�[1m�[38;5;12m134�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m        eprintln!("[setup_protocol] Sent compat flags: {:?}", our_flags);�[0m
649:  �[0m    �[0m�[0m�[1m�[38;5;12m|�[0m�[0m         �[0m�[0m�[1m�[38;5;9m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^�[0m
650:  �[0m    �[0m�[0m�[1m�[38;5;12m|�[0m
651:  �[0m    �[0m�[0m�[1m�[38;5;12m= �[0m�[0m�[1mhelp�[0m�[0m: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args�[0m
652:  �[0m�[1m�[38;5;14mhelp�[0m�[0m: change this to�[0m
653:  �[0m    �[0m�[0m�[1m�[38;5;12m|�[0m
654:  �[0m�[1m�[38;5;12m134�[0m�[0m �[0m�[0m�[38;5;9m- �[0m�[0m        eprintln!("[setup_protocol] Sent compat flags: {:?}"�[0m�[0m�[38;5;9m, our_flags�[0m�[0m);�[0m
655:  �[0m�[1m�[38;5;12m134�[0m�[0m �[0m�[0m�[38;5;10m+ �[0m�[0m        eprintln!("[setup_protocol] Sent compat flags: {�[0m�[0m�[38;5;10mour_flags�[0m�[0m:?}");�[0m
656:  �[0m    �[0m�[0m�[1m�[38;5;12m|�[0m
657:  �[0m�[1m�[38;5;9merror�[0m�[0m�[1m: variables can be used directly in the `format!` string�[0m
658:  �[0m   �[0m�[0m�[1m�[38;5;12m--> �[0m�[0mcrates/core/src/server/setup.rs:139:9�[0m
659:  �[0m    �[0m�[0m�[1m�[38;5;12m|�[0m
660:  �[0m�[1m�[38;5;12m139�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m�[1m�[38;5;9m/�[0m�[0m �[0m�[0m        eprintln!(�[0m
661:  �[0m�[1m�[38;5;12m140�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m�[1m�[38;5;9m|�[0m�[0m �[0m�[0m            "[setup_protocol] Received client compat flags: {:?}",�[0m
662:  �[0m�[1m�[38;5;12m141�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m�[1m�[38;5;9m|�[0m�[0m �[0m�[0m            client_flags�[0m
663:  �[0m�[1m�[38;5;12m142�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m�[1m�[38;5;9m|�[0m�[0m �[0m�[0m        );�[0m
664:  �[0m    �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m�[1m�[38;5;9m|_________^�[0m
665:  �[0m    �[0m�[0m�[1m�[38;5;12m|�[0m
666:  �[0m    �[0m�[0m�[1m�[38;5;12m= �[0m�[0m�[1mhelp�[0m�[0m: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args�[0m
667:  �[0m�[1m�[38;5;9merror�[0m�[0m�[1m: variables can be used directly in the `format!` string�[0m
668:  �[0m   �[0m�[0m�[1m�[38;5;12m--> �[0m�[0mcrates/core/src/server/setup.rs:146:9�[0m
669:  �[0m    �[0m�[0m�[1m�[38;5;12m|�[0m
670:  �[0m�[1m�[38;5;12m146�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m        eprintln!("[setup_protocol] Final compat flags: {:?}", final_flags);�[0m
671:  �[0m    �[0m�[0m�[1m�[38;5;12m|�[0m�[0m         �[0m�[0m�[1m�[38;5;9m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^�[0m
672:  �[0m    �[0m�[0m�[1m�[38;5;12m|�[0m
673:  �[0m    �[0m�[0m�[1m�[38;5;12m= �[0m�[0m�[1mhelp�[0m�[0m: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args�[0m
674:  �[0m�[1m�[38;5;14mhelp�[0m�[0m: change this to�[0m
675:  �[0m    �[0m�[0m�[1m�[38;5;12m|�[0m
676:  �[0m�[1m�[38;5;12m146�[0m�[0m �[0m�[0m�[38;5;9m- �[0m�[0m        eprintln!("[setup_protocol] Final compat flags: {:?}"�[0m�[0m�[38;5;9m, final_flags�[0m�[0m);�[0m
677:  �[0m�[1m�[38;5;12m146�[0m�[0m �[0m�[0m�[38;5;10m+ �[0m�[0m        eprintln!("[setup_protocol] Final compat flags: {�[0m�[0m�[38;5;10mfinal_flags�[0m�[0m:?}");�[0m
678:  �[0m    �[0m�[0m�[1m�[38;5;12m|�[0m
679:  �[0m�[1m�[38;5;9merror�[0m�[0m�[1m: variables can be used directly in the `format!` string�[0m
680:  �[0m  �[0m�[0m�[1m�[38;5;12m--> �[0m�[0mcrates/core/src/server/writer.rs:47:17�[0m
681:  �[0m   �[0m�[0m�[1m�[38;5;12m|�[0m
682:  �[0m�[1m�[38;5;12m47�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m                eprintln!("[ServerWriter::Plain] Bytes: {:02x?}", buf);�[0m
683:  �[0m   �[0m�[0m�[1m�[38;5;12m|�[0m�[0m                 �[0m�[0m�[1m�[38;5;9m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^�[0m
684:  �[0m   �[0m�[0m�[1m�[38;5;12m|�[0m
685:  �[0m   �[0m�[0m�[1m�[38;5;12m= �[0m�[0m�[1mhelp�[0m�[0m: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args�[0m
686:  �[0m�[1m�[38;5;14mhelp�[0m�[0m: change this to�[0m
687:  �[0m   �[0m�[0m�[1m�[38;5;12m|�[0m
688:  �[0m�[1m�[38;5;12m47�[0m�[0m �[0m�[0m�[38;5;9m- �[0m�[0m                eprintln!("[ServerWriter::Plain] Bytes: {:02x?}"�[0m�[0m�[38;5;9m, buf�[0m�[0m);�[0m
689:  �[0m�[1m�[38;5;12m47�[0m�[0m �[0m�[0m�[38;5;10m+ �[0m�[0m                eprintln!("[ServerWriter::Plain] Bytes: {�[0m�[0m�[38;5;10mbuf�[0m�[0m:02x?}");�[0m
690:  �[0m   �[0m�[0m�[1m�[38;5;12m|�[0m
691:  �[0m�[1m�[38;5;9merror�[0m�[0m�[1m: variables can be used directly in the `format!` string�[0m
692:  �[0m   �[0m�[0m�[1m�[38;5;12m--> �[0m�[0mcrates/core/src/server/writer.rs:127:21�[0m
693:  �[0m    �[0m�[0m�[1m�[38;5;12m|�[0m
694:  �[0m�[1m�[38;5;12m127�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m            let _ = writeln!(f, "[MULTIPLEX] Payload: {:02x?}", buf);�[0m
695:  �[0m    �[0m�[0m�[1m�[38;5;12m|�[0m�[0m                     �[0m�[0m�[1m�[38;5;9m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^�[0m
696:  �[0m    �[0m�[0m�[1m�[38;5;12m|�[0m
697:  �[0m    �[0m�[0m�[1m�[38;5;12m= �[0m�[0m�[1mhelp�[0m�[0m: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args�[0m
698:  �[0m�[1m�[38;5;14mhelp�[0m�[0m: change this to�[0m
699:  �[0m    �[0m�[0m�[1m�[38;5;12m|�[0m
700:  �[0m�[1m�[38;5;12m127�[0m�[0m �[0m�[0m�[38;5;9m- �[0m�[0m            let _ = writeln!(f, "[MULTIPLEX] Payload: {:02x?}"�[0m�[0m�[38;5;9m, buf�[0m�[0m);�[0m
701:  �[0m�[1m�[38;5;12m127�[0m�[0m �[0m�[0m�[38;5;10m+ �[0m�[0m            let _ = writeln!(f, "[MULTIPLEX] Payload: {�[0m�[0m�[38;5;10mbuf�[0m�[0m:02x?}");�[0m
702:  �[0m    �[0m�[0m�[1m�[38;5;12m|�[0m
703:  �[0m�[1m�[38;5;9merror[E0063]�[0m�[0m�[1m: missing field `compat_exchanged` in initializer of `server::handshake::HandshakeResult`�[0m
704:  �[0m   �[0m�[0m�[1m�[38;5;12m--> �[0m�[0mcrates/core/src/server/generator.rs:313:9�[0m
705:  �[0m    �[0m�[0m�[1m�[38;5;12m|�[0m
706:  �[0m�[1m�[38;5;12m313�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m        HandshakeResult {�[0m
707:  �[0m    �[0m�[0m�[1m�[38;5;12m|�[0m�[0m         �[0m�[0m�[1m�[38;5;9m^^^^^^^^^^^^^^^�[0m�[0m �[0m�[0m�[1m�[38;5;9mmissing `compat_exchanged`�[0m
708:  �[0m�[1m�[38;5;9merror[E0063]�[0m�[0m�[1m: missing field `compat_exchanged` in initializer of `server::handshake::HandshakeResult`�[0m
709:  �[0m   �[0m�[0m�[1m�[38;5;12m--> �[0m�[0mcrates/core/src/server/receiver.rs:134:9�[0m
710:  �[0m    �[0m�[0m�[1m�[38;5;12m|�[0m
711:  �[0m�[1m�[38;5;12m134�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m        HandshakeResult {�[0m
712:  �[0m    �[0m�[0m�[1m�[38;5;12m|�[0m�[0m         �[0m�[0m�[1m�[38;5;9m^^^^^^^^^^^^^^^�[0m�[0m �[0m�[0m�[1m�[38;5;9mmissing `compat_exchanged`�[0m
713:  �[1m�[31merror�[0m�[1m:�[0m could not compile `core` (lib) due to 14 previous errors
714:  �[0m�[1mFor more information about this error, try `rustc --explain E0063`.�[0m
715:  �[1m�[31merror�[0m�[1m:�[0m could not compile `core` (lib test) due to 5 previous errors
716:  ##[error]Process completed with exit code 101.
717:  Post job cleanup.

@oferchen
oferchen merged commit 8ee1513 into master Nov 30, 2025
@oferchen
oferchen deleted the remove-delegation-and-fallback-logic branch November 30, 2025 08:26
oferchen added a commit that referenced this pull request May 17, 2026
…lel deterministic delete (#2253, #2254) (#4259)

* feat(engine): DeletePlan, DeletePlanMap, DirTraversalCursor (#2253, #2254)

Adds the data-structure foundation for the parallel-deterministic-delete
pipeline described in docs/design/parallel-deterministic-delete.md
(PR #4257). Three new modules under crates/engine/src/delete/:

- plan.rs: DeletePlan (sorted, frozen per-directory work item),
  DeleteEntry, DeleteEntryKind (mirrors DeleteStats buckets), and a
  HardlinkCohortId newtype. sort_by_name() uses upstream's f_name_cmp
  (PR #4256) ascending then reverses, matching delete_in_dir's loop
  at generator.c:320.
- plan_map.rs: DeletePlanMap, the publish-once concurrent rendezvous
  between phase-1 workers and the phase-2 emitter. Backed by
  Mutex<HashMap> for now; bench-driven choice between Mutex,
  DashMap, and a sharded map is deferred to task DDP-B4 (see code
  comment).
- traversal.rs: DirTraversalCursor, yields directories in upstream's
  depth-first f_name_cmp-ascending order. Tree built from observed
  flist segments via observe_segment(); next_ready() returns the
  next directory whose parent has been emitted.

Pure data structures, no callers; phase-1 and phase-2 wiring lands in
later tasks (#2255-#2278). Unit tests cover plan ordering, concurrent
inserts and takes from 16 threads, out-of-order segment observation,
non-directory filtering, duplicate observations, and high-byte
basename ordering on Unix.

* fix(engine): avoid borrow-checker conflict in DirTraversalCursor::next_ready

Splits the frame inspection from the mutation so the mutable borrow of
the top frame is released before pushing a new frame or popping the
old one. Functionally equivalent.
oferchen added a commit that referenced this pull request May 17, 2026
#4262)

Phase 1 of the parallel-deterministic-delete pipeline: a pure function
that lists a destination directory, set-subtracts entries present in
the corresponding flist segment, and classifies surviving entries by
kind so the caller can wrap them in a DeletePlan, sort to upstream
emission order, and publish to the DeletePlanMap.

Mirrors upstream rsync 3.4.1 generator.c:272-347 (delete_in_dir)
basename-keyed set subtraction against the active flist via
flist_find_ignore_dirness. Symlinks classify by symlink_metadata so
they map to DeleteEntryKind::Symlink instead of the link target type.
Hardlink-cohort tagging is left to task DDP-D2; entries here always
carry hardlink_cohort: None.

Cross-platform: device/FIFO/socket classification gated to Unix via
FileTypeExt; on Windows non-dir, non-symlink entries collapse to
DeleteEntryKind::File matching upstream's fallback behaviour.
oferchen added a commit that referenced this pull request May 18, 2026
…lel deterministic delete (#2253, #2254) (#4259)

* feat(engine): DeletePlan, DeletePlanMap, DirTraversalCursor (#2253, #2254)

Adds the data-structure foundation for the parallel-deterministic-delete
pipeline described in docs/design/parallel-deterministic-delete.md
(PR #4257). Three new modules under crates/engine/src/delete/:

- plan.rs: DeletePlan (sorted, frozen per-directory work item),
  DeleteEntry, DeleteEntryKind (mirrors DeleteStats buckets), and a
  HardlinkCohortId newtype. sort_by_name() uses upstream's f_name_cmp
  (PR #4256) ascending then reverses, matching delete_in_dir's loop
  at generator.c:320.
- plan_map.rs: DeletePlanMap, the publish-once concurrent rendezvous
  between phase-1 workers and the phase-2 emitter. Backed by
  Mutex<HashMap> for now; bench-driven choice between Mutex,
  DashMap, and a sharded map is deferred to task DDP-B4 (see code
  comment).
- traversal.rs: DirTraversalCursor, yields directories in upstream's
  depth-first f_name_cmp-ascending order. Tree built from observed
  flist segments via observe_segment(); next_ready() returns the
  next directory whose parent has been emitted.

Pure data structures, no callers; phase-1 and phase-2 wiring lands in
later tasks (#2255-#2278). Unit tests cover plan ordering, concurrent
inserts and takes from 16 threads, out-of-order segment observation,
non-directory filtering, duplicate observations, and high-byte
basename ordering on Unix.

* fix(engine): avoid borrow-checker conflict in DirTraversalCursor::next_ready

Splits the frame inspection from the mutation so the mutable borrow of
the top frame is released before pushing a new frame or popping the
old one. Functionally equivalent.
oferchen added a commit that referenced this pull request May 18, 2026
#4262)

Phase 1 of the parallel-deterministic-delete pipeline: a pure function
that lists a destination directory, set-subtracts entries present in
the corresponding flist segment, and classifies surviving entries by
kind so the caller can wrap them in a DeletePlan, sort to upstream
emission order, and publish to the DeletePlanMap.

Mirrors upstream rsync 3.4.1 generator.c:272-347 (delete_in_dir)
basename-keyed set subtraction against the active flist via
flist_find_ignore_dirness. Symlinks classify by symlink_metadata so
they map to DeleteEntryKind::Symlink instead of the link target type.
Hardlink-cohort tagging is left to task DDP-D2; entries here always
carry hardlink_cohort: None.

Cross-platform: device/FIFO/socket classification gated to Unix via
FileTypeExt; on Windows non-dir, non-symlink entries collapse to
DeleteEntryKind::File matching upstream's fallback behaviour.
oferchen added a commit that referenced this pull request May 18, 2026
…lel deterministic delete (#2253, #2254) (#4259)

* feat(engine): DeletePlan, DeletePlanMap, DirTraversalCursor (#2253, #2254)

Adds the data-structure foundation for the parallel-deterministic-delete
pipeline described in docs/design/parallel-deterministic-delete.md
(PR #4257). Three new modules under crates/engine/src/delete/:

- plan.rs: DeletePlan (sorted, frozen per-directory work item),
  DeleteEntry, DeleteEntryKind (mirrors DeleteStats buckets), and a
  HardlinkCohortId newtype. sort_by_name() uses upstream's f_name_cmp
  (PR #4256) ascending then reverses, matching delete_in_dir's loop
  at generator.c:320.
- plan_map.rs: DeletePlanMap, the publish-once concurrent rendezvous
  between phase-1 workers and the phase-2 emitter. Backed by
  Mutex<HashMap> for now; bench-driven choice between Mutex,
  DashMap, and a sharded map is deferred to task DDP-B4 (see code
  comment).
- traversal.rs: DirTraversalCursor, yields directories in upstream's
  depth-first f_name_cmp-ascending order. Tree built from observed
  flist segments via observe_segment(); next_ready() returns the
  next directory whose parent has been emitted.

Pure data structures, no callers; phase-1 and phase-2 wiring lands in
later tasks (#2255-#2278). Unit tests cover plan ordering, concurrent
inserts and takes from 16 threads, out-of-order segment observation,
non-directory filtering, duplicate observations, and high-byte
basename ordering on Unix.

* fix(engine): avoid borrow-checker conflict in DirTraversalCursor::next_ready

Splits the frame inspection from the mutation so the mutable borrow of
the top frame is released before pushing a new frame or popping the
old one. Functionally equivalent.
oferchen added a commit that referenced this pull request May 18, 2026
#4262)

Phase 1 of the parallel-deterministic-delete pipeline: a pure function
that lists a destination directory, set-subtracts entries present in
the corresponding flist segment, and classifies surviving entries by
kind so the caller can wrap them in a DeletePlan, sort to upstream
emission order, and publish to the DeletePlanMap.

Mirrors upstream rsync 3.4.1 generator.c:272-347 (delete_in_dir)
basename-keyed set subtraction against the active flist via
flist_find_ignore_dirness. Symlinks classify by symlink_metadata so
they map to DeleteEntryKind::Symlink instead of the link target type.
Hardlink-cohort tagging is left to task DDP-D2; entries here always
carry hardlink_cohort: None.

Cross-platform: device/FIFO/socket classification gated to Unix via
FileTypeExt; on Windows non-dir, non-symlink entries collapse to
DeleteEntryKind::File matching upstream's fallback behaviour.
oferchen added a commit that referenced this pull request Aug 24, 2026
…lel deterministic delete (#2253, #2254) (#4259)

* feat(engine): DeletePlan, DeletePlanMap, DirTraversalCursor (#2253, #2254)

Adds the data-structure foundation for the parallel-deterministic-delete
pipeline described in docs/design/parallel-deterministic-delete.md
(PR #4257). Three new modules under crates/engine/src/delete/:

- plan.rs: DeletePlan (sorted, frozen per-directory work item),
  DeleteEntry, DeleteEntryKind (mirrors DeleteStats buckets), and a
  HardlinkCohortId newtype. sort_by_name() uses upstream's f_name_cmp
  (PR #4256) ascending then reverses, matching delete_in_dir's loop
  at generator.c:320.
- plan_map.rs: DeletePlanMap, the publish-once concurrent rendezvous
  between phase-1 workers and the phase-2 emitter. Backed by
  Mutex<HashMap> for now; bench-driven choice between Mutex,
  DashMap, and a sharded map is deferred to task DDP-B4 (see code
  comment).
- traversal.rs: DirTraversalCursor, yields directories in upstream's
  depth-first f_name_cmp-ascending order. Tree built from observed
  flist segments via observe_segment(); next_ready() returns the
  next directory whose parent has been emitted.

Pure data structures, no callers; phase-1 and phase-2 wiring lands in
later tasks (#2255-#2278). Unit tests cover plan ordering, concurrent
inserts and takes from 16 threads, out-of-order segment observation,
non-directory filtering, duplicate observations, and high-byte
basename ordering on Unix.

* fix(engine): avoid borrow-checker conflict in DirTraversalCursor::next_ready

Splits the frame inspection from the mutation so the mutable borrow of
the top frame is released before pushing a new frame or popping the
old one. Functionally equivalent.
oferchen added a commit that referenced this pull request Aug 24, 2026
#4262)

Phase 1 of the parallel-deterministic-delete pipeline: a pure function
that lists a destination directory, set-subtracts entries present in
the corresponding flist segment, and classifies surviving entries by
kind so the caller can wrap them in a DeletePlan, sort to upstream
emission order, and publish to the DeletePlanMap.

Mirrors upstream rsync 3.4.1 generator.c:272-347 (delete_in_dir)
basename-keyed set subtraction against the active flist via
flist_find_ignore_dirness. Symlinks classify by symlink_metadata so
they map to DeleteEntryKind::Symlink instead of the link target type.
Hardlink-cohort tagging is left to task DDP-D2; entries here always
carry hardlink_cohort: None.

Cross-platform: device/FIFO/socket classification gated to Unix via
FileTypeExt; on Windows non-dir, non-symlink entries collapse to
DeleteEntryKind::File matching upstream's fallback behaviour.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant