Skip to content

Stop delegating --server to fallback binary - #2254

Merged
oferchen merged 2 commits into
masterfrom
remove-delegation-to-system-rsync
Nov 30, 2025
Merged

oferchen merged 2 commits into
masterfrom
remove-delegation-to-system-rsync

Conversation

@oferchen

@oferchen oferchen commented Nov 30, 2025 •

Copy link
Copy Markdown
Owner

User description

Summary

  • stop spawning upstream rsync when --server is requested and surface a branded diagnostic instead
  • document the current diagnostic-only behaviour for --server in the CLI module overview
  • add regression tests ensuring the fallback binary is never executed and the server trailer is present

Testing

  • cargo test -p cli --tests server

[Codex Task](


PR Type

Enhancement


Description

  • Remove fallback binary delegation for --server mode

  • Surface branded diagnostic indicating native server unavailability

  • Eliminate complex process spawning and stream forwarding logic

  • Update documentation and tests to reflect diagnostic-only behavior


Diagram Walkthrough

flowchart LR
  A["--server mode invoked"] --> B["Check native implementation"]
  B --> C["Emit branded diagnostic"]
  C --> D["Return exit code 1"]
  E["Previous: Spawn fallback rsync"] -.->|removed| F["Stream forwarding logic"]
Loading

File Walkthrough

Relevant files
Documentation
mod.rs
Update documentation for server mode behavior                       

crates/cli/src/frontend/mod.rs

  • Updated module documentation to reflect diagnostic-only behavior for
    --server
  • Removed references to fallback binary delegation and OC_RSYNC_FALLBACK
    environment variable
  • Clarified that --server sessions now surface branded diagnostics until
    native implementation is complete
+6/-8     
Enhancement
server.rs
Remove fallback binary delegation logic                                   

crates/cli/src/frontend/server.rs

  • Removed all fallback binary spawning and process management code
  • Eliminated stream forwarding logic for stdout/stderr from fallback
    process
  • Removed imports for process handling, threading, and fallback
    utilities
  • Simplified run_server_mode to emit diagnostic and return exit code 1
  • Renamed error function from write_server_fallback_error to
    write_server_unavailable_error
  • Updated error message to indicate native server mode is unavailable
+12/-213
Tests
server.rs
Update tests for diagnostic-only server mode                         

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

  • Replaced test verifying fallback binary invocation with test checking
    diagnostic output
  • Added test ensuring fallback binary is never executed when --server is
    requested
  • Removed tests for fallback output forwarding, disabled fallback
    override, missing binary, and recursive fallback scenarios
  • Consolidated test coverage to verify diagnostic message and server
    trailer presence
+39/-133

@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 logs: The new server diagnostic path returns an error without emitting any structured audit log
of the attempted critical action (invocation of --server), making it unclear if such
events are traceable.

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,
        "native server mode is not yet available; this build does not delegate to an external rsync binary"
    );
    message = message.with_role(Role::Server);

    if super::write_message(&message, &mut sink).is_err() {

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

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

Copy link
Copy Markdown

PR Code Suggestions ✨

Explore these optional code suggestions:

CategorySuggestion                                                                                                                                    Impact
General
✅ Remove unnecessary flush and unused parameter
Suggestion Impact:The commit refactored run_server_mode: it introduced a wrapper run_server_mode that delegates to run_server_mode_embedded. In the Windows daemon function, parameters were renamed to _args and _stdout and the stdout.flush() was removed. For server mode, the top-level run_server_mode no longer flushes directly; the flushing remains inside the embedded function for specific paths, but the suggested removal of an unnecessary flush in the outer function and marking unused parameters with underscores was partially applied.

code diff:

 #[cfg(windows)]
 pub(crate) fn run_daemon_mode<Out, Err>(
-    args: Vec<OsString>,
-    stdout: &mut Out,
+    _args: Vec<OsString>,
+    _stdout: &mut Out,
     stderr: &mut Err,
 ) -> i32
 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_daemon_unavailable_error(stderr, program_brand);
+    let brand = super::detect_program_name(None).brand();
+    write_daemon_unavailable_error(stderr, brand);
     1

In run_server_mode, remove the unnecessary stdout.flush() call and mark the
stdout parameter as unused by prefixing it with an underscore.

crates/cli/src/frontend/server.rs [88-103]

 pub(crate) fn run_server_mode<Out, Err>(
     args: &[OsString],
-    stdout: &mut Out,
+    _stdout: &mut Out,
     stderr: &mut Err,
 ) -> i32
 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
 }

