Skip to content

ci: ship SDK runtime DLLs in the ARM64 VFS test payload - #1029

Merged
Johannes Schindelin (dscho) merged 1 commit into
microsoft:vfs-2.56.1from
tyrielv:tyrielv/ci-arm64-runtime-dlls
Nov 20, 2026
Merged

Johannes Schindelin (dscho) merged 1 commit into
microsoft:vfs-2.56.1from
tyrielv:tyrielv/ci-arm64-runtime-dlls

Conversation

@tyrielv

@tyrielv Tyrie Vella (tyrielv) commented Nov 18, 2026 •

Copy link
Copy Markdown

Problem and Context

All 12 arm64 shards of the "VFS for Git Functional Tests" workflow fail on vfs-2.56.1 and on every PR against it. The x64 shards pass. After git\install.bat runs, the next step exits with code -1073741515 (0xC0000135, STATUS_DLL_NOT_FOUND). VFS for Git then reports "Unable to retrieve the Git version". Example: https://github.com/microsoft/git/actions/runs/42891072503.

On 2026-11-07, git-for-windows/git-sdk-arm64 updated mingw-w64-clang-aarch64-zlib from 1.3.2 to 1.4 (git-for-windows/git-sdk-arm64@3387e06ee307). With zlib 1.4, -lz links to libz-1.dll instead of zlib1.dll. The import tables of the MicrosoftGit-aarch64 artifacts show this change:

Binary vfs-2.56.0 (last green run) vfs-2.56.1
clangarm64\bin\git.exe zlib1.dll libz-1.dll
clangarm64\bin\scalar.exe zlib1.dll libz-1.dll

All other imports are identical. The workflow copies the payload over the runner's preinstalled Git for Windows (2.56.0.windows.4). That Git ships only zlib1.dll, and the arm64 payload contains no DLLs. So git.exe cannot start. The x64 leg has the same zlib update (git-for-windows/git-sdk-64@b67ae5efb6a6). It passes only because it already copies /ucrt64/bin/*.dll into its payload.

Released installers are not affected. The v2.56.1.vfs.0.1 ARM64 PortableGit ships libz-1.dll, because the build-extra file list includes it. Git for Windows 2.56.1 still links to zlib1.dll, so runner images that move to 2.56.1 will not fix this test failure.

Changes

  • Copy the SDK runtime DLLs ($prefix/bin/*.dll) into the payload for CLANGARM64 as well as UCRT64. The SDK action does not export MINGW_PREFIX, so the step derives the prefix from $MSYSTEM. This is the same fallback that config.mak.uname uses.
  • Replace the comment above the copy. The comment now states why the copy is necessary: the runner's Git can be older than the SDK and lack DLLs that the payload imports.
  • Make install.bat run "C:\Program Files\Git\cmd\git.exe" version after the copy. If Git cannot start, the "Install Git" step now fails with the real error, instead of a later step in each test shard.

Known gaps and deliberate decisions

  • All SDK DLLs, not only the imported ones — The step copies every DLL in the SDK's bin directory, so it can replace same-named DLLs in the runner's Git. Copying only libz-1.dll, or only the import closure, is narrower. But it breaks again when the SDK renames or adds a DLL, or it needs an extra dependency-walk tool. The x64 leg already uses copy-all over the runner's live ucrt64 prefix and passes. No follow-up planned.

@tyrielv
Tyrie Vella (tyrielv) force-pushed the tyrielv/ci-arm64-runtime-dlls branch from 36f00d4 to 6d4e7c1 Compare November 18, 2026 19:33
@tyrielv Tyrie Vella (tyrielv) changed the title ci(vfs-functional-tests): ship SDK runtime DLLs in the ARM64 payload ci: ship SDK runtime DLLs in the ARM64 VFS test payload Nov 18, 2026
@tyrielv
Tyrie Vella (tyrielv) force-pushed the tyrielv/ci-arm64-runtime-dlls branch from 6d4e7c1 to 1c6aca8 Compare November 18, 2026 22:15
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 <[email protected]>
Signed-off-by: Tyrie Vella <[email protected]>
@tyrielv
Tyrie Vella (tyrielv) force-pushed the tyrielv/ci-arm64-runtime-dlls branch from 1c6aca8 to cbc7b05 Compare November 19, 2026 18:27
@tyrielv
Tyrie Vella (tyrielv) marked this pull request as ready for review November 19, 2026 18:51

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I saw the failures, and meant to look into them, but there's just so many asks I had to respond to this week. Your contribution, therefore, is highly appreciated Tyrie Vella (@tyrielv)!

@dscho
Johannes Schindelin (dscho) merged commit 01eb42e into microsoft:vfs-2.56.1 Nov 20, 2026
50 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants