Skip to content

[BUILD,FIX] Add verified fallback for ONNX Runtime source downloads - #10947

Merged
poshul merged 1 commit into
OpenMS:developfrom
poshul:codex/fix-onnx-source-download
Nov 19, 2026
Merged

poshul merged 1 commit into
OpenMS:developfrom
poshul:codex/fix-onnx-source-download

Conversation

@poshul

@poshul poshul commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

Written by an AI agent using GPT-6.

ONNX-enabled CI currently stops during dependency installation because https://github.com/microsoft/onnxruntime/archive/v1.23.2.tar.gz returns HTTP 404 (for example, https://github.com/OpenMS/OpenMS/actions/runs/44371617968/job/135039883062).

Add PhotoPrism's existing source archive as a temporary fallback, after the upstream URL. Its bytes match the SHA512 already pinned in the overlay. Keep ONNX Runtime 1.23.2, the existing download-cache filename, extraction source base, and all five patches. Increment the overlay port revision from 1 to 2.

Validation:

  • Ran the changed download/extraction block with real vcpkg helpers and an empty cache: upstream returned 404, the mirror downloaded successfully, the original SHA512 matched, and all five patches applied.
  • Verified upstream-first success, offline cache reuse, and rejection of a corrupt archive.
  • Built OpenMS and PeptDeepInference_test, PeptDeepLibraryPredictor_test, and PeptDeepRescoring_test out of tree in Debug with WITH_ONNX=ON, using headers from the mirrored archive and system ONNX Runtime 1.23.2.
  • All three PeptDeep class tests passed; vcpkg manifest formatting and git diff --check passed.

Summary by CodeRabbit

  • Chores
    • Updated the ONNX Runtime package revision while keeping its version at 1.23.2.
    • The package can now be retrieved from either Microsoft’s GitHub archive or a PhotoPrism mirror, with the same integrity check applied to both sources. This provides an alternate download source when the primary archive is unavailable.

Written by an AI agent using GPT-6.

Keep upstream first and use PhotoPrism's byte-identical archive when the
Microsoft repository is unavailable. Preserve the pinned version, SHA512,
download filename, source base, and patches; increment the port revision.
@coderabbitai

coderabbitai Bot commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The ONNX Runtime port now downloads its archive from Microsoft’s URL or a PhotoPrism mirror, verifies it with the existing SHA512, and extracts it. The port version increases from 1 to 2.

Changes: ONNX Runtime port

Layer / File(s) Summary
Archive download and port version
vcpkg-overlays/ports/onnxruntime/portfile.cmake, vcpkg-overlays/ports/onnxruntime/vcpkg.json
The portfile tries Microsoft’s archive URL first and PhotoPrism’s mirror second. It verifies either archive with the existing SHA512 and extracts it using v${VERSION} as the source base. The manifest increments port-version from 1 to 2.

Possibly related issues

  • Issue 10946 reports a 404 for the Microsoft ONNX Runtime source download that breaks the vcpkg build in CI. This change adds the mirror fallback for the overlay port; it does not change the Dockerfile’s separate download.

Suggested reviewers: castornova2, jpfeuffer

Change: Bug fix

Merge Risk: Minimal · up to 032d7

This change adds a fallback download location for the ONNX Runtime source archive while keeping the same checksum, version and patches. No concrete merge-blocking risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the main change: a fallback source for ONNX Runtime downloads, with SHA512 verification. The PR adds PhotoPrism's mirror as a second download URL after Microsoft's GitHub URL, with the…
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.
Full details: Title check

Explanation

The title names the main change: a fallback source for ONNX Runtime downloads, with SHA512 verification. The PR adds PhotoPrism's mirror as a second download URL after Microsoft's GitHub URL, with the same pinned SHA512. The [BUILD,FIX] prefix fits the port-fix nature of the change. The title is specific and matches the summary and objectives.

Finishing Touches

Generate unit tests (beta)

  • 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 archive hash,
Then hops to fetch a mirrored stash.
Two paths lead to the source today,
The port extracts it on its way.
Its version ticks up by one, hooray!

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: c61d8931-a237-44d3-88dc-e9aa505b77cc
Commits

Reviewing files that changed from the base of the PR and between ab9612c and 032d7d7.

Files selected for processing: 2

  • vcpkg-overlays/ports/onnxruntime/portfile.cmake
  • vcpkg-overlays/ports/onnxruntime/vcpkg.json

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

@poshul
poshul merged commit ff06839 into OpenMS:develop Nov 19, 2026
11 of 13 checks passed
timosachsenberg pushed a commit that referenced this pull request Nov 20, 2026
…e download

github.com/microsoft/onnxruntime answers 404 since 2026-11-18 (#10946), so the
"Deploy container images" nightly fails in the base stage when it downloads
onnxruntime-linux-<arch>-1.30.0.tgz (runs 44214412845, 44435430923,
44652120614). #10947 added a fallback for the vcpkg overlay port's source
archive; the Dockerfile's prebuilt download was not covered.

Try Microsoft's release first and then PhotoPrism's mirror of the same
release archives (the mirror #10947 uses). Each download must match the
pinned SHA256; version and hashes are unchanged. The mirror's x64 and aarch64
tarballs match the pinned sums byte for byte.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Atu9S5a3hWzrBBhKLsQFFX
poshul pushed a commit that referenced this pull request Nov 20, 2026
…e download (#10951)

github.com/microsoft/onnxruntime answers 404 since 2026-11-18 (#10946), so the
"Deploy container images" nightly fails in the base stage when it downloads
onnxruntime-linux-<arch>-1.30.0.tgz (runs 44214412845, 44435430923,
44652120614). #10947 added a fallback for the vcpkg overlay port's source
archive; the Dockerfile's prebuilt download was not covered.

Try Microsoft's release first and then PhotoPrism's mirror of the same
release archives (the mirror #10947 uses). Each download must match the
pinned SHA256; version and hashes are unchanged. The mirror's x64 and aarch64
tarballs match the pinned sums byte for byte.


Claude-Session: https://claude.ai/code/session_01Atu9S5a3hWzrBBhKLsQFFX

Co-authored-by: Claude <[email protected]>
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