Repository navigation
[DO NOT MERGE] Write and upload test run reports in CI - #200026
Closed
georgehong wants to merge 18 commits into
Closed
georgehong wants to merge 18 commits into
georgehong wants to merge 18 commits into
Conversation
This was referenced Oct 7, 2026
georgehong
added a commit
that referenced
this pull request
Oct 7, 2026
Turns test run reports on by default in CI, like --save-xml, and has upload-test-artifacts zip test/torchci-reports into its own torchci-reports-<suffix>.report.zip on S3, where the ingester picks it up. When S3 is skipped or fails, it uploads a GitHub artifact that tools/stats/upload_artifacts.py copies to the same key. The junit zips are unchanged, and nothing is uploaded when the folder is missing. Test Plan: ``` python test/test_testing.py -k TestReport -k TestJunitXml CI=1 python test/run_test.py -i test_type_info lintrunner ``` Authored with the help of an AI assistant (Claude). ghstack-source-id: 3bccf4f Pull-Request: #200026
georgehong
added a commit
that referenced
this pull request
Oct 7, 2026
Turns test run reports on by default in CI, like --save-xml, and has upload-test-artifacts zip test/torchci-reports into its own torchci-reports-<suffix>.report.zip on S3, where the ingester picks it up. When S3 is skipped or fails, it uploads a GitHub artifact that tools/stats/upload_artifacts.py copies to the same key. The junit zips are unchanged, and nothing is uploaded when the folder is missing. Test Plan: ``` python test/test_testing.py -k TestReport -k TestJunitXml CI=1 python test/run_test.py -i test_type_info lintrunner ``` Authored with the help of an AI assistant (Claude). ghstack-source-id: 3bccf4f Pull-Request: #200026
georgehong
added a commit
that referenced
this pull request
Oct 7, 2026
_linux-test.yml takes its actions from pytorch/pytorch@main, so a PR's Linux test jobs never run the PR's upload-test-artifacts. This points them at #200026's ghstack branch, so Linux jobs zip and upload test/torchci-reports. It points all of them, not just upload-test-artifacts: a second pytorch tarball for one action ran the runner out of memory during setup on #199844. Close after checking; not meant to land. Test Plan: ``` python -c "import yaml; yaml.safe_load(open('.github/workflows/_linux-test.yml'))" ``` Authored with the help of an AI assistant (Claude). ghstack-source-id: 405afa0 Pull-Request: #200027
georgehong
added a commit
that referenced
this pull request
Oct 7, 2026
Turns test run reports on by default in CI, like --save-xml, and has upload-test-artifacts zip test/torchci-reports into its own torchci-reports-<suffix>.report.zip on S3, where the ingester picks it up. When S3 is skipped or fails, it uploads a GitHub artifact that tools/stats/upload_artifacts.py copies to the same key. The junit zips are unchanged, and nothing is uploaded when the folder is missing. Test Plan: ``` python test/test_testing.py -k TestReport -k TestJunitXml CI=1 python test/run_test.py -i test_type_info lintrunner ``` Authored with the help of an AI assistant (Claude). ghstack-source-id: 0a56dfc Pull-Request: #200026
georgehong
added a commit
that referenced
this pull request
Oct 7, 2026
Turns test run reports on by default in CI, like --save-xml, and has upload-test-artifacts zip test/torchci-reports into its own torchci-reports-<suffix>.report.zip on S3, where the ingester picks it up. When S3 is skipped or fails, it uploads a GitHub artifact that tools/stats/upload_artifacts.py copies to the same key. The junit zips are unchanged, and nothing is uploaded when the folder is missing. Test Plan: ``` python test/test_testing.py -k TestReport -k TestJunitXml CI=1 python test/run_test.py -i test_type_info lintrunner ``` Authored with the help of an AI assistant (Claude). ghstack-source-id: cd7f5dc Pull-Request: #200026
georgehong
added a commit
that referenced
this pull request
Oct 8, 2026
Turns test run reports on by default in CI, like --save-xml, and has upload-test-artifacts zip test/torchci-reports into its own torchci-reports-<suffix>.report.zip on S3, where the ingester picks it up. When S3 is skipped or fails, it uploads a GitHub artifact that tools/stats/upload_artifacts.py copies to the same key. The junit zips are unchanged, and nothing is uploaded when the folder is missing. Test Plan: ``` python test/test_testing.py -k TestReport -k TestJunitXml CI=1 python test/run_test.py -i test_type_info lintrunner ``` Authored with the help of an AI assistant (Claude). ghstack-source-id: 4e8d4ca Pull-Request: #200026
georgehong
added a commit
that referenced
this pull request
Oct 8, 2026
Turns test run reports on by default in CI, like --save-xml, and has upload-test-artifacts zip test/torchci-reports into its own torchci-reports-<suffix>.report.zip on S3, where the ingester picks it up. When S3 is skipped or fails, it uploads a GitHub artifact that tools/stats/upload_artifacts.py copies to the same key. The junit zips are unchanged, and nothing is uploaded when the folder is missing. Test Plan: ``` python test/test_testing.py -k TestReport -k TestJunitXml CI=1 python test/run_test.py -i test_type_info lintrunner ``` Authored with the help of an AI assistant (Claude). ghstack-source-id: 7fd0b19 Pull-Request: #200026
georgehong
added a commit
that referenced
this pull request
Oct 8, 2026
Turns test run reports on by default in CI, like --save-xml, and has upload-test-artifacts zip test/torchci-reports into its own torchci-reports-<suffix>.report.zip on S3, where the ingester picks it up. When S3 is skipped or fails, it uploads a GitHub artifact that tools/stats/upload_artifacts.py copies to the same key. The junit zips are unchanged, and nothing is uploaded when the folder is missing. Test Plan: ``` python test/test_testing.py -k TestReport -k TestJunitXml CI=1 python test/run_test.py -i test_type_info lintrunner ``` Authored with the help of an AI assistant (Claude). ghstack-source-id: 8922236 Pull-Request: #200026
georgehong
added a commit
that referenced
this pull request
Oct 8, 2026
Turns test run reports on by default in CI, like --save-xml, and has upload-test-artifacts zip test/torchci-reports into its own torchci-reports-<suffix>.report.zip on S3, where the ingester picks it up. When S3 is skipped or fails, it uploads a GitHub artifact that tools/stats/upload_artifacts.py copies to the same key. The junit zips are unchanged, and nothing is uploaded when the folder is missing. Test Plan: ``` python test/test_testing.py -k TestReport -k TestJunitXml CI=1 python test/run_test.py -i test_type_info lintrunner ``` Authored with the help of an AI assistant (Claude). ghstack-source-id: 74a51b4 Pull-Request: #200026
georgehong
added a commit
that referenced
this pull request
Oct 8, 2026
Turns test run reports on by default in CI, like --save-xml, and has upload-test-artifacts zip test/torchci-reports into its own torchci-reports-<suffix>.report.zip on S3, where the ingester picks it up. When S3 is skipped or fails, it uploads a GitHub artifact that tools/stats/upload_artifacts.py copies to the same key. The junit zips are unchanged, and nothing is uploaded when the folder is missing. Test Plan: ``` python test/test_testing.py -k TestReport -k TestJunitXml CI=1 python test/run_test.py -i test_type_info lintrunner ``` Authored with the help of an AI assistant (Claude). ghstack-source-id: 20da89a Pull-Request: #200026
georgehong
added a commit
that referenced
this pull request
Oct 8, 2026
Turns test run reports on by default in CI, like --save-xml, and has upload-test-artifacts zip test/torchci-reports into its own torchci-reports-<suffix>.report.zip on S3, where the ingester picks it up. When S3 is skipped or fails, it uploads a GitHub artifact that tools/stats/upload_artifacts.py copies to the same key. The junit zips are unchanged, and nothing is uploaded when the folder is missing. Test Plan: ``` python test/test_testing.py -k TestReport -k TestJunitXml CI=1 python test/run_test.py -i test_type_info lintrunner ``` Authored with the help of an AI assistant (Claude). ghstack-source-id: b29846c Pull-Request: #200026
georgehong
added a commit
that referenced
this pull request
Oct 8, 2026
Turns test run reports on by default in CI, like --save-xml, and has upload-test-artifacts zip test/torchci-reports into its own torchci-reports-<suffix>.report.zip on S3, where the ingester picks it up. When S3 is skipped or fails, it uploads a GitHub artifact that tools/stats/upload_artifacts.py copies to the same key. The junit zips are unchanged, and nothing is uploaded when the folder is missing. Test Plan: ``` python test/test_testing.py -k TestReport -k TestJunitXml CI=1 python test/run_test.py -i test_type_info lintrunner ``` Authored with the help of an AI assistant (Claude). ghstack-source-id: b29846c Pull-Request: #200026
georgehong
added a commit
that referenced
this pull request
Oct 9, 2026
Turns test run reports on by default in CI, like --save-xml, and has upload-test-artifacts zip test/torchci-reports into its own torchci-reports-<suffix>.report.zip on S3, where the ingester picks it up. When S3 is skipped or fails, it uploads a GitHub artifact that tools/stats/upload_artifacts.py copies to the same key. The junit zips are unchanged, and nothing is uploaded when the folder is missing. Test Plan: ``` python test/test_testing.py -k TestReport -k TestJunitXml CI=1 python test/run_test.py -i test_type_info lintrunner ``` Authored with the help of an AI assistant (Claude). ghstack-source-id: f999544 Pull-Request: #200026
georgehong
added a commit
that referenced
this pull request
Oct 9, 2026
Turns test run reports on by default in CI, like --save-xml, and has upload-test-artifacts zip test/torchci-reports into its own torchci-reports-<suffix>.report.zip on S3, where the ingester picks it up. When S3 is skipped or fails, it uploads a GitHub artifact that tools/stats/upload_artifacts.py copies to the same key. The junit zips are unchanged, and nothing is uploaded when the folder is missing. Test Plan: ``` python test/test_testing.py -k TestReport -k TestJunitXml CI=1 python test/run_test.py -i test_type_info lintrunner ``` Authored with the help of an AI assistant (Claude). ghstack-source-id: 4151b6d Pull-Request: #200026
georgehong
added a commit
that referenced
this pull request
Oct 9, 2026
Turns test run reports on by default in CI, like --save-xml, and has upload-test-artifacts zip test/torchci-reports into its own torchci-reports-<suffix>.report.zip on S3, where the ingester picks it up. When S3 is skipped or fails, it uploads a GitHub artifact that tools/stats/upload_artifacts.py copies to the same key. The junit zips are unchanged, and nothing is uploaded when the folder is missing. Test Plan: ``` python test/test_testing.py -k TestReport -k TestJunitXml CI=1 python test/run_test.py -i test_type_info lintrunner ``` Authored with the help of an AI assistant (Claude). ghstack-source-id: d9fad18 Pull-Request: #200026
georgehong
added a commit
that referenced
this pull request
Oct 9, 2026
Makes run_test.py write test run reports to test/torchci-reports by default in CI, and has upload-test-artifacts zip that folder into its own torchci-reports-<suffix>.report.zip on S3, where the ingester picks it up. When S3 is skipped or fails, it uploads a GitHub artifact that tools/stats/upload_artifacts.py copies to the same key. The junit zips are unchanged, and nothing is uploaded when the folder is missing. run_tests has no default, so a test file run outside run_test.py writes no report. Test Plan: ``` python test/test_testing.py -k TestReport -k TestJunitXml CI=1 python test/run_test.py -i test_type_info lintrunner ``` Authored with the help of an AI assistant (Claude). ghstack-source-id: fee6d2e Pull-Request: #200026 # Conflicts: # test/test_testing.py
georgehong
added a commit
that referenced
this pull request
Oct 9, 2026
Makes run_test.py write test run reports to test/torchci-reports by default in CI, and has upload-test-artifacts zip that folder into its own torchci-reports-<suffix>.report.zip on S3, where the ingester picks it up. When S3 is skipped or fails, it uploads a GitHub artifact that tools/stats/upload_artifacts.py copies to the same key. The junit zips are unchanged, and nothing is uploaded when the folder is missing. run_tests has no default, so a test file run outside run_test.py writes no report. Test Plan: ``` python test/test_testing.py -k TestReport -k TestJunitXml CI=1 python test/run_test.py -i test_type_info lintrunner ``` Authored with the help of an AI assistant (Claude). ghstack-source-id: fe95d68 Pull-Request: #200026 # Conflicts: # test/test_testing.py
georgehong
added a commit
that referenced
this pull request
Oct 9, 2026
Makes run_test.py write test run reports to test/torchci-reports by default in CI, and has upload-test-artifacts zip that folder into its own torchci-reports-<suffix>.report.zip on S3, where the ingester picks it up. When S3 is skipped or fails, it uploads a GitHub artifact that tools/stats/upload_artifacts.py copies to the same key. The junit zips are unchanged, and nothing is uploaded when the folder is missing. run_tests has no default, so a test file run outside run_test.py writes no report. Test Plan: ``` python test/torchci/test_testing.py CI=1 python test/run_test.py -i test_type_info lintrunner ``` Authored with the help of an AI assistant (Claude). ghstack-source-id: 9ac58bb Pull-Request: #200026
This was referenced Oct 9, 2026
georgehong
added a commit
that referenced
this pull request
Oct 11, 2026
#200470's upload of test run reports (one S3 object each, under torchci-reports/<repo>/<run id>/<job id>/, from trunk and pull jobs), on top of the C++ reports, to check C++ reports end to end before the writer lands. _linux-test.yml takes upload-test-artifacts from main, so this pins it to this PR's own ghstack branch. A ./ path doesn't work there: Linux test jobs check out inside their job container, and the runner looks for local actions outside it. pull's default test shards 1 and 2 run the C++ tests (test_libtorch), so their job folders should hold cpp.<binary>-*.report.jsonl objects next to the Python ones, matching the gtests in the job's junit XML. Authored with the help of an AI assistant (Claude). ghstack-source-id: 96f8b70 Pull-Request: #200026
georgehong
added a commit
that referenced
this pull request
Oct 12, 2026
#200470's upload of test run reports (one S3 object each, under torchci-reports/<repo>/<run id>/<job id>/, from trunk and pull jobs), on top of the C++ reports, to check C++ reports end to end before the writer lands. _linux-test.yml takes upload-test-artifacts from main, so this pins it to this PR's own ghstack branch. A ./ path doesn't work there: Linux test jobs check out inside their job container, and the runner looks for local actions outside it. pull's default test shards 1 and 2 run the C++ tests (test_libtorch), so their job folders should hold cpp.<binary>-*.report.jsonl objects next to the Python ones, matching the gtests in the job's junit XML. Authored with the help of an AI assistant (Claude). ghstack-source-id: 2163c0c Pull-Request: #200026
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):
Turns test run reports on by default in CI, like --save-xml, and has
upload-test-artifacts zip test/torchci-reports into its own
torchci-reports-.report.zip on S3, where the ingester picks it up. When
S3 is skipped or fails, it uploads a GitHub artifact that
tools/stats/upload_artifacts.py copies to the same key. The junit zips are
unchanged, and nothing is uploaded when the folder is missing.
Test Plan:
Authored with the help of an AI assistant (Claude).