test: add rerun backoff to test_execution_summary#394
Merged
Conversation
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #394 +/- ##
=======================================
Coverage 91.81% 91.81%
=======================================
Files 15 15
Lines 1112 1112
Branches 138 138
=======================================
Hits 1021 1021
Misses 69 69
Partials 22 22 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds retry backoff logic to the test_execution_summary test to handle flaky failures on slow CI runners (Mac, PyPy). The test was failing because insufficient samples were being collected before the monitored process exited, resulting in None values for execution summary metrics.
Changes:
- Added
@pytest.mark.flaky(reruns=5)decorator to enable automatic retries - Implemented backoff mechanism that scales sleep time and report interval based on retry attempt number
- Added pytest
requestfixture to access retry attempt information
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
candleindark
approved these changes
Feb 2, 2026
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
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.
Summary
test_execution_summaryto handle slow CI runners (Mac, PyPy) where the short sleep time doesn't allow enough samples to be collectedCloses #384
🤖 Generated with Claude Code