Skip to content

fix(test-insights): drop the removed Gradle report properties - #12416

Merged
mergify[bot] merged 2 commits into
mainfrom
devs/jd/jd/mrgfy-8720-settle-four-docs-asks-the-agent-could-not-bypass-anchor-ci/drop-removed-gradle-report-props--24b7f2d8
Aug 21, 2026
Merged

fix(test-insights): drop the removed Gradle report properties#12416
mergify[bot] merged 2 commits into
mainfrom
devs/jd/jd/mrgfy-8720-settle-four-docs-asks-the-agent-could-not-bypass-anchor-ci/drop-removed-gradle-report-props--24b7f2d8

Conversation

@jd

@jd jd commented Aug 17, 2026

Copy link
Copy Markdown
Member

The JUnit and TestNG recipes told Gradle users to configure their report output
with a reports { junitXml.enabled = true; junitXml.destination = ... } block.
Gradle 8.0 removed both of those properties ("The deprecated destination, and
enabled properties of the Report type have been removed", per Gradle's own
upgrade notes), so on any current Gradle that block fails the build. A reader
following either page was stopped at the very first step, before ever reaching
the upload step.

Nothing needs to replace it. Gradle's test task already writes JUnit XML to
build/test-results/test/, which is the path both pages then tell the reader to
upload, so the block was configuring the default. It goes, the default location
is stated instead, and only the line that does have to be there stays:
useJUnitPlatform() for JUnit 5, useTestNG() for TestNG.

That also settles the version question the recipe would otherwise have to
answer, since useJUnitPlatform() and useTestNG() are accepted by every
Gradle version anyone is running.

Settles Mergifyio/ci-bot#370. The same broken block was in the TestNG recipe,
which that issue did not mention.
Part of MRGFY-8720

Depends-On: #12415

@jd

jd commented Aug 17, 2026

Copy link
Copy Markdown
Member Author

This pull request is part of a Mergify stack:

# Pull Request Link
1 fix(ci-insights): name the job-name variable the uploader actually reads #12415
2 fix(test-insights): drop the removed Gradle report properties #12416 👈
3 fix(test-insights): point the framework recipes at a dashboard page that exists #12417
4 fix(test-insights): stop pinning the Buildkite plugin to its first release #12426

@mergify

mergify Bot commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Merge Protections

🟢 All 7 merge protections satisfied — ready to merge.

Show 7 satisfied protections

🟢 ⛓️ Depends-On Requirements

Requirement based on the presence of Depends-On in the body of the pull request

🟢 🤖 Continuous Integration

  • all of:
    • check-success = build
    • check-success = lint
    • check-success = test
    • any of:
      • check-success = test-broken-links
      • label = ignore-broken-links
    • any of:
      • check-success=Cloudflare Pages
      • -head-repo-full-name~=^Mergifyio/

🟢 👀 Review Requirements

  • any of:
    • #approved-reviews-by >= 2
    • author = dependabot[bot]
    • all of:
      • author = mergify-ci-bot
      • -head ~= ^docs-agent/

🟢 Enforce conventional commit

Make sure that we follow https://www.conventionalcommits.org/en/v1.0.0/

  • title ~= ^(fix|feat|internal|docs|style|refactor|perf|test|build|ci|chore|revert|ui)(?:\(.+\))?!?:

🟢 🔎 Reviews

  • #changes-requested-reviews-by = 0
  • #review-requested = 0
  • #review-threads-unresolved = 0

🟢 📕 PR description

  • body ~= (?ms:.{48,})

🟢 🚦 Auto-queue

When all merge protections are satisfied, this pull request will be queued automatically.

@mergify
mergify Bot had a problem deploying to Mergify Merge Protections August 17, 2026 17:19 Failure
@mergify
mergify Bot requested a review from a team August 17, 2026 17:21
@jd
jd force-pushed the devs/jd/jd/mrgfy-8720-settle-four-docs-asks-the-agent-could-not-bypass-anchor-ci/drop-removed-gradle-report-props--24b7f2d8 branch from 0979d43 to 562fa29 Compare August 17, 2026 19:00
Copilot AI lite review requested due to automatic review settings August 17, 2026 19:00
@jd

jd commented Aug 17, 2026

Copy link
Copy Markdown
Member Author

Revision history

