Skip to content

e2e tests: log pending transactions in case of failure#5062

Merged
algorandskiy merged 1 commit into
algorand:masterfrom
algorandskiy:pavel/e2e-tests-debug
Jan 26, 2023
Merged

e2e tests: log pending transactions in case of failure#5062
algorandskiy merged 1 commit into
algorand:masterfrom
algorandskiy:pavel/e2e-tests-debug

Conversation

@algorandskiy
Copy link
Copy Markdown
Contributor

Summary

Time to time some e2e tests fails on waiting for txn go get included into a block. This change adds more logging for such failures to ensure txns are at least propagated to all nodes.

Test Plan

This is a test fixture change.

@algorandskiy algorandskiy added tech debt Things that need re-work for simplification / sanitization to reduce implementation overhead Team Carbon-11 labels Jan 26, 2023
@algorandskiy algorandskiy self-assigned this Jan 26, 2023
@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 26, 2023

Codecov Report

Merging #5062 (f2c12ef) into master (92bb3ce) will increase coverage by 0.03%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #5062      +/-   ##
==========================================
+ Coverage   53.57%   53.60%   +0.03%     
==========================================
  Files         430      430              
  Lines       54091    54091              
==========================================
+ Hits        28979    28996      +17     
+ Misses      22868    22851      -17     
  Partials     2244     2244              
Impacted Files Coverage Δ
catchup/peerSelector.go 98.95% <0.00%> (-1.05%) ⬇️
ledger/tracker.go 74.26% <0.00%> (-0.85%) ⬇️
ledger/acctupdates.go 69.36% <0.00%> (+0.12%) ⬆️
network/wsNetwork.go 65.01% <0.00%> (+0.26%) ⬆️
ledger/testing/randomAccounts.go 56.88% <0.00%> (+0.61%) ⬆️
network/wsPeer.go 68.79% <0.00%> (+2.36%) ⬆️
ledger/blockqueue.go 84.94% <0.00%> (+2.68%) ⬆️

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

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.

Great! thanks for doing this.
It is terrible some of these logging information was missing for so long.

for _, txn := range pendingTxns.TopTransactions {
pendingTxids = append(pendingTxids, txn.Txn.ID().String())
}
f.t.Logf("pending txids at node %s: %v", nodedir, pendingTxids)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This information might not always be relevant, also there could be so many of them depending on the test situation.

Is there a cap on the total number? Maybe limit it to some number so it won't print a huge number in some unlucky situation.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

our tests do not submit lots of txn, and in case of failure only few are expected to be still pending.

@algorandskiy algorandskiy merged commit fe83286 into algorand:master Jan 26, 2023
@algorandskiy algorandskiy deleted the pavel/e2e-tests-debug branch March 16, 2026 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Skip-Release-Notes Team Carbon-11 tech debt Things that need re-work for simplification / sanitization to reduce implementation overhead

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants