Skip to content

feat(fetch): download from fbuild's mirror bucket by default (#1806) - #1807

Merged
zackees merged 1 commit into
mainfrom
fix/default-download-mirror-1806
Oct 31, 2026
Merged

zackees merged 1 commit into
mainfrom
fix/default-download-mirror-1806

Conversation

@zackees

@zackees zackees commented Oct 31, 2026

Copy link
Copy Markdown
Member

Closes #1806.

  • Unset FBUILD_DOWNLOAD_MIRRORS → built-in https://fbuild.sfo3.digitaloceanspaces.com/{path}, mirror-first, only for dl.registry.platformio.org and github.com URLs; other hosts untouched.
  • {path} for GitHub = github.com/<owner>/<repo>/… (collision-free keys).
  • Explicit FBUILD_DOWNLOAD_MIRRORS (empty opts out) keeps prior semantics; FBUILD_DOWNLOAD_MIRROR_FIRST=0 → vendor first.
  • Missing bucket objects return 403, which is non-retryable, so falls through to the vendor immediately.

Tests: soldr cargo test -p fbuild-packages-fetch (211 pass), clippy clean.

Follow-up: upload GitHub archives to the bucket under github.com/… keys (needs Spaces credentials).

🤖 Generated with Claude Code

Unset FBUILD_DOWNLOAD_MIRRORS now means the built-in
https://fbuild.sfo3.digitaloceanspaces.com/{path} mirror, tried first for
PlatformIO registry and GitHub downloads with the vendor as fallback.
{path} for GitHub URLs is github.com/<owner>/<repo>/... so archive names
never collide. An explicit (even empty) FBUILD_DOWNLOAD_MIRRORS keeps the
old operator semantics; FBUILD_DOWNLOAD_MIRROR_FIRST=0 restores vendor-first.

Closes #1806
@coderabbitai

coderabbitai Bot commented Oct 31, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • 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

Comment @coderabbitai help to get the list of available commands.

@zackees
zackees added this pull request to the merge queue Oct 31, 2026
Merged via the queue into main with commit 47d81e0 Oct 31, 2026
29 checks passed
@fastled-project-sync fastled-project-sync Bot moved this to Triage in FastLED Tracker Oct 31, 2026
@zackees
zackees deleted the fix/default-download-mirror-1806 branch November 5, 2026 05:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Triage

Development

Successfully merging this pull request may close these issues.

Builds should download from the fbuild-controlled mirror bucket by default

1 participant