Skip to content

Add branding checks to CLI version banners - #2247

Merged
oferchen merged 1 commit into
masterfrom
achieve-behavioural-parity-with-rsync-3.4.1
Nov 26, 2025
Merged

oferchen merged 1 commit into
masterfrom
achieve-behavioural-parity-with-rsync-3.4.1

Conversation

@oferchen

@oferchen oferchen commented Nov 26, 2025 •

Copy link
Copy Markdown
Owner

Summary

  • add integration coverage for client and daemon --version output across the branded and legacy binaries
  • assert version banners include negotiated protocol, source URL, and copyright notice

Testing

  • cargo test --all-features --workspace

[Codex Task](

@oferchen
oferchen merged commit ea7ad98 into master Nov 26, 2025
@oferchen
oferchen deleted the achieve-behavioural-parity-with-rsync-3.4.1 branch November 26, 2025 13:02
oferchen added a commit that referenced this pull request May 16, 2026
…2247) (#4158)

* fix(engine): harden reorder spill against ENOSPC and temp-dir vanish

Previously `SpillableReorderBuffer` panicked on every disk failure path:
ENOSPC during the spill write, a missing spill file at reload time, and
short-write fallouts all translated heavy-transfer faults into process
crashes that downstream consumers could neither catch nor map to an
rsync exit code.

This change introduces a typed `SpillError` (capacity vs I/O) and
threads `Result` through `insert`, `force_insert`, `next_in_order`, and
`drain_ready`. Failed spill writes now return the I/O error and re-insert
the offending item so callers can shut down cleanly with exit 11.

The implementation also gains an opt-in `with_spill_dir` constructor.
When the explicit directory disappears mid-transfer (operator cleanup,
tmpfs eviction, container restart), the buffer detects the `NotFound`
error, performs a single `create_dir_all` recovery, and retries the
write once before surfacing the failure.

New tests cover:
- ENOSPC injected through the codec, asserting `SpillError::Io` with
  `ErrorKind::StorageFull` and `is_out_of_space()` true.
- Partial-write via a `OneByteWriter` confirming the std `write_all`
  contract surfaces `WriteZero` rather than silently dropping bytes.
- Removing the spill directory mid-test, then asserting the next spill
  recreates it once (`dir_recreate_events` increments, dir exists).
- `create_dir_all` failure when the parent is a regular file - error
  surfaces without panicking.
- A round-trip on the directory-backed flavour to confirm the happy
  path stays byte-for-byte equivalent to the spooled default.

Success-path semantics are unchanged. All pre-existing tests adapt
trivially to the new `Result`-returning signatures.

* fix(engine): refuse silent data loss on temp-dir vanish after spills

Recovery via `create_dir_all` is only safe when nothing has been spilled
yet. With prior items present on the (now-missing) disk a recreate
silently loses them; the transfer would continue with a corrupted
delivery stream.

Return the underlying `NotFound` error in that case so the caller maps
it to exit 11 and aborts cleanly. The recoverable "vanish before first
spill" path still recreates the directory once and resumes.

Split the existing test into two cases (pre-spill recreate succeeds;
post-spill vanish surfaces an error and does not increment the
recreate counter).

* fix(engine): drop unused dir field from SpillBackend::Directory
oferchen added a commit that referenced this pull request May 18, 2026
…2247) (#4158)

* fix(engine): harden reorder spill against ENOSPC and temp-dir vanish

Previously `SpillableReorderBuffer` panicked on every disk failure path:
ENOSPC during the spill write, a missing spill file at reload time, and
short-write fallouts all translated heavy-transfer faults into process
crashes that downstream consumers could neither catch nor map to an
rsync exit code.

This change introduces a typed `SpillError` (capacity vs I/O) and
threads `Result` through `insert`, `force_insert`, `next_in_order`, and
`drain_ready`. Failed spill writes now return the I/O error and re-insert
the offending item so callers can shut down cleanly with exit 11.

The implementation also gains an opt-in `with_spill_dir` constructor.
When the explicit directory disappears mid-transfer (operator cleanup,
tmpfs eviction, container restart), the buffer detects the `NotFound`
error, performs a single `create_dir_all` recovery, and retries the
write once before surfacing the failure.

New tests cover:
- ENOSPC injected through the codec, asserting `SpillError::Io` with
  `ErrorKind::StorageFull` and `is_out_of_space()` true.
- Partial-write via a `OneByteWriter` confirming the std `write_all`
  contract surfaces `WriteZero` rather than silently dropping bytes.
- Removing the spill directory mid-test, then asserting the next spill
  recreates it once (`dir_recreate_events` increments, dir exists).
- `create_dir_all` failure when the parent is a regular file - error
  surfaces without panicking.
- A round-trip on the directory-backed flavour to confirm the happy
  path stays byte-for-byte equivalent to the spooled default.

Success-path semantics are unchanged. All pre-existing tests adapt
trivially to the new `Result`-returning signatures.

* fix(engine): refuse silent data loss on temp-dir vanish after spills

Recovery via `create_dir_all` is only safe when nothing has been spilled
yet. With prior items present on the (now-missing) disk a recreate
silently loses them; the transfer would continue with a corrupted
delivery stream.

Return the underlying `NotFound` error in that case so the caller maps
it to exit 11 and aborts cleanly. The recoverable "vanish before first
spill" path still recreates the directory once and resumes.

Split the existing test into two cases (pre-spill recreate succeeds;
post-spill vanish surfaces an error and does not increment the
recreate counter).

* fix(engine): drop unused dir field from SpillBackend::Directory
oferchen added a commit that referenced this pull request May 18, 2026
…2247) (#4158)

* fix(engine): harden reorder spill against ENOSPC and temp-dir vanish

Previously `SpillableReorderBuffer` panicked on every disk failure path:
ENOSPC during the spill write, a missing spill file at reload time, and
short-write fallouts all translated heavy-transfer faults into process
crashes that downstream consumers could neither catch nor map to an
rsync exit code.

This change introduces a typed `SpillError` (capacity vs I/O) and
threads `Result` through `insert`, `force_insert`, `next_in_order`, and
`drain_ready`. Failed spill writes now return the I/O error and re-insert
the offending item so callers can shut down cleanly with exit 11.

The implementation also gains an opt-in `with_spill_dir` constructor.
When the explicit directory disappears mid-transfer (operator cleanup,
tmpfs eviction, container restart), the buffer detects the `NotFound`
error, performs a single `create_dir_all` recovery, and retries the
write once before surfacing the failure.

New tests cover:
- ENOSPC injected through the codec, asserting `SpillError::Io` with
  `ErrorKind::StorageFull` and `is_out_of_space()` true.
- Partial-write via a `OneByteWriter` confirming the std `write_all`
  contract surfaces `WriteZero` rather than silently dropping bytes.
- Removing the spill directory mid-test, then asserting the next spill
  recreates it once (`dir_recreate_events` increments, dir exists).
- `create_dir_all` failure when the parent is a regular file - error
  surfaces without panicking.
- A round-trip on the directory-backed flavour to confirm the happy
  path stays byte-for-byte equivalent to the spooled default.

Success-path semantics are unchanged. All pre-existing tests adapt
trivially to the new `Result`-returning signatures.

* fix(engine): refuse silent data loss on temp-dir vanish after spills

Recovery via `create_dir_all` is only safe when nothing has been spilled
yet. With prior items present on the (now-missing) disk a recreate
silently loses them; the transfer would continue with a corrupted
delivery stream.

Return the underlying `NotFound` error in that case so the caller maps
it to exit 11 and aborts cleanly. The recoverable "vanish before first
spill" path still recreates the directory once and resumes.

Split the existing test into two cases (pre-spill recreate succeeds;
post-spill vanish surfaces an error and does not increment the
recreate counter).

* fix(engine): drop unused dir field from SpillBackend::Directory
oferchen added a commit that referenced this pull request Aug 24, 2026
…2247) (#4158)

* fix(engine): harden reorder spill against ENOSPC and temp-dir vanish

Previously `SpillableReorderBuffer` panicked on every disk failure path:
ENOSPC during the spill write, a missing spill file at reload time, and
short-write fallouts all translated heavy-transfer faults into process
crashes that downstream consumers could neither catch nor map to an
rsync exit code.

This change introduces a typed `SpillError` (capacity vs I/O) and
threads `Result` through `insert`, `force_insert`, `next_in_order`, and
`drain_ready`. Failed spill writes now return the I/O error and re-insert
the offending item so callers can shut down cleanly with exit 11.

The implementation also gains an opt-in `with_spill_dir` constructor.
When the explicit directory disappears mid-transfer (operator cleanup,
tmpfs eviction, container restart), the buffer detects the `NotFound`
error, performs a single `create_dir_all` recovery, and retries the
write once before surfacing the failure.

New tests cover:
- ENOSPC injected through the codec, asserting `SpillError::Io` with
  `ErrorKind::StorageFull` and `is_out_of_space()` true.
- Partial-write via a `OneByteWriter` confirming the std `write_all`
  contract surfaces `WriteZero` rather than silently dropping bytes.
- Removing the spill directory mid-test, then asserting the next spill
  recreates it once (`dir_recreate_events` increments, dir exists).
- `create_dir_all` failure when the parent is a regular file - error
  surfaces without panicking.
- A round-trip on the directory-backed flavour to confirm the happy
  path stays byte-for-byte equivalent to the spooled default.

Success-path semantics are unchanged. All pre-existing tests adapt
trivially to the new `Result`-returning signatures.

* fix(engine): refuse silent data loss on temp-dir vanish after spills

Recovery via `create_dir_all` is only safe when nothing has been spilled
yet. With prior items present on the (now-missing) disk a recreate
silently loses them; the transfer would continue with a corrupted
delivery stream.

Return the underlying `NotFound` error in that case so the caller maps
it to exit 11 and aborts cleanly. The recoverable "vanish before first
spill" path still recreates the directory once and resumes.

Split the existing test into two cases (pre-spill recreate succeeds;
post-spill vanish surfaces an error and does not increment the
recreate counter).

* fix(engine): drop unused dir field from SpillBackend::Directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant