Skip to content

Commit 79c96cf

Browse files
author
Andrei Neagu
committed
retry flaky tests when PR is approved
1 parent a53b33e commit 79c96cf

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.github/mergify.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,29 @@ queue_rules:
2424

2525
# NOTE: in case of flaky tests you above checks will fail
2626
# the PR will be removed from the queue.
27-
# This retries the checks, as soon as they become green,
28-
# the PR will be pusehd to the queu again
27+
# Once the PR is ready to be merged the flaky tests will
28+
# be retried automatically.
29+
# As soon as the CI is green, the PR will be pusehd to the queu
2930
pull_request_rules:
30-
- name: retry CI on fails (used for flaky tests)
31+
- name: retry flaky thests (when PR is approved)
3132
conditions:
3233
- label=🤖-automerge
3334
- label!=🤖-do-not-merge
3435
- base=master
36+
37+
- -draft # PR is not in draft state
38+
- -conflict # No merge conflicts
39+
- "#approved-reviews-by>=2" # Requires 2 approving reviews
40+
- "#changes-requested-reviews-by=0" # No changes requested
41+
- "#review-threads-unresolved=0" # All review threads resolved
42+
3543
- or:
3644
- check-failure=unit-tests
3745
- check-failure=integration-tests
3846
- check-failure=system-tests
3947
actions:
48+
comment:
49+
message: "Restarted CI due to failing tests"
4050
github_actions:
4151
workflow:
4252
dispatch:

0 commit comments

Comments
 (0)