-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Introduced reusable runtimes for runtime tests #8520
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
Conversation
These should be used in cases when the state of the runtime is not changed by the test, as it is much faster
…nds into faster-runtime-tests
…nds into faster-runtime-tests
…nds into faster-runtime-tests
…nds into faster-runtime-tests
|
Looks like there are a few issues preventing this PR from being merged!
If you'd like me to help, just leave a comment, like
Feel free to include any additional details that might help me get this PR into a better state. You can manage your notification settings |
|
This PR is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
|
This PR was closed because it had no activity for 50 days. If you feel this was closed in error, and you would like to continue the PR, please resubmit or let us know. |
End-user friendly description of the problem this fixes or functionality this introduces.
This PR introduces reusable runtime fixtures for tests that don't modify the container state, significantly improving test performance by reducing the number of runtime environments that need to be created and torn down during testing.
Summarize what the PR does, explaining any non-trivial design decisions.
Introduces module-scoped reusable runtime fixtures:
reusable_runtime_and_config- Creates a shared runtime that persists across multiple testsreusable_runtimeandreusable_config- Convenience fixtures that extract the runtime and configImproves runtime management:
_load_runtimetocreate_runtime_and_configfor better clarityclose_test_runtimeto properly clean up resourcesOptimizes test execution:
These changes maintain test isolation where needed while improving performance by reusing runtimes when possible. This is particularly valuable for CI/CD pipelines and local development.
Link of any specific issues this addresses:
To run this PR locally, use the following command: