Repository navigation
Give the descendant-work health test room for its second interpreter to start - #11670
Merged
Merged
Conversation
…to start test_work_done_by_a_descendant_counts spawns a shim that spawns the worker, so a second Python has to start before any descendant work exists. On a loaded runner that startup outlasted the 0.6s default and the wait gave up on a load about to make progress (assert False is True, on #11660's l-r shard). This test now waits with a 1.5s stall timeout, still well under healthy_after = 2.5, so only descendant work can carry the wait past it. On a core shared with six busy loops the old test failed 5 of 8 runs and this one 0 of 8.
Member
Author
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
shimmyshimmer
pushed a commit
to shimmyshimmer/unsloth-staging-4
that referenced
this pull request
Sep 23, 2026
shaojun
pushed a commit
to shaojun/unsloth
that referenced
this pull request
Sep 29, 2026
…to start (unslothai#11670) test_work_done_by_a_descendant_counts spawns a shim that spawns the worker, so a second Python has to start before any descendant work exists. On a loaded runner that startup outlasted the 0.6s default and the wait gave up on a load about to make progress (assert False is True, on unslothai#11660's l-r shard). This test now waits with a 1.5s stall timeout, still well under healthy_after = 2.5, so only descendant work can carry the wait past it. On a core shared with six busy loops the old test failed 5 of 8 runs and this one 0 of 8.
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.
What failed
(Python 3.13, l-r)on #11660 (job). #11660 is a frontend layout change and does not touch this code.The
TypeError: 'Mock' object is not iterableprinted above it comes from the stdout drain thread reading the test's mocked stdout. It is noise, not the failure.Why
The product is right.
_startup_work_samplecounts work done by every descendant (root.children(recursive = True)), and this test proves that. The test itself was too tight:test_a_load_that_keeps_working_outlives_the_timeoutdoes its work in the direct child, so it has no second startup to wait through.Fix
studio/backend/tests/test_llama_cpp_wait_for_health.pyonly. This one test now passestimeout = 1.5to_wait_on_child. That is still well underhealthy_after = 2.5, so only descendant work can keep the wait alive long enough to report healthy.Verification
_startup_work_sampleto sample only the root (members = [root]) instead of its descendants. The test then fails withassert False is Truewithin 4s.