Repository navigation
[CI] Write per-process test run reports as JSONL - #199837
Draft
georgehong wants to merge 2 commits into
Draft
georgehong wants to merge 2 commits into
georgehong wants to merge 2 commits into
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/199837
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit c025687 with merge base 4f0d8e2 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This PR needs a
|
georgehong
added a commit
that referenced
this pull request
Oct 6, 2026
Adds a pytest plugin (torch/testing/_internal/test_report.py) that writes one JSONL file per test process for the tests.* tables (pytorch/test-infra#8849): a report line (run context, environment, flags), then one run line per test execution, in test/test-run-reports/<file>/<file>-<id>.jsonl. A test whose process crashed or timed out becomes a synthetic run, and an error in the writer turns it off without changing any test's outcome. --save-test-run-reports and --no-save-test-run-reports control it in run_test.py and common_utils; it is on by default in CI, like --save-xml. Format: tools/testing/hud/test_run_report.md. Test Plan: ``` python test/test_testing.py -k TestReport -k TestJunitXml python test/run_test.py -i test_type_info --save-test-run-reports spin lint ``` Authored with the help of an AI assistant (Claude). ghstack-source-id: 320113b Pull-Request: #199837
georgehong
added a commit
that referenced
this pull request
Oct 7, 2026
Adds a pytest plugin (torch/testing/_internal/test_report.py) that writes one JSONL file per test process for the tests.* tables (pytorch/test-infra#8849): a report line (run context, environment, flags), then one run line per test execution, in test/test-run-reports/<file>/<file>-<id>.jsonl. A test whose process crashed or timed out becomes a synthetic run, and an error in the writer turns it off without changing any test's outcome. --save-test-run-reports and --no-save-test-run-reports control it in run_test.py and common_utils; it is on by default in CI, like --save-xml. Format: tools/testing/hud/test_run_report.md. Test Plan: ``` python test/test_testing.py -k TestReport -k TestJunitXml python test/run_test.py -i test_type_info --save-test-run-reports spin lint ``` Authored with the help of an AI assistant (Claude). ghstack-source-id: 320113b Pull-Request: #199837
This branch has not been deployed
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.
Stack from ghstack (oldest at bottom):
Adds a pytest plugin (torch/testing/_internal/test_report.py) that writes one
JSONL file per test process for the tests.* tables (pytorch/test-infra#8849):
a report line (run context, environment, flags), then one run line per test
execution, in test/test-run-reports//-.jsonl. A test whose
process crashed or timed out becomes a synthetic run, and an error in the
writer turns it off without changing any test's outcome.
--save-test-run-reports and --no-save-test-run-reports control it in
run_test.py and common_utils; it is on by default in CI, like --save-xml.
Format: tools/testing/hud/test_run_report.md.
Test Plan:
Authored with the help of an AI assistant (Claude).