Skip to content

Default test task to Java 25 only#4330

Merged
andimarek merged 4 commits intomasterfrom
simplify-default-test-task
Mar 11, 2026
Merged

Default test task to Java 25 only#4330
andimarek merged 4 commits intomasterfrom
simplify-default-test-task

Conversation

@andimarek
Copy link
Copy Markdown
Member

Summary

  • Remove test.dependsOn testWithJava{11,17,21} and check.dependsOn testng from build.gradle
  • ./gradlew test now only runs tests on Java 25 (no more -x flags needed locally)
  • Other JVM versions remain available via explicit tasks (testWithJava11, testWithJava17, etc.) used by CI matrix jobs
  • Remove all -x exclusion flags from master.yml and pull_request.yml workflows

Test plan

  • Verify ./gradlew test only runs Java 25 tests
  • Verify ./gradlew check no longer pulls in testng
  • Verify CI matrix still runs all JVM versions in parallel
  • Verify release workflow still works

🤖 Generated with Claude Code

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 10, 2026

Test Report

Test Results

Java Version Total Passed Failed Errors Skipped
Java 11 5704 (±0) 5648 (±0) 0 (±0) 0 (±0) 56 (±0)
Java 17 5704 (±0) 5647 (±0) 0 (±0) 0 (±0) 57 (±0)
Java 21 5704 (±0) 5647 (±0) 0 (±0) 0 (±0) 57 (±0)
Java 25 5704 (±0) 5647 (±0) 0 (±0) 0 (±0) 57 (±0)
jcstress 32 (±0) 32 (±0) 0 (±0) 0 (±0) 0 (±0)
Total 22848 (±0) 22621 (±0) 0 (±0) 0 (±0) 227 (±0)

Code Coverage (Java 25)

Metric Covered Missed Coverage vs Master
Lines 28739 3120 90.2% ±0.0%
Branches 8351 1509 84.7% ±0.0%
Methods 7686 1222 86.3% ±0.0%

No per-class coverage changes detected.

Full HTML report: build artifact jacoco-html-report

Updated: 2026-03-11 00:38:08 UTC

andimarek and others added 3 commits March 11, 2026 10:07
Remove automatic dependencies that made `./gradlew test` run on all JVMs
(11, 17, 21, 25) and `check` pull in testng. Now `test` and `check` only
run on Java 25 by default. Other JVM versions are still available via
explicit tasks (testWithJava11, testWithJava17, etc.) used by CI matrix.

Simplifies CI workflow commands by removing all -x exclusion flags.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The check matrix entry runs static checks only (errorprone, etc.).
Tests run in separate parallel matrix jobs. The Gradle check lifecycle
depends on test, so we still need to exclude test/testng here.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@andimarek andimarek force-pushed the simplify-default-test-task branch from 781c86e to 06ff846 Compare March 11, 2026 00:28
@andimarek andimarek merged commit 04a7236 into master Mar 11, 2026
11 checks passed
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