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

Re-enable catchpoint expect test #4209

Conversation

algorandskiy
Copy link
Contributor

Adjust new catchpoint-related parameters to let the test run properly:

  1. Set CatchpointLookback to the same value as MaxBalLookback
  2. Set MaxAcctLookback to a small value to allow second stage of the catchpoint generation complete fast.

@codecov
Copy link

codecov bot commented Jul 1, 2022

Codecov Report

Merging #4209 (bdd1dc0) into feature/320-rounds (53b3e36) will decrease coverage by 0.01%.
The diff coverage is 0.00%.

@@                  Coverage Diff                   @@
##           feature/320-rounds    #4209      +/-   ##
======================================================
- Coverage               55.22%   55.21%   -0.02%     
======================================================
  Files                     395      395              
  Lines                   50073    50073              
======================================================
- Hits                    27653    27647       -6     
- Misses                  20056    20061       +5     
- Partials                 2364     2365       +1     
Impacted Files Coverage Δ
ledger/accountdb.go 72.37% <0.00%> (ø)
ledger/catchpointtracker.go 63.56% <ø> (ø)
ledger/tracker.go 73.04% <ø> (-2.18%) ⬇️
agreement/cryptoVerifier.go 67.60% <0.00%> (-2.12%) ⬇️
agreement/proposalManager.go 96.07% <0.00%> (-1.97%) ⬇️
data/abi/abi_type.go 87.67% <0.00%> (-0.95%) ⬇️
data/transactions/verify/txn.go 44.00% <0.00%> (-0.89%) ⬇️
cmd/tealdbg/debugger.go 72.69% <0.00%> (-0.81%) ⬇️
network/wsPeer.go 67.67% <0.00%> (ø)
... and 3 more

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 53b3e36...bdd1dc0. Read the comment docs.

@@ -2283,7 +2283,7 @@ func performOnlineAccountsTableMigration(ctx context.Context, tx *sql.Tx, log fu

// insert entries into online accounts table
if ba.Status == basics.Online {
if !normBal.Valid {
if ba.MicroAlgos.Raw > 0 && !normBal.Valid {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

in e2e tests we have online accounts with zero balance.

Copy link
Contributor

Choose a reason for hiding this comment

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

How did they get set up with zero balances?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this was caught by catchpointCatchupTest.exp with the following genesis:

  "Genesis": {
    "NetworkName": "catchpointcatchupnetwork",
    "ConsensusProtocol": "catchpointtestingprotocol",
    "LastPartKeyRound": 3000,
    "Wallets": [
      {
        "Name": "Wallet1",
        "Stake": 100,
        "Online": true
      },
      {
        "Name": "Wallet2",
        "Stake": 0,
        "Online": true
      }
    ]
  },

Copy link
Contributor Author

Choose a reason for hiding this comment

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

since we allow this combo, we need to support it in code

Copy link
Contributor

Choose a reason for hiding this comment

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

OK I see. and in this case it is OK to keep accounts like this out of the online accounts table.

@algorandskiy algorandskiy merged commit 419fd7e into algorand:feature/320-rounds Jul 5, 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.

2 participants