Skip to content

feat(toolchain): list the esp32s3 slice for macos-arm64; prove it on macos-15 - #1966

Merged
zackees merged 2 commits into
mainfrom
agent/macos-slice-proof
Nov 9, 2026
Merged

zackees merged 2 commits into
mainfrom
agent/macos-slice-proof

Conversation

@zackees

@zackees zackees commented Nov 8, 2026

Copy link
Copy Markdown
Member

What

Lists toolchain-xtensa-esp-elf/14.2.0_20260121/macos-arm64 with an esp32s3 slice in site/mirror/shards/esp-toolchain.json, and extends the arm64 proof harness to cover it.

package bytes
whole xtensa-esp-elf-14.2.0_20260121-aarch64-apple-darwin.tar.xz 170,666,656
esp32s3 slice 96,028,501 (44% smaller)

Chips stay additive: esp32/esp32s2 and 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

  • Downloaded the vendor bundle and checked it against the tools.json pin before touching it: sha256 = a450db49cea5f191a96345c5b7f0e1a9671a9cf132fecfd9fb1faf6c2a30637e, size = 170,666,656 (both match).
  • Sliced with the existing 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-gcc present, only the esp32s3 chip directory kept.
  • Published with 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.xz
    • esp32s3/xtensa-esp-elf-14.2.0_20260121-esp32s3.ce4ed5356356617a.tar.zst
  • publish_toolchain_slices.py --check re-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. --verify proves bytes, not correctness for a foreign host, so the listing is gated on an actual macOS-arm64 ESP32-S3 build.

workflow_dispatch only resolves a workflow that exists on the default branch, so the proof rides on the already-dispatchable esp32s3-arm64-slice-proof.yml, now a two-leg matrix:

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/esp32s3 twice from empty caches — once with FBUILD_MIRROR_MANIFEST_URL pointing at this ref's manifest, once against the vendor whole archive — and requires:

  • identical flash/ram,
  • a …+esp32s3 install directory in the slice build's cache,
  • no whole .tar.xz downloaded by the slice build.

Run: https://github.com/FastLED/fbuild/actions/runs/42536361264

Refs #1956 (win32 remains; linux-armel/armhf/i686 are probably not worth the bytes).

…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.
@coderabbitai

coderabbitai Bot commented Nov 8, 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

@zackees
zackees added this pull request to the merge queue Nov 9, 2026
Merged via the queue into main with commit 246b042 Nov 9, 2026
31 checks passed
@fastled-project-sync fastled-project-sync Bot moved this to Triage in FastLED Tracker Nov 9, 2026
@zackees
zackees deleted the agent/macos-slice-proof branch November 24, 2026 21:36
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.

1 participant