From 42d7aaeedaa247d7c8d36dd12ee12e7522cd0e5d Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Mon, 17 Aug 2026 16:19:06 +0200 Subject: [PATCH] fix(ci-insights): name the job-name variable the uploader actually reads MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The CI Insights setup pages and the two matrix helpers disagreed with each other about how to override the job name a test report is filed under, and none of them said where the default comes from. The three setup pages now name `MERGIFY_TEST_JOB_NAME` — the variable the CLI reads, and the one every framework plugin (pytest, rspec, vitest) already documents — say where the default comes from on each provider (`GITHUB_JOB` on GitHub Actions, Jenkins' own `JOB_NAME`, the step label on Buildkite), and show where to set it. They also state why it matters: the job name is part of a test's identity, so a scheduled run that reports a different name splits its results off from the pull request ones. The GitHub Actions matrix case is stated the way it actually breaks: every leg of a matrix reports the same job name because they share one `GITHUB_JOB`. The old text left the reader to infer why an override was needed at all. The two matrix helpers keep recommending the native override — the action's `job_name` input and the Buildkite plugin's `job_name` property. Both currently export `MERGIFY_JOB_NAME`, which no uploader reads, so neither takes effect today; that is a bug in the three producers of that variable, not something the docs should route readers around. Fixing them is tracked separately, and the snippets pin moving tags (the action's `v25`, the plugin's `#v1`), so readers pick the fix up when those tags move. The pytest, rspec and vitest pages already agreed with this and are unchanged. Settles Mergifyio/ci-bot#369. Part of MRGFY-8720 Change-Id: I96e06bb4500bf9e7664d36d941ef0d962004e9a9 --- .../BuildkiteCIUploadStepMatrix.astro | 13 +++++----- .../MergifyCIUploadStepMatrix.astro | 14 +++++------ .../docs/ci-insights/setup/buildkite.mdx | 15 ++++++++--- .../docs/ci-insights/setup/github-actions.mdx | 25 ++++++++++++++++--- .../docs/ci-insights/setup/jenkins.mdx | 17 ++++++++++--- 5 files changed, 61 insertions(+), 23 deletions(-) diff --git a/src/components/BuildkiteCIUploadStepMatrix.astro b/src/components/BuildkiteCIUploadStepMatrix.astro index 724de1dd7f..92a12ed391 100644 --- a/src/components/BuildkiteCIUploadStepMatrix.astro +++ b/src/components/BuildkiteCIUploadStepMatrix.astro @@ -10,12 +10,13 @@ const { reportPath } = Astro.props; ---

- If you use a build matrix in your pipeline, set the job_name property so CI Insights can properly distinguish reports for each matrix variation. + If you use a build matrix in your pipeline, each variation reports its own step label as its job + name, so the variations are already distinct. Set the job_name plugin property when the + label is not the name you want CI Insights to file the reports under:

-

For example:

-