Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bugfix: reduce flakiness in follower node test #5355

Merged
merged 5 commits into from May 5, 2023

Conversation

tzaffi
Copy link
Contributor

@tzaffi tzaffi commented May 3, 2023

Summary

TestSyncRoundWithRemake can fail supuriously in CI as seen here:

https://app.circleci.com/pipelines/github/algorand/go-algorand/14091/workflows/0ef0821c-f9df-45ae-b5bf-a28cab0aca2f/jobs/229564/parallel-runs/0?filterBy=FAILED&invite=true#step-114-6149

interpretation of the failure

  • We expect round 200 (0xc8)
  • But we only caught up to round 195 (0xc3)

The proposed fix is to wait for the follower node to catch up to the expected round. The test may still timeout, but it's expected to occur much less frequently then the current failure condition.

Test Plan

CI

@tzaffi tzaffi marked this pull request as ready for review May 3, 2023 17:07
@tzaffi tzaffi added the Bug-Fix label May 3, 2023
node/follower_node_test.go Outdated Show resolved Hide resolved
node/follower_node_test.go Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented May 5, 2023

Codecov Report

Merging #5355 (4e69a0e) into master (c5e57c3) will increase coverage by 0.00%.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #5355   +/-   ##
=======================================
  Coverage   55.29%   55.30%           
=======================================
  Files         454      454           
  Lines       63713    63713           
=======================================
+ Hits        35231    35234    +3     
+ Misses      26090    26087    -3     
  Partials     2392     2392           

see 7 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@winder winder merged commit d939705 into algorand:master May 5, 2023
24 checks passed
@cce
Copy link
Contributor

cce commented May 5, 2023

I just bumped it to 20s in #5361

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.

None yet

4 participants