Use tools/print_test_stats.py in GHA (#57647)

Summary:
Judging from https://github.com/pytorch/pytorch/issues/57584, it seems like the test-reports artifact was originally intended to be downloaded to `$PWD/test-reports` instead of just directly into `$PWD`. To minimize confusion, this PR changes it to download into `test/test-reports`, which should match where the files came from in the `test` step anyway.

TODOs:

- [x] change the extract path for test-reports
- [x] install Python dependencies
- [x] call `tools/print_test_stats.py`
- [x] use deep clone to allow `git` commands
- [x] correctly set `CIRCLE_*` environment variables
- [x] set Scribe credentials
- [x] set AWS credentials

Pull Request resolved: https://github.com/pytorch/pytorch/pull/57647

Test Plan: CI.

Reviewed By: seemethere

Differential Revision: D28325833

Pulled By: samestep

fbshipit-source-id: cc322bad76747f59b764a1a0a863153bb26095e7
This commit is contained in:
Sam Estep
2021-05-10 12:28:29 -07:00
committed by Facebook GitHub Bot
parent bf053a1296
commit e1cbc43f50
5 changed files with 103 additions and 6 deletions

View File

@ -37,6 +37,7 @@ strict_equality = True
files =
.github/scripts/generate_binary_build_matrix.py,
.github/scripts/parse_ref.py,
benchmarks/instruction_counts,
tools/actions_local_runner.py,
tools/autograd/*.py,