ci: replace pytest-flaky with pytest-rerunfailures for explicit rerun visibility#1201
Open
securely1g wants to merge 1 commit into
Open
ci: replace pytest-flaky with pytest-rerunfailures for explicit rerun visibility#1201securely1g wants to merge 1 commit into
securely1g wants to merge 1 commit into
Conversation
… visibility Replace the bare pytest invocation with pytest-rerunfailures (--reruns 2 --reruns-delay 1) in the unit test CI pipeline. The test_ProducerTable failure in build 1123755 was a flaky environmental issue (95.67% disk usage on the Azure agent). Adding automatic retries with visible RERUN markers will prevent such transient failures from blocking the pipeline while still surfacing which tests are flaky. Before: test_ProducerTable FAILED [ 26%] =========== 1 failed, 37 passed =========== After (with reruns): test_ProducerTable FAILED [ 26%] test_ProducerTable RERUN [ 26%] test_ProducerTable PASSED [ 26%] =========== 38 passed, 1 rerun =========== Signed-off-by: Guohan Lu <lianguohan@gmail.com>
|
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
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.
Replace the bare pytest invocation with pytest-rerunfailures (
--reruns 2 --reruns-delay 1) in the unit test CI pipeline.The
test_ProducerTablefailure in build 1123755 was a flaky environmental issue (95.67% disk usage on the Azure agent). Adding automatic retries with visible RERUN markers will prevent such transient failures from blocking the pipeline while still surfacing which tests are flaky.Before (bare pytest):
After (pytest-rerunfailures):
This mirrors the approach taken in sonic-swss (sonic-net/sonic-swss#4612).
Signed-off-by: Guohan Lu lianguohan@gmail.com