Skip to content

tests: fix TestBasicCatchpointCatchup#4390

Merged
algorandskiy merged 3 commits into
algorand:masterfrom
algorandskiy:pavel/catchpoint-catchup-test-fix
Aug 11, 2022
Merged

tests: fix TestBasicCatchpointCatchup#4390
algorandskiy merged 3 commits into
algorand:masterfrom
algorandskiy:pavel/catchpoint-catchup-test-fix

Conversation

@algorandskiy
Copy link
Copy Markdown
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
Copy Markdown

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

Comment thread test/e2e-go/features/catchup/catchpointCatchup_test.go
Copy link
Copy Markdown
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.

Comment thread catchup/catchpointService.go
@algorandskiy algorandskiy force-pushed the pavel/catchpoint-catchup-test-fix branch from c4dacb8 to 8f59016 Compare August 11, 2022 16:49
Copy link
Copy Markdown
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.
@algorandskiy algorandskiy deleted the pavel/catchpoint-catchup-test-fix branch March 16, 2026 20:04
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