[BE] Add in-place collect_env execution#176904
[BE] Add in-place collect_env execution#176904malfet wants to merge 1 commit intogh/malfet/763/basefrom
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/176904
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 2a79084 with merge base eee7a9d ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
First of all, fewer systems now how `wget` installed by default, but almost all Linux/MacOS comes with curl
If script with such name already exists, `wget` will download it with `.${NUM}` suffixed alias, which results in reporter posting results from something else, for example see #176829
```
wget https://raw.githubusercontent.com/pytorch/pytorch/main/torch/utils/collect_env.py
python collect_env.py
--2026-03-08 23:35:37-- https://raw.githubusercontent.com/pytorch/pytorch/main/torch/utils/collect_env.py
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 2606:50c0:8001::154, 2606:50c0:8003::154, 2606:50c0:8000::154, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|2606:50c0:8001::154|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 31107 (30K) [text/plain]
Saving to: ‘collect_env.py.1’
collect_env.py.1 100%[==========================================>] 30.38K --.-KB/s in 0.04s
2026-03-08 23:35:38 (707 KB/s) - ‘collect_env.py.1’ saved [31107/31107]
Traceback (most recent call last):
File "/mnt/d/my/work/study/ai/kaggle_code/aimo2/collect_env.py", line 15, in <module>
```
ghstack-source-id: a854b21
Pull-Request: #176904
|
Also, can the same script be run as |
|
@pytorchbot merge -f "Lint is green" |
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 |
Yes, but this have a downside of not being able to get any info if |
Stack from ghstack (oldest at bottom):
First of all, fewer systems now how
wgetinstalled by default, but almost all Linux/MacOS comes with curlIf script with such name already exists,
wgetwill download it with.${NUM}suffixed alias, which results in reporter posting results from something else, for example see #176829