test(server): stabilize async root span assertions - #2583
Open
pimlock wants to merge 3 commits into
Open
Conversation
Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
pimlock
requested review from
a team,
derekwaynecarr,
maxamillion and
mrunalp
as code owners
August 1, 2026 01:47
Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
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.
Summary
Stabilizes async OpenTelemetry root-span assertions that can snapshot the in-memory exporter after child spans finish but before the root span is observable.
The reported linux-arm64 failure showed completed driver and store child spans without the expected
reconcile.sandboxesroot span: Actions failure.A follow-up linux-amd64 run exposed the same symptom in the provider refresh test because its explicit current-span handle remained alive while the assertion polled: Actions failure.
This uses the same bounded polling pattern already used by the disconnected watch-span test added in #2582.
Related Issue
No issue required: this is an obvious localized CI test flake.
Changes
Testing
mise run pre-commitpassesmise run testpasses, including all 1,228 server testsmise run cicompleted lint and compile checks, but a supervisor-process test binary hung locally after its visible tests passed; stopped after five minutesChecklist