Scope the xchart-demo test skip to the release build#1014
Merged
timmolter merged 1 commit intoJul 20, 2026
Merged
Conversation
xchart-demo set maven.test.skip=true as a module property to keep release:prepare's clean verify subprocess from compiling tests. That also disabled the module's tests everywhere else, including CI, so its 81 tests never ran on push or pull request - which is how DemoChartsTest was able to stop compiling without anyone noticing. Move the skip into a profile activated by -DskipDemoTests, and have the release plugin pass that property to its forked builds. release:prepare behaves exactly as before; every other build now runs the tests. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #1013, which surfaced this. Based on that branch — merge #1013 first, and GitHub will retarget this to
developautomatically.Problem
xchart-demo/pom.xmlsetmaven.test.skip=trueas a module-wide property. The intent (per the comment, added in f0936f8) was narrow: stoprelease:prepare'sclean verifysubprocess from compiling tests. The effect was broad — the module's 81 tests never ran in any build, including CI. Neither workflow overrides the property, somvn clean verifyon a PR silently skipped the whole module.That is precisely how
DemoChartsTestgot to sit broken. It stopped compiling on 2026-05-22 when theToolTipsconstructor gained parameters — one day after the skip landed. Nothing was there to catch it.Change
Move the skip into a profile activated by a property, and have the release plugin pass that property to its forked builds:
release:preparebehaves exactly as it does today. Every other build runs the tests.I deliberately did not reach for
<arguments>-Dmaven.test.skip=true</arguments>on its own, since that would skip thexchartmodule's 154 tests during release too — a weaker release gate than what's in place now.Verification
Both directions, plus the exact command CI runs:
Since this newly exposes 80 rendering tests to CI, I also ran them under
-Djava.awt.headless=true: all 81 pass. (DateChart01was already excluded inSKIPPED_EXAMPLE_CHARTSfor headless reasons.)One thing I could not verify: I have no way to run an actual
release:preparehere, so the release path is reasoned from the plugin'sargumentssemantics and the property-activation test above rather than observed end to end. Worth a dry run before the next release.🤖 Generated with Claude Code