Skip to content

[DO NOT MERGE] Write and upload test run reports in CI - #200026

Closed
georgehong wants to merge 18 commits into
gh/georgehong/13/basefrom
gh/georgehong/13/head
Closed

georgehong wants to merge 18 commits into
gh/georgehong/13/basefrom
gh/georgehong/13/head

Conversation

@georgehong

@georgehong georgehong commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

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:

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-poisoned]
@pytorch-bot pytorch-bot Bot added the release notes: releng release notes category label Oct 7, 2026
@pytorch-bot

pytorch-bot Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

❌ 7 New Failures

As of commit b379ef0 with merge base e342e9a (image):

NEW FAILURES - The following jobs have failed:

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

[ghstack-poisoned]
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
[ghstack-poisoned]
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
[ghstack-poisoned]
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
[ghstack-poisoned]
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
[ghstack-poisoned]
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
[ghstack-poisoned]
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
[ghstack-poisoned]
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
[ghstack-poisoned]
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
[ghstack-poisoned]
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
[ghstack-poisoned]
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
[ghstack-poisoned]
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
[ghstack-poisoned]
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
[ghstack-poisoned]
@pytorch-bot pytorch-bot Bot added the topic: not user facing topic category label Oct 9, 2026
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
[ghstack-poisoned]
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
[ghstack-poisoned]
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
[ghstack-poisoned]
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 georgehong added the ciflow/trunk Trigger trunk jobs on your pull request label Oct 11, 2026
[ghstack-poisoned]
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
@georgehong georgehong changed the title [CI] Write and upload test run reports in CI [DO NOT MERGE] Write and upload test run reports in CI Oct 12, 2026
@georgehong georgehong closed this Oct 14, 2026
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 release notes: releng release notes category topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant