Repository navigation
[torchci] Remove the report of a session that starts no test - #201118
Closed
georgehong wants to merge 1 commit into
Closed
georgehong wants to merge 1 commit into
georgehong wants to merge 1 commit into
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/201118
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit a546206 with merge base df9e46a ( 🟡 GREEN LIGHT - PR requires human review:
reason: This comment was automatically generated by Dr. CI and updates every 15 minutes. |
georgehong
marked this pull request as ready for review
October 15, 2026 22:36
jathu
approved these changes
Oct 16, 2026
Contributor
Author
|
@pytorchbot merge |
Collaborator
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
georgehong
added a commit
to pytorch/test-infra
that referenced
this pull request
Oct 16, 2026
At 50%, with the fortesting.tests check fix (#9134) and the removal of header-only reports (pytorch/pytorch#201118), fortesting ingest resource usage is significantly reduced, and it should be safe to continue rollout. Remaining follow-ups: - materialized view optimization/ClickHouse infra changes - long tail of workflows and upload steps, although most rows should be accounted for after this. Authored with an AI assistant (Claude Code).
majing921201
pushed a commit
to majing921201/pytorch
that referenced
this pull request
Nov 16, 2026
…#201118) **Summary:** A pytest session that never starts a test, such as run_test.py's serial pass over a file without serial tests, now removes its report when it ends. Such a report holds only the report line, so it adds no rows, but each one is still uploaded and ingested; removing them cuts that ingest traffic. The report is kept whenever a test started, so the crash and timeout handling from pytorch#200942 is unaffected: run_test.py only appends a run the writer published when its test started. A session whose writer turned itself off, or a process that dies before its first test, still leaves its report. Not `session.testscollected == 0`: under xdist it's the last worker's count, so if a crashed worker's replacement collects nothing, it could delete a report that already has runs. **Test Plan:** ``` CUDA_VISIBLE_DEVICES= python test/torchci/test_testing.py -v python test/run_test.py --cpp -i cpp/c10_typeid_test --save-torchci-reports <dir> ``` `test_session_without_tests_leaves_no_report` covers sessions that start no test, with and without xdist; the existing `TestReportCrashes` tests cover the reports that must be kept. The C++ launch now leaves one report instead of two. Authored with the help of an AI assistant (Claude). Pull Request resolved: pytorch#201118 Approved by: https://github.com/jathu
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):
Summary:
A pytest session that never starts a test, such as run_test.py's serial pass over a file without serial tests, now removes its report when it ends. Such a report holds only the report line, so it adds no rows, but each one is still uploaded and ingested; removing them cuts that ingest traffic.
The report is kept whenever a test started, so the crash and timeout handling from #200942 is unaffected: run_test.py only appends a run the writer published when its test started. A session whose writer turned itself off, or a process that dies before its first test, still leaves its report.
Not
session.testscollected == 0: under xdist it's the last worker's count, so if a crashed worker's replacement collects nothing, it could delete a report that already has runs.Test Plan:
test_session_without_tests_leaves_no_reportcovers sessions that start no test, with and without xdist; the existingTestReportCrashestests cover the reports that must be kept. The C++ launch now leaves one report instead of two.Authored with the help of an AI assistant (Claude).