Repository navigation
[CI] Retry the vcpkg bootstrap of the core source build - #6
Conversation
The scheduled source build (clang++) of 2026-12-01 failed twice at "Set up vcpkg": bootstrap-vcpkg downloads the vcpkg executable from a GitHub release, and release-assets.githubusercontent.com answered with HTTP 618 (reproduced: 1 of 23 requests from elsewhere). vcpkg's bootstrap calls curl --retry 3, which does not retry that status, so one bad answer failed the job. openms-core now bootstraps vcpkg itself, up to 3 times 15 s apart, and writes vcpkgLastBuiltCommitId (the HEAD of the vcpkg checkout, without a newline: run-vcpkg v11 compares it untrimmed), so run-vcpkg finds the executable up to date and skips its own bootstrap. On ARM64 the step also exports VCPKG_FORCE_SYSTEM_BINARIES=1, which run-vcpkg would otherwise set with its bootstrap. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0149aXmZodXGhChZB7AQzpkp
|
No actionable comments were generated in the recent review. Walkthrough
Change: Bug fix Merge Risk:
|
Description
The scheduled Nightly of 2026-12-01 failed in
Test against OpenMS develop / build-and-test (ubuntu-24.04, clang++)at "Provide the OpenMS Core", twice (04:38 and the re-run at 10:01), with the same error:Root cause: before building OpenMS from source,
lukka/run-vcpkgrunsbootstrap-vcpkg.sh, which downloads the vcpkg executable from a GitHub release (microsoft/vcpkg-tool). GitHub's release-asset CDN (release-assets.githubusercontent.com) now and then answers with the non-standard HTTP 618: I got it on 1 of 23 requests from outside GitHub Actions. vcpkg's bootstrap callscurl --retry 3, but curl retries only a fixed set of temporary statuses, and 618 isn't among them, so a single bad answer fails the job. The g++ job of the same run downloaded the same file from the same URL a few seconds earlier without trouble. Any source build of the core can hit this; clang++ was unlucky twice.Change
.github/actions/openms-core/action.ymlgets a step Bootstrap vcpkg right beforeSet up vcpkg, under the same condition (source mode, no cached core):bootstrap-vcpkg.sh(bootstrap-vcpkg.baton Windows) up to 3 times, 15 s apart, with a warning per failed attempt and an error after the last;vcpkgLastBuiltCommitId, thegit rev-parse HEADof the vcpkg checkout, without a trailing newline. run-vcpkg v11 rebuilds only if that file is missing or differs from HEAD (it compares untrimmed) or ifvcpkg versionfails. So it now finds the executable up to date and skips its own download. This is fromdist/index.jsof run-vcpkg v11:checkLastBuildCommitId,checkExecutable,build;VCPKG_FORCE_SYSTEM_BINARIES=1to the later steps. run-vcpkg sets that in its own bootstrap (build()), which no longer runs.lukka/run-vcpkgstays, for the rest of its setup (PATH,VCPKG_ROOT, the binary cache variables).Testing
actionlintpasses; the action parses.f9ffbaa), with a fakecurlfirst onPATH:vcpkg versionworks, andvcpkgLastBuiltCommitIdequalsgit rev-parse HEADexactly;ERROR: bootstrapping vcpkg failed 3 times, exit 1, no commit-id file;RUNNER_ARCH=ARM64:VCPKG_FORCE_SYSTEM_BINARIES=1is written toGITHUB_ENV.core_ref: develop, no installers), https://github.com/OpenMS/OpenMS-TOPP-GUI/actions/runs/46635310847, passed on all 5 configurations:vcpkg.exe,vcpkg-arm64-glibc,vcpkg-macos), and "Set up vcpkg" then reportedvcpkg executable is up to date with sourceswithout downloading again. On ARM64 and macOSVCPKG_FORCE_SYSTEM_BINARIES: 1is set for the later steps. No retry was needed.OpenMS's own workflows bootstrap vcpkg the same way and can hit the same error. This PR covers only this repository.
AI disclosure
https://claude.ai/code/session_0149aXmZodXGhChZB7AQzpkp
Generated by Claude Code