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

tests: fix TestBasicCatchpointCatchup #4390

Merged

Conversation

algorandskiy
Copy link
Contributor

Summary

  • After the protocol upgrade nodes required to have MaxTxnLife + DeeperBlockHeaderHistory
    blocks that violated the test's expectations.
  • Fixed a rare case when a block exists in a local ledger but peer's stat is still updated
    even if no communications were made.

Tests

Run the test multiple times

* After the protocol upgrade nodes required to have MaxTxnLife + DeeperBlockHeaderHistory
  blocks that violated the test's expectations.
* Fixed a rare case when a block exists in a local ledger but peer's stat is still updated
  even if no communications were made.
@codecov
Copy link

codecov bot commented Aug 10, 2022

Codecov Report

Merging #4390 (f952b44) into master (701d431) will decrease coverage by 0.00%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master    #4390      +/-   ##
==========================================
- Coverage   55.63%   55.62%   -0.01%     
==========================================
  Files         403      403              
  Lines       50805    50806       +1     
==========================================
- Hits        28263    28261       -2     
- Misses      20148    20154       +6     
+ Partials     2394     2391       -3     
Impacted Files Coverage Δ
catchup/catchpointService.go 1.52% <0.00%> (-0.01%) ⬇️
ledger/tracker.go 79.48% <0.00%> (-0.86%) ⬇️
cmd/tealdbg/debugger.go 72.69% <0.00%> (-0.81%) ⬇️
network/requestTracker.go 71.12% <0.00%> (-0.44%) ⬇️
ledger/acctupdates.go 70.37% <0.00%> (-0.16%) ⬇️
catchup/service.go 70.12% <0.00%> (ø)
ledger/acctonline.go 79.00% <0.00%> (ø)
ledger/accountdb.go 72.74% <0.00%> (+0.15%) ⬆️

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

Copy link
Contributor

@algonautshant algonautshant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!
Minor comment.

catchup/catchpointService.go Show resolved Hide resolved
@algorandskiy algorandskiy force-pushed the pavel/catchpoint-catchup-test-fix branch from c4dacb8 to 8f59016 Compare August 11, 2022 16:49
Copy link
Contributor

@michaeldiamant michaeldiamant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@algorandskiy Thanks for your continued efforts to reduce flaky tests!

My approval is limited to test/e2e-go/features/catchup/catchpointCatchup_test.go and supporting test changes.

I'm not familiar enough with psp changes in catchup/catchpointService.go to feel comfortable approving it. I trust your judgment to solicit additional reviews as you feel necessary.

@algorandskiy algorandskiy merged commit 8d9e868 into algorand:master Aug 11, 2022
onetechnical pushed a commit to onetechnical/go-algorand that referenced this pull request Aug 15, 2022
* After the protocol upgrade nodes required to have MaxTxnLife + DeeperBlockHeaderHistory
  blocks that violated the test's expectations.
* Fixed a rare case when a block exists in a local ledger but peer's stat is still updated
  even if no communications were made.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants