Skip to content

[torchci] Remove the report of a session that starts no test - #201117

Closed
georgehong wants to merge 1 commit into
gh/georgehong/27/basefrom
gh/georgehong/27/head
Closed

georgehong wants to merge 1 commit into
gh/georgehong/27/basefrom
gh/georgehong/27/head

Conversation

@georgehong

@georgehong georgehong commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

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.

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).

[ghstack-poisoned]
@pytorch-bot

pytorch-bot Bot commented Oct 15, 2026

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/201117

Note: Links to docs will display an error until the docs builds have been completed.

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@pytorch-bot

pytorch-bot Bot commented Oct 15, 2026

Copy link
Copy Markdown

This PR needs a release notes: label

If your changes are user facing and intended to be a part of release notes, please use a label starting with release notes:.

If not, please add the topic: not user facing label.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "topic: not user facing"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

@georgehong georgehong closed this Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant