-
Notifications
You must be signed in to change notification settings - Fork 25.6k
[test/profiler] Make test_profiler_pattern_matcher_json_report write … #133009
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…torchtidy_report.json to a tmpdir instead of CWD
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/133009
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New FailureAs of commit 92f7330 with merge base 9d5c85c ( NEW FAILURE - The following job has failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
@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 |
Merge failedReason: 1 jobs have failed, first few of them are: trunk / linux-focal-cuda12.4-py3.10-gcc9-sm86 / test (default, 3, 5, amz2023.linux.g5.4xlarge.nvidia.gpu) Details for Dev Infra teamRaised by workflow job |
@pytorchbot merge -f "failure looks unrelated" |
Merge startedYour change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
try: | ||
with open("./torchtidy_report.json") as f: | ||
|
||
with tempfile.TemporaryDirectory() as tmpdir: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You might want to double check that this doesn't break windows tests as it has in the past: #132749 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, good to know. From https://hud.pytorch.org/pr/133009 looks like the windows tests succeeded.
Makes it possible to run
test/profiler/test_profiler.py#test_profiler_pattern_matcher_json_report
on CI environments where the test runner doesn't have write permissions to the current-working-directory.