Skip to content

[#111] Give embedded OpenDJ 30 s to start and stop in LDAP connector tests#113

Merged
vharseko merged 1 commit into
OpenIdentityPlatform:masterfrom
vharseko:issue-111-opendj-shutdown-budget
Jul 21, 2026
Merged

[#111] Give embedded OpenDJ 30 s to start and stop in LDAP connector tests#113
vharseko merged 1 commit into
OpenIdentityPlatform:masterfrom
vharseko:issue-111-opendj-shutdown-budget

Conversation

@vharseko

Copy link
Copy Markdown
Member

Fixes #111.

Problem

LdapConnectorTestBase.waitUntilStopped() gives the embedded OpenDJ only 25 × 200 ms = 5 s to shut down. On a loaded CI runner the stop after applying test-config.ldif can exceed that, so startAndApply throws from before(). A failure in a configuration method is not forgiven by surefire reruns (Run 1: FAIL, Run 2–3: PASS in the observed run), so the module fails and cascade-skips the remaining tests (309 skipped in https://github.com/OpenIdentityPlatform/OpenICF/actions/runs/29743183432/job/88354582201).

Change

  • waitUntilStopped(): shutdown budget 5 s → 30 s (ITERATIONS 25 → 150). Covers both call sites — startAndApply() and stopServer().
  • waitUntilListening(): startup budget 10 s → 30 s (ITERATIONS 50 → 150) — same failure class on a slow runner, aligned while at it.

Both loops exit as soon as the server is actually up/down, so the successful case is unaffected; the change only widens the margin on slow runners.

Testing

mvn test -Dtest=LdapDeleteTests (the class that failed in CI) against the embedded OpenDJ: 3 tests, 0 failures, 0 errors.

…penIdentityPlatform#111)

waitUntilStopped() allowed only 25 x 200 ms = 5 s for the server to shut
down; on a loaded CI runner the stop after applying test-config.ldif can
exceed that, failing before() and cascade-skipping the module's tests.
Raise the budget to 30 s, and align waitUntilListening() (10 s -> 30 s),
which fails the same way. Both loops exit as soon as the server is
actually up/down, so the successful case is unaffected.
@vharseko
vharseko requested a review from maximthomas July 20, 2026 15:37
@vharseko vharseko added ci CI, build & workflow changes tests Test additions or fixes connector:ldap LDAP connector labels Jul 20, 2026
@vharseko vharseko changed the title Give embedded OpenDJ 30 s to start and stop in LDAP connector tests [#111] Give embedded OpenDJ 30 s to start and stop in LDAP connector tests Jul 20, 2026
@vharseko
vharseko merged commit b110243 into OpenIdentityPlatform:master Jul 21, 2026
14 checks passed
@vharseko
vharseko deleted the issue-111-opendj-shutdown-budget branch July 21, 2026 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci CI, build & workflow changes connector:ldap LDAP connector tests Test additions or fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flaky LDAP connector tests: embedded OpenDJ misses the 5 s shutdown budget in waitUntilStopped()

2 participants