Skip to content

Improved: Retry testIntegration once on non-graceful failure (OFBIZ-13514) - #1837

Open
mridulpathak wants to merge 1 commit into
apache:release24.09from
mridulpathak:OFBIZ-13514-release24.09
Open

mridulpathak wants to merge 1 commit into
apache:release24.09from
mridulpathak:OFBIZ-13514-release24.09

Conversation

@mridulpathak

Copy link
Copy Markdown
Contributor

Backported from trunk (#1836). TestRunContainer.java needed manual adaptation since release24.09 predates the Jupiter test-engine migration - the same completion-marker fix was applied to its plain JUnit3-based start() loop, and the accompanying unit test was dropped since this branch has no src/test/java tree for the testtools module.

…3514)

BuildBot's ofbizTrunkFramework and ofbizBranch24Framework builders have hit sporadic CI-worker contention failures during facilitytests, a different test each time. This adds a single automatic retry to testIntegration, but only when the run does not complete gracefully, meaning a JVM crash, hang, or non-test container startup failure - a run that completes and legitimately reports failing tests still fails immediately, with no retry. TestRunContainer now writes a completion marker once every suite has run to completion, which build.gradle uses to tell the two cases apart.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants