Commit Graph

6 Commits

Author SHA1 Message Date
Jane Xu
09ce9b5877 Store test file in S3 as well for every TestSuite (#52869)
Summary:
We want to store the file names that triggers each test suite so that we can use this data for categorizing those test files.

~~After considering several solutions, this one is the most backwards compatible, and the current test cases in test_testing.py for print test stats don't break.~~

The previous plan did not work, as there are multiple Python test jobs that spawn the same suites. Instead, the new S3 format will store test files (e.g., `test_nn` and `distributed/test_distributed_fork`) which will contain the suites they spawn, which will contain the test cases run within the suite. (Currently, there is no top layer of test files.)

Because of this major structural change, a lot of changes have now been made (thank you samestep!) to test_history.py and print_test_stats.py to make this new format backwards compatible.

Old test plan:
Make sure that the data is as expected in S3 after https://github.com/pytorch/pytorch/pull/52873 finishes.

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

Test Plan: Added tests to test_testing.py which pass, and CI.

Reviewed By: samestep

Differential Revision: D26672561

Pulled By: janeyx99

fbshipit-source-id: f46b91e16c1d9de5e0cb9bfa648b6448d979257e
2021-03-02 07:36:00 -08:00
Sam Estep
97568d7471 Use --delta=0 by default for tools/test_history.py (#52877)
Summary:
This is less surprising than the current default, `--delta=12`.

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

Test Plan: Run the example commands from `tools/test_history --help` and check that their output matches that shown.

Reviewed By: pritamdamania87

Differential Revision: D26674258

Pulled By: samestep

fbshipit-source-id: 1413e11519854b0a47e14af2f1d20c57f145dacd
2021-02-26 08:58:08 -08:00
Sam Estep
914126901e Fix typos in tools/test_history.py helpstring (#52840)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/52840

Test Plan:
```
$ tools/test_history.py --help
```

Reviewed By: janeyx99

Differential Revision: D26665121

Pulled By: samestep

fbshipit-source-id: 3607a4a598f1b1639ac1752b4e377491bff7188f
2021-02-25 08:21:23 -08:00
Sam Estep
27d04f291e Clarify usage and output of tools/test_history.py (#52640)
Summary:
This PR makes several UX improvements to `tools/test_history.py`:
- warn if `--all` is unset and no jobs are passed
- print output even in `multiline` mode if no reports are found for a commit
  - this makes it easier to tell whether the script is just hanging
- if there are multiple reports for a commit/job pair, say so
- distinguish between not finding any reports and just not finding the desired test in the reports found
- don't require the suite name as a CLI arg, just use the test name

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

Test Plan: Example shell session: https://pastebin.com/SSemHqP8

Reviewed By: walterddr

Differential Revision: D26594350

Pulled By: samestep

fbshipit-source-id: 9ce2245f91eef289817aafe955a4343d4a068eda
2021-02-24 11:19:45 -08:00
Nikita Shulga
e36a900e89 [tools] Use anonymous access to access S3 bucket (#52338)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/52338

Reviewed By: samestep

Differential Revision: D26475415

Pulled By: malfet

fbshipit-source-id: a96e8868b11e9e7691daa54ff2baef4446605ba7
2021-02-17 11:00:52 -08:00
Sam Estep
deb74edb28 Add script to display history for a single test across multiple jobs over time (#52000)
Summary:
Adapted from this gist: https://gist.github.com/malfet/1c34f261a28ae7af61210174394eaece

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

Test Plan: Example shell session here: https://pastebin.com/HYgWZBFB

Reviewed By: walterddr

Differential Revision: D26372191

Pulled By: samestep

fbshipit-source-id: cdc9a27e1b4a0b3123a70e693b17d524e7c6cb95
2021-02-11 13:27:49 -08:00