Skip to content

ci(cvcpkg-cli): retry the cvcpkg installer with backoff - #1100

Merged
transfix merged 1 commit into
masterfrom
ci/cvcpkg-cli-retry
Nov 9, 2026
Merged

transfix merged 1 commit into
masterfrom
ci/cvcpkg-cli-retry

Conversation

@transfix

@transfix transfix commented Nov 9, 2026

Copy link
Copy Markdown
Owner

Why

macOS jobs get the cvcpkg CLI from GitHub Releases. The registry's newest macOS cvcpkg package (arm64 and x86_64, and linux/arm64 too) is 2.5.1+cvc.3, so install.sh falls back to https://github.com/cy-pca/cvcpkg/releases/download/cvcpkg-v2.5.12/cvcpkg-macos-arm64. That URL answers 504 for minutes at a time, and the installers don't retry:

What

.github/actions/cvcpkg-cli/action.yml now downloads install.sh / install.ps1 to a file and runs it up to five times, waiting 20, 40, 60 and 90 s between attempts (3.5 minutes in all).

  • POSIX: if the download or the installer fails, that attempt fails. Without the file, a failed download would pipe an empty script into sh.
  • Windows: the script runs as a child pwsh -File, not irm | iex. install.ps1 ends a failure with exit 1, and under iex that ends the step instead of the attempt.
  • The description now says which platforms the registry has 2.5.12 for. It used to say the newest macOS package was 2.5.1.

Getting cvcpkg 2.5.12 onto cvcpkg.org for macOS and linux/arm64, so these jobs stop using GitHub Releases at all, is a separate cy-pca/cvcpkg job.

Checked

  • Both loops were run locally with 1 s delays against an installer that always fails: Git Bash (install.sh refuses MINGW) and pwsh 7 (CVCPKG_VERSION=9.9.9, which 404s on GitHub). Each made five attempts, warned between them, exited 1 and left GITHUB_PATH unwritten.
  • The success path is the CI on this PR.

macOS jobs install the cvcpkg CLI from the cvcpkg-v2.5.12 GitHub release,
because the registry's newest macOS (and linux/arm64) cvcpkg package is
2.5.1+cvc.3. GitHub Releases answers 504 for minutes at a time, and the
installers do not retry, so #1090 lost recipe / macos-latest / Release and
package-macos / libcvc-release-grpc-static to one download, and #1054 lost
jobs the same way.

The action now downloads install.sh / install.ps1 to a file and runs it up
to five times, waiting 20, 40, 60 and 90 s between attempts (3.5 minutes).
On Windows the script runs as a child pwsh, since install.ps1 ends a failure
with `exit 1`, which under `irm | iex` ends the step instead of the attempt.

The description now says which platforms the registry covers at 2.5.12.
@transfix
transfix enabled auto-merge (squash) November 9, 2026 18:49
@transfix
transfix merged commit 6fac8f2 into master Nov 9, 2026
14 of 30 checks passed
@transfix
transfix deleted the ci/cvcpkg-cli-retry branch November 9, 2026 18:51
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.

1 participant