Commit 667ed3b
Add auto-retry for flaky PyPerf test to improve CI stability
The test_dso_name_in_pyperf_profile test occasionally fails due to PyPerf
timeouts, particularly with Python 2.7. This is caused by timing issues in
CI environments where PyPerf may not generate profile files within the
5-second timeout.
Changes:
- Add pytest-rerunfailures==15.0 to dev-requirements.txt
- Mark test_dso_name_in_pyperf_profile with @pytest.mark.flaky(reruns=3, reruns_delay=2)
The test will now automatically retry up to 3 times with a 2-second delay
between attempts, which should handle sporadic timeout issues while still
catching genuine failures.
Related issue: Sporadic test failure observed in CI runs
Example failure: https://github.com/intel/gprofiler/actions/runs/19146096101/job/54734480910
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent f96a4f3 commit 667ed3b
2 files changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| 164 | + | |
164 | 165 | | |
165 | 166 | | |
166 | 167 | | |
| |||
0 commit comments