Skip to content

chore(deps): ignore org.junit BOM major bumps#380

Merged
zacharywhitley merged 1 commit into
masterfrom
chore/dependabot-ignore-junit-bom-major
Jul 15, 2026
Merged

chore(deps): ignore org.junit BOM major bumps#380
zacharywhitley merged 1 commit into
masterfrom
chore/dependabot-ignore-junit-bom-major

Conversation

@zacharywhitley

Copy link
Copy Markdown
Contributor

Summary

  • Add org.junit:* to dependabot's ignore list for major-version bumps
  • Existing rules covered org.junit.jupiter:* and org.junit.platform:* but missed org.junit:junit-bom, which is the artifact dependabot actually uses to drive junit.version updates

Why

Every JUnit 6 bump PR (most recently #377) fails identically on every OS/JDK combo:

NoSuchMethodError: 'java.util.stream.Collector
   org.junit.platform.commons.util.CollectionUtils.toUnmodifiableList()'

maven-surefire-plugin 3.5.6 — and even the latest milestone 3.6.0-M1, verified locally on this PR branch — is built against junit-platform-commons 1.14.x. JUnit Platform 6 removed that helper, so the forked test JVM dies before a single test runs. No released Surefire supports JUnit Platform 6 yet, so the PRs are un-mergeable upstream, not by anything we can fix here.

The existing comment in dependabot.yml already describes the coordinated toolchain bump this waits on (Surefire ≥ 3.x with JUnit Platform 6, drop Java 8 from CI matrix, unify junit.platform.version into junit.version). This PR just plugs the BOM artifact into the same ignore rules.

Closes upstream noise from PR #377.

Test plan

  • CI green (this only edits .github/dependabot.yml, no code paths touched)
  • After merge: confirm dependabot no longer opens JUnit 6.x major-bump PRs on the next weekly run

The existing ignore rules cover org.junit.jupiter:* and org.junit.platform:*
but not org.junit:junit-bom, which is what dependabot actually uses to drive
junit.version updates. As a result, dependabot repeatedly opens (e.g. #377)
JUnit 6 major bumps that cannot pass CI: no released maven-surefire-plugin
(including 3.6.0-M1) is built against junit-platform-commons 6.x, so the
forked test JVM dies with NoSuchMethodError on CollectionUtils.toUnmodifiableList().

Add org.junit:* to the ignore list until Surefire ships JUnit Platform 6
support and we do the coordinated toolchain bump the comment already
describes.
@zacharywhitley
zacharywhitley merged commit a4ae830 into master Jul 15, 2026
23 checks passed
@zacharywhitley
zacharywhitley deleted the chore/dependabot-ignore-junit-bom-major branch July 15, 2026 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant