Skip to content

GHA/windows: install MSYS2 Perl manually on Windows 2025 runner - #22580

Closed
vszakats wants to merge 16 commits into
curl:masterfrom
vszakats:genserv-show-path-on-fail
Closed

vszakats wants to merge 16 commits into
curl:masterfrom
vszakats:genserv-show-path-on-fail

Conversation

@vszakats

@vszakats vszakats commented Aug 14, 2026 •

Copy link
Copy Markdown
Member

In GitHub runner image windows-2025-vs2026 v20260810.198.2, the default
Perl binary changed from MSYS2 to Strawberry. The reason is that the MSYS2
installation not longer has Perl preinstalled.

As seen in CMake configuration:

- -- Found Perl: C:/a/_temp/msys64/usr/bin/perl.exe (found version "5.42.2")
+ -- Found Perl: C:/Strawberry/perl/bin/perl.exe (found version "5.42.0")

curl's Perl scripts require an MSYS2 Perl. Fix by installing it manually
in this one job.

Symptom was gencert.pl no longer finding openssl.exe:

Missing or broken 'openssl' tool. openssl 1.0.2+ is required.

Then the script hanging while trying to trace it.

Also:

  • add distinct error message and list PATH elements if openssl is not
    found via gencert.pl.
  • tried falling back to Git for Windows Perl, which caused the test step
    to either hang or run too slowly to fit the time slot.

Refs:
actions/runner-images#14541
https://github.com/actions/runner-images/releases/tag/win25-vs2026%2F20260810.198

Bug: #22577 (comment)
Bug: #22577 (comment)


→ actions/runner-images#14562

https://github.com/curl/curl/actions/runs/31788213117/job/94728885207?pr=22580

PATH used: ., C:\msys64\ucrt64\bin, C:\msys64\usr\local\bin,
C:\msys64\usr\bin, C:\msys64\usr\bin, D:\a\_temp\setup-msys2, C:\Program
Files\MongoDB\Server\7.0\bin, C:\vcpkg, C:\tools\zstd,
C:\hostedtoolcache\windows\stack\3.11.1\x64, C:\cabal\bin, C:\ghcup\bin,
C:\mingw64\bin, C:\Program Files\dotnet, C:\Program Files\MySQL\MySQL
Server 8.0\bin, C:\Program Files\R\R-4.6.1\bin\x64,
C:\SeleniumWebDrivers\GeckoDriver, C:\SeleniumWebDrivers\EdgeDriver,
C:\SeleniumWebDrivers\ChromeDriver, C:\Program Files (x86)\sbt\bin,
C:\Program Files (x86)\GitHub CLI, C:\Program Files\Git\bin, C:\Program
Files (x86)\pipx_bin, C:\npm\prefix,
C:\hostedtoolcache\windows\go\1.24.13\x64\bin,
C:\hostedtoolcache\windows\Python\3.12.10\x64\Scripts,
C:\hostedtoolcache\windows\Python\3.12.10\x64,
C:\hostedtoolcache\windows\Ruby\3.3.12\x64\bin, C:\Program
Files\OpenSSL\bin, C:\tools\kotlinc\bin,
C:\hostedtoolcache\windows\Java_Temurin-Hotspot_jdk\17.0.20-8\x64\bin,
C:\Program Files\ImageMagick-7.1.2-Q16-HDRI, C:\Program Files\Microsoft
SDKs\Azure\CLI2\wbin, C:\ProgramData\kind,
C:\ProgramData\Chocolatey\bin, C:\Windows\system32, C:\Windows,
C:\Windows\System32\Wbem, C:\Windows\System32\WindowsPowerShell\v1.0,
C:\Windows\System32\OpenSSH, C:\Program Files\PowerShell\7, C:\Program
Files\Microsoft\Web Platform Installer, C:\Program Files\Microsoft SQL
Server\170\Tools\Binn, C:\Program Files\Microsoft SQL Server\Client
SDK\ODBC\170\Tools\Binn, C:\Program Files\dotnet, C:\Program Files
(x86)\Windows Kits\10\Windows Performance Toolkit, C:\Program Files
(x86)\WiX Toolset v3.14\bin, C:\Program Files\Microsoft SQL
Server\130\DTS\Binn, C:\Program Files\Microsoft SQL Server\140\DTS\Binn,
C:\Program Files\Microsoft SQL Server\150\DTS\Binn, C:\Program
Files\Microsoft SQL Server\160\DTS\Binn, C:\Program Files\Microsoft SQL
Server\170\DTS\Binn,
C:\ProgramData\chocolatey\lib\pulumi\tools\Pulumi\bin, C:\Program
Files\CMake\bin, C:\Strawberry\c\bin, C:\Strawberry\perl\site\bin,
C:\Strawberry\perl\bin,
C:\ProgramData\chocolatey\lib\maven\apache-maven-3.9.16\bin, C:\Program
Files\Microsoft Service Fabric\bin\Fabric\Fabric.Code, C:\Program
Files\Microsoft SDKs\Service
Fabric\Tools\ServiceFabricLocalClusterManager, C:\Program Files\nodejs,
C:\Program Files\Git\cmd, C:\Program Files\Git\mingw64\bin, C:\Program
Files\Git\usr\bin, C:\Program Files\GitHub CLI, C:\tools\php, C:\Program
Files (x86)\sbt\bin, C:\Program Files\Amazon\AWSCLIV2, C:\Program
Files\Amazon\SessionManagerPlugin\bin, C:\Program
Files\Amazon\AWSSAMCLI\bin, C:\Program Files\Microsoft SQL
Server\130\Tools\Binn, C:\Program Files\mongosh, C:\Program
Files\LLVM\bin, C:\Program Files (x86)\LLVM\bin,
C:\Users\runneradmin\.dotnet\tools, C:\Users\runneradmin\.cargo\bin,
C:\Users\runneradmin\AppData\Local\Microsoft\WindowsApps
@github-actions github-actions Bot added the CI Continuous Integration label Aug 14, 2026
@testclutch

