From cbc7b05b56f3739a5438509adde756fd040423a4 Mon Sep 17 00:00:00 2001 From: Tyrie Vella Date: Wed, 18 Nov 2026 10:46:41 -0800 Subject: [PATCH] ci: ship SDK runtime DLLs in the ARM64 VFS test payload All arm64 shards of the VFS for Git functional tests fail on vfs-2.56.1, for example in https://github.com/microsoft/git/actions/runs/42891072503: after `git\install.bat`, the next step exits with code -1073741515 (0xC0000135, STATUS_DLL_NOT_FOUND), and VFS for Git then reports "Error: Unable to retrieve the Git version". On 2026-11-07, the Git for Windows SDK for ARM64 updated `mingw-w64-clang-aarch64-zlib` to 1.4. With that version, `-lz` links to `libz-1.dll` instead of `zlib1.dll`. The test job copies the payload over the runner's preinstalled Git for Windows. That Git only ships `zlib1.dll`, so the newly built `git.exe` cannot start. The x86_64 leg received the same zlib update but still passes, because it already copies all UCRT64 runtime DLLs from the SDK into its payload. Do the same for CLANGARM64. Copying only `libz-1.dll` would also fix today's failure, but it would break again when the SDK next renames or adds a DLL that the payload imports. Also make `install.bat` run the installed `git version`. If Git cannot start, the "Install Git" step now fails with the real error, instead of a later step deep in each test shard. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: Tyrie Vella --- .github/workflows/vfs-functional-tests.yml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/vfs-functional-tests.yml b/.github/workflows/vfs-functional-tests.yml index 44b20fa98008b2..55e4c3be7623dc 100644 --- a/.github/workflows/vfs-functional-tests.yml +++ b/.github/workflows/vfs-functional-tests.yml @@ -99,12 +99,16 @@ jobs: make -j5 DESTDIR="$GITHUB_WORKSPACE/MicrosoftGit/payload/${{ matrix.architecture }}" install - # The test runners still ship the MINGW64 runtime. - if test "$MSYSTEM" = UCRT64 - then - cp /ucrt64/bin/*.dll \ - "$GITHUB_WORKSPACE/MicrosoftGit/payload/x86_64/ucrt64/bin/" - fi + # The payload is copied over the test runners' preinstalled Git, + # which can be older than the SDK and lack DLLs that the payload + # imports. Ship the SDK's runtime DLLs with the payload. + case "$MSYSTEM" in + UCRT64|CLANGARM64) + prefix=/$(echo "$MSYSTEM" | tr A-Z a-z) + cp $prefix/bin/*.dll \ + "$GITHUB_WORKSPACE/MicrosoftGit/payload/${{ matrix.architecture }}$prefix/bin/" + ;; + esac - name: Upload Git artifact uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7 @@ -158,6 +162,7 @@ jobs: echo Installing Git from %GIT_PAYLOAD% to "C:\Program Files\Git"... robocopy "%GIT_PAYLOAD%" "C:\Program Files\Git" /E /NFL /NDL /NJH /NJS /NS /NC if %ERRORLEVEL% GEQ 8 exit /b %ERRORLEVEL% + "C:\Program Files\Git\cmd\git.exe" version || exit /b 1 echo C:\Program Files\Git\cmd>>"%GITHUB_PATH%" exit /b 0 BATCH