Repository navigation
[torchci] Record failing subtest under pytest-rerunfailures - #200570
Closed
georgehong wants to merge 2 commits into
Closed
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/200570
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 4190f3b with merge base e342e9a ( 🟢 GREEN LIGHT - PR approved to be merged without human review:
reason: This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This was referenced Oct 12, 2026
georgehong
marked this pull request as ready for review
October 12, 2026 15:51
This was referenced Oct 12, 2026
jathu
approved these changes
Oct 12, 2026
Collaborator
|
Starting merge as part of PR stack under #200470 |
pytorchmergebot
pushed a commit
that referenced
this pull request
Oct 12, 2026
…ructure (#200470) Uploads jsonl reports in a flat directory structure: ``` s3://gha-artifacts/torchci-reports/<org>/<repo>/<run id>/<job id>/<file>-<uuid>.report.jsonl ``` This allows for us to lookup original report sources more easily, without having to unzip targets. If the ClickHouse user has a report UUID and job info, S3 lookup can be done through the above path. This means per-object writes are more frequent, but this also matches existing examples of test-jsons-while-running granularity. ROCm jobs skip S3 (`skip-s3`), so they upload their reports as a GitHub artifact, `torchci-reports-runattempt<N>-<job id>.zip`, as does any job whose junit S3 upload fails. When the attempt completes, upload-test-stats runs `tools/stats/upload_artifacts.py`, which copies each report to the same S3 path. The copy is best effort, so a failed download or upload can't skip the test stats upload. It also skips other attempts' artifacts: the run's artifact list includes them, but their own attempt already uploaded them. Authored with the help of an AI assistant (Claude). Pull Request resolved: #200470 Approved by: https://github.com/jathu ghstack dependencies: #200570
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:
With
--reruns, which run_test.py always passes, a test with a failing subtest was recorded aspassed. pytest-rerunfailures holds a test's setup, call and teardown reports until the whole test, subtests included, has finished, but pytest-subtests sends a subtest's report as soon as the subtest fails, so it arrived first and was dropped. As in junitxml, a test's first report now creates its run, and the setup report fills in its identity and start time.Test Plan:
test_subtestsruns with and without--reruns 1, andtest_reruns_keep_outcomeschecks that every outcome in the junit fixture suite is unchanged under--reruns 2.Authored with the help of an AI assistant (Claude).