-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TT-922] Universal concurrent executor #927
Merged
Merged
Conversation
This file contains 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
AnieeG
reviewed
Apr 25, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Partial review
AnieeG
reviewed
Apr 25, 2024
kalverra
requested changes
Apr 25, 2024
AnieeG
approved these changes
Apr 26, 2024
…arent context in concurrent executor
…chainlink-testing-framework into tt_922_automation_seth
Quality Gate failedFailed conditions |
kalverra
approved these changes
Apr 29, 2024
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.
I found myself repeating the same patter in
chainlink
repo, when migrating Automation tests that require concurrent deployment with Seth and decides to abstract it away and add to CTF for reuse.Below is a summarization created by an LLM (gpt-4-0125-preview). Be mindful of hallucinations and verify accuracy.
Why
The changes improve the concurrency utilities by introducing a new
ConcurrentExecutor
class that handles tasks in parallel, enhancing error handling and task distribution. The addition oftxpool, debug, trace
modules tonethermind_eth2.go
extends the JSON-RPC capabilities of the Nethermind client. Adjustments inreorg.go
aim to standardize constants related to Ethereum Geth nodes, potentially simplifying configuration or deployment logic. The introduction of aDivideSlice
utility function inslice.go
facilitates more efficient division of workloads for concurrent processing.What
concurrency/example.go
introduces a new file demonstrating the deployment of contracts with configurable and identical settings in a concurrent manner.concurrency/executor.go
adds a newConcurrentExecutor
class to manage concurrent task execution with improved error handling and task distribution logic.concurrency/executor_test.go
provides tests for theConcurrentExecutor
class, ensuring functionality such as fail-fast behavior and task execution with varying concurrency levels.docker/test_env/nethermind_eth2.go
updates the--JsonRpc.EnabledModules
parameter to includetxpool, debug, trace
modules, enhancing the JSON-RPC functionalities of the Nethermind Ethereum client.k8s/pkg/helm/reorg/reorg.go
defines new constants (URLsKey
,TXNodesAppLabel
,MinerNodesAppLabel
) likely for more standardized handling or identification of Ethereum Geth nodes in Kubernetes deployments.utils/slice/slice.go
introduces a utility functionDivideSlice
for evenly dividing a slice into a specified number of parts, useful for distributing tasks among workers in concurrent operations.