Skip to content

Add a flag to benchmarks script to keep the test report directory#96398

Closed
huydhn wants to merge 5 commits intopytorch:masterfrom
huydhn:dynamo-perf-runner-no-cleanup
Closed

Add a flag to benchmarks script to keep the test report directory#96398
huydhn wants to merge 5 commits intopytorch:masterfrom
huydhn:dynamo-perf-runner-no-cleanup

Conversation

@huydhn
Copy link
Contributor

@huydhn huydhn commented Mar 9, 2023

I notice from the Rockset data that there are only float32 records, while there should be both dtypes there. It turns out that the benchmarks script generated by runner.py always removes the output directory by default, so there are only records from float32 running later left.

For example, rm -rf /var/lib/jenkins/workspace/test/test-reports appeared twice in the CI log https://ossci-raw-job-status.s3.amazonaws.com/log/11840774308.

I'm adding a new flag --keep-output-dir to keep the output directory. This is off by default as I'm not sure how this script is used internally, people probably expect to see the output directory cleaned up everytime.

Testing

Not really want to start the 10h jobs just to test this small flag, so I'm triple check the change to make sure that there is no bug

cc @soumith @voznesenskym @penguinwu @anijain2305 @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @Xia-Weiwen @wenzhe-nrv @jiayisunx @desertfire

@huydhn huydhn requested review from a team, desertfire and weiwangmeta March 9, 2023 04:23
@pytorch-bot
Copy link

pytorch-bot bot commented Mar 9, 2023

🔗 Helpful Links

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

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

✅ No Failures

As of commit cbc4fb2:
💚 Looks good so far! There are no failures yet. 💚

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

@huydhn huydhn changed the title Dynamo perf runner no cleanup Add a flag to benchmarks script to keep the test report directory Mar 9, 2023
Copy link
Contributor

@weiwangmeta weiwangmeta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@huydhn
Copy link
Contributor Author

huydhn commented Mar 11, 2023

@pytorchbot merge -f 'CI only change. Linter has passed'

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

cyyever pushed a commit to cyyever/pytorch_private that referenced this pull request Mar 12, 2023
…6398)

I notice from the Rockset data that there are only `float32` records, while there should be both dtypes there.  It turns out that the benchmarks script generated by `runner.py` always removes the output directory by default, so there are only records from `float32` running later left.

For example, `rm -rf /var/lib/jenkins/workspace/test/test-reports` appeared twice in the CI log https://ossci-raw-job-status.s3.amazonaws.com/log/11840774308.

I'm adding a new flag `--keep-output-dir` to keep the output directory.  This is off by default as I'm not sure how this script is used internally, people probably expect to see the output directory cleaned up everytime.

### Testing

Not really want to start the 10h jobs just to test this small flag, so I'm triple check the change to make sure that there is no bug

Pull Request resolved: pytorch/pytorch#96398
Approved by: https://github.com/weiwangmeta
cyyever pushed a commit to cyyever/pytorch_private that referenced this pull request Mar 14, 2023
…6398)

I notice from the Rockset data that there are only `float32` records, while there should be both dtypes there.  It turns out that the benchmarks script generated by `runner.py` always removes the output directory by default, so there are only records from `float32` running later left.

For example, `rm -rf /var/lib/jenkins/workspace/test/test-reports` appeared twice in the CI log https://ossci-raw-job-status.s3.amazonaws.com/log/11840774308.

I'm adding a new flag `--keep-output-dir` to keep the output directory.  This is off by default as I'm not sure how this script is used internally, people probably expect to see the output directory cleaned up everytime.

### Testing

Not really want to start the 10h jobs just to test this small flag, so I'm triple check the change to make sure that there is no bug

Pull Request resolved: pytorch/pytorch#96398
Approved by: https://github.com/weiwangmeta
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants