Skip to content

Replace the SDK test JAR with a flume-ng-sdk-test module - #495

Merged
ppkarwasz merged 1 commit into
trunkfrom
feat/sdk-test-module
Sep 1, 2026
Merged

Replace the SDK test JAR with a flume-ng-sdk-test module#495
ppkarwasz merged 1 commit into
trunkfrom
feat/sdk-test-module

Conversation

@ppkarwasz

Copy link
Copy Markdown
Member

Fixes the deploy-site failures on trunk.

The reusable site workflow builds with mvnw -Dmaven.test.skip install. That flag also skips jar:test-jar, so flume-ng-sdk never attaches its tests JAR — while Maven still resolves the full test classpath before compiler:testCompile and surefire:test can read their skip flags. The flume-ng-sdk:tests dependency was therefore demanded but never produced, and resolution fell through to the repositories.

This PR applies the same convention Log4j has been using: reusable test classes have their own artifact with a name ending suffiexed by -test.

The site build runs `mvnw -Dmaven.test.skip install`, which also skips
`jar:test-jar`. Maven still resolves the full test classpath before
`compiler:testCompile` and `surefire:test` can read their skip flags, so
the cross-module `flume-ng-sdk:tests` dependency was demanded but never
produced and `deploy-site` failed to resolve it.

Assisted-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WnSh7gt5XaRzNgDYLuFzZ6
@ppkarwasz
ppkarwasz requested a review from rgoers September 1, 2026 19:46
@ppkarwasz
ppkarwasz merged commit 501c502 into trunk Sep 1, 2026
11 checks passed
@ppkarwasz
ppkarwasz deleted the feat/sdk-test-module branch September 1, 2026 20:23
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.

2 participants