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

transaction sync: Transition test #3882

Merged
merged 21 commits into from
May 16, 2022
Merged

Conversation

brianolson
Copy link
Contributor

Summary

Test for a network in transition.
Runs a 6 node network with the following topology:

New Leaf 1                           New Leaf 2
           > New Relay - Old Relay <
Old Leaf 1                           Old Leaf 2

"New" and "Old" can mean different algod/goal/kmd binary versions.
It can also or separately mean config.json updates. (set --old-bin
and --new-bin to the same dir, set --new-config or --old-config to
overlay json onto the net temlplate generated config.json of new or
old nodes.

In the test each leaf submits a simple payment transaction from its
unlocked wallet to a dummy account '\x00...\x0N'. A few rounds are
waited then each leaf verifies that it can see all the expected
account values.

The test then waits 100 rounds and checks that the 4 leaves are each
a block proposer a reasonable fraction of the 100 rounds.

Test Plan

master vs txnsync

python3 test/scripts/transition_mix_test.py --old-branch origin/master --new-branch origin/feature/txnsync

txnsync vs txnsync-protocol-2.1

python3 test/scripts/transition_mix_test.py --old-branch origin/feature/txnsync --new-branch origin/feature/txnsync --old-config='{"NetworkProtocolVersion":"2.1"}'

@codecov-commenter
Copy link

codecov-commenter commented Apr 13, 2022

Codecov Report

Merging #3882 (1357455) into master (9d9d759) will increase coverage by 0.00%.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #3882   +/-   ##
=======================================
  Coverage   49.97%   49.98%           
=======================================
  Files         393      393           
  Lines       68390    68390           
=======================================
+ Hits        34181    34186    +5     
+ Misses      30473    30469    -4     
+ Partials     3736     3735    -1     
Impacted Files Coverage Δ
ledger/roundlru.go 90.56% <0.00%> (-5.67%) ⬇️
cmd/algoh/blockWatcher.go 77.77% <0.00%> (-3.18%) ⬇️
cmd/tealdbg/debugger.go 71.42% <0.00%> (-0.99%) ⬇️
network/wsNetwork.go 62.79% <0.00%> (ø)
data/transactions/verify/txn.go 45.02% <0.00%> (+0.86%) ⬆️
network/wsPeer.go 68.61% <0.00%> (+2.77%) ⬆️

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 9d9d759...1357455. Read the comment docs.

@cce cce changed the title Transition test transaction sync: Transition test Apr 13, 2022
@brianolson brianolson requested a review from a user April 13, 2022 18:07
@cce cce merged commit 8e6cef1 into algorand:master May 16, 2022
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