-
Notifications
You must be signed in to change notification settings - Fork 30
fix(testrun): add timeouts for testrun #3236
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
9e0df20 to
30802e8
Compare
Introduce stricter checks for dead cluster instances as the test wait deadline approaches. Add configurable grace period, strict check window, and dead fraction threshold. Replace all-dead check with a fractional dead check to fail earlier when too many clusters are unavailable.
Added pytest-timeout v2.4.0 to dependencies to enable automatic abortion of hanging tests. Updated poetry.lock and pyproject.toml accordingly. This improves test reliability by preventing indefinite test runs.
Specify --timeout and --session-timeout options for target_tests, target_testpr, and target_testnets in .github/run_tests.sh. This ensures test runs have appropriate limits for duration and session, improving reliability and preventing hangs in CI workflows.
da83034 to
4a86013
Compare
Introduce SESSION_TIMEOUT environment variable to set an overall timeout for the test session in .github/run_tests.sh. The test runner now uses the timeout command to enforce this limit. Default values are set for different targets. This helps prevent excessively long test runs and improves CI reliability.
Add a background system resource monitor to regression.sh that logs CPU, memory, and disk usage every 10 minutes to monitor.log. Ensure monitor is stopped on script exit. Include monitor.log as a workflow artifact for analysis.
4a86013 to
7b94d09
Compare
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
Copilot reviewed 5 out of 6 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.
Previously, the testrun could run indefinitely. These changes introduce a various timeouts to prevent hanging tests.