Repository navigation
feat(toolchain): list the esp32s3 slice for macos-arm64; prove it on macos-15 - #1966
Merged
Merged
Conversation
…macos-15 The unified Xtensa toolchain's macos-arm64 package is 170,666,656 B, and the esp32s3 slice of it is 96,028,501 B (44% smaller), so a macOS arm64 ESP32-S3 build stops downloading the whole toolchain. The slice was produced by re-slicing the metadata-pinned vendor bundle (sha256 a450db49... verified against tools.json) with the same slicer that served linux-amd64/linux-arm64; selection is by path component, so a macOS package slices identically. Objects are uploaded and HEAD-verified before the shard names them: multi-line-key-placeholder whole/xtensa-esp-elf-14.2.0_20260121-aarch64-apple-darwin.tar.xz (170,666,656 B) esp32s3/xtensa-esp-elf-14.2.0_20260121-esp32s3.ce4ed5356356617a.tar.zst (96,028,501 B) Listing is only safe after a REAL build on that host (a listed slice is authoritative in packages-fetch/variants.rs), so this PR adds the sibling harness `esp32s3-macos-arm64-slice-proof.yml`: it builds the ref's CLI+daemon (no released wheel contains the registry-path slice fix, #1963), builds the esp32s3 fixture twice from empty caches with and without FBUILD_MIRROR_MANIFEST_URL, and requires identical flash/ram, a `+esp32s3` install directory, and no whole .tar.xz in the slice build's cache. Refs #1956.
…rness `workflow_dispatch` only resolves a workflow that exists on the default branch, and the per-host harness is new, so the macOS proof rides on the already-dispatchable `esp32s3-arm64-slice-proof.yml`: the job becomes a two-leg matrix (ubuntu-24.04-arm -> linux-arm64, macos-15 -> macos-arm64) with the host/arch assertions and cache key parametrised. Nothing about the linux leg changes; it is re-run and must stay identical.
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
This was referenced Nov 9, 2026
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.
What
Lists
toolchain-xtensa-esp-elf/14.2.0_20260121/macos-arm64with an esp32s3 slice insite/mirror/shards/esp-toolchain.json, and extends the arm64 proof harness to cover it.xtensa-esp-elf-14.2.0_20260121-aarch64-apple-darwin.tar.xzesp32s3sliceChips stay additive:
esp32/esp32s2and every other host keep the whole-archive fallback, so this is a strict improvement for macOS-arm64 ESP32-S3 builds and a no-op everywhere else.How the bytes were produced
tools.jsonpin before touching it:sha256 = a450db49cea5f191a96345c5b7f0e1a9671a9cf132fecfd9fb1faf6c2a30637e,size = 170,666,656(both match).ci/slice_toolchain.py; selection is by path component (lib/esp32s3, …), so a macOS package slices exactly like the Linux ones. Result: 3,549 entries,bin/xtensa-esp-elf-gccpresent, only theesp32s3chip directory kept.ci/publish_toolchain_slices.py(pins from the metadata, HEAD size check after upload,public-read). Both objects are live and range-readable:whole/xtensa-esp-elf-14.2.0_20260121-aarch64-apple-darwin.tar.xzesp32s3/xtensa-esp-elf-14.2.0_20260121-esp32s3.ce4ed5356356617a.tar.zstpublish_toolchain_slices.py --checkre-hashes the shard and confirms the Index descriptor describes exactly those bytes.Why this needs a real host build first
A listed slice is authoritative (
crates/fbuild-packages-fetch/src/variants.rs): if it is missing one file the install fails instead of falling back.--verifyproves bytes, not correctness for a foreign host, so the listing is gated on an actual macOS-arm64 ESP32-S3 build.workflow_dispatchonly resolves a workflow that exists on the default branch, so the proof rides on the already-dispatchableesp32s3-arm64-slice-proof.yml, now a two-leg matrix:ubuntu-24.04-arm→linux-arm64(re-run of the feat(toolchain): list the proven linux-arm64 esp32s3 slice; prove it from the ref #1965 proof; must stay identical)macos-15→macos-arm64(new)Each leg builds the ref's CLI + daemon (no released wheel contains #1963, so a wheel-based harness would "pass" without resolving any slice), then builds
tests/platform/esp32s3twice from empty caches — once withFBUILD_MIRROR_MANIFEST_URLpointing at this ref's manifest, once against the vendor whole archive — and requires:flash/ram,…+esp32s3install directory in the slice build's cache,.tar.xzdownloaded by the slice build.Run: https://github.com/FastLED/fbuild/actions/runs/42536361264
Refs #1956 (
win32remains;linux-armel/armhf/i686are probably not worth the bytes).