Skip to content

Fix tarball packaging fallback when builds are skipped - #2123

Merged
oferchen merged 1 commit into
masterfrom
fix-tarball-creation
Nov 9, 2025
Merged

oferchen merged 1 commit into
masterfrom
fix-tarball-creation

Conversation

@oferchen

@oferchen oferchen commented Nov 9, 2025 •

Copy link
Copy Markdown
Owner

Summary

  • allow tarball packaging to locate binaries across fallback profiles when build steps are skipped
  • add a regression test covering the release-profile fallback when packaging uses the dist profile

Testing

  • cargo test -p xtask resolve_binary_path_falls_back_to_release_when_build_skipped

[Codex Task](

@oferchen
oferchen merged commit 44a3aa0 into master Nov 9, 2025
@oferchen
oferchen deleted the fix-tarball-creation branch November 9, 2025 15:28
oferchen added a commit that referenced this pull request May 7, 2026
Adds docs/audits/must-use-coverage.md covering non-fallible public
returners (Self builders, bool predicates, value constructors).
Companion to the existing Result/Option audit. Includes per-crate
triage counts and a five-phase rollout that ends in a workspace-wide
clippy::must_use_candidate gate.
oferchen added a commit that referenced this pull request May 13, 2026
…4004)

* refactor: add #[must_use] to public Result/Option functions (#2123)

Annotate ~100 public functions returning Result or Option across 6
core crates (checksums, protocol, engine, transfer, filters,
signature) with #[must_use] to catch silently-ignored return values
at compile time.

Focused on constructors, parsers, decoders, accessors, and factory
functions where ignoring the return value is almost certainly a bug.
Skipped side-effecting I/O writes and mutations where the function
is called for its effect rather than its return value.

* fix: remove redundant #[must_use] on Result-returning functions

* fix: remove redundant #[must_use] from checksums Result/Option fns

* fix: remove redundant #[must_use] from signature async_gen

* fix: remove redundant #[must_use] and fix unused return values in engine

* fix: remove redundant #[must_use] from all Result/Option fns

Removes #[must_use] (no message) from public functions returning
Result<T, E> or Option<T> across the workspace. The standard library
already marks both types as #[must_use], so the function-level
annotation is redundant and triggers clippy's double_must_use lint
under -D warnings.

Also adds `let _ =` to test call sites that discard `PipelineState::pop()`
return values, since Option's inherent #[must_use] still flags them.
oferchen added a commit that referenced this pull request May 15, 2026
…4084)

Refs #2123. Upstream 3.4.2 NEWS records "Fixed an uninitialized buf1
on the first call to get_checksum2() in the MD4 path (fixes #673)".
The fix forces buf1 allocation whenever the static cache is NULL, not
just when len grows past len1.

oc-rsync does not maintain a static heap-backed buf1 accumulator; the
MD4 path streams the input slice and the optional 4-byte seed directly
into the digest backend. Every audited site (Md4::digest_with_seed,
Md4Strategy, parallel files/blocks, SIMD batch padding for scalar,
AVX2, AVX512, NEON, SSE2, wasm) either passes the slice by reference
or zero-initializes its scratch buffer. No MaybeUninit appears under
crates/checksums/src/.

Pins the exact 3.4.1 trigger (empty input + non-zero seed) with a
new regression test asserting digest_with_seed(seed, b"") equals the
MD4 of the 4-byte little-endian seed alone.
oferchen added a commit that referenced this pull request May 18, 2026
Adds docs/audits/must-use-coverage.md covering non-fallible public
returners (Self builders, bool predicates, value constructors).
Companion to the existing Result/Option audit. Includes per-crate
triage counts and a five-phase rollout that ends in a workspace-wide
clippy::must_use_candidate gate.
oferchen added a commit that referenced this pull request May 18, 2026
…4004)

* refactor: add #[must_use] to public Result/Option functions (#2123)

Annotate ~100 public functions returning Result or Option across 6
core crates (checksums, protocol, engine, transfer, filters,
signature) with #[must_use] to catch silently-ignored return values
at compile time.

Focused on constructors, parsers, decoders, accessors, and factory
functions where ignoring the return value is almost certainly a bug.
Skipped side-effecting I/O writes and mutations where the function
is called for its effect rather than its return value.

* fix: remove redundant #[must_use] on Result-returning functions

* fix: remove redundant #[must_use] from checksums Result/Option fns

* fix: remove redundant #[must_use] from signature async_gen

* fix: remove redundant #[must_use] and fix unused return values in engine

* fix: remove redundant #[must_use] from all Result/Option fns

Removes #[must_use] (no message) from public functions returning
Result<T, E> or Option<T> across the workspace. The standard library
already marks both types as #[must_use], so the function-level
annotation is redundant and triggers clippy's double_must_use lint
under -D warnings.

Also adds `let _ =` to test call sites that discard `PipelineState::pop()`
return values, since Option's inherent #[must_use] still flags them.
oferchen added a commit that referenced this pull request May 18, 2026
…4084)

Refs #2123. Upstream 3.4.2 NEWS records "Fixed an uninitialized buf1
on the first call to get_checksum2() in the MD4 path (fixes #673)".
The fix forces buf1 allocation whenever the static cache is NULL, not
just when len grows past len1.

oc-rsync does not maintain a static heap-backed buf1 accumulator; the
MD4 path streams the input slice and the optional 4-byte seed directly
into the digest backend. Every audited site (Md4::digest_with_seed,
Md4Strategy, parallel files/blocks, SIMD batch padding for scalar,
AVX2, AVX512, NEON, SSE2, wasm) either passes the slice by reference
or zero-initializes its scratch buffer. No MaybeUninit appears under
crates/checksums/src/.

Pins the exact 3.4.1 trigger (empty input + non-zero seed) with a
new regression test asserting digest_with_seed(seed, b"") equals the
MD4 of the 4-byte little-endian seed alone.
oferchen added a commit that referenced this pull request May 18, 2026
…4084)

Refs #2123. Upstream 3.4.2 NEWS records "Fixed an uninitialized buf1
on the first call to get_checksum2() in the MD4 path (fixes #673)".
The fix forces buf1 allocation whenever the static cache is NULL, not
just when len grows past len1.

oc-rsync does not maintain a static heap-backed buf1 accumulator; the
MD4 path streams the input slice and the optional 4-byte seed directly
into the digest backend. Every audited site (Md4::digest_with_seed,
Md4Strategy, parallel files/blocks, SIMD batch padding for scalar,
AVX2, AVX512, NEON, SSE2, wasm) either passes the slice by reference
or zero-initializes its scratch buffer. No MaybeUninit appears under
crates/checksums/src/.

Pins the exact 3.4.1 trigger (empty input + non-zero seed) with a
new regression test asserting digest_with_seed(seed, b"") equals the
MD4 of the 4-byte little-endian seed alone.
oferchen added a commit that referenced this pull request Aug 24, 2026
…4004)

* refactor: add #[must_use] to public Result/Option functions (#2123)

Annotate ~100 public functions returning Result or Option across 6
core crates (checksums, protocol, engine, transfer, filters,
signature) with #[must_use] to catch silently-ignored return values
at compile time.

Focused on constructors, parsers, decoders, accessors, and factory
functions where ignoring the return value is almost certainly a bug.
Skipped side-effecting I/O writes and mutations where the function
is called for its effect rather than its return value.

* fix: remove redundant #[must_use] on Result-returning functions

* fix: remove redundant #[must_use] from checksums Result/Option fns

* fix: remove redundant #[must_use] from signature async_gen

* fix: remove redundant #[must_use] and fix unused return values in engine

* fix: remove redundant #[must_use] from all Result/Option fns

