Skip to content

[iris] Isolate per-test ThreadContainer to drop 5s controller test teardowns#4875

Closed
claude[bot] wants to merge 1 commit intomainfrom
agent/20260417-fix-4872
Closed

[iris] Isolate per-test ThreadContainer to drop 5s controller test teardowns#4875
claude[bot] wants to merge 1 commit intomainfrom
agent/20260417-fix-4872

Conversation

@claude
Copy link
Copy Markdown
Contributor

@claude claude Bot commented Apr 17, 2026

Controller tests under lib/iris/tests/cluster/controller construct a Controller without calling .stop(), leaking the non-daemon log-server uvicorn thread and tripping the top-level _thread_cleanup autouse fixture's 5s wait. Add an autouse thread_container_scope fixture so the container's on_stop hook signals server.should_exit on test exit and the 5s teardowns drop to under 0.2s.

Fixes #4872

…ardowns

Controller tests under lib/iris/tests/cluster/controller that construct a
Controller without calling .stop() leak the non-daemon log-server uvicorn
thread, tripping the top-level _thread_cleanup autouse fixture's 5s wait.
Install thread_container_scope as an autouse fixture so the container's
on_stop hook signals server.should_exit and the thread exits immediately.

Fixes #4872
@claude claude Bot added the agent-generated Created by automation/agent label Apr 17, 2026
@rjpower rjpower closed this Apr 17, 2026
@rjpower rjpower deleted the agent/20260417-fix-4872 branch April 17, 2026 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-generated Created by automation/agent

Projects

None yet

Development

Successfully merging this pull request may close these issues.

iris: remove hard sleeps in tests

1 participant