Skip to content

Valenad gh 16566 fix junit - #16850

Draft
silvarohan18 wants to merge 14 commits into
masterfrom
valenad-GH-16566-fix-junit
Draft

Valenad gh 16566 fix junit#16850
silvarohan18 wants to merge 14 commits into
masterfrom
valenad-GH-16566-fix-junit

Conversation

@silvarohan18

Copy link
Copy Markdown
Collaborator

No description provided.

valenad1 added 14 commits April 28, 2026 14:47
Adds a JUnit Timeout rule that fails individual tests with
TestTimedOutException instead of hanging the JVM. Default 10 minutes,
configurable via -Dtest.timeout.seconds. Prevents a single deadlocked
test from causing Jenkins to SIGTERM the entire stage.
testBasicTrainAndScoreDeepLearning hangs intermittently on Java 8/11
due to a model-lock race in DeepLearningDriver.onExceptionalCompletion:
the main thread blocks on a model whose FJ worker already threw.
The test called Scope.exit() in finally without a matching Scope.enter()
at the top, popping a scope it never pushed. It usually got rescued by
sibling tests leaking enters in the shared JVM; under newer JDK 17 test
ordering the donor scope is gone and the assertion fires.
@sonarqubecloud

sonarqubecloud Bot commented May 7, 2026

Copy link
Copy Markdown

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