Repository navigation
fix(ci): join resource sampler before run returns (#3929) - #3930
Merged
Merged
Conversation
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.
Fixes #3929.
The local gate stopped its sampler by setting an event, but an in-progress resource_sample could still emit after run returned. That output could land in the next test's redirected stdout even though that next run disabled sampling. The environment flag is read synchronously when starting the sampler; the existing disabled-sampling assertion is correct.
The sampler now returns its thread together with the stop event, and run signals and joins it in finally. Disabled sampling and buffered commands still start no thread.
RED commit c17e0ad adds an event-controlled regression with a blocked sample and a completed mocked child. The test invocation through uv run exited 1 with “run returned while a sample was still in progress.” It observes either cleanup joining or the premature return, rather than relying on a scheduling delay. GREEN commit 4947ee8 fixes the lifetime. The resource-sample test file passed 100 consecutive executions, each exit code checked, for 500 passing test cases.
Only CI Python code and its self-test changed. Rust unit, unchanged C, differential, and protocol tiers do not apply. No workflow, plugin, C test, public header, or features ledger changes. The original reported run was still in progress when its failed logs were requested, so that hosted failure was not independently retrieved.
Serial repository lint with SOLDR_PORCELAIN disabled exited 0 and ended with “lane lint: ok (269.0s)”. The bounded report classified diagnostics as unknown, but retained the successful command exit and the full artifact log. No Dylint refusal occurred.
🤖 Generated with Claude Code