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

ledger: fix regression in transaction pool #3029

Conversation

tsachiherman
Copy link
Contributor

@tsachiherman tsachiherman commented Oct 9, 2021

Summary

This PR addresses a regression introduced in #2983.
The culprit is that an interface might contain a nil pointer, which makes it insufficient to test the interface pointer itself.

Fail cases: https://app.circleci.com/pipelines/github/algorand/go-algorand/2451/workflows/8807ced7-89ae-4b6b-96b0-1bc5bdf9d84c/jobs/27259/tests#failed-test-0

Test Plan

Use existing unit testing. In particular TestCatchupOverGossip.

@codecov-commenter
Copy link

codecov-commenter commented Oct 9, 2021

Codecov Report

Merging #3029 (f8fd895) into master (3c9e9e9) will increase coverage by 0.01%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3029      +/-   ##
==========================================
+ Coverage   43.64%   43.66%   +0.01%     
==========================================
  Files         391      391              
  Lines       86763    86764       +1     
==========================================
+ Hits        37869    37882      +13     
+ Misses      42865    42856       -9     
+ Partials     6029     6026       -3     
Impacted Files Coverage Δ
data/pools/transactionPool.go 42.53% <0.00%> (-0.10%) ⬇️
data/abi/abi_type.go 90.90% <0.00%> (-0.91%) ⬇️
ledger/acctupdates.go 67.21% <0.00%> (+0.09%) ⬆️
network/wsPeer.go 74.35% <0.00%> (+0.77%) ⬆️
catchup/service.go 69.35% <0.00%> (+0.77%) ⬆️
data/transactions/verify/txn.go 44.29% <0.00%> (+0.87%) ⬆️
ledger/blockqueue.go 82.18% <0.00%> (+1.14%) ⬆️
util/metrics/counter.go 80.95% <0.00%> (+2.38%) ⬆️
util/metrics/gauge.go 70.66% <0.00%> (+2.66%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3c9e9e9...f8fd895. Read the comment docs.

@tsachiherman tsachiherman merged commit 0d5b66e into algorand:master Oct 9, 2021
@tsachiherman tsachiherman deleted the tsachi/fixledgerregactorregression branch October 9, 2021 18:31
cce pushed a commit to cce/go-algorand that referenced this pull request Oct 28, 2021
## Summary

This PR addresses a regression introduced in algorand#2983. 
The culprit is that an interface might contain a nil pointer, which makes it insufficient to test the interface pointer itself.

Fail cases: https://app.circleci.com/pipelines/github/algorand/go-algorand/2451/workflows/8807ced7-89ae-4b6b-96b0-1bc5bdf9d84c/jobs/27259/tests#failed-test-0

## Test Plan

Use existing unit testing. In particular TestCatchupOverGossip.
@egieseke egieseke mentioned this pull request Nov 23, 2021
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