[PR #2703] [CLOSED] tests: track the server sampler thread on shutdown #4223

Closed
opened 2026-11-07 15:34:08 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/2703
Author: @allowq
Created: 10/15/2026
Status: ❌ Closed

Base: main ← Head: pr/sampler-thread-lifecycle


📝 Commits (1)

  • 3418962 tests: track the server sampler thread on shutdown

📊 Changes

1 file changed (+12 additions, -10 deletions)

View changed files

📝 serve/test_responses.py (+12 -10)

📄 Description

Issue: Sampler shutdown test inspects unrelated process threads

The test counts process-wide threads, so unrelated threads can make the server
shutdown assertion fail.

PR: Check the server-owned sampler thread on shutdown

Assert the lifecycle of the sampler thread owned by the server under test.
No production code changes.

Validation: serve.test_responses, including the shutdown regression.

PR #1840 only waits for threads in its new test_literal_think_guard.py;
it does not change this existing assertion. A deterministic disappearing-thread
control fails on 296b59d2 and passes with this change.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/2703 **Author:** [@allowq](https://github.com/allowq) **Created:** 10/15/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `pr/sampler-thread-lifecycle` --- ### 📝 Commits (1) - [`3418962`](https://github.com/Niko1221/Strata/commit/3418962d0f3a01fc0daf1e1aee67730c1eb7a262) tests: track the server sampler thread on shutdown ### 📊 Changes **1 file changed** (+12 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `serve/test_responses.py` (+12 -10) </details> ### 📄 Description # Issue: Sampler shutdown test inspects unrelated process threads The test counts process-wide threads, so unrelated threads can make the server shutdown assertion fail. # PR: Check the server-owned sampler thread on shutdown Assert the lifecycle of the sampler thread owned by the server under test. No production code changes. Validation: `serve.test_responses`, including the shutdown regression. PR #1840 only waits for threads in its new `test_literal_think_guard.py`; it does not change this existing assertion. A deterministic disappearing-thread control fails on 296b59d2 and passes with this change. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 15:34:08 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#4223
No description provided.