Skip to content

Fix version operand tests for upstream branding - #2098

Merged
oferchen merged 1 commit into
masterfrom
fix-tests-for-version-flag-in-oc-rsync
Nov 8, 2025
Merged

oferchen merged 1 commit into
masterfrom
fix-tests-for-version-flag-in-oc-rsync

Conversation

@oferchen

@oferchen oferchen commented Nov 8, 2025 •

Copy link
Copy Markdown
Owner

Summary

  • update the version flag regression tests to expect the upstream-branded banner when invoking the binary via the legacy rsync alias
  • keep the behaviour of --version and -V parity when extra operands are present

Testing

  • cargo test -p oc-rsync-cli version_flag_ignores_additional_operands

[Codex Task](

@oferchen
oferchen merged commit 18b739f into master Nov 8, 2025
@oferchen
oferchen deleted the fix-tests-for-version-flag-in-oc-rsync branch November 8, 2025 23:48
oferchen added a commit that referenced this pull request May 13, 2026
* test: add bandwidth limiter feedback-loop convergence tests

Add convergence tests verifying the token-bucket bandwidth limiter
converges correctly under various load profiles: steady-state at
multiple rates, step response (rate increase/decrease), burst
handling with recovery, multi-stream fairness, feedback accuracy,
underutilization (no unnecessary throttling), zero-crossing
(pause/resume), and minimum granularity (1 B/s, overflow safety).

All tests use the deterministic recorded-sleep infrastructure,
asserting on requested sleep durations to avoid wall-clock jitter.

* style: fix clippy manual_abs_diff in convergence tests
oferchen added a commit that referenced this pull request May 15, 2026
Adds four targeted feedback-loop convergence tests for the bandwidth
limiter (#2098):

- Steady-state convergence under 2x oversubscription, measured across a
  >= 1s sliding window of requested sleep.
- Burst recovery: a single 4x instantaneous burst is dampened and the
  limiter returns to target within ~2s.
- Target change ramp (0.5 MB/s -> 2 MB/s) must converge to the new rate
  without per-window overshoot.
- Tiny 1 KB/s target convergence: pacing budget tracks expected
  transfer time within +-5%.

Tests use the recorded-sleep harness so they execute deterministically
in microseconds of wall-clock time.
oferchen added a commit that referenced this pull request May 18, 2026
* test: add bandwidth limiter feedback-loop convergence tests

Add convergence tests verifying the token-bucket bandwidth limiter
converges correctly under various load profiles: steady-state at
multiple rates, step response (rate increase/decrease), burst
handling with recovery, multi-stream fairness, feedback accuracy,
underutilization (no unnecessary throttling), zero-crossing
(pause/resume), and minimum granularity (1 B/s, overflow safety).

All tests use the deterministic recorded-sleep infrastructure,
asserting on requested sleep durations to avoid wall-clock jitter.

* style: fix clippy manual_abs_diff in convergence tests
oferchen added a commit that referenced this pull request May 18, 2026
Adds four targeted feedback-loop convergence tests for the bandwidth
limiter (#2098):

- Steady-state convergence under 2x oversubscription, measured across a
  >= 1s sliding window of requested sleep.
- Burst recovery: a single 4x instantaneous burst is dampened and the
  limiter returns to target within ~2s.
- Target change ramp (0.5 MB/s -> 2 MB/s) must converge to the new rate
  without per-window overshoot.
- Tiny 1 KB/s target convergence: pacing budget tracks expected
  transfer time within +-5%.

Tests use the recorded-sleep harness so they execute deterministically
in microseconds of wall-clock time.
oferchen added a commit that referenced this pull request May 18, 2026
Adds four targeted feedback-loop convergence tests for the bandwidth
limiter (#2098):

- Steady-state convergence under 2x oversubscription, measured across a
  >= 1s sliding window of requested sleep.
- Burst recovery: a single 4x instantaneous burst is dampened and the
  limiter returns to target within ~2s.
- Target change ramp (0.5 MB/s -> 2 MB/s) must converge to the new rate
  without per-window overshoot.
- Tiny 1 KB/s target convergence: pacing budget tracks expected
  transfer time within +-5%.

Tests use the recorded-sleep harness so they execute deterministically
in microseconds of wall-clock time.
oferchen added a commit that referenced this pull request Aug 24, 2026
* test: add bandwidth limiter feedback-loop convergence tests

Add convergence tests verifying the token-bucket bandwidth limiter
converges correctly under various load profiles: steady-state at
multiple rates, step response (rate increase/decrease), burst
handling with recovery, multi-stream fairness, feedback accuracy,
underutilization (no unnecessary throttling), zero-crossing
(pause/resume), and minimum granularity (1 B/s, overflow safety).

All tests use the deterministic recorded-sleep infrastructure,
asserting on requested sleep durations to avoid wall-clock jitter.

* style: fix clippy manual_abs_diff in convergence tests
oferchen added a commit that referenced this pull request Aug 24, 2026
Adds four targeted feedback-loop convergence tests for the bandwidth
limiter (#2098):

- Steady-state convergence under 2x oversubscription, measured across a
  >= 1s sliding window of requested sleep.
- Burst recovery: a single 4x instantaneous burst is dampened and the
  limiter returns to target within ~2s.
- Target change ramp (0.5 MB/s -> 2 MB/s) must converge to the new rate
  without per-window overshoot.
- Tiny 1 KB/s target convergence: pacing budget tracks expected
  transfer time within +-5%.

Tests use the recorded-sleep harness so they execute deterministically
in microseconds of wall-clock time.
oferchen added a commit that referenced this pull request Aug 24, 2026
* test: add bandwidth limiter feedback-loop convergence tests

Add convergence tests verifying the token-bucket bandwidth limiter
converges correctly under various load profiles: steady-state at
multiple rates, step response (rate increase/decrease), burst
handling with recovery, multi-stream fairness, feedback accuracy,
underutilization (no unnecessary throttling), zero-crossing
(pause/resume), and minimum granularity (1 B/s, overflow safety).

All tests use the deterministic recorded-sleep infrastructure,
asserting on requested sleep durations to avoid wall-clock jitter.

* style: fix clippy manual_abs_diff in convergence tests
oferchen added a commit that referenced this pull request Aug 24, 2026
Adds four targeted feedback-loop convergence tests for the bandwidth
limiter (#2098):

- Steady-state convergence under 2x oversubscription, measured across a
  >= 1s sliding window of requested sleep.
- Burst recovery: a single 4x instantaneous burst is dampened and the
  limiter returns to target within ~2s.
- Target change ramp (0.5 MB/s -> 2 MB/s) must converge to the new rate
  without per-window overshoot.
- Tiny 1 KB/s target convergence: pacing budget tracks expected
  transfer time within +-5%.

Tests use the recorded-sleep harness so they execute deterministically
in microseconds of wall-clock time.
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