Skip to content

Commit

Permalink
Merge pull request #145 from grondo/ci-fixes
Browse files Browse the repository at this point in the history
ci: fix mergify config and prevent spurious test failures
  • Loading branch information
garlick authored Jun 10, 2022
2 parents b18b974 + 88b638d commit 78f62f9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
21 changes: 16 additions & 5 deletions .mergify.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pull_request_rules:
- name: rebase and merge when passing all checks
queue_rules:
- name: default
conditions:
- base=master
- status-success="validate commits"
Expand All @@ -12,11 +12,22 @@ pull_request_rules:
- "#approved-reviews-by>0"
- "#changes-requested-reviews-by=0"
- -title~=^\[*[Ww][Ii][Pp]

pull_request_rules:
- name: rebase and merge when passing all checks
conditions:
- base=master
- label="merge-when-passing"
- label!="work-in-progress"
- "approved-reviews-by=@chaos/chaos-developers"
- "#approved-reviews-by>0"
- "#changes-requested-reviews-by=0"
- -title~=^\[*[Ww][Ii][Pp]
actions:
merge:
queue:
name: default
method: merge
strict: smart
strict_method: rebase
update_method: rebase
- name: remove outdated approved reviews
conditions:
- author!=@chaos-developers
Expand Down
2 changes: 0 additions & 2 deletions tests/t0001-basic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ EOF
chmod +x passing-todo.sh &&
./passing-todo.sh >out 2>err &&
! test -s err &&
sed -e 's/^> //' >expect <<EOF &&
> ok 1 - pretend we have fixed a known breakage # TODO known breakage
> # fixed 1 known breakage(s)
Expand Down Expand Up @@ -95,7 +94,6 @@ test_done
EOF
chmod +x failing-cleanup.sh &&
test_must_fail ./failing-cleanup.sh >out 2>err &&
! test -s err &&
! test -f \"trash directory.failing-cleanup/clean-after-failure\" &&
sed -e 's/Z$//' -e 's/^> //' >expect <<\EOF &&
> not ok - 1 tests clean up even after a failure
Expand Down

0 comments on commit 78f62f9

Please sign in to comment.