Removes #[must_use] (no message) from public functions returning
Result<T, E> or Option<T> across the workspace. The standard library
already marks both types as #[must_use], so the function-level
annotation is redundant and triggers clippy's double_must_use lint
under -D warnings.

Also adds `let _ =` to test call sites that discard `PipelineState::pop()`
return values, since Option's inherent #[must_use] still flags them.
oferchen added a commit that referenced this pull request Aug 24, 2026
…4084)

Refs #2123. Upstream 3.4.2 NEWS records "Fixed an uninitialized buf1
on the first call to get_checksum2() in the MD4 path (fixes #673)".
The fix forces buf1 allocation whenever the static cache is NULL, not
just when len grows past len1.

oc-rsync does not maintain a static heap-backed buf1 accumulator; the
MD4 path streams the input slice and the optional 4-byte seed directly
into the digest backend. Every audited site (Md4::digest_with_seed,
Md4Strategy, parallel files/blocks, SIMD batch padding for scalar,
AVX2, AVX512, NEON, SSE2, wasm) either passes the slice by reference
or zero-initializes its scratch buffer. No MaybeUninit appears under
crates/checksums/src/.

Pins the exact 3.4.1 trigger (empty input + non-zero seed) with a
new regression test asserting digest_with_seed(seed, b"") equals the
MD4 of the 4-byte little-endian seed alone.
oferchen added a commit that referenced this pull request Aug 24, 2026
Adds docs/audits/must-use-coverage.md covering non-fallible public
returners (Self builders, bool predicates, value constructors).
Companion to the existing Result/Option audit. Includes per-crate
triage counts and a five-phase rollout that ends in a workspace-wide
clippy::must_use_candidate gate.
oferchen added a commit that referenced this pull request Aug 24, 2026
…4004)

* refactor: add #[must_use] to public Result/Option functions (#2123)

Annotate ~100 public functions returning Result or Option across 6
core crates (checksums, protocol, engine, transfer, filters,
signature) with #[must_use] to catch silently-ignored return values
at compile time.

Focused on constructors, parsers, decoders, accessors, and factory
functions where ignoring the return value is almost certainly a bug.
Skipped side-effecting I/O writes and mutations where the function
is called for its effect rather than its return value.

* fix: remove redundant #[must_use] on Result-returning functions

* fix: remove redundant #[must_use] from checksums Result/Option fns

* fix: remove redundant #[must_use] from signature async_gen

* fix: remove redundant #[must_use] and fix unused return values in engine

* fix: remove redundant #[must_use] from all Result/Option fns

Removes #[must_use] (no message) from public functions returning
Result<T, E> or Option<T> across the workspace. The standard library
already marks both types as #[must_use], so the function-level
annotation is redundant and triggers clippy's double_must_use lint
under -D warnings.

Also adds `let _ =` to test call sites that discard `PipelineState::pop()`
return values, since Option's inherent #[must_use] still flags them.
oferchen added a commit that referenced this pull request Aug 24, 2026
…4084)

Refs #2123. Upstream 3.4.2 NEWS records "Fixed an uninitialized buf1
on the first call to get_checksum2() in the MD4 path (fixes #673)".
The fix forces buf1 allocation whenever the static cache is NULL, not
just when len grows past len1.

oc-rsync does not maintain a static heap-backed buf1 accumulator; the
MD4 path streams the input slice and the optional 4-byte seed directly
into the digest backend. Every audited site (Md4::digest_with_seed,
Md4Strategy, parallel files/blocks, SIMD batch padding for scalar,
AVX2, AVX512, NEON, SSE2, wasm) either passes the slice by reference
or zero-initializes its scratch buffer. No MaybeUninit appears under
crates/checksums/src/.

Pins the exact 3.4.1 trigger (empty input + non-zero seed) with a
new regression test asserting digest_with_seed(seed, b"") equals the
MD4 of the 4-byte little-endian seed alone.
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