Skip to content

[CI] Retry the vcpkg bootstrap of the core source build - #6

Merged
timosachsenberg merged 1 commit into
developfrom
claude/topp-gui-failure-6ioig1
Dec 1, 2026
Merged

timosachsenberg merged 1 commit into
developfrom
claude/topp-gui-failure-6ioig1

Conversation

@timosachsenberg

@timosachsenberg timosachsenberg commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

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:

Downloading vcpkg-glibc...
curl: (22) The requested URL returned error: 618
##[error]run-vcpkg action execution failed

Root cause: before building OpenMS from source, lukka/run-vcpkg runs bootstrap-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 calls curl --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.yml gets a step Bootstrap vcpkg right before Set up vcpkg, under the same condition (source mode, no cached core):

  • runs bootstrap-vcpkg.sh (bootstrap-vcpkg.bat on Windows) up to 3 times, 15 s apart, with a warning per failed attempt and an error after the last;
  • then writes vcpkgLastBuiltCommitId, the git rev-parse HEAD of 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 if vcpkg version fails. So it now finds the executable up to date and skips its own download. This is from dist/index.js of run-vcpkg v11: checkLastBuildCommitId, checkExecutable, build;
  • on ARM64 exports VCPKG_FORCE_SYSTEM_BINARIES=1 to the later steps. run-vcpkg sets that in its own bootstrap (build()), which no longer runs.

lukka/run-vcpkg stays, for the rest of its setup (PATH, VCPKG_ROOT, the binary cache variables).

Testing

  • actionlint passes; the action parses.
  • Run locally on Linux against the pinned vcpkg checkout (f9ffbaa), with a fake curl first on PATH:
    • first download answers 618, the next goes to the real curl: one warning, the second attempt succeeds, vcpkg version works, and vcpkgLastBuiltCommitId equals git rev-parse HEAD exactly;
    • every download answers 618: three attempts, then ERROR: bootstrapping vcpkg failed 3 times, exit 1, no commit-id file;
    • RUNNER_ARCH=ARM64: VCPKG_FORCE_SYSTEM_BINARIES=1 is written to GITHUB_ENV.
  • On CI: the PR CI of this repository takes the core from the SDK and doesn't run this step. A manual Nightly on this branch (core_ref: develop, no installers), https://github.com/OpenMS/OpenMS-TOPP-GUI/actions/runs/46635310847, passed on all 5 configurations:
    • Windows, Linux ARM64, macOS built the core from source. "Bootstrap vcpkg" downloaded the executable once (vcpkg.exe, vcpkg-arm64-glibc, vcpkg-macos), and "Set up vcpkg" then reported vcpkg executable is up to date with sources without downloading again. On ARM64 and macOS VCPKG_FORCE_SYSTEM_BINARIES: 1 is set for the later steps. No retry was needed.
    • Linux x64 (g++, clang++) restored a cached core of develop, so both vcpkg steps were skipped there. That path is the one tested locally above.

OpenMS's own workflows bootstrap vcpkg the same way and can hit the same error. This PR covers only this repository.

AI disclosure

  • This PR was prepared with AI assistance (Claude Code). The human contributor reviews and is accountable for it.

https://claude.ai/code/session_0149aXmZodXGhChZB7AQzpkp


Generated by Claude Code

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
@timosachsenberg
timosachsenberg marked this pull request as ready for review December 1, 2026 11:55
@coderabbitai

coderabbitai Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The source-build action now bootstraps vcpkg explicitly. It selects a platform-specific script, retries failures, sets an ARM64 environment variable when needed, and records the checked-out vcpkg commit after success.

Changes: vcpkg Bootstrap

Layer / File(s) Summary
Bootstrap and record vcpkg commit
.github/actions/openms-core/action.yml
For uncached source builds, the action selects the Windows batch script or the shell script. It retries up to three times with 15-second waits, sets VCPKG_FORCE_SYSTEM_BINARIES on ARM64, and records the checked-out commit after bootstrap succeeds.

Possibly related PRs

Change: Bug fix

Merge Risk: Minimal · up to 45d33

This change adds retries to the vcpkg bootstrap in the source-build CI action. It affects only CI runs that build from source without a cached core, and no concrete merge-blocking risk was found. The pending Nightly run will confirm behavior on the real runners.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "[CI] Retry the vcpkg bootstrap of the core source build" matches the main change. The PR adds a Bootstrap vcpkg step to the openms-core action that makes up to three attempts with a 15-seco…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Full details: Title check

Explanation

The title "[CI] Retry the vcpkg bootstrap of the core source build" matches the main change. The PR adds a Bootstrap vcpkg step to the openms-core action that makes up to three attempts with a 15-second wait between failures. The title is specific, concise, and names the component it changes.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

A rabbit checks the bootstrap trail
Then waits fifteen seconds, ears tall
Three tries pass through the shell or batch
ARM64 gets its system path
The commit rests in vcpkg’s log
And hops away beneath the fog

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 8d6cfa33-2e2b-4b1f-97da-f2a078d44d53
Commits

Reviewing files that changed from the base of the PR and between 6f8cd8f and 45d3359.

Files selected for processing: 1

  • .github/actions/openms-core/action.yml

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@timosachsenberg
timosachsenberg merged commit 5e58195 into develop Dec 1, 2026
12 checks passed
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