Refactor test runner's composite adapter #10
Merged
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.
This pull request refactors the test runner's composite adapter system, consolidating and renaming it as the
TestManagerAdapter. It simplifies adapter initialization, removes unused adapters, and introduces a new snapshot version adapter. Additionally, it improves version tracking and error handling in environment setup and reporting.Major refactoring and consolidation:
CompositeAdapterwith a newTestManagerAdapter, moving and renaming related files and types frominternal/adapters/compositetointernal/adapters/composite/testmanager. The new adapter now initializes all required sub-adapters internally, reducing complexity inmain.goand centralizing test environment management. [1] [2] [3] [4] [5] [6]snapshots,blocknumber, etc.) from the main runner and composite adapter construction, streamlining dependencies and setup. [1] [2] [3] [4] [5] [6]New snapshot version support:
snapshotversion.Adapterininternal/adapters/shared/snapshotversion, which reads and parses a snapshot version file for improved version tracking. This adapter is now included in the environment setup process. [1] [2] [3]Improved version tracking and error handling:
Other improvements:
Overall, these changes modernize and simplify the test runner's architecture, improve reliability, and enhance reporting for client and snapshot versions.