Fix/more flaky tests#9474
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR addresses flaky test issues by improving test reliability and modernizing C# syntax patterns. The changes focus on making asynchronous operations more robust in end-to-end synchronization tests and engine module tests.
Key changes:
- Enhanced synchronization in E2E tests by adding proper wait mechanisms for block processing
- Improved timing-sensitive payload production tests with retry mechanisms and better timeout handling
- Updated method calls to use async versions where appropriate
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| E2ESyncTests.cs | Added block processing wait mechanism, modernized variable declarations, and switched to async block suggestion |
| EngineModuleTests.PayloadProduction.cs | Added retry attribute for flaky test, improved timing calculations, and modernized TaskCompletionSource syntax |
| ParityStyleTracerTests.cs | Converted synchronous test to async and updated to use async block suggestion method |
benaadams
approved these changes
Oct 15, 2025
… Big_test((storage_hash_and_code_hash_same, System.Action`3[Nethermind.State.StateTree,Nethermind.Trie.Pruning.ITrieStore,Nethermind.Db.IDb]))
Member
Author
|
@asdacap I don't have good idea what to do with: |
benaadams
approved these changes
Oct 15, 2025
Comment on lines
+63
to
+64
| .AddScoped<IBlockchainProcessor>(ctx => ctx.Resolve<BlockchainProcessor>()) | ||
| .AddScoped<IBlockProcessingQueue>(ctx => ctx.Resolve<BlockchainProcessor>()) |
Contributor
There was a problem hiding this comment.
Pull Request Overview
Copilot reviewed 12 out of 12 changed files in this pull request and generated 3 comments.
Comments suppressed due to low confidence (1)
src/Nethermind/Nethermind.Consensus/Processing/IMainProcessingContext.cs:1
- Adding BlockProcessingQueue to a public interface is a breaking change for any external implementers. Consider exposing this via an extension method (e.g., GetBlockProcessingQueue(this IMainProcessingContext) => (IBlockProcessingQueue)context.BlockchainProcessor) or clearly document the breaking change and ensure all implementers are updated.
// SPDX-FileCopyrightText: 2025 Demerzel Solutions Limited
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.
Types of changes
What types of changes does your code introduce?