This comment was marked as outdated.

@vszakats
vszakats force-pushed the genserv-show-path-on-fail branch from 166a050 to dedba69 Compare August 14, 2026 11:50
@vszakats

vszakats commented Aug 14, 2026 •

Copy link
Copy Markdown
Member Author

mingw-w64 changes:

--- GOOD
+++ BAD
@@ -1,10 +1,10 @@
    mingw-w64-ucrt-x86_64-openssl-3.6.3-1-any downloading...
    mingw-w64-ucrt-x86_64-gnutls-3.8.13-3-any downloading...
-   mingw-w64-ucrt-x86_64-gcc-libs-16.1.0-6-any downloading...
+   mingw-w64-ucrt-x86_64-gcc-libs-16.2.0-3-any downloading...
    mingw-w64-ucrt-x86_64-libunistring-1.4.2-1-any downloading...
    mingw-w64-ucrt-x86_64-libiconv-1.19-1-any downloading...
    mingw-w64-ucrt-x86_64-zstd-1.5.7-2-any downloading...
-   mingw-w64-ucrt-x86_64-p11-kit-0.26.4-2-any downloading...
+   mingw-w64-ucrt-x86_64-p11-kit-0.26.5-1-any downloading...
    mingw-w64-ucrt-x86_64-gmp-6.3.0-2-any downloading...
    mingw-w64-ucrt-x86_64-nettle-4.0-1-any downloading...
    mingw-w64-ucrt-x86_64-brotli-1.2.0-1-any downloading...
@@ -19,4 +19,4 @@
    mingw-w64-ucrt-x86_64-zlib-1.3.2-2-any downloading...
    mingw-w64-ucrt-x86_64-libpsl-0.21.5-3-any downloading...
    mingw-w64-ucrt-x86_64-libffi-3.7.1-1-any downloading...
-   mingw-w64-ucrt-x86_64-libwinpthread-14.0.0.r220.gd999af622-1-any downloading...
+   mingw-w64-ucrt-x86_64-libwinpthread-14.0.0.r262.g5ea8e9fac-1-any downloading...

runner changes:
https://github.com/actions/runner-images/releases/tag/win25-vs2026%2F20260810.198