# Type Changes Reason Date
1 initial 0979d43 2026-08-17 19:00 UTC
2 rebase 0979d43 → 562fa29 (rebase only) 2026-08-17 19:00 UTC
3 rebase 562fa29 → d3835e0 (rebase only) 2026-08-18 07:18 UTC

@mergify
mergify Bot had a problem deploying to Mergify Merge Protections August 17, 2026 19:01 Failure
@jd

jd commented Aug 17, 2026

Copy link
Copy Markdown
Member Author

Restacked only — 0979d43562fa29 (compare). The content of this commit is unchanged; it moved because #12415 below it was amended to address a review comment.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Test Insights JUnit and TestNG framework recipes to remove Gradle configuration that relies on report properties removed in Gradle 8+, while still guiding users to the default JUnit XML output location used by Mergify’s upload steps.

Changes:

  • Removed deprecated reports { junitXml.enabled/destination ... } examples from Gradle snippets.
  • Clarified that Gradle’s test task already emits JUnit XML without extra configuration.
  • Stated the default report output directory (build/test-results/test/) in both recipes.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/content/docs/test-insights/test-frameworks/testng.mdx Drops removed Gradle report properties; keeps useTestNG() and documents the default XML output path.
src/content/docs/test-insights/test-frameworks/junit.mdx Drops removed Gradle report properties; keeps useJUnitPlatform() guidance and documents the default XML output path.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@jd
jd marked this pull request as ready for review August 18, 2026 06:48
jd added 2 commits August 18, 2026 09:18
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
The JUnit and TestNG recipes told Gradle users to configure their report output
with a `reports { junitXml.enabled = true; junitXml.destination = ... }` block.
Gradle 8.0 removed both of those properties ("The deprecated `destination`, and
`enabled` properties of the `Report` type have been removed", per Gradle's own
upgrade notes), so on any current Gradle that block fails the build. A reader
following either page was stopped at the very first step, before ever reaching
the upload step.

Nothing needs to replace it. Gradle's `test` task already writes JUnit XML to
`build/test-results/test/`, which is the path both pages then tell the reader to
upload, so the block was configuring the default. It goes, the default location
is stated instead, and only the line that does have to be there stays:
`useJUnitPlatform()` for JUnit 5, `useTestNG()` for TestNG.

That also settles the version question the recipe would otherwise have to
answer, since `useJUnitPlatform()` and `useTestNG()` are accepted by every
Gradle version anyone is running.

Settles Mergifyio/ci-bot#370. The same broken block was in the TestNG recipe,
which that issue did not mention.
Part of MRGFY-8720

Change-Id: I24b7f2d8324397dd1371a46550777fc658995b54
@jd
jd force-pushed the devs/jd/jd/mrgfy-8720-settle-four-docs-asks-the-agent-could-not-bypass-anchor-ci/drop-removed-gradle-report-props--24b7f2d8 branch from 562fa29 to d3835e0 Compare August 18, 2026 07:18
@mergify
mergify Bot deployed to Mergify Merge Protections August 18, 2026 07:18 Active
@jd

jd commented Aug 18, 2026

Copy link
Copy Markdown
Member Author

Restacked only — 562fa29d3835e0 (compare). The content of this commit is unchanged; it moved because the base commit (#12415) was amended and the stack rebased on main.

Base automatically changed from devs/jd/jd/mrgfy-8720-settle-four-docs-asks-the-agent-could-not-bypass-anchor-ci/name-job-name-var-uploader-actually-reads--96e06bb4 to main August 21, 2026 12:58
@mergify
mergify Bot requested a review from a team August 21, 2026 14:21
@mergify

mergify Bot commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Merge Queue Status

This pull request spent 2 minutes 57 seconds in the queue, including 2 minutes 23 seconds running CI.

Required conditions to merge

@mergify mergify Bot added the queued label Aug 21, 2026
@mergify
mergify Bot merged commit 905e495 into main Aug 21, 2026
10 of 17 checks passed
@mergify
mergify Bot deleted the devs/jd/jd/mrgfy-8720-settle-four-docs-asks-the-agent-could-not-bypass-anchor-ci/drop-removed-gradle-report-props--24b7f2d8 branch August 21, 2026 14:45
@mergify mergify Bot removed the queued label Aug 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants