Skip to content

feat(toolchain): publish the win64 esp32s3 slice (#1956) - #1967

Merged
zackees merged 1 commit into
mainfrom
agent/win64-slice
Nov 9, 2026
Merged

zackees merged 1 commit into
mainfrom
agent/win64-slice

Conversation

@zackees

@zackees zackees commented Nov 9, 2026 •

Copy link
Copy Markdown
Member

Windows users never got the slice, for a reason worth fixing in code rather than
in a shard: fbuild's detect_platform()
(crates/fbuild-toolchain/src/toolchain/esp32_metadata.rs) resolves win64
on every Windows host — but ci/publish_toolchain_slices.py's HOST_KEYS
carried win32 (the vendor's key) and not win64, so the ONE host key Windows
clients resolve could not be published at all:

$ --host win64 -> win64: metadata lists 0 host packages (have: ... win32)

A win32 slice, which #1956's title literally asks for, would be downloaded by
nobody — fbuild has no 32-bit Windows target.

Change

  1. ci/publish_toolchain_slices.py: win64 added to HOST_KEYS.
  2. ci/test_publish_toolchain_slices.py: HostKeyParityTests reads
    detect_platform() out of the Rust source and fails if a key it can return
    is missing from HOST_KEYS (assertEqual(keys - HOST_KEYS, set()), with
    win64 pinned explicitly). The tuple cannot silently fall behind the client
    again — this is the class of bug, not the instance.
  3. Shard site/mirror/shards/esp-toolchain.json: new component
    toolchain-xtensa-esp-elf/14.2.0_20260121/win64
    • whole bundle mirrored bucket-first: 413,859,845 B, sha256
      82cbe035…c560108 — byte-identical to the tools.json pin (verified
      before upload, then HEAD/range verified: 206, content-range bytes 0-1023/413859845).
    • esp32s3 slice: 108,967,431 B vs 413,859,845 B (−73.7 %),
      eefdb938…84c462, 3,550 entries, 116 bin/*.exe, only the esp32s3
      chip dir kept. Re-sliced from the pinned vendor zip with
      ci/slice_toolchain.py; --check re-hashes the shard and confirms the
      Index descriptor (5ac459de…, 5,073 B).
    • Chips stay additive: esp32/esp32s2 and every other host keep the
      whole-archive fallback.
  4. Proof harness .github/workflows/esp32s3-arm64-slice-proof.yml: adds a
    windows-latest (win64) leg to the existing dispatchable matrix. One
    shell (bash, Git Bash on Windows) for every leg; the daemon existence
    check is matrix-driven (fbuild-daemon.exe); the "no whole archive" assertion
    now keys on the vendor asset name instead of .tar.xz, because the Windows
    bundle is a .zip while a platform zip in the cache is legitimate.

Proof (required before listing — a listed slice is authoritative)

Run 42547282445 —
all three legs green (win64 leg is the new one):

win64 (windows-latest)   slice flash 356075 / ram 74919   (build succeeded in 51.2s)
                         whole flash 356075 / ram 74919   (build succeeded in 175.1s)
macos-15 / ubuntu-24.04-arm (previous hosts, unchanged legs)  success

Same contract as linux-amd64 (#1949) / linux-arm64 (#1965) / macos-arm64
(#1966): two cold ESP32-S3 builds from empty caches, one resolving this ref's
slice via FBUILD_MIRROR_MANIFEST_URL, one control using the vendor whole
archive. Green requires identical flash/ram, a …+esp32s3 chip-scoped
install directory, and no whole toolchain archive in the slice build's
cache. Sizes alone are not accepted as proof.

`fbuild`'s `detect_platform()` returns `win64` on every Windows host, but the
publisher's HOST_KEYS did not carry it, so the one host key Windows clients
actually resolve could not be published at all (a `win32` slice would be
downloaded by nobody). Adds `win64` plus a parity test that reads
`detect_platform()` and fails when a host key the client can return is missing
from HOST_KEYS, so the tuple cannot fall behind the client again.

Ships the `win64` component for xtensa-esp-elf 14.2.0_20260121: whole bundle
mirrored (413,859,845 B, sha 82cbe035... == the metadata pin) plus the
`esp32s3` slice (108,967,431 B, -73.7%), and adds a windows-latest leg to the
per-host proof harness.
@coderabbitai

coderabbitai Bot commented Nov 9, 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 57ef016 Nov 9, 2026
32 checks passed
@fastled-project-sync fastled-project-sync Bot moved this to Triage in FastLED Tracker Nov 9, 2026
@zackees
zackees deleted the agent/win64-slice 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