Repository navigation
tests: await embedded ZooKeeper before loading service contexts - #8340
Open
greenc-FNAL wants to merge 1 commit into
Open
greenc-FNAL wants to merge 1 commit into
greenc-FNAL wants to merge 1 commit into
Conversation
greenc-FNAL
marked this pull request as ready for review
December 3, 2026 21:01
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Motivation
The shared service-context test fixture starts an embedded ZooKeeper client and immediately loads the Spring context. Service initialization can race the client's connection, making context tests fail intermittently.
Modification
Wait up to five seconds for the embedded Curator client to connect before loading the context. Start and wait inside the existing cleanup-protected block, and report an
IOExceptioncontaining the in-process endpoint if readiness times out. Only the shared test fixture changes; production service startup and configuration are unchanged.Result
Context construction has an explicit readiness condition rather than relying on scheduling. This branch contains only this fixture patch and targets
masterindependently of the curator and FTP PRs.Validation and prerequisite
The sole signed topic commit is
bc1561cf708cb213902104a6eb317710a36cda43, based ondbb4fb0fe4236d25c8e993d92d3548d07f7bc005. Its patch matches the previously qualified WebDAV patch exactly, as verified withgit range-diff.The local Maven 3.10 root reactor currently rejects the existing duplicate frontend dependency before tests run, even when selecting WebDAV. The independent baseline fix is #8339. This PR remains draft pending that foundation and requalification against its actual landed state; #8339's patch is deliberately not included in this PR's diff.
Qualification used a local prefix containing only
masterat the stated SHA, the curator deduplication patch, and this WebDAV fixture patch:mvn -q -B -ntp -U -am clean test-compile -pl modules/dcache-webdav mvn -q -B -ntp -U -am test -pl modules/dcache-webdav -DskipTests=false -Dtest=WebdavDoorContextTest -Dsurefire.failIfNoSpecifiedTests=false mvn -q -B -ntp -U -am package -pl modules/dcache-webdav -DskipTests=falseClean compilation passed. Two focused context runs and the context run in the full selected package/test reactor passed (10 context tests each). The WebDAV module ran 120 tests with zero failures, errors, or skips. These are qualification-prefix results, not a claimed standalone-root pass before #8339 lands. No deployed-door, external ZooKeeper, or live identity-provider qualification is claimed.