Repository navigation
[CI] Write and upload test run reports from trunk and pull jobs - #200450
georgehong wants to merge 1 commit into
Conversation
PR Status: Approved 🚀Please fix all CI failures and trigger merge by commenting "@pytorchbot merge". ✅ AUTOMATED REVIEW - Ready for human review:
Findings (2): Reviewed commit: 🔗 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 FailuresAs of commit c2dd8bc with merge base 816fc3c ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
_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
There was a problem hiding this comment.
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
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'.
Line 535 in c2dd8bc
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.
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).