-
Notifications
You must be signed in to change notification settings - Fork 433
Optimize unit test execution with parallel forks and isolation #4280
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
shai-almog
merged 19 commits into
master
from
unit-tests-parallel-isolation-10522966937263651681
Dec 18, 2025
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
297efe4
Enable parallel execution of core unit tests with strict isolation
google-labs-jules[bot] 9fefbab
Optimize unit tests: enable reuseForks and refactor for robust parall…
google-labs-jules[bot] 6d947be
Enable parallel execution of core unit tests and fix isolation issues
google-labs-jules[bot] b73826e
Fixed CI to work faster and not fail (at least locally)
shai-almog a34764c
Removing asserts that are flaky in CI builds for some reason
shai-almog f363add
Removed some bad reflection code
shai-almog 783a16a
Fixed issues with threading
shai-almog 6142a22
Cleaned up networking code and made it more robust
shai-almog 2043674
Removed forks
shai-almog f304628
Minor fixes
shai-almog 547b7ad
Added debug printouts
shai-almog e15fa00
Experimental fix
shai-almog f20a184
More debugging code
shai-almog bcbadec
Hardened some code
shai-almog 8547f15
Fixed unit tests mostly around drag and drop issues
shai-almog 8b59f05
Improved test robustness
shai-almog 2f004a6
Fixed test failure
shai-almog 2893387
Restore parallel execution
shai-almog e88d8de
Removing fork logic
shai-almog File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
10 changes: 0 additions & 10 deletions
10
...ore-unittests/src/test/java/com/codename1/io/services/AdditionalServicesCoverageTest.java
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Surefire plugin block no longer sets
forkCountorreuseForks=false, so Maven falls back to the default single reused JVM for the entire test suite. That regresses the prior per-class JVM isolation (used to avoid static state leaks such asDisplay.getInstance()carrying over between UI tests) and also fails to enable the advertised parallel execution per core. Expect increased flakiness from shared global state and no parallel speedup.Useful? React with 👍 / 👎.