Skip to content

2026.10.8

Choose a tag to compare

@mergify-ci-bot mergify-ci-bot released this 23 Oct 16:29
· 23 commits to main since this release
Immutable release. Only release title and notes can be modified.
a28f104

minitest-mergify is out: Minitest suites, Rails' included, report to Test Engine without a JUnit file and get the quarantine, flaky detection and Fail First. rspec-mergify now names each example by its file, groups and description instead of its position, and Fail First no longer needs a variable on each job. Read the first section before you upgrade.

Before you upgrade

  • rspec-mergify names each example <file> > <groups> > <description>, where it used RSpec's id (./spec/models/user_spec.rb[1:2]), which numbers an example by its place: adding an example renamed every one after it, and handed its quarantine entry and its history to its neighbour. Mergify's lists keep matching after the upgrade: an example quarantined, known flaky or known unhealthy under its id is still treated that way, and the upgrade's pull request takes no example for a new one. A repository moving from a JUnit upload keeps its entries too, under the names that upload gave, except that flaky detection takes an example without a description for a new one on the pull request that switches. Two things do change. Each example's history on the dashboard starts over under its new name. And an entry made under an id still follows that place rather than the example, so quarantine those examples again under their new names.
  • rspec-mergify now runs on mergify-ci-core, a new gem that holds the part compiled for each platform. Bundler installs it with rspec-mergify, at the same version, precompiled for Linux (glibc and musl), macOS and Windows. A gem mirror that serves an allowlist needs it too.
  • Fail First is on by default. Every merge-queue batch build that can be a bisection step asks Mergify for the tests that failed in the batch it was split from, without MERGIFY_TEST_SELECTION_ENABLE=true on the job. MERGIFY_FAIL_FIRST_ENABLE=false turns it off for a job. MERGIFY_TEST_SELECTION_ENABLE is still read while the new variable is unset, and the report names it deprecated.
  • A test quarantined on the dashboard for one pipeline or one job is now quarantined there only. Every reporter used to absorb its failure in every job of the branch, the jobs meant to keep failing on it included.

Minitest

  • minitest-mergify is a Minitest plugin, for Minitest 5.19 and later on Ruby 3.1 and later, and Minitest 6 on Ruby 3.2 and later. Add it to your Gemfile, and require it where your suite sets Minitest up, before its tests are defined, such as in test/test_helper.rb:

    require 'minitest/mergify'
  • It reports runs in one process, in Minitest's threads (parallelize_me!) and in Rails' parallel workers (parallelize), and keeps the reporters you already use, minitest-reporters included. A quarantined failure doesn't fail the run, and reads as a skip in Minitest's summary. New tests are rerun on a pull request to catch a flaky one before it merges, and a merge queue bisection step runs its batch's failures first.

  • A test in a class is named as Minitest names it, UserTest#test_valid; one in a describe block by its file, its describes and its text. A test quarantined under the name a JUnit upload gave it (UserTest.test_valid, from minitest-junit or minitest-reporters) stays quarantined.

Test clients

  • Fail First asks only in a merge-queue batch build, the only build that can be a bisection step, and every other build asks nothing. A run Mergify has nothing to say about prints no Fail First block.

mergify CLI

  • mergify tests runs lists the test runs Mergify received for a commit, one line per job name they arrived under: how many runs and re-runs, how many arrived whole, the plugin or report that sent them and its version, and their test counts. A results upload that fails leaves its job green, so this is where a missing or misnamed job shows. It takes the commit under test by default, or --sha, --pr or --branch, and --json prints the API's answer.
  • A new agent skill, mergify-test-engine-setup, sets Test Engine up in a repository: it finds the frameworks and CI jobs, installs the plugin or wires a JUnit upload, opens the pull request, then checks that pull request's runs before reporting. Load it with npx skills use Mergifyio/mergify-cli --skill mergify-test-engine-setup.