Replies: 2 comments 2 replies
-
I think the answer lies in this paragraph: https://docs.mergify.com/conditions/#validating-all-status-checks TL;DR: this is not possible and dangerous because when a PR is created, there is no failure of tests with "matrix" in the name, so the PR would be merged without any test run at all. |
Beta Was this translation helpful? Give feedback.
-
@jd I provided only this snippet to focus the question. I have another rule that requires a specific test to pass. I tested the PR in question (now merged and closed) against the configuration using the Mergify config editor. The 16 checks are all The name of the actual test has been changed to "matrix" for privacy, but otherwise... I have a PR that has run, among other checks, 2 separate checks with the name "matrix". One failed and one succeeded (it was the same test but on different parts of the PR). It is listed in the status checks twice as such. Using the Mergify config editor to test rules against the PR:
The correct numbers are 11 passed and 5 failed (2 failed, 3 cancelled). My suspicion is that the results are all off because the test names appear more than once in the list. (Probably the 12th success was the Mergify delete of the branch.) For every non-successful test, there was another check in the same check suite with the same name that was a success. I would accept the result of both of So I would like the bug to be fixed, and until then, I would welcome any ideas about a workaround. |
Beta Was this translation helpful? Give feedback.
-
we have a rule like
Unfortunately, this rule passes when we have 2 status checks named "matrix" and one succeeds and one fails. Is that the intended behavior? I thought that if one fails,
check-failure
would be true, even though the other succeeded.More details in a follow-up comment below
Beta Was this translation helpful? Give feedback.
All reactions