Repository navigation
[testing] Add --save-test-run-reports to run_test.py and run_tests - #200023
georgehong wants to merge 16 commits into
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/200023
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 9849c12 with merge base 816fc3c ( 🟡 GREEN LIGHT - PR requires human review:
reason: This comment was automatically generated by Dr. CI and updates every 15 minutes. |
`--save-test-run-reports [DIR]` registers the torchci plugin, with one folder per test file; `--no-save-test-run-reports` turns it off. Off by default. run_test.py only forwards the flag when the installed torch has the writer, since tests sometimes run against a nightly. Test Plan: ``` python test/test_testing.py -k TestReport -k TestJunitXml python test/run_test.py -i test_type_info --save-test-run-reports lintrunner ``` Authored with the help of an AI assistant (Claude). ghstack-source-id: 8b73cff Pull-Request: #200023
| parser.add_argument('--no-save-torchci-reports', dest='save_torchci_reports', | ||
| action='store_const', const=None, default=argparse.SUPPRESS) |
There was a problem hiding this comment.
nit: why do we need this? This is the behavior if they leave --save-torchci-reports out anyways
There was a problem hiding this comment.
Removed in latest version. Was originally included to match the existing test-reports structure.
| parser.add_argument('--save-torchci-reports', nargs='?', type=str, | ||
| const=TORCHCI_REPORTS_DIR, default=None) |
There was a problem hiding this comment.
nit: instead of providing a default, let's just always expect them to include a path? I was slightly confused where this was being written because there are more than one path to decide
|
@pytorchbot merge |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
…ytorch#200023) **Overview** `--save-torchci-reports DIR` registers the torchci plugin, which writes each test process's report to `<DIR>/<file>-<uuid>.report.jsonl`. Off by default. *run_test.py* only forwards the flag when the installed torch has the writer, since tests sometimes run against a nightly. **Test Plan** ``` python test/run_test.py -i test_type_info --save-torchci-reports /tmp/test/torchci-reports/ ``` Authored with the help of an AI assistant (Claude). Pull Request resolved: pytorch#200023 Approved by: https://github.com/jathu ghstack dependencies: pytorch#200339, pytorch#200022
Stack from ghstack (oldest at bottom):
Overview
--save-torchci-reports DIRregisters the torchci plugin, which writes each test process's report to<DIR>/<file>-<uuid>.report.jsonl. Off by default. run_test.py only forwards the flag when the installed torch has the writer, since tests sometimes run against a nightly.Test Plan
Authored with the help of an AI assistant (Claude).