Repository navigation
2026.11.19
Test retry now retries a test its framework stopped at its time limit, within the job's budget, and its end-of-run report says which failing tests the budget kept from a retry. @mergifyio/vitest no longer prints a [vitest-pool]: Timeout terminating forks worker error after flaky detection reran tests, mergify stack push no longer drops a hand-written Depends-On: #N from a pull request's description, mergify tests quarantines add can add a quarantine Mergify lifts once the test is healthy again, and mergify tests retry is now marked as in Preview.
Test clients
The new test retry report applies to every test client: pytest-mergify, rspec-mergify, minitest-mergify, @mergifyio/vitest, @mergifyio/playwright, @mergifyio/jest and @mergifyio/mocha. Retrying a test that timed out applies to all of them but rspec-mergify and minitest-mergify, whose frameworks set a test no time limit.
- A test the framework stopped at its time limit is now retried within the job's test retry budget. Test retry prices its retry at the mean test duration Mergify knows for the job, or at the test's own limit where that is shorter, and runs the retry under what is left of the budget where that is shorter than the test's own limit. A retry stopped there fails the test as usual. In a job Mergify knows no mean test duration for, the retry is priced and run as before. Until now, test retry priced a retry at how long the failed attempt took, so a test stopped at a 30 s limit cost 30 s, which a job's budget rarely covered, and the run failed on a timeout a retry might have passed.
- The test retry report now says how many of the failing tests Mergify retried ("so Mergify retried 2 of them", "but Mergify could not afford to retry it"), which ones the run fails on, and why each was not rescued: "Failed every retry:", "The budget ran out before Mergify could retry these as often as the repository allows:", with each test's attempts and whether it was "not retried", "the last one stopped" or "no budget for another", and "Mergify did not retry these as often as the repository allows, for a reason other than the budget:". The tests that passed on a retry read as before. Until now, the report could say "so Mergify retried it" of a test no retry ran on, then that it could not afford another attempt, and it had no way to say the budget stopped a retry.
pytest-mergify
- Test retry now retries a test pytest-timeout stopped with its
signalmethod. pytest-timeout's own timer runs the retry's limit, around the whole retry, or around its call only withfunc_only. Test retry gives no limit under 1 s, and does not retry a test that would need one. pytest-timeout'sthreadmethod ends the process, so a test it stops is still not retried. Until now, pytest-mergify never retried a test pytest-timeout stopped. Flaky detection reruns as before.
@mergifyio/vitest
- Flaky detection's reruns, and the collection of the files Fail First's early stop left unrun, no longer hold up Vitest's main process. Until now, when they took longer than Vitest's
teardownTimeout(10 s by default), Vitest printed[vitest-pool]: Timeout terminating forks worker for test files …after its summary, even when every test passed, so the line sat above Mergify's report and read as the cause of a failure. The worker had stopped, and nothing else was wrong. - A retry stopped at test retry's limit fails with Vitest's own
Test timed out in …ms., in Node, in the browser and on Cloudflare Workers. Vitest gives a reporter no way to abort the test'scontext.signal, as its own time limit does, so work the test started may go on in the background after its retry was stopped.
@mergifyio/playwright
- A retry runs under test retry's limit only in a test that uses the
testfrom@mergifyio/playwright; another test's retry is priced as before. A test that changes its own limit as it runs, withtest.slow()ortestInfo.setTimeout(), gets none of the budget's: its retry is priced at the whole limit it ended with.
@mergifyio/mocha
- A test that changes its own limit as it runs, with
this.timeout()in its body or a hook, gets none of the budget's limit, and one that changes it during a retry test retry limited is not retried again.
Stacks
mergify stack pushnow keeps, in the pull request's description, aDepends-On: #Nline written in a commit message to hold the pull request behind another one of the same repository outside the stack. Until now, the push removed everyDepends-On: #Nline before adding its own for the pull request below in the stack, so such a pull request lost its line without a word and could merge first; onlyowner/repo#Nreferences and URLs survived. With--keep-pull-request-title-and-body, aDepends-On: #Nthat is the last paragraph of the kept description is still taken for the push's own and replaced, as before.
mergify CLI
mergify tests quarantines addtakes--unquarantine-when-healthy, for a quarantine Mergify lifts on its own once the test is healthy again, no longer detected as flaky or broken. It is off by default, as in the dashboard and the API, and cannot be changed on an existing quarantine: remove the quarantine and add it again.mergify tests quarantines listandgetshow it on every quarantine, manual or automatic, as anunquarantine:line (when healthyormanually), and their--json, likeadd's, carries it asunquarantine_when_healthy. Until now, such a quarantine could only be added from the dashboard or the API.mergify tests retrynow shows[Preview]at the end of its description, in its--help, in the list ofmergify tests --help, in the man page and in the CLI schema: test retry is in Preview and the command may still change. It runs as before.
Agent skills
- The
mergify-ciskill saysmergify tests retryis in Preview and may still change, and describes--unquarantine-when-healthywith an example, along with theunquarantine_when_healthyfield ofmergify tests quarantines. - The
mergify-merge-protectionsandmergify-stackskills no longer ask forDepends-On: owner/repo#Nfor a pull request of the same repository, now thatmergify stack pushkeepsDepends-On: #N, and say what to check when an older release still drops it. - The rules the
mergify-merge-protectionsskill lists now match what Mergify does: aDepends-Online holds one reference and nothing else, or Mergify ignores it and the pull request is not held; every pull request it references is in a repository with Mergify and the same owner; a reference Mergify cannot resolve, or a dependency closed without merging, fails the protection; a cycle or a pull request depending on itself blocks every pull request in it; past 50 dependencies, the protection fails. Until now, the skill said a cycle was ignored, and asked for the same organization rather than the same owner.
Mergify API version 2026-11-16