Skip to content

fix(dev/release): pin surefire version for Java JAR verification - #4948

Merged
lidavidm merged 1 commit into
apache:mainfrom
kou:fix-verify-java-surefire
Oct 26, 2026
Merged

lidavidm merged 1 commit into
apache:mainfrom
kou:fix-verify-java-surefire

Conversation

@kou

@kou kou commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

Debian's Maven package patches the default surefire version to 2.17, which doesn't support the JUnit Platform. As a result, no tests in VerifyReleaseCandidateTest were run and the verification passed without checking anything.

Pin maven-surefire-plugin to 3.5.2 and enable failIfNoTests so that the verification fails if no tests are run.

Closes #4947.

@kou
kou requested a review from lidavidm as a code owner October 23, 2026 23:50
Comment thread dev/release/verify/java/pom.xml Outdated
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.5.4</version>

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

3.5.4 isn't the latest version but I use 3.5.4 here because

<surefire.version>3.5.2</surefire.version>
uses 3.5.4.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Oh, it's 3.5.2. I'll use 3.5.2.

Debian's Maven package patches the default surefire version to 2.17,
which doesn't support the JUnit Platform. As a result, no tests in
VerifyReleaseCandidateTest were run and the verification passed
without checking anything.

Pin maven-surefire-plugin to 3.5.2, the same version used by java/,
and enable failIfNoTests so that the verification fails if no tests
are run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kou
kou force-pushed the fix-verify-java-surefire branch from f724e51 to 850a0b4 Compare October 23, 2026 23:54

@lidavidm lidavidm left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks!

@lidavidm

Copy link
Copy Markdown
Member

Hmm, we should probably fix the verify job to trigger on this subdirectory

@lidavidm
lidavidm merged commit 9cd7f58 into apache:main Oct 26, 2026
3 checks passed
@lidavidm

Copy link
Copy Markdown
Member

#4951

@kou
kou deleted the fix-verify-java-surefire branch October 26, 2026 01:17
lidavidm added a commit that referenced this pull request Oct 26, 2026
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.

dev/release: verify-release-candidate.sh runs 0 Java tests with Debian's Maven

2 participants