Skip to content

compiler: add retry loop and enable allowEmptyChecksums on Windows (v1.82.x backport) - #12987

Merged
kannanjgithub merged 1 commit into
grpc:v1.82.xfrom
kannanjgithub:backport-1.82-windows_ci_failure
Aug 14, 2026
Merged

compiler: add retry loop and enable allowEmptyChecksums on Windows (v1.82.x backport)#12987
kannanjgithub merged 1 commit into
grpc:v1.82.xfrom
kannanjgithub:backport-1.82-windows_ci_failure

Conversation

@kannanjgithub

Copy link
Copy Markdown
Contributor

Backport of #12962 to v1.82.x.

Enables allowEmptyChecksums globally on Chocolatey and implements a 3-attempt retry loop for pkgconfiglite to prevent Windows CI failures caused by transient network or SourceForge mirror errors. Even though --allow-empty-checksums is passed to choco install, newer Chocolatey versions do not propagate this CLI flag to the nested PowerShell installer script (chocolateyInstall.ps1). The inner script fails when downloading the binary from non-secure HTTP SourceForge mirrors unless the allowEmptyChecksums feature is globally enabled via choco feature beforehand.
This change also makes the script exit prematurely if pkg-config installation still failed instead of continuing and failing later at the linking step.

Failed Kokoro build logs example.

…rpc#12962)

Enables allowEmptyChecksums globally on Chocolatey and implements a
3-attempt retry loop for pkgconfiglite to prevent Windows CI failures
caused by transient network or SourceForge mirror errors. Even though
--allow-empty-checksums is passed to choco install, newer Chocolatey
versions do not propagate this CLI flag to the nested PowerShell
installer script (chocolateyInstall.ps1). The inner script fails when
downloading the binary from non-secure HTTP SourceForge mirrors unless
the allowEmptyChecksums feature is globally enabled via choco feature
beforehand.
This change also makes the script exit prematurely if pkg-config
installation still failed instead of continuing and failing later at the
linking step.

[Failed Kokoro build logs
example](https://btx.cloud.google.com/invocations/f43affbc-6ace-4158-bac4-86779b985b2f/targets/grpc%2Fjava%2Fmaster%2Fpresubmit%2Fwindows;config=default/log).
@kannanjgithub
kannanjgithub merged commit f6a13de into grpc:v1.82.x Aug 14, 2026
18 checks passed
@kannanjgithub
kannanjgithub deleted the backport-1.82-windows_ci_failure branch August 14, 2026 04:54
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