-
Notifications
You must be signed in to change notification settings - Fork 244
Pack tests - part A #7448
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
Pack tests - part A #7448
Conversation
|
Really strange failure, with the schema endpoint returning an empty body: https://github.com/microsoft/CCF/actions/runs/19175402504/job/54911735292?pr=7448 |
|
This is caused by the GOV_API_SCHEMA_2023_06_01_PREVIEW cmake var being expanded in api_schema.h.in. The test failing is comparing the contents of the file to what is returned by In a build with a clean cmake cache, GOV_API_SCHEMA_2023_06_01_PREVIEW is empty, and so the endpoint legitimately returns an empty body. I am restoring the cmake variable for now, and will PR a separate removal of 2023-06-01-preview, or at least its deprecation for 7.x (depending on the usage situation). |
|
|
Co-authored-by: Eddy Ashton <[email protected]>
Co-authored-by: Copilot <[email protected]> Co-authored-by: Amaury Chamayou <[email protected]>
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.
Pull Request Overview
This PR consolidates Python test files to reduce CI execution time by approximately 4 minutes (from 28m to 24m). The changes pack multiple test suites that were previously run separately into combined test runners using the ConcurrentRunner framework.
Key changes:
- Consolidates
election.py,rotation.py,committable.py, andreconfiguration.pytests intonodes.pyrunner - Merges
membership.pyandmemberclient.pytests intogovernance.pyrunner - Updates test suite imports from
electiontonodesmodule - Removes standalone test definitions from CMakeLists.txt in favor of consolidated test runners
Reviewed Changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| tests/suite/test_suite.py | Updated import from election to nodes module and replaced test function references accordingly |
| tests/rotation.py | Deleted file - functionality moved to nodes.run_rotations() |
| tests/reconfiguration.py | Removed __main__ block and ConcurrentRunner import since tests are now called from nodes.py |
| tests/nodes.py | Added run_rotations() function, imports for reconfiguration and committable, and consolidated multiple test runners into single concurrent runner |
| tests/membership.py | Removed __main__ block and unused imports (infra.e2e_args, infra.consortium, ConcurrentRunner, memberclient) |
| tests/infra/runner.py | Changed logging sink from sys.stderr to sys.stdout for better log output handling |
| tests/governance.py | Added imports for memberclient and membership, added test runners for both modules to consolidate execution |
| tests/committable.py | Removed __main__ block since test is now called from nodes.py |
| CMakeLists.txt | Removed individual test definitions (rotation_test, election_test, reconfiguration_test, committable_suffix_test, membership_api_1) and replaced with consolidated nodes_test; moved consistency_trace_validation into LONG_TESTS conditional block |
Fresh start on remaining parts of #7417 to pack the tests more efficiently. A first batch that cuts down ~4 minutes from CI time.