test(devnet): re-inject --sequence on mismatch in everlight retry loop#124
Merged
mateeullahmalik merged 1 commit intomasterfrom Apr 27, 2026
Merged
test(devnet): re-inject --sequence on mismatch in everlight retry loop#124mateeullahmalik merged 1 commit intomasterfrom
mateeullahmalik merged 1 commit intomasterfrom
Conversation
The everlight test's run_tx_with_retry helper retried up to 3x with sleep 2 on 'account sequence mismatch' but never reseeded the sequence. lumerad kept reading the stale local sequence cache, so every retry hit the same expected/got delta. Under load (S2's report churn -> S3.1's first big tx) this manifested as a hard fail instead of recovering. Fix: - Parse expected sequence from raw_log - Strip any prior --sequence flag and re-inject --sequence N - Bump retries 3 -> 5, sleep 2 -> 3 (still epoch-safe) Test-only change. No chain or supernode behavior modified. Verified locally on master devnet: PASS:35 FAIL:0 SKIP:4 EXIT=0.
Reviewed the changes to Mention @roomote in a comment to request specific changes to this pull request or fix all unresolved issues. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fix a real flake in everlight_test.sh exposed on master after PR #123 went green.
RCA
run_tx_with_retry retried 3x with sleep 2 on account sequence mismatch but never reseeded the sequence. lumerad kept reading the stale local sequence cache, so every retry hit the same expected/got delta. Under churn (S2 report retries followed by S3.1 first big tx) this manifested as a hard FAIL of S3.1.
Fix (test-only)
Risks / Rollback
Test-only. No chain, no supernode, no module code touched.
Verification
Master + clean devnet: PASS: 35 FAIL: 0 SKIP: 4 EXIT=0. S3.1 now correctly returns SKIP (legitimate epoch-resource path) instead of failing on a recoverable sequence cache miss.