Repository navigation
Conversation
A shard can reach its job deadline before pytest prints a failure summary. Record node verdicts as they arrive and dump thread stacks after five minutes inside a test without terminating it. Signed-off-by: zlareb1 <[email protected]>
8 tasks done
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.
Related: #883
Changelog category (leave one):
Changelog entry (one or two sentences a user of Loom can read without the diff; the release pull request collects these into the release notes):
Not required.
Why
A stalled unit shard can reach its job deadline before pytest writes a failure summary or JUnit artifact. Dot-only output does not identify its failed tests or the test still running.
Verbose pytest output records each node and its verdict while the run proceeds. The built-in faulthandler prints Python thread stacks when a test's setup, call and teardown together exceed five minutes. It prints no local values and does not stop the test. Failure tracebacks still appear in the final summary; an async stack dump can show event-loop frames and need a follow-up focused on the named node.
Scope and risk
Only the unit command's reporting flags change. All six shards retain their workload, worker count, random seed calculation, coverage collection, JUnit path, assertions and original 30-minute job deadline. No early-exit or retry flag is added.
Verbose output adds a line per node verdict and scheduler output, increasing log size and report I/O. It does not change test CPU measurement code, measurement windows or thresholds. Pytest still measures each test before reporting its verdict; the extra output and watchdog can add runner overhead, so this makes no performance claim.
Compatibility, rollout and rollback
Tests
git diff --checkpasses.AI assistance in the code (leave one; writing this description with AI is fine):
AI-generated: An agent wrote the change and checked the reporting flags against the pinned pytest and worker implementations.
I can explain every line of this diff and how it interacts with the rest of Loom.
Checklist
git commit -s).