Repository navigation
fix(mirror): route developer.arm.com downloads through the fbuild bucket (#2029) - #2032
Merged
Merged
Conversation
developer.arm.com answered HTTP 503 for the 15.2.rel1 ARM toolchain for more than an hour on 2026-11-16, failing all six nRF52840 CI board jobs on every PR that touches them. The bucket mirrors only the PlatformIO registry layout, so the ARM host had no mirror at all. mirror_path now also maps an allow-listed vendor host to vendor/<host>/<path> (MIRRORED_VENDOR_HOSTS = developer.arm.com), tried bucket-first with the vendor as fallback. registry_owner keeps reading only the registry layout, so no manifest shard is looked up for a host, and ci/gen_mirror_manifest.py ignores the keys (they are not the <owner>/<type>/<name>/<version>/<file> layout). The pinned SHA-256 in arm.rs still verifies whichever copy is used. Refs #2029
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
This was referenced Nov 17, 2026
Merged
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Root cause
developer.arm.comserved HTTP 503 forarm-gnu-toolchain-15.2.rel1-x86_64-arm-none-eabi.tar.xzfor more than an hour on 2026-11-16. Every nRF52840 CI board job needs it, so all six of them failed on #2028 and #2030 (and theCI selected coverage/CI summaryjobs with them). Neither PR had a code problem: re-read of one job log shows the single linefbuild's bucket could not help, because it mirrors only the PlatformIO registry layout:
downloader_mirrors.rs::mirror_pathreturnsNonefor every other host, so the ARM tarball had no mirror at all andREADME.mdsaid so explicitly ("Downloads from other hosts skip the built-in mirror").Fix
One generic seam rather than a per-file special case: a host joins the mirrored set by naming it in
MIRRORED_VENDOR_HOSTS(developer.arm.comalone today), and its objects live undervendor/<host>/<path>— the vendor's own path, untouched, so publishing a tarball needs no second rule and no URL rewriting.mirror_path= registry path (unchanged) orvendor/<host>/<path>.registry_ownerstill reads only the registry layout, so a host can never be mistaken for a package owner and no manifest shard is looked up for it.ci/gen_mirror_manifest.pyneeds no change:is_registry_keyrequires<owner>/<type>/<name>/<version>/<file>, which avendor/...key is not, so the index and its@names-shards never see these objects.arm.rspins a SHA-256 per host andPackageBasecallsdownloader::verify_checksumon the archive after whichever candidate served it, so bucket bytes that differ from the pin are rejected (downloader_tests.rs::test_verify_checksum_invalid).Bucket-first is the default for a mirrored host, exactly as for the registry;
FBUILD_DOWNLOAD_MIRROR_FIRST=0puts the vendor first andFBUILD_DOWNLOAD_MIRRORS=opts out.Tests
New in
downloader_mirror_tests.rs:candidate_urls_map_a_vendor_host_under_the_vendor_root— the ARM URL's{path}isvendor/developer.arm.com/-/media/Files/downloads/gnu/15.2.rel1/binrel/arm-gnu-toolchain-15.2.rel1-x86_64-arm-none-eabi.tar.xz.unset_env_prefers_the_built_in_bucket_for_a_mirrored_vendor_host— bucket first, vendor last;MIRROR_FIRST=0flips to[0, 1]; an emptyFBUILD_DOWNLOAD_MIRRORSopts out.registry_owner_is_none_for_a_mirrored_vendor_host—Nonefor the ARM and GitHub hosts,Some("platformio")for a registry URL.RED (vendor branch neutralized, everything else intact):
21 passed; 2 failed, withGREEN:
274 passed; 0 failed; 2 ignored(soldr cargo test -p fbuild-packages-fetch --lib).soldr cargo fmt --all -- --checkclean;soldr cargo clippy -p fbuild-packages-fetch -p fbuild-toolchain --all-targets -- --no-deps -A unfulfilled_lint_expectationsclean (exit 0);uv run ci/enforce_platform_boundary.py --print-totals→rows=44; dylint_rows=43.Not done here (needs the bucket credentials)
The routing is the in-repo half. The bucket still has no ARM object — all four candidate keys answer
403today — so this PR alone does not survive the next ARM outage. Publishing needs~/.config/do-spaces/credentials.json, i.e. the owner:# key is exactly what mirror_path derives: vendor/<host>/<path> aws --endpoint-url https://sfo3.digitaloceanspaces.com s3 cp \ arm-gnu-toolchain-15.2.rel1-x86_64-arm-none-eabi.tar.xz \ s3://fbuild/vendor/developer.arm.com/-/media/Files/downloads/gnu/15.2.rel1/binrel/arm-gnu-toolchain-15.2.rel1-x86_64-arm-none-eabi.tar.xz \ --acl public-readwith the matching
arm-gnu-toolchain-15.2.rel1-{aarch64,x86_64}-{linux-gnu,darwin,macos}-*.tar.xz/mingw-w64-*.zipfor the other hostsarm.rssupports (the pinned SHA-256 inarm.rsis the check that the uploaded bytes are the right ones).#2029 stays open (remaining cells: publishing the tarballs to the bucket for every host
arm.rssupports, and the follow-up audit of other vendor hosts the mirror skips). It is not a closing keyword, on purpose: the outage path is only fixed once the bucket holds the bytes.