-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Split rest_api test runs to improve performance #9550
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
Merged
Merged
Conversation
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
SpecLad
reviewed
Jun 19, 2025
553dc63
to
415de02
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #9550 +/- ##
===========================================
- Coverage 73.78% 71.74% -2.05%
===========================================
Files 448 441 -7
Lines 46774 46246 -528
Branches 3943 3943
===========================================
- Hits 34514 33178 -1336
- Misses 12260 13068 +808
🚀 New features to boost your workflow:
|
orazvaliev
reviewed
Jun 25, 2025
TODO: add license on new files |
|
orazvaliev
approved these changes
Jun 26, 2025
/check |
🚫 Workflows has been canceled |
/check |
✔️ All checks completed successfully |
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.
This splits rest_api test execution between two groups of tests executed on two different github-runners.
rest_api_testing
job now consists of 3 worker: slow batch with cache, slow batch no cache, fast batchRuntime reduced from 50min to 25min
The two slowest test classes
tests/python/rest_api/test_tasks.py::{TestTaskData, TestPostTaskData}
are now run separately and parametrized byCVAT_ALLOW_STATIC_CACHE
server parameter.Allure reports and coverage report routines were updated accordingly, similar to
e2e_testing
github workflow jobHow has this been tested?
This is a test refactoring PR, so the only test for this is that tests don't crash or fail unexpectedly. The three groups are executed separately each using their own instance of the current testing infra
Checklist
develop
branchLicense
Feel free to contact the maintainers if that's a concern.