Skip to content

Fix breaker timeouts, POST timeout, DI retry on open breaker, backoff overflow - #50

Merged
arnelirobles merged 2 commits into
masterfrom
fix/review-c1-c2-c3-c6-c9
Nov 12, 2026
Merged

arnelirobles merged 2 commits into
masterfrom
fix/review-c1-c2-c3-c6-c9

Conversation

@arnelirobles

Copy link
Copy Markdown
Contributor

Fixes four review findings and one workflow guard. The default Cushion predicate now counts TimeoutRejectedException as a failure (other cancellation is still ignored), CaromHttpHandler applies Bounce.WithTimeout to POST and PATCH while still skipping retries, the DI retry strategy no longer retries CircuitOpenException, and the backoff exponent is capped so a huge retry count cannot produce NaN. The publish workflow now only runs from master.

A protected environment for the NuGet key is a repo settings call and is not changed here. Issues #45, #46 and #47 are not touched. Tests were not run locally; the solution builds clean in Release.

- test: tests/Carom.Extensions.Tests/TripPredicateTests.cs Default_predicate_counts_Bounce_timeouts_as_failures
  breaks: src/Carom.Extensions/Cushion.cs "ex is TimeoutRejectedException || ex is not OperationCanceledException"
- test: tests/Carom.Http.Tests/BouncePassthroughTests.cs Post_still_gets_the_bounce_timeout_but_is_not_retried
  breaks: src/Carom.Http/CaromHttpHandler.cs "if (_config.Timeout is TimeSpan timeout) once = once.WithTimeout(timeout);"
- test: tests/Carom.DependencyInjection.Tests/PipelineCancellationTests.cs Retry_outside_an_open_breaker_surfaces_CircuitOpenException_without_backoff
  breaks: src/Carom.DependencyInjection/ResiliencePipeline.cs "? _config.When(CaromCushionExtensions.DefaultShouldBounce)"
- test: tests/Carom.Tests/JitterStrategyTests.cs Zero_base_delay_with_a_huge_attempt_count_returns_zero_not_NaN
  breaks: src/Carom/JitterStrategy.cs "Math.Pow(2, Math.Min(attempt, 62))"
- untested: .github/workflows/publish.yml
  why: workflow guard, only observable on a dispatch run

@coderabbitai

coderabbitai Bot commented Nov 12, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@arnelirobles
arnelirobles marked this pull request as ready for review November 12, 2026 14:04
@arnelirobles
arnelirobles merged commit e47fdc8 into master Nov 12, 2026
1 check passed
@arnelirobles
arnelirobles deleted the fix/review-c1-c2-c3-c6-c9 branch November 12, 2026 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant