chainlink-testing-framework
chainlink-testing-framework copied to clipboard
Flakeguard: Resolve Full Paths for Run Command and Extract Test Parser Module
- Add full path resolution for project and results paths in run command
- Move test parser to separate module
Below is a summarization created by an LLM (gpt-4-0125-preview). Be mindful of hallucinations and verify accuracy.
Why
- Added support for
golang 1.24.0to ensure compatibility and leverage the latest features and security patches. - Introduced a new field
TestDirinCITestConfstructure to enable specification of test directories, enhancing configuration flexibility. - Implemented full path resolution for
projectPath,mainResultsPath, andrerunResultsPathinflakeguard/cmd/run.goto ensure consistent path handling across different environments. - Integrated a spinner feedback mechanism during custom test command execution to provide real-time status updates, improving user experience.
- Developed a unified command execution function
executeCommandto streamline running and handling output of test commands, promoting code reuse and maintainability. - Extracted JSON parsing related functionalities into a separate
testparserpackage, facilitating code organization and focus on parsing logic. - Adopted a test-centric approach in
testparserto accurately attribute panics and data races to specific tests, enhancing error reporting and analysis.
What
-
.tool-versions- Added
golang 1.24.0.
- Added
-
tools/citool/cmd/types.go- Added
TestDir stringfield inCITestConfstructure.
- Added
-
tools/flakeguard/cmd/run.go- Implemented path resolution for
projectPath,mainResultsPath, andrerunResultsPath. - Added a spinner feedback mechanism during custom test command execution.
- Introduced
executeCommandfunction to handle execution of test-related commands.
- Implemented path resolution for
-
tools/flakeguard/runner/runner.go- Refactored to use
executeCommandfor running test packages and commands. - Removed unused code and simplified test result parsing logic.
- Refactored to use
-
tools/flakeguard/runner/runner_test.go- Updated tests to reflect changes in the
runnerpackage.
- Updated tests to reflect changes in the
-
tools/flakeguard/testparser/testparser.go- Introduced new package for parsing test results from JSON files.
- Included functions to attribute panics and data races to specific tests.
-
tools/flakeguard/testparser/testparser_test.go- Added tests for the
testparserpackage functionalities.
- Added tests for the