Repository navigation
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/175696
Note: Links to docs will display an error until the docs builds have been completed. ❗ 1 Active SEVsThere are 1 currently active SEVs. If your PR is affected, please view them below: ❌ 1 New Failure, 2 Unrelated FailuresAs of commit 3508ae1 with merge base 00c683a ( NEW FAILURE - The following job has failed:
FLAKY - The following jobs failed but were likely due to flakiness present on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This PR needs a
|
| if shutil.which(wrapper): | ||
| if isinstance(compiler, list): | ||
| return [wrapper] + compiler | ||
| return f'{wrapper} {compiler}' |
There was a problem hiding this comment.
Use shlex.join for added security here to prevent string escapes, unless that is intentional and probably better to just split into a list with shlex.split
|
@pytorchbot merge |
Merge failedReason: This PR needs a If not, please add the To add a label, you can comment to pytorchbot, for example For more information, see Details for Dev Infra teamRaised by workflow job |
This PR needs a
|
|
@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 / macos-py3-arm64 / test (default, 2, 3, macos-m1-stable) Details for Dev Infra teamRaised by workflow job |
|
@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 |
|
Looks like this PR breaks audio and vision as well with the same error mentioned in: #176585 audio: https://hud.pytorch.org/hud/pytorch/audio/nightly/1?per_page=50 Summary from claude: Root Cause The commit cf70a7b (2026-02-28 nightly) added _wrap_compiler() to wrap compilers with ccache/sccache. Look at this
The _wrap_compiler function has IS_WINDOWS as a bail-out (if ... IS_WINDOWS ...: return compiler), so on Windows But the real issue is the restructured control flow for the non-CUDA (CXX) case on Windows:
For CUDA files on Windows, the command was changed from: The _wrap_compiler passes the entire [nvcc, '-c', src, '-o', obj, ...] list through. On Windows it returns it Now look at the ninja path — at line ~3066: _wrap_compiler receives a string, converts it to [string], and returns [string]. Then shlex.join(['C:\Program The space in C:\Program Files... is the problem. Without proper quoting in the ninja file, ninja tries to execute Summary The _wrap_compiler() change in the 2026-02-28 nightly broke the Windows CUDA build because shlex.join() on Windows Fix The nvcc path needs to be properly quoted when written to the ninja file on Windows. The simplest fix would be to |
|
@pytorchmergebot revert -c nosignal -m "break windows cuda domain builds" |
|
@pytorchbot successfully started a revert job. Check the current status here. |
…)" This reverts commit 434b8cf. Reverted #175696 on behalf of https://github.com/atalman due to break windows cuda domain builds ([comment](#175696 (comment)))
|
@malfet your PR has been successfully reverted. |
|
I.e. if either ccache or sccache are present on the system, use it ghstack-source-id: 1df049a Pull-Request: pytorch/pytorch#175696
I.e. if either ccache or sccache are present on the system, use it Pull Request resolved: pytorch#175696 Approved by: https://github.com/Skylion007 ghstack dependencies: pytorch#175574, pytorch#175556
…ch#175696)" This reverts commit 434b8cf. Reverted pytorch#175696 on behalf of https://github.com/atalman due to break windows cuda domain builds ([comment](pytorch#175696 (comment)))
| def _windows_quote(arg: str) -> str: | ||
| """Quote a single argument per the MSVC ``CommandLineToArgvW`` rules.""" |
There was a problem hiding this comment.
You could use subprocess.list2cmdline but it is an undocumented function. Alternatively you could just copy it so you know it is correct. I can't tell from my phone if that is what you've done.
If this is merged, please close #176827.
There was a problem hiding this comment.
I though about subprocess.list2cmdline but indeed it's not documented what it does and what it does not. This is not a literal copy, but spiritually it works in a similar way
|
@pytorchbot merge -i |
Merge startedYour change will be merged while ignoring the following 3 checks: pull / linux-jammy-py3.10-gcc11 / test (distributed, 2, 3, linux.2xlarge.amx), trunk / linux-jammy-aarch64-py3.10 / test (default, 2, 5, linux.arm64.m7g.4xlarge), trunk / linux-jammy-cuda13.0-py3.10-gcc11 / test (default, 2, 5, linux.g6.4xlarge.experimental.nvidia.gpu) Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
I.e. if either ccache or sccache are present on the system, use it Pull Request resolved: pytorch#175696 Approved by: https://github.com/Skylion007
…ch#175696)" This reverts commit 434b8cf. Reverted pytorch#175696 on behalf of https://github.com/atalman due to break windows cuda domain builds ([comment](pytorch#175696 (comment)))
I.e. if either ccache or sccache are present on the system, use it Pull Request resolved: pytorch#175696 Approved by: https://github.com/Skylion007
I.e. if either ccache or sccache are present on the system, use it Pull Request resolved: pytorch#175696 Approved by: https://github.com/Skylion007
Stack from ghstack (oldest at bottom):
I.e. if either ccache or sccache are present on the system, use it