Skip to content

test(runtime-api): wait for the old owner lock before a restart proof - #6449

Open
Hmbown wants to merge 1 commit into
mainfrom
test/restart-owner-lock-wait
Open

Hmbown wants to merge 1 commit into
mainfrom
test/restart-owner-lock-wait

Conversation

@Hmbown

@Hmbown Hmbown commented Sep 23, 2026

Copy link
Copy Markdown
Owner

No-Issue: CI restart-timing flake found on an unrelated PR.

turn_operation_lookup_is_authenticated_read_only_and_survives_restart
failed on Ubuntu CI (#6438 run 35886856223, job 107269234021) with
"Mock Runtime execution scope is already owned" and passed 3/3 locally.
The old test server tears its runtime down on its own thread after the
abort, so its mock TaskManager can still hold the execution-scope owner
lock after the RuntimeThreadManager the test waits on has dropped.
Refusing a second owner is correct product behavior; the restart now
retries only on that refusal, within the existing CI-scaled 10 s
deadline, and any other startup error still fails immediately.

Evidence: the test passes locally (1 passed, 0 failed); hosted load is
the acceptance. TUI all-target/all-feature Clippy with CI flags passed.

🤖 Generated with Claude Code

turn_operation_lookup_is_authenticated_read_only_and_survives_restart
failed on Ubuntu CI (#6438 run 35886856223, job 107269234021) with
"Mock Runtime execution scope is already owned" and passed 3/3 locally.
The old test server tears its runtime down on its own thread after the
abort, so its mock TaskManager can still hold the execution-scope owner
lock after the RuntimeThreadManager the test waits on has dropped.
Refusing a second owner is correct product behavior; the restart now
retries only on that refusal, within the existing CI-scaled 10 s
deadline, and any other startup error still fails immediately.

Evidence: the test passes locally (1 passed, 0 failed); hosted load is
the acceptance. TUI all-target/all-feature Clippy with CI flags passed.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings September 23, 2026 17:02

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

This branch has not been deployed

No deployments
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