Skip to content

Fix stats tests by clearing skip-compress env - #1382

Merged
oferchen merged 2 commits into
masterfrom
fix-test-stats_human_readable_combined_formats_totals
Oct 28, 2025
Merged

oferchen merged 2 commits into
masterfrom
fix-test-stats_human_readable_combined_formats_totals

Conversation

@oferchen

@oferchen oferchen commented Oct 28, 2025 •

Copy link
Copy Markdown
Owner

Summary

  • ensure the stats formatting tests run with a sanitized RSYNC_SKIP_COMPRESS environment
  • hold the shared env mutex while the tests execute so external RSYNC_SKIP_COMPRESS values cannot cause failures

Testing

  • cargo test tests::stats_human_readable_combined_formats_totals -- --nocapture
  • cargo test tests::stats_human_readable_formats_totals -- --nocapture

@oferchen
oferchen merged commit 06f68ed into master Oct 28, 2025
@oferchen
oferchen deleted the fix-test-stats_human_readable_combined_formats_totals branch October 28, 2025 15:18

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

rsync/crates/cli/src/lib.rs

Lines 8344 to 8349 in 9789ecb

use tempfile::tempdir;
let _env_lock = ENV_LOCK.lock().expect("env lock");
let _rsh_guard = clear_rsync_rsh();
let tmp = tempdir().expect("tempdir");

P1 Badge Keep RSYNC_RSH guard when sanitizing skip-compress env

Replacing clear_rsync_rsh() with a RSYNC_SKIP_COMPRESS guard means these stats tests no longer clear the RSYNC_RSH environment variable. Many other tests use clear_rsync_rsh() to avoid picking up a developer’s custom remote shell, which can cause the subprocess spawned by run_with_args to hang or fail whenever RSYNC_RSH is set. Sanitizing RSYNC_SKIP_COMPRESS is helpful, but it should be done in addition to—rather than instead of—clearing RSYNC_RSH for both stats helpers so that the tests remain isolated from user environments.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

oferchen added a commit that referenced this pull request May 5, 2026
Design note for #1382. Surveys the current SPMC contract on the bounded
delta WorkQueue, evaluates three multi-producer designs, and recommends a
Clone-based fan-in API (with_producers(n)) that surfaces the
producer-count contract as a Vec of N senders. Covers ordering via
per-producer sequence ranges, backpressure, drain_parallel interaction,
and migration for multi-root transfers, --files-from + walker
concurrency, and future async producers. Wire-compat impact: zero
(channels are internal coordination only).
oferchen added a commit that referenced this pull request May 5, 2026
…3709)

Companion to multi-producer-workqueue.md (#1382): documents the
Arc<WorkQueueSender> variant tracked at #1610 as a complement to the
Vec<WorkQueueSender> Design A. Covers API surface (shared/
shared_with_capacity, SharedSender alias), backpressure preservation,
drop semantics, sequence-number ordering against ReorderBuffer,
migration path through #1404 and #1613, plus three new property tests
gated on the multi-producer cargo feature.
oferchen added a commit that referenced this pull request May 18, 2026
Design note for #1382. Surveys the current SPMC contract on the bounded
delta WorkQueue, evaluates three multi-producer designs, and recommends a
Clone-based fan-in API (with_producers(n)) that surfaces the
producer-count contract as a Vec of N senders. Covers ordering via
per-producer sequence ranges, backpressure, drain_parallel interaction,
and migration for multi-root transfers, --files-from + walker
concurrency, and future async producers. Wire-compat impact: zero
(channels are internal coordination only).
oferchen added a commit that referenced this pull request May 18, 2026
…3709)

Companion to multi-producer-workqueue.md (#1382): documents the
Arc<WorkQueueSender> variant tracked at #1610 as a complement to the
Vec<WorkQueueSender> Design A. Covers API surface (shared/
shared_with_capacity, SharedSender alias), backpressure preservation,
drop semantics, sequence-number ordering against ReorderBuffer,
migration path through #1404 and #1613, plus three new property tests
gated on the multi-producer cargo feature.
oferchen added a commit that referenced this pull request Aug 24, 2026
Design note for #1382. Surveys the current SPMC contract on the bounded
delta WorkQueue, evaluates three multi-producer designs, and recommends a
Clone-based fan-in API (with_producers(n)) that surfaces the
producer-count contract as a Vec of N senders. Covers ordering via
per-producer sequence ranges, backpressure, drain_parallel interaction,
and migration for multi-root transfers, --files-from + walker
concurrency, and future async producers. Wire-compat impact: zero
(channels are internal coordination only).
oferchen added a commit that referenced this pull request Aug 24, 2026
…3709)

Companion to multi-producer-workqueue.md (#1382): documents the
Arc<WorkQueueSender> variant tracked at #1610 as a complement to the
Vec<WorkQueueSender> Design A. Covers API surface (shared/
shared_with_capacity, SharedSender alias), backpressure preservation,
drop semantics, sequence-number ordering against ReorderBuffer,
migration path through #1404 and #1613, plus three new property tests
gated on the multi-producer cargo feature.
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