Skip to content

app: fix flaky TestStartChecker - #4654

Merged
KaloyanTanev merged 1 commit into
mainfrom
kalo/fix-flaky-startchecker
Aug 21, 2026
Merged

app: fix flaky TestStartChecker#4654
KaloyanTanev merged 1 commit into
mainfrom
kalo/fix-flaky-startchecker

Conversation

@KaloyanTanev

Copy link
Copy Markdown
Collaborator

Stop advancing the fake clock inside the success-path Eventually of TestStartChecker. The clock advances were unsynchronized with the ready-checker goroutine, so under CI load it could observe two epoch rollovers with only the single recorded vapi call, permanently flipping readiness to errReadyVCNotConnected and failing the test. The ticks fired by the two initial advances are sufficient, and the ready state is then stable, so the test now just polls for it.

category: test
ticket: none

@sonarqubecloud

Copy link
Copy Markdown

@KaloyanTanev KaloyanTanev self-assigned this Aug 20, 2026
@codecov

codecov Bot commented Aug 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 58.36%. Comparing base (8070ac6) to head (7f7c29a).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4654      +/-   ##
==========================================
- Coverage   58.36%   58.36%   -0.01%     
==========================================
  Files         247      247              
  Lines       34094    34094              
==========================================
- Hits        19900    19899       -1     
- Misses      11718    11719       +1     
  Partials     2476     2476              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@KaloyanTanev
KaloyanTanev merged commit f0633d4 into main Aug 21, 2026
11 checks passed
@KaloyanTanev
KaloyanTanev deleted the kalo/fix-flaky-startchecker branch August 21, 2026 08:26
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.

2 participants