Skip to content

[CRE-3579] fix: flaky Test_StratReconciliation_RetriesWithBackoff#22082

Merged
jmank88 merged 1 commit into
developfrom
fix/flaky-retries-with-backoff-test
Apr 21, 2026
Merged

[CRE-3579] fix: flaky Test_StratReconciliation_RetriesWithBackoff#22082
jmank88 merged 1 commit into
developfrom
fix/flaky-retries-with-backoff-test

Conversation

@aareet
Copy link
Copy Markdown
Contributor

@aareet aareet commented Apr 20, 2026

Summary

CRE-3579 - Fix flaky Test_StratReconciliation_RetriesWithBackoff

  • Fix data race on retryCount variable (plain int accessed across goroutines without synchronization) by using atomic.Int32
  • Fix test to actually verify retry behavior: wait for the full retry cycle (2 failures + 1 success) instead of exiting after the first failed attempt
  • Use a faster ticker (1s) and shorter retry interval (100ms) to reduce test duration and timing sensitivity

Test plan

  • Passes locally with -race -count=5
  • CI passes with race detector enabled
  • Test_StratReconciliation_RetriesWithBackoff no longer flakes

🤖 Generated with Claude Code

Fix data race on retryCount (plain int accessed across goroutines
without synchronization) by using atomic.Int32. Also fix the test to
actually verify retry behavior: wait for the full retry cycle
(2 failures + 1 success) instead of exiting after the first failed
attempt. Use a faster ticker and shorter retry interval to avoid
unnecessary slowness.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@aareet aareet requested a review from a team as a code owner April 20, 2026 17:53
@github-actions
Copy link
Copy Markdown
Contributor

👋 aareet, thanks for creating this pull request!

To help reviewers, please consider creating future PRs as drafts first. This allows you to self-review and make any final changes before notifying the team.

Once you're ready, you can mark it as "Ready for review" to request feedback. Thanks!

@aareet aareet changed the title fix: flaky Test_StratReconciliation_RetriesWithBackoff [CRE-3579] fix: flaky Test_StratReconciliation_RetriesWithBackoff Apr 20, 2026
@github-actions
Copy link
Copy Markdown
Contributor

✅ No conflicts with other open PRs targeting develop

@trunk-io
Copy link
Copy Markdown

trunk-io Bot commented Apr 20, 2026

Static BadgeStatic BadgeStatic BadgeStatic Badge

View Full Report ↗︎Docs

@cl-sonarqube-production
Copy link
Copy Markdown

@justinkaseman justinkaseman added this pull request to the merge queue Apr 20, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Apr 20, 2026
@jmank88 jmank88 added this pull request to the merge queue Apr 21, 2026
Merged via the queue into develop with commit 7347d6e Apr 21, 2026
108 of 109 checks passed
@jmank88 jmank88 deleted the fix/flaky-retries-with-backoff-test branch April 21, 2026 15:45
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.

3 participants