Repository navigation
test(e2e): check large transaction batches without assuming order - #1493
Conversation
Wait for all submitted transactions and compare their minimum and maximum block heights. Async propagation can deliver the last submission before intermediate transactions. Co-Authored-By: Codex <[email protected]> <sub>🤖 Co-authored by [Claudius the Magnificent](https://github.com/lklimek/claudius) AI Agent</sub>
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository: dashpay/tenderdash/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
|
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
The change is test-only, directly addresses the stated flakiness cause, and the updated logic correctly verifies all transactions commit while avoiding order assumptions.
Review effort: Lite
Findings: None
What changed in this PR
This PR updates the TestApp_TxTooBig E2E test to avoid timing-dependent assumptions about transaction arrival order at the proposer, while still verifying that a batch exceeding block capacity spans multiple blocks.
Changes:
- Track and verify inclusion of all submitted transaction hashes (instead of only first/last).
- Make the inclusion check order-independent by collecting min/max committed heights across the whole batch.
- Fail immediately on broadcast errors and avoid repeated RPC queries by removing confirmed transactions from the pending set.
| File | Description |
|---|---|
test/e2e/tests/app_test.go |
Makes TestApp_TxTooBig robust to out-of-order propagation by verifying all txs commit and the batch spans multiple heights. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
TestApp_TxTooBig no longer asserts submission order, only that every transaction commits across multiple blocks. Reword the comment so it does not claim the test depends on preserved ordering. Co-Authored-By: Claude Sonnet 5 <[email protected]>
thepastaclaw
left a comment
There was a problem hiding this comment.
⚠️ DEGRADED — Final validation — Phase 1 + Phase 2
⚠️ DEGRADED review. The primary review models were unavailable (gpt-6-astraunavailable: All credentials for model gpt-6-astra are cooling down (last error: usage_limit_reached: The usage limit has been reache), so this review ran on stand-in models:gpt-5.6-luna→muse-spark-1.3-contributor,gpt-5.6-sol→muse-spark-1.3-contributor,gpt-5.6-terra→muse-spark-1.3-contributor,gpt-6-astra→muse-spark-1.3-contributor. Both review phases and the independent verifiers still ran, but on weaker models, with Phase 1 capped athigheffort. Treat the verdict as provisional; a full-strength re-review will run on the next push once the primary models are back.
Test-only fix for flaky TestApp_TxTooBig verified against the diff: order-dependent first-vs-last assertion replaced with wait-for-all-101 plus min<max height span. Map-delete-during-range, minHeight sentinel, require-on-broadcast, surviving imports, and gofmt are all sound. No defects found.
Review provenance
Source: reviewer 1: glm-5.3-flash (agent: phase1-reviewer, role: general); reviewer 2: muse-spark-1.3-contributor (standing in for gpt-6-astra) (agent: phase2-reviewer, role: general); final verifier: muse-spark-1.3-contributor (standing in for gpt-6-astra) (agent: astra-verifier, role: final-verifier)
- Degraded mode:
gpt-6-astraunavailable: All credentials for model gpt-6-astra are cooling down (last error: usage_limit_reached: The usage limit has been reache (detected by probe, since 2026-09-20T20:45:34Z); stand-insgpt-5.6-luna→muse-spark-1.3-contributor,gpt-5.6-sol→muse-spark-1.3-contributor,gpt-5.6-terra→muse-spark-1.3-contributor,gpt-6-astra→muse-spark-1.3-contributor; Phase 1 effort capped athigh - Triage:
lowbymuse-spark-1.3-contributor(standing in forgpt-6-astra) (effort low) — Test-only fix to large-transaction E2E ordering assertion is small, contained, and does not touch consensus or other critical surfaces. - Phase 1 reviewers:
glm-5.3-flash— general (completed, effort high); agentphase1-reviewer - Phase 1 model:
glm-5.3-flash— zai quota: 5h 85% left, weekly 93% left; passed overgemini-3.8-flash-high(lane failed) - Fresh verifier:
muse-spark-1.3-contributor(standing in forgpt-6-astra) — final-verifier; agentastra-verifier - Phase 2 reviewers:
muse-spark-1.3-contributor(standing in forgpt-6-astra) — general (completed, effort medium); agentphase2-reviewer
|
Bots are done — your move: post |
|
/self-reviewed |
|
Policy satisfied — this can merge. |
Fix the timing-dependent large-transaction E2E check so valid out-of-order propagation does not fail CI.
Issue being fixed or feature implemented
The rotate job on #1478 failed because
TestApp_TxTooBigassumes the first and last submissions must occupy different blocks. The node logs show the proposer received transactions 0–80 and 100 before building block 1478, while 81–99 arrived later. Both endpoints legitimately landed in the same block.Failure: https://github.com/dashpay/tenderdash/actions/runs/35583746184/job/106282198652
This PR is based directly on
v1.8-devand is independent of #1478.What was done?
Retain all 101 transaction hashes, wait for every transaction to be committed, and assert that the minimum and maximum committed block heights differ. Successfully checked hashes are removed from the pending set to avoid repeated RPC queries. Broadcast errors now fail immediately.
How Has This Been Tested?
go test -race -tags=deadlock -p 1 ./test/e2e/tests -run '^TestLargeTxCIRepro$' -count=1 -v. The temporary fixture is not part of this PR.gofmt,git diff --check, and focused golangci-lint v2.13.2 passed (zero lint issues).Breaking Changes
None; test-only change.
Checklist:
For repository code-owners and collaborators only
🤖 Co-authored by Claudius the Magnificent AI Agent
PR Hygiene ·
de6cefcWhen every box is checked the
PR Hygienecheck passes and this can merge.