Skip to content

ci: concurrent unit tests, and checkstyle/javadoc once - #794

Merged
dfa1 merged 2 commits into
mainfrom
ci/parallel-unit-tests
Nov 30, 2026
Merged

dfa1 merged 2 commits into
mainfrom
ci/parallel-unit-tests

Conversation

@dfa1

@dfa1 dfa1 commented Nov 30, 2026

Copy link
Copy Markdown
Owner

Two commits toward a 2–3 minute CI.

  • Unit test classes run concurrently, one per core, as the integration module's do since ci: run integration test classes concurrently #781. All unit tests take 54–59 s locally, down from 1:25 (writer 16.7 → 10.9 s, calcite 15.2 → 8.5 s, reader 9.5 → 4.2 s). cli (its tests swap System.out/System.err) and fuzz (Jazzer) stay one class at a time. JfrRecorderBase is @Isolated, because a JFR recording sees every thread's events.
  • Checkstyle and javadoc run once, in a checks job (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

dfa1 and others added 2 commits November 30, 2026 08:36
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>
@dfa1
dfa1 merged commit d3f50f1 into main Nov 30, 2026
7 checks passed
@dfa1
dfa1 deleted the ci/parallel-unit-tests branch November 30, 2026 07:47
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>
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