Repository navigation
CI: install the cvcpkg CLI through the retrying action in every job - #1628
Merged
Merged
Conversation
#1597's recipe / ubuntu-22.04 / Release job (run 46117980396) failed in "Install cvcpkg" when cvcpkg.org answered one 503 to `curl -fsSL https://cvcpkg.org/install.sh | sh`; the site was back minutes later. .github/actions/cvcpkg-cli already re-runs the installer up to five times (20/40/60/90 s apart), but 18 steps still piped install.sh (or install.ps1) straight to a shell. - ci-recipe.yml: its POSIX and Windows install steps become one `uses: ./.github/actions/cvcpkg-cli` with the same 2.5.14 pin. The action installs to the same $RUNNER_TEMP/cvcpkg-bin and adds it to GITHUB_PATH, as those steps did. - ci.yml (12 jobs), publish-cvcgl-wasm.yml (3) and publish-pycvc-gl-wasm.yml (1): each gets an "Install the cvcpkg CLI" step with the old step's `if:`, and the old step loses its curl line and its ~/.local/bin PATH lines. These jobs never pinned a version, so they pass `version: latest` and keep taking the registry's newest (2.5.15+cvc.1 today), not the action's 2.5.14. - cvcpkg-cli/action.yml: `version: latest` leaves CVCPKG_VERSION empty, which both installers read as "newest". The description cites the 503. ci.yml stays CRLF.
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
#1597's
recipe / ubuntu-22.04 / Releasejob (run 46117980396) failed in "Install cvcpkg" in under a minute:curl -fsSL https://cvcpkg.org/install.sh | shgot HTTP 503, and the site answered 200 again minutes later..github/actions/cvcpkg-clialready re-runs the installer up to five times (20/40/60/90 s apart, 3.5 minutes in all), but only the actions built on it used it. 18 workflow steps still pipedinstall.sh(orinstall.ps1) straight to a shell, with no retry.What
uses: ./.github/actions/cvcpkg-cliwith the same2.5.14pin. The action installs to the same$RUNNER_TEMP/cvcpkg-binand adds it toGITHUB_PATH, as the two steps did.if:. The old step loses its curl line and its~/.local/binPATH lines. cvcpkg now lives in$RUNNER_TEMP/cvcpkg-bin, on PATH for every later step. Nothing else in these jobs or the repo's scripts refers to~/.local/bin.version: latestand keep the registry's newest (2.5.15+cvc.1 today) rather than dropping to the action's 2.5.14. Pinning them is a separate decision.version: latestleavesCVCPKG_VERSIONempty. install.sh and install.ps1 both read an empty value as "newest", which is what these jobs got before when it was unset. The description now cites the 503.ci.yml stays CRLF: 4141 of 4141 lines, the same as master's 4103 of 4103. The other files stay LF.
Testing
.github/workflows/ci.ymlin its path gate, so this PR runs each of them through the action withlatest. The ci-recipe Linux and Windows lanes run the action with the 2.5.14 pin.