Skip to content

CI: upload the compiled classes so the matrix jobs run the tests - #793

Closed
leerho wants to merge 1 commit into
mainfrom
ci-run-matrix-tests
Closed

leerho wants to merge 1 commit into
mainfrom
ci-run-matrix-tests

Conversation

@leerho

@leerho leerho commented Nov 3, 2026

Copy link
Copy Markdown
Member

The JDK & OS matrix jobs have been passing without running any tests. Their logs show Tests run: 0 and BUILD SUCCESS, on runs back to at least September.

The test jobs run mvn surefire:test on the artifact from the build job. That artifact held only the jars, the poms and the test resources, but surefire reads target/classes and target/test-classes. This adds both directories to the artifact.

I reproduced this locally by copying only the artifact's contents to a clean directory. As it was, surefire reported "No tests to run". With the two directories added, all 2336 tests ran and passed on macOS.

This PR's own matrix run is the real test. These may be the first tests to run on Windows and Linux in CI for some time, so it could turn up platform failures.

🤖 Generated with Claude Code

The test jobs run `mvn surefire:test` on the artifact from the build job,
which held only the jars, the poms and the test resources. Surefire reads
target/classes and target/test-classes, so it found nothing to run and
reported "Tests run: 0, BUILD SUCCESS".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@leerho

leerho commented Nov 3, 2026

Copy link
Copy Markdown
Member Author

Closing: this isn't needed. The matrix is meant to test the jars, not the class directories. The fix belongs in the reusable workflow.

@leerho leerho closed this Nov 3, 2026
@leerho
leerho deleted the ci-run-matrix-tests branch November 3, 2026 23: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