Skip to content

Speed up test runs to ~30s (from 150s+)#390

Draft
mgaffigan wants to merge 1 commit into
OpenIntegrationEngine:mainfrom
mgaffigan:fix/slow-tests
Draft

Speed up test runs to ~30s (from 150s+)#390
mgaffigan wants to merge 1 commit into
OpenIntegrationEngine:mainfrom
mgaffigan:fix/slow-tests

Conversation

@mgaffigan

@mgaffigan mgaffigan commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

TcpDispatcherTest was doing lots of sleeping to for synchronization. Avoid that by using latches and other synchronization. Also: avoid 9s of waiting for the 111.1.1.1 IP to be bindable. Saves 90s or so.

TcpRecieverTest had another 10s of sleeps.

PropertiesConfig had another 7s.

Enabling parallel execution gave additional 20s+ back.

No expected behavior changes nor gaps in coverage. Tested in a loop for stability:

while JAVA_HOME="/Users/mgaffigan/dev/zulu17.60.17-ca-fx-jdk17.0.16-macosx_aarch64" ./gradlew build -PdisableSigning=true && git clean -fdx; do :; done

Signed-off-by: Mitch Gaffigan <mitch.gaffigan@comcast.net>
@github-actions

Copy link
Copy Markdown

Test Results

654 tests  ±0   654 ✅ ±0   2m 18s ⏱️ -24s
108 suites ±0     0 💤 ±0 
108 files   ±0     0 ❌ ±0 

Results for commit 847c30b. ± Comparison against base commit ac47cc8.

@mgaffigan mgaffigan changed the title Speed up TcpDispatcherTest to cut 90 seconds out of test runs Speed up test runs to ~30s (from 150s+) Jul 26, 2026
@mgaffigan
mgaffigan marked this pull request as draft July 26, 2026 00:33
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