GOOD: Perl v5.42.2
BAD: This is perl 5, version 42, subversion 0 (v5.42.0) built for MSWin32-x64-multi-thread

- -- Found Perl: C:/a/_temp/msys64/usr/bin/perl.exe (found version "5.42.2")
+ -- Found Perl: C:/Strawberry/perl/bin/perl.exe (found version "5.42.0") 

hint-hint: default Perl has changed to the native Windows build somehow? I wouldn't expect a hang,
but it would definitely not work with runtests.

note to self: the broken runner image is a pre-release. I'd opt-out if there was an option.

@vszakats vszakats changed the title genserv.pl: show PATH on openssl miss [WIP] GHA: default Perl became Strawberry, genserv.pl missing openssl, CI hangs Aug 14, 2026
@vszakats vszakats added the Windows Windows-specific label Aug 14, 2026
@vszakats vszakats changed the title [WIP] GHA: default Perl became Strawberry, genserv.pl missing openssl, CI hangs GHA/windows: move Strawberry off PATH to unbreak CI Aug 14, 2026
@vszakats vszakats changed the title GHA/windows: move Strawberry off PATH to unbreak CI [WIP] GHA/windows: move Strawberry off PATH to unbreak CI Aug 14, 2026
@vszakats

vszakats commented Aug 14, 2026 •

Copy link
Copy Markdown
Member Author

Unfortunately, GfW Perl hangs too, but only later, while running runtests.
Or, it's possible it's much slower and can't fit the time slot.

@vszakats vszakats changed the title [WIP] GHA/windows: move Strawberry off PATH to unbreak CI [WIP] GHA/windows: install MSYS2 Perl manually on Windows 2025 runner Aug 14, 2026
@vszakats vszakats changed the title [WIP] GHA/windows: install MSYS2 Perl manually on Windows 2025 runner GHA/windows: install MSYS2 Perl manually on Windows 2025 runner Aug 14, 2026
@vszakats vszakats closed this in d854ab4 Aug 14, 2026
@vszakats
vszakats deleted the genserv-show-path-on-fail branch August 14, 2026 14:17
@vszakats

Copy link
Copy Markdown
Member Author

Trying to trace back the root cause a little more:
actions/runner-images#14562 (comment)

vszakats added a commit that referenced this pull request Aug 15, 2026
CI jobs rely on defaults, sometimes to reduce log noise (possibly
improve performance a bit) or simplify, sometimes by accident. List them
to help debug or optimize on changes.

Refs:
actions/runner-images#14562 (comment)
msys2/MSYS2-packages@6364893
msys2/MSYS2-packages#6491
msys2/MSYS2-packages#6479

Follow-up to d854ab4 #22580
Follow-up to c349bd6 #14097

Closes #22589
vszakats added a commit that referenced this pull request Aug 21, 2026
As the MSYS2 update propagates into more GitHub runner images, we need
to install Perl to avoid native Windows (aka Strawberry) Perl breaking
jobs that are running tests.

For others jobs, this patch leaves the new default Strawberry Perl. It's
fine to use it a little bit more.

Also:
- libssh 32-bit was dropped upstream, replace with libssh2, and move
  libssh to the 64-bit job running tests.
  msys2/MINGW-packages@f6ae365
  msys2/MINGW-packages#30777

Refs:
actions/runner-images#14562
actions/runner-images#14541 (comment)
msys2/MSYS2-packages@6364893
msys2/MSYS2-packages#6491
msys2/MSYS2-packages#6479

Bug: #22537 (comment)
Follow-up to d854ab4 #22580

Closes #22632
vszakats added a commit that referenced this pull request Sep 29, 2026
Also:
- drop explicit wolfSSL package update.
- install MSYS2 Perl manually where missing.
  (no longer installed by default)

Ref: https://github.com/msys2/setup-msys2/releases/tag/v2.33.0
Follow-up to d854ab4 #22580
Follow-up to d054f38 #22259

Closes #23154
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI Continuous Integration script tests Windows Windows-specific

Development

Successfully merging this pull request may close these issues.

2 participants