Skip to content

ci: route opam downloads through opam.ocaml.org cache#116

Open
chris-armstrong wants to merge 1 commit into
mainfrom
ci/opam-archive-mirror
Open

ci: route opam downloads through opam.ocaml.org cache#116
chris-armstrong wants to merge 1 commit into
mainfrom
ci/opam-archive-mirror

Conversation

@chris-armstrong
Copy link
Copy Markdown
Owner

Summary

  • Both CI jobs (build-ocgtk and build-ocgtk-macos) now set archive-mirrors=https://opam.ocaml.org/cache right after ocaml/setup-ocaml@v3 initialises opam.
  • The CDN mirror serves every archive opam-repository indexes, so transient DNS/5xx failures from upstream hosts (most often erratique.ch) stop failing the build on the first attempt. opam still falls back to upstream on cache miss.

Test plan

  • Next CI run on a PR succeeds without hitting erratique.ch directly
  • On cache miss, upstream fallback still works (verified by opam's default behaviour — no config change needed)

Note: release-verification.yml has the same pattern across ~6 container jobs and can be updated in a follow-up if you want the release matrix to benefit too.

chris-armstrong

Both CI jobs (Linux + macOS build-ocgtk) now set archive-mirrors to
https://opam.ocaml.org/cache immediately after opam is initialised by
ocaml/setup-ocaml. The CDN mirror serves every archive that opam-repository
indexes, so transient 5xx / DNS failures from upstream hosts (most often
erratique.ch) no longer fail the build on the first attempt.

Chris Armstrong
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.

1 participant