Repository navigation
ci: concurrent unit tests, and checkstyle/javadoc once - #794
Merged
Merged
Conversation
Every module's unit test classes now run concurrently, one per core, the methods of a class one after another, as the integration module's do since #781: the parent's surefire passes the JUnit parallel parameters. All unit tests: 1:25 -> 54-59 s locally (writer 16.7 -> 10.9 s, calcite 15.2 -> 8.5 s, reader 9.5 -> 4.2 s, core 5.6 -> 2.8 s). Kept one class at a time: cli, whose tests capture output by swapping System.out and System.err, and fuzz, whose Jazzer targets drive the JVM. JfrRecorderBase is @isolated (inherited by every JFR events test): a recording sees every thread's events, so another class running alongside added its own. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Checkstyle and javadoc read the sources, not the platform, yet ran in all six build jobs and the second Ubuntu pass. The build jobs now skip them, and a checks job (Ubuntu, JDK 25, tests skipped) runs them once. It runs next to the builds, not after them, so it adds no time to the run, and the run stays red on a checkstyle or javadoc error. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This was referenced Nov 30, 2026
dfa1
added a commit
that referenced
this pull request
Nov 30, 2026
Since unit test classes run concurrently (#794), VortexHttpReaderTailFetchTest.defaultClient_followsRedirects could read VortexHttpReader.defaultHttpClient while VortexHttpReaderOpenOverloadTest held a mock there, and saw the mock's null redirect policy ("expected: NORMAL but was: null", Ubuntu JDK 25 on #795). The swapping test is now @isolated, as AGENTS.md says a class needing the JVM to itself is, and so is CsvImporterHttpTest, which swaps CsvImporter.httpClient the same way. Co-Authored-By: Claude Sonnet 5 <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.
Two commits toward a 2–3 minute CI.
cli(its tests swapSystem.out/System.err) andfuzz(Jazzer) stay one class at a time.JfrRecorderBaseis@Isolated, because a JFR recording sees every thread's events.checksjob (Ubuntu, JDK 25, tests skipped), instead of in all six build jobs. It runs next to the builds, so it adds no time to the run.Local timings were taken under heavy background load (macOS media analysis), so this PR's CI run is the real measure.
🤖 Generated with Claude Code