test: wait for the payload's commit in SendNewBlockV2 before reading its state - #13793
Open
LukaszRozmej wants to merge 2 commits into
Open
LukaszRozmej wants to merge 2 commits into
LukaszRozmej wants to merge 2 commits into
Conversation
Contributor
|
Claude finished @LukaszRozmej's task in 31s —— View job Review: PR #13793
Verdict: good to merge. No Critical, High or Medium findings. Correctness
Other helper I checked
Comment quality
Performance and security: the change only touches test code, so neither applies. |
LukaszRozmej
commented
Sep 24, 2026
This branch has not been deployed
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.
Changes
SendNewBlockV2waits for the block's state to be committed before returning. Since perf(engine): answer newPayload once the block is executed, before it is committed #13647,engine_newPayloadanswers VALID before the commit, so tests that read the new block's state next (BuildTransactionsin thegetPayloadBodiesBy*tests) could hitStateNotRetainedExceptionfor block 1 on the flat backend (failed run). Same fix as Fix flaky engine tests building a child on a parent whose state is not yet committed #13740 and test: wait for the payload's commit before building on it in Cannot_produce_bad_blocks #13771, applied to the helper that was missed.Types of changes
What types of changes does your code introduce?
Testing
Requires testing
If yes, did you write tests?
Notes on testing
Test-only change; all 22
getPayloadBodiesBy*tests pass locally.Documentation
Requires documentation update
Requires explanation in Release Notes