Skip to content

[CI] Write and upload test run reports from trunk and pull jobs - #200450

Open
georgehong wants to merge 1 commit into
gh/georgehong/17/basefrom
gh/georgehong/17/head
Open

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

Conversation

@georgehong

@georgehong georgehong commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Stack from ghstack (oldest at bottom):

Summary
Writes test run reports by default in the trunk and pull workflows' CI jobs, and uploads them to S3 next to the junit zips as torchci-reports-<suffix>.report.zip. Other workflows follow once this looks healthy.

This covers Python tests only: C++ tests are excluded, and crash/timeout recovery isn't in yet. Those gaps are missing data, not wrong data. A test running when its process crashes or times out has no run line, so crashes and timeouts are undercounted for now. This lets us start working with production volume while those pieces land.

Test Plan
CI: the DO NOT MERGE PR on top, with ciflow/trunk.

Authored with the help of an AI assistant (Claude).

[ghstack-poisoned]
@pytorch-bot pytorch-bot Bot added the topic: not user facing topic category label Oct 9, 2026
@pytorch-bot

pytorch-bot Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

PR Status: Approved 🚀

Please fix all CI failures and trigger merge by commenting "@pytorchbot merge".

✅ AUTOMATED REVIEW - Ready for human review:

This PR has CI's trunk and pull jobs write torchci test-run reports to
test/torchci-reports by default, then uploads them to S3, falling back to a GHA
artifact that upload_artifacts.py copies to S3. The default activation path
(GITHUB_WORKFLOW reaching the test process on Linux, ROCm, Windows and Mac), the
zip layouts and the fallback key mapping all check out. Only minor gaps remain.

Findings (2):

[minor] .github/actions/upload-test-artifacts/action.yml:155
check-s3 only looks at s3-upload-reports. If only this torchci-reports S3 upload
fails, continue-on-error hides it, no GHA fallback runs and the reports are
lost. Either include this step's outcome in check-s3 or correct README line 110,
which says the fallback runs when 'the upload fails'.

[minor] test/run_test.py:535
Nothing tests _torchci_reports_default. test/torchci/test_testing.py already
unit-tests the sibling _torchci_report_args, so a short test there should patch
IS_CI/GITHUB_WORKFLOW and check that trunk/pull return the path while other
workflows or non-CI return None.

Reviewed commit: c2dd8bc

Review run

🔗 Helpful Links

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

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

✅ No Failures

As of commit c2dd8bc with merge base 816fc3c (image):
💚 Looks good so far! There are no failures yet. 💚

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

georgehong added a commit that referenced this pull request Oct 9, 2026
_linux-test.yml takes upload-test-artifacts from main, so #200450's upload
steps don't run before it lands. This pins it to #200450's ghstack branch. A
./ path doesn't work here: Linux test jobs check out inside their job container,
and the runner looks for local actions outside it. Run it with ciflow/trunk:
pull's test jobs and trunk's Linux, ROCm, macOS and Windows test jobs should
upload torchci-reports-*.report.zip (ROCm as a GitHub artifact). With
ciflow/xpu too, XPU's jobs shouldn't.

Authored with the help of an AI assistant (Claude).

ghstack-source-id: 3b1c081
Pull-Request: #200451
@pytorchbot pytorchbot added the in progress PR is being worked on by the author, until the automated review accepts it label Oct 16, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated review of c2dd8bc: nothing blocking; ready for human review.

This PR has CI's trunk and pull jobs write torchci test-run reports to test/torchci-reports by default, then uploads them to S3, falling back to a GHA artifact that upload_artifacts.py copies to S3. The default activation path (GITHUB_WORKFLOW reaching the test process on Linux, ROCm, Windows and Mac), the zip layouts and the fallback key mapping all check out. Only minor gaps remain.

⚪ 2 non-blocking findings

- name: Store Test Run Reports on S3

check-s3 only looks at s3-upload-reports. If only this torchci-reports S3 upload fails, continue-on-error hides it, no GHA fallback runs and the reports are lost. Either include this step's outcome in check-s3 or correct README line 110, which says the fallback runs when 'the upload fails'.


def _torchci_reports_default() -> str | None:

Nothing tests _torchci_reports_default. test/torchci/test_testing.py already unit-tests the sibling _torchci_report_args, so a short test there should patch IS_CI/GITHUB_WORKFLOW and check that trunk/pull return the path while other workflows or non-CI return None.

This review is AI-generated and advisory. Each new automated review replaces the previous one.

@pytorch-bot pytorch-bot Bot added ready for review Automated review passed, ready for a final review by a maintainer. and removed in progress PR is being worked on by the author, until the automated review accepts it labels Oct 16, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk Trigger trunk jobs on your pull request ready for review Automated review passed, ready for a final review by a maintainer. topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants