Repository navigation
ci(cvcpkg-cli): retry the cvcpkg installer with backoff - #1100
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.shfalls back tohttps://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:recipe / macos-latest / Releaseandpackage-macos / libcvc-release-grpc-staticboth died oncurl: (56) ... error: 504(jobs 128983162615 and 128983163183).What
.github/actions/cvcpkg-cli/action.ymlnow downloadsinstall.sh/install.ps1to a file and runs it up to five times, waiting 20, 40, 60 and 90 s between attempts (3.5 minutes in all).sh.pwsh -File, notirm | iex.install.ps1ends a failure withexit 1, and underiexthat ends the step instead of the attempt.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
CVCPKG_VERSION=9.9.9, which 404s on GitHub). Each made five attempts, warned between them, exited 1 and leftGITHUB_PATHunwritten.