[Suggestion processed]

Suggestion importance[1-10]: 4

__

Why: The suggestion correctly identifies that stdout is unused after the refactoring and proposes removing the unnecessary flush() call and renaming the parameter, which is a valid code quality improvement.

Low
  • More

@oferchen
oferchen merged commit 1aee64e into master Nov 30, 2025
@oferchen
oferchen deleted the remove-delegation-to-system-rsync branch November 30, 2025 08:08
@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 warnings are treated as errors (RUSTFLAGS: -D
warnings) and several code issues were flagged by the compiler and Clippy:
- Unused imports:
-
std::os::unix::fs::MetadataExt in crates/engine/src/local_copy/tests/execute_sparse.rs at lines
466:9 and 526:9.
- std::io::Write in crates/core/src/server/writer.rs at lines 113:17 and 54:25.
-
Missing trait in scope causing method resolution errors:
- Multiple error[E0599]: no method named
read_exact found for struct std::fs::File in crates/engine/src/local_copy/tests/execute_sparse.rs at
lines 434:15, 441:15, 448:15, 454:15, 654:15, 660:15, 666:15. The help indicates use std::io::Read;
should be imported (suggested insertion at crates/engine/src/local_copy/tests/mod.rs:1:1).
- Clippy
uninlined_format_args violations (treated as errors) requiring new format string style:
-
crates/core/src/server/setup.rs: lines 53–56, 62–65, 69–72, 134, 139–142, 146 with suggested changes
to inline variables in the format string.
- crates/core/src/server/writer.rs: lines 47 and 127
with suggested changes to inline buf in the format string.
- Other warnings promoted to errors:
-
unused_mut at crates/core/src/server/mod.rs:131:9 (let mut reader not needing mut).
- dead_code:
variant Multiplex in crates/core/src/server/reader.rs:18:5, method activate_multiplex at 28:12, and
associated function MultiplexReader::new at 65:8 are never used.
- Struct initialization errors:
-
error[E0063]: missing field compat_exchanged in initializer of server::handshake::HandshakeResult
at:
- crates/core/src/server/generator.rs:313:9
- crates/core/src/server/receiver.rs:134:9

Due to these errors with -D warnings, cargo clippy/build exited with code 101.

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
...

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

413:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
414:  �[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
415:  �[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
416:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
417:  �[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
418:  �[0m�[1m�[38;5;14mhelp�[0m�[0m: there is a method `read_at` with a similar name, but with different arguments�[0m
419:  �[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
420:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
421:  �[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
422:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m�[0m     �[0m�[0m�[1m�[38;5;14m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^�[0m
423:  �[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
424:  �[0m    �[0m�[0m�[1m�[38;5;12m--> �[0m�[0m �[0m�[0mcrates/engine/src/local_copy/tests/mod.rs:1:1�[0m
425:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
426:  �[0m�[1m�[38;5;12m1�[0m�[0m    �[0m�[0m�[38;5;10m+ use std::io::Read;�[0m
427:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
428:  �[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
429:  �[0m    �[0m�[0m�[1m�[38;5;12m--> �[0m�[0mcrates/engine/src/local_copy/tests/execute_sparse.rs:441:15�[0m
...

435:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
436:  �[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
437:  �[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
438:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
439:  �[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
440:  �[0m�[1m�[38;5;14mhelp�[0m�[0m: there is a method `read_at` with a similar name, but with different arguments�[0m
441:  �[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
442:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
443:  �[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
444:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m�[0m     �[0m�[0m�[1m�[38;5;14m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^�[0m
445:  �[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
446:  �[0m    �[0m�[0m�[1m�[38;5;12m--> �[0m�[0m �[0m�[0mcrates/engine/src/local_copy/tests/mod.rs:1:1�[0m
447:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
448:  �[0m�[1m�[38;5;12m1�[0m�[0m    �[0m�[0m�[38;5;10m+ use std::io::Read;�[0m
449:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
450:  �[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
451:  �[0m    �[0m�[0m�[1m�[38;5;12m--> �[0m�[0mcrates/engine/src/local_copy/tests/execute_sparse.rs:448:15�[0m
...

457:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
458:  �[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
459:  �[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
460:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
461:  �[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
462:  �[0m�[1m�[38;5;14mhelp�[0m�[0m: there is a method `read_at` with a similar name, but with different arguments�[0m
463:  �[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
464:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
465:  �[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
466:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m�[0m     �[0m�[0m�[1m�[38;5;14m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^�[0m
467:  �[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
468:  �[0m    �[0m�[0m�[1m�[38;5;12m--> �[0m�[0m �[0m�[0mcrates/engine/src/local_copy/tests/mod.rs:1:1�[0m
469:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
470:  �[0m�[1m�[38;5;12m1�[0m�[0m    �[0m�[0m�[38;5;10m+ use std::io::Read;�[0m
471:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
472:  �[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
473:  �[0m    �[0m�[0m�[1m�[38;5;12m--> �[0m�[0mcrates/engine/src/local_copy/tests/execute_sparse.rs:454:15�[0m
...

479:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
480:  �[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
481:  �[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
482:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
483:  �[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
484:  �[0m�[1m�[38;5;14mhelp�[0m�[0m: there is a method `read_at` with a similar name, but with different arguments�[0m
485:  �[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
486:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
487:  �[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
488:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m�[0m     �[0m�[0m�[1m�[38;5;14m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^�[0m
489:  �[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
490:  �[0m    �[0m�[0m�[1m�[38;5;12m--> �[0m�[0m �[0m�[0mcrates/engine/src/local_copy/tests/mod.rs:1:1�[0m
491:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
492:  �[0m�[1m�[38;5;12m1�[0m�[0m    �[0m�[0m�[38;5;10m+ use std::io::Read;�[0m
493:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
494:  �[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
495:  �[0m    �[0m�[0m�[1m�[38;5;12m--> �[0m�[0mcrates/engine/src/local_copy/tests/execute_sparse.rs:654:15�[0m
...

501:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
502:  �[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
503:  �[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
504:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
505:  �[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
506:  �[0m�[1m�[38;5;14mhelp�[0m�[0m: there is a method `read_at` with a similar name, but with different arguments�[0m
507:  �[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
508:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
509:  �[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
510:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m�[0m     �[0m�[0m�[1m�[38;5;14m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^�[0m
511:  �[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
512:  �[0m    �[0m�[0m�[1m�[38;5;12m--> �[0m�[0m �[0m�[0mcrates/engine/src/local_copy/tests/mod.rs:1:1�[0m
513:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
514:  �[0m�[1m�[38;5;12m1�[0m�[0m    �[0m�[0m�[38;5;10m+ use std::io::Read;�[0m
515:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
516:  �[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
517:  �[0m    �[0m�[0m�[1m�[38;5;12m--> �[0m�[0mcrates/engine/src/local_copy/tests/execute_sparse.rs:660:15�[0m
...

523:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
524:  �[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
525:  �[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
526:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
527:  �[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
528:  �[0m�[1m�[38;5;14mhelp�[0m�[0m: there is a method `read_at` with a similar name, but with different arguments�[0m
529:  �[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
530:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
531:  �[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
532:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m�[0m     �[0m�[0m�[1m�[38;5;14m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^�[0m
533:  �[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
534:  �[0m    �[0m�[0m�[1m�[38;5;12m--> �[0m�[0m �[0m�[0mcrates/engine/src/local_copy/tests/mod.rs:1:1�[0m
535:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
536:  �[0m�[1m�[38;5;12m1�[0m�[0m    �[0m�[0m�[38;5;10m+ use std::io::Read;�[0m
537:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
538:  �[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
539:  �[0m    �[0m�[0m�[1m�[38;5;12m--> �[0m�[0mcrates/engine/src/local_copy/tests/execute_sparse.rs:666:15�[0m
...

545:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
546:  �[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
547:  �[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
548:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
549:  �[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
550:  �[0m�[1m�[38;5;14mhelp�[0m�[0m: there is a method `read_at` with a similar name, but with different arguments�[0m
551:  �[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
552:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
553:  �[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
554:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m�[0m     �[0m�[0m�[1m�[38;5;14m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^�[0m
555:  �[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
556:  �[0m    �[0m�[0m�[1m�[38;5;12m--> �[0m�[0m �[0m�[0mcrates/engine/src/local_copy/tests/mod.rs:1:1�[0m
557:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
558:  �[0m�[1m�[38;5;12m1�[0m�[0m    �[0m�[0m�[38;5;10m+ use std::io::Read;�[0m
559:  �[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
560:  �[0m�[1mFor more information about this error, try `rustc --explain E0599`.�[0m
561:  �[1m�[31merror�[0m�[1m:�[0m could not compile `engine` (lib test) due to 9 previous errors
562:  �[1m�[33mwarning�[0m�[1m:�[0m build failed, waiting for other jobs to finish...
563:  �[0m�[1m�[38;5;9merror�[0m�[0m�[1m: unused import: `std::io::Write`�[0m
564:  �[0m   �[0m�[0m�[1m�[38;5;12m--> �[0m�[0mcrates/core/src/server/writer.rs:113:17�[0m
565:  �[0m    �[0m�[0m�[1m�[38;5;12m|�[0m
566:  �[0m�[1m�[38;5;12m113�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m            use std::io::Write as _;�[0m
567:  �[0m    �[0m�[0m�[1m�[38;5;12m|�[0m�[0m                 �[0m�[0m�[1m�[38;5;9m^^^^^^^^^^^^^^�[0m
568:  �[0m    �[0m�[0m�[1m�[38;5;12m|�[0m
569:  �[0m    �[0m�[0m�[1m�[38;5;12m= �[0m�[0m�[1mnote�[0m�[0m: `-D unused-imports` implied by `-D warnings`�[0m
570:  �[0m    �[0m�[0m�[1m�[38;5;12m= �[0m�[0m�[1mhelp�[0m�[0m: to override `-D warnings` add `#[allow(unused_imports)]`�[0m
571:  �[0m�[1m�[38;5;9merror�[0m�[0m�[1m: unused import: `std::io::Write`�[0m
572:  �[0m  �[0m�[0m�[1m�[38;5;12m--> �[0m�[0mcrates/core/src/server/writer.rs:54:25�[0m
573:  �[0m   �[0m�[0m�[1m�[38;5;12m|�[0m
574:  �[0m�[1m�[38;5;12m54�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m                    use std::io::Write as _;�[0m
575:  �[0m   �[0m�[0m�[1m�[38;5;12m|�[0m�[0m                         �[0m�[0m�[1m�[38;5;9m^^^^^^^^^^^^^^�[0m
576:  �[0m�[1m�[38;5;9merror�[0m�[0m�[1m: variable does not need to be mutable�[0m
577:  �[0m   �[0m�[0m�[1m�[38;5;12m--> �[0m�[0mcrates/core/src/server/mod.rs:131:9�[0m
578:  �[0m    �[0m�[0m�[1m�[38;5;12m|�[0m
579:  �[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
580:  �[0m    �[0m�[0m�[1m�[38;5;12m|�[0m�[0m         �[0m�[0m�[1m�[38;5;12m----�[0m�[0m�[1m�[38;5;9m^^^^^^�[0m
581:  �[0m    �[0m�[0m�[1m�[38;5;12m|�[0m�[0m         �[0m�[0m�[1m�[38;5;12m|�[0m
582:  �[0m    �[0m�[0m�[1m�[38;5;12m|�[0m�[0m         �[0m�[0m�[1m�[38;5;12mhelp: remove this `mut`�[0m
583:  �[0m    �[0m�[0m�[1m�[38;5;12m|�[0m
584:  �[0m    �[0m�[0m�[1m�[38;5;12m= �[0m�[0m�[1mnote�[0m�[0m: `-D unused-mut` implied by `-D warnings`�[0m
585:  �[0m    �[0m�[0m�[1m�[38;5;12m= �[0m�[0m�[1mhelp�[0m�[0m: to override `-D warnings` add `#[allow(unused_mut)]`�[0m
586:  �[0m�[1m�[38;5;9merror�[0m�[0m�[1m: variant `Multiplex` is never constructed�[0m
587:  �[0m  �[0m�[0m�[1m�[38;5;12m--> �[0m�[0mcrates/core/src/server/reader.rs:18:5�[0m
588:  �[0m   �[0m�[0m�[1m�[38;5;12m|�[0m
589:  �[0m�[1m�[38;5;12m14�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0mpub enum ServerReader<R: Read> {�[0m
590:  �[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
591:  �[0m�[1m�[38;5;12m...�[0m
592:  �[0m�[1m�[38;5;12m18�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m    Multiplex(MultiplexReader<R>),�[0m
593:  �[0m   �[0m�[0m�[1m�[38;5;12m|�[0m�[0m     �[0m�[0m�[1m�[38;5;9m^^^^^^^^^�[0m
594:  �[0m   �[0m�[0m�[1m�[38;5;12m|�[0m
595:  �[0m   �[0m�[0m�[1m�[38;5;12m= �[0m�[0m�[1mnote�[0m�[0m: `-D dead-code` implied by `-D warnings`�[0m
596:  �[0m   �[0m�[0m�[1m�[38;5;12m= �[0m�[0m�[1mhelp�[0m�[0m: to override `-D warnings` add `#[allow(dead_code)]`�[0m
597:  �[0m�[1m�[38;5;9merror�[0m�[0m�[1m: method `activate_multiplex` is never used�[0m
598:  �[0m  �[0m�[0m�[1m�[38;5;12m--> �[0m�[0mcrates/core/src/server/reader.rs:28:12�[0m
599:  �[0m   �[0m�[0m�[1m�[38;5;12m|�[0m
600:  �[0m�[1m�[38;5;12m21�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0mimpl<R: Read> ServerReader<R> {�[0m
601:  �[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
602:  �[0m�[1m�[38;5;12m...�[0m
603:  �[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
604:  �[0m   �[0m�[0m�[1m�[38;5;12m|�[0m�[0m            �[0m�[0m�[1m�[38;5;9m^^^^^^^^^^^^^^^^^^�[0m
605:  �[0m�[1m�[38;5;9merror�[0m�[0m�[1m: associated function `new` is never used�[0m
606:  �[0m  �[0m�[0m�[1m�[38;5;12m--> �[0m�[0mcrates/core/src/server/reader.rs:65:8�[0m
607:  �[0m   �[0m�[0m�[1m�[38;5;12m|�[0m
608:  �[0m�[1m�[38;5;12m64�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0mimpl<R: Read> MultiplexReader<R> {�[0m
609:  �[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
610:  �[0m�[1m�[38;5;12m65�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m    fn new(inner: R) -> Self {�[0m
611:  �[0m   �[0m�[0m�[1m�[38;5;12m|�[0m�[0m        �[0m�[0m�[1m�[38;5;9m^^^�[0m
612:  �[0m�[1m�[38;5;9merror�[0m�[0m�[1m: variables can be used directly in the `format!` string�[0m
613:  �[0m  �[0m�[0m�[1m�[38;5;12m--> �[0m�[0mcrates/core/src/server/setup.rs:53:5�[0m
614:  �[0m   �[0m�[0m�[1m�[38;5;12m|�[0m
615:  �[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
616:  �[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
617:  �[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
618:  �[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
619:  �[0m   �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m�[1m�[38;5;9m|_____^�[0m
620:  �[0m   �[0m�[0m�[1m�[38;5;12m|�[0m
621:  �[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
622:  �[0m   �[0m�[0m�[1m�[38;5;12m= �[0m�[0m�[1mnote�[0m�[0m: `-D clippy::uninlined-format-args` implied by `-D warnings`�[0m
623:  �[0m   �[0m�[0m�[1m�[38;5;12m= �[0m�[0m�[1mhelp�[0m�[0m: to override `-D warnings` add `#[allow(clippy::uninlined_format_args)]`�[0m
624:  �[0m�[1m�[38;5;9merror�[0m�[0m�[1m: variables can be used directly in the `format!` string�[0m
625:  �[0m  �[0m�[0m�[1m�[38;5;12m--> �[0m�[0mcrates/core/src/server/setup.rs:62:5�[0m
626:  �[0m   �[0m�[0m�[1m�[38;5;12m|�[0m
627:  �[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
628:  �[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
629:  �[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
630:  �[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
631:  �[0m   �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m�[1m�[38;5;9m|_____^�[0m
632:  �[0m   �[0m�[0m�[1m�[38;5;12m|�[0m
633:  �[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
634:  �[0m�[1m�[38;5;9merror�[0m�[0m�[1m: variables can be used directly in the `format!` string�[0m
635:  �[0m  �[0m�[0m�[1m�[38;5;12m--> �[0m�[0mcrates/core/src/server/setup.rs:69:5�[0m
636:  �[0m   �[0m�[0m�[1m�[38;5;12m|�[0m
637:  �[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
638:  �[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
639:  �[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
640:  �[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
641:  �[0m   �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m�[1m�[38;5;9m|_____^�[0m
642:  �[0m   �[0m�[0m�[1m�[38;5;12m|�[0m
643:  �[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
644:  �[0m�[1m�[38;5;9merror�[0m�[0m�[1m: variables can be used directly in the `format!` string�[0m
645:  �[0m   �[0m�[0m�[1m�[38;5;12m--> �[0m�[0mcrates/core/src/server/setup.rs:134:9�[0m
646:  �[0m    �[0m�[0m�[1m�[38;5;12m|�[0m
647:  �[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
648:  �[0m    �[0m�[0m�[1m�[38;5;12m|�[0m�[0m         �[0m�[0m�[1m�[38;5;9m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^�[0m
649:  �[0m    �[0m�[0m�[1m�[38;5;12m|�[0m
650:  �[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
651:  �[0m�[1m�[38;5;14mhelp�[0m�[0m: change this to�[0m
652:  �[0m    �[0m�[0m�[1m�[38;5;12m|�[0m
653:  �[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
654:  �[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
655:  �[0m    �[0m�[0m�[1m�[38;5;12m|�[0m
656:  �[0m�[1m�[38;5;9merror�[0m�[0m�[1m: variables can be used directly in the `format!` string�[0m
657:  �[0m   �[0m�[0m�[1m�[38;5;12m--> �[0m�[0mcrates/core/src/server/setup.rs:139:9�[0m
658:  �[0m    �[0m�[0m�[1m�[38;5;12m|�[0m
659:  �[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
660:  �[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
661:  �[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
662:  �[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
663:  �[0m    �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m�[1m�[38;5;9m|_________^�[0m
664:  �[0m    �[0m�[0m�[1m�[38;5;12m|�[0m
665:  �[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
666:  �[0m�[1m�[38;5;9merror�[0m�[0m�[1m: variables can be used directly in the `format!` string�[0m
667:  �[0m   �[0m�[0m�[1m�[38;5;12m--> �[0m�[0mcrates/core/src/server/setup.rs:146:9�[0m
668:  �[0m    �[0m�[0m�[1m�[38;5;12m|�[0m
669:  �[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
670:  �[0m    �[0m�[0m�[1m�[38;5;12m|�[0m�[0m         �[0m�[0m�[1m�[38;5;9m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^�[0m
671:  �[0m    �[0m�[0m�[1m�[38;5;12m|�[0m
672:  �[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
673:  �[0m�[1m�[38;5;14mhelp�[0m�[0m: change this to�[0m
674:  �[0m    �[0m�[0m�[1m�[38;5;12m|�[0m
675:  �[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
676:  �[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
677:  �[0m    �[0m�[0m�[1m�[38;5;12m|�[0m
678:  �[0m�[1m�[38;5;9merror�[0m�[0m�[1m: variables can be used directly in the `format!` string�[0m
679:  �[0m  �[0m�[0m�[1m�[38;5;12m--> �[0m�[0mcrates/core/src/server/writer.rs:47:17�[0m
680:  �[0m   �[0m�[0m�[1m�[38;5;12m|�[0m
681:  �[0m�[1m�[38;5;12m47�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m                eprintln!("[ServerWriter::Plain] Bytes: {:02x?}", buf);�[0m
682:  �[0m   �[0m�[0m�[1m�[38;5;12m|�[0m�[0m                 �[0m�[0m�[1m�[38;5;9m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^�[0m
683:  �[0m   �[0m�[0m�[1m�[38;5;12m|�[0m
684:  �[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
685:  �[0m�[1m�[38;5;14mhelp�[0m�[0m: change this to�[0m
686:  �[0m   �[0m�[0m�[1m�[38;5;12m|�[0m
687:  �[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
688:  �[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
689:  �[0m   �[0m�[0m�[1m�[38;5;12m|�[0m
690:  �[0m�[1m�[38;5;9merror�[0m�[0m�[1m: variables can be used directly in the `format!` string�[0m
691:  �[0m   �[0m�[0m�[1m�[38;5;12m--> �[0m�[0mcrates/core/src/server/writer.rs:127:21�[0m
692:  �[0m    �[0m�[0m�[1m�[38;5;12m|�[0m
693:  �[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
694:  �[0m    �[0m�[0m�[1m�[38;5;12m|�[0m�[0m                     �[0m�[0m�[1m�[38;5;9m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^�[0m
695:  �[0m    �[0m�[0m�[1m�[38;5;12m|�[0m
696:  �[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
697:  �[0m�[1m�[38;5;14mhelp�[0m�[0m: change this to�[0m
698:  �[0m    �[0m�[0m�[1m�[38;5;12m|�[0m
699:  �[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
700:  �[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
701:  �[0m    �[0m�[0m�[1m�[38;5;12m|�[0m
702:  �[1m�[31merror�[0m�[1m:�[0m could not compile `core` (lib) due to 14 previous errors
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:  �[0m�[1mFor more information about this error, try `rustc --explain E0063`.�[0m
714:  �[1m�[31merror�[0m�[1m:�[0m could not compile `core` (lib test) due to 5 previous errors
715:  ##[error]Process completed with exit code 101.
716:  Post job cleanup.

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
#2259)

Scaffolds the single-threaded emitter half of the parallel-deterministic
delete pipeline (design: parallel-deterministic-delete.md). Lands the
DeleteFs trait so the dispatch table per upstream entry kind (delete.c
delete_item:144-176) is mockable in tests, a RealDeleteFs production
impl backed by std::fs, a RecordingDeleteFs test fake that captures the
syscall sequence, and the DeleteEmitter::emit_all drain loop that walks
DirTraversalCursor in upstream traversal order and increments
DeleteStats per planned entry.

The DeletePlan, DeletePlanMap, and DirTraversalCursor types are
declared as in-file placeholders (matching the names DDP-A3 #2253 and
DDP-A4 #2254 will produce) so the scaffold is independently mergeable;
the type substitution at merge is mechanical. Syscall hardening
(DDP-C2 #2260) and upstream error policy (DDP-C3 #2261) come next.

Tests cover the empty-map base case, the full File/Dir/Symlink/
Device/Special dispatch matrix, multi-directory cursor-order traversal
with within-directory plan order, and the cursor-outpaces-plans gap
where emit_all parks and resumes on a later call.
oferchen added a commit that referenced this pull request May 17, 2026
#2259) (#4260)

Scaffolds the single-threaded emitter half of the parallel-deterministic
delete pipeline (design: parallel-deterministic-delete.md). Lands the
DeleteFs trait so the dispatch table per upstream entry kind (delete.c
delete_item:144-176) is mockable in tests, a RealDeleteFs production
impl backed by std::fs, a RecordingDeleteFs test fake that captures the
syscall sequence, and the DeleteEmitter::emit_all drain loop that walks
DirTraversalCursor in upstream traversal order and increments
DeleteStats per planned entry.

The DeletePlan, DeletePlanMap, and DirTraversalCursor types are
declared as in-file placeholders (matching the names DDP-A3 #2253 and
DDP-A4 #2254 will produce) so the scaffold is independently mergeable;
the type substitution at merge is mechanical. Syscall hardening
(DDP-C2 #2260) and upstream error policy (DDP-C3 #2261) come next.

Tests cover the empty-map base case, the full File/Dir/Symlink/
Device/Special dispatch matrix, multi-directory cursor-order traversal
with within-directory plan order, and the cursor-outpaces-plans gap
where emit_all parks and resumes on a later call.
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
#2259) (#4260)

Scaffolds the single-threaded emitter half of the parallel-deterministic
delete pipeline (design: parallel-deterministic-delete.md). Lands the
DeleteFs trait so the dispatch table per upstream entry kind (delete.c
delete_item:144-176) is mockable in tests, a RealDeleteFs production
impl backed by std::fs, a RecordingDeleteFs test fake that captures the
syscall sequence, and the DeleteEmitter::emit_all drain loop that walks
DirTraversalCursor in upstream traversal order and increments
DeleteStats per planned entry.

The DeletePlan, DeletePlanMap, and DirTraversalCursor types are
declared as in-file placeholders (matching the names DDP-A3 #2253 and
DDP-A4 #2254 will produce) so the scaffold is independently mergeable;
the type substitution at merge is mechanical. Syscall hardening
(DDP-C2 #2260) and upstream error policy (DDP-C3 #2261) come next.

Tests cover the empty-map base case, the full File/Dir/Symlink/
Device/Special dispatch matrix, multi-directory cursor-order traversal
with within-directory plan order, and the cursor-outpaces-plans gap
where emit_all parks and resumes on a later call.
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
#2259) (#4260)

Scaffolds the single-threaded emitter half of the parallel-deterministic
delete pipeline (design: parallel-deterministic-delete.md). Lands the
DeleteFs trait so the dispatch table per upstream entry kind (delete.c
delete_item:144-176) is mockable in tests, a RealDeleteFs production
impl backed by std::fs, a RecordingDeleteFs test fake that captures the
syscall sequence, and the DeleteEmitter::emit_all drain loop that walks
DirTraversalCursor in upstream traversal order and increments
DeleteStats per planned entry.

The DeletePlan, DeletePlanMap, and DirTraversalCursor types are
declared as in-file placeholders (matching the names DDP-A3 #2253 and
DDP-A4 #2254 will produce) so the scaffold is independently mergeable;
the type substitution at merge is mechanical. Syscall hardening
(DDP-C2 #2260) and upstream error policy (DDP-C3 #2261) come next.

Tests cover the empty-map base case, the full File/Dir/Symlink/
Device/Special dispatch matrix, multi-directory cursor-order traversal
with within-directory plan order, and the cursor-outpaces-plans gap
where emit_all parks and resumes on a later call.
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
#2259) (#4260)

Scaffolds the single-threaded emitter half of the parallel-deterministic
delete pipeline (design: parallel-deterministic-delete.md). Lands the
DeleteFs trait so the dispatch table per upstream entry kind (delete.c
delete_item:144-176) is mockable in tests, a RealDeleteFs production
impl backed by std::fs, a RecordingDeleteFs test fake that captures the
syscall sequence, and the DeleteEmitter::emit_all drain loop that walks
DirTraversalCursor in upstream traversal order and increments
DeleteStats per planned entry.

The DeletePlan, DeletePlanMap, and DirTraversalCursor types are
declared as in-file placeholders (matching the names DDP-A3 #2253 and
DDP-A4 #2254 will produce) so the scaffold is independently mergeable;
the type substitution at merge is mechanical. Syscall hardening
(DDP-C2 #2260) and upstream error policy (DDP-C3 #2261) come next.

Tests cover the empty-map base case, the full File/Dir/Symlink/
Device/Special dispatch matrix, multi-directory cursor-order traversal
with within-directory plan order, and the cursor-outpaces-plans gap
where emit_all parks and resumes on a later call.
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