From d794091f279d7db643249f0d01ab27d553f517e7 Mon Sep 17 00:00:00 2001 From: Digant Desai Date: Thu, 12 Mar 2026 23:00:48 -0500 Subject: [PATCH] Fix Windows CI schannel error for all windows jobs This is a temp fix. Ask git to not use schannel and do `git submodule update --init --recursive` manually in the job. --- .github/workflows/_unittest.yml | 3 ++- .github/workflows/build-presets.yml | 3 ++- .github/workflows/cuda-windows.yml | 3 ++- .github/workflows/trunk.yml | 3 ++- .github/workflows/windows-msvc.yml | 3 ++- 5 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/_unittest.yml b/.github/workflows/_unittest.yml index e26e7146f2a..457480099c3 100644 --- a/.github/workflows/_unittest.yml +++ b/.github/workflows/_unittest.yml @@ -58,10 +58,11 @@ jobs: if: ${{ inputs.build-tool == 'cmake' }} uses: pytorch/test-infra/.github/workflows/windows_job.yml@main with: - submodules: 'recursive' ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }} timeout: 120 script: | + git config --global http.sslBackend openssl + git submodule update --init --recursive conda init powershell powershell -Command "& { diff --git a/.github/workflows/build-presets.yml b/.github/workflows/build-presets.yml index 66ab19eef3c..7c5a37e0f6c 100644 --- a/.github/workflows/build-presets.yml +++ b/.github/workflows/build-presets.yml @@ -113,10 +113,11 @@ jobs: with: job-name: build ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }} - submodules: recursive timeout: 90 script: | set -eux + git config --global http.sslBackend openssl + git submodule update --init --recursive conda init powershell powershell -Command "& { Set-PSDebug -Trace 1 diff --git a/.github/workflows/cuda-windows.yml b/.github/workflows/cuda-windows.yml index e125fe4cc8e..d29a9de1dbc 100644 --- a/.github/workflows/cuda-windows.yml +++ b/.github/workflows/cuda-windows.yml @@ -127,10 +127,11 @@ jobs: runner: windows.g5.4xlarge.nvidia.gpu gpu-arch-type: cuda gpu-arch-version: 12.8 - submodules: recursive download-artifact: ${{ matrix.model_repo }}-${{ matrix.model_name }}-cuda-windows-${{ matrix.quant }} ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }} script: | + git config --global http.sslBackend openssl + git submodule update --init --recursive conda init powershell powershell -Command "& { Set-PSDebug -Trace 1 diff --git a/.github/workflows/trunk.yml b/.github/workflows/trunk.yml index bdfb9b60cd8..87423520e21 100644 --- a/.github/workflows/trunk.yml +++ b/.github/workflows/trunk.yml @@ -1123,10 +1123,11 @@ jobs: model: [mv3, resnet50, vit, mobilebert, emformer_transcribe] backend: [portable, xnnpack-q8] with: - submodules: 'recursive' ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }} timeout: 60 script: | + git config --global http.sslBackend openssl + git submodule update --init --recursive conda init powershell powershell -Command "& { diff --git a/.github/workflows/windows-msvc.yml b/.github/workflows/windows-msvc.yml index 26312b050a4..1f6586cb3cc 100644 --- a/.github/workflows/windows-msvc.yml +++ b/.github/workflows/windows-msvc.yml @@ -22,10 +22,11 @@ jobs: name: build-windows-msvc uses: pytorch/test-infra/.github/workflows/windows_job.yml@main with: - submodules: 'recursive' ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }} timeout: 60 script: | + git config --global http.sslBackend openssl + git submodule update --init --recursive conda init powershell powershell -Command "& { Set-PSDebug -Trace 1