Repository navigation
feat(toolchain): publish the win64 esp32s3 slice (#1956) - #1967
Merged
Merged
Conversation
`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.
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
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.
Windows users never got the slice, for a reason worth fixing in code rather than
in a shard:
fbuild'sdetect_platform()(
crates/fbuild-toolchain/src/toolchain/esp32_metadata.rs) resolveswin64on every Windows host — but
ci/publish_toolchain_slices.py'sHOST_KEYScarried
win32(the vendor's key) and notwin64, so the ONE host key Windowsclients resolve could not be published at all:
A
win32slice, which #1956's title literally asks for, would be downloaded bynobody — fbuild has no 32-bit Windows target.
Change
ci/publish_toolchain_slices.py:win64added toHOST_KEYS.ci/test_publish_toolchain_slices.py:HostKeyParityTestsreadsdetect_platform()out of the Rust source and fails if a key it can returnis missing from
HOST_KEYS(assertEqual(keys - HOST_KEYS, set()), withwin64pinned explicitly). The tuple cannot silently fall behind the clientagain — this is the class of bug, not the instance.
site/mirror/shards/esp-toolchain.json: new componenttoolchain-xtensa-esp-elf/14.2.0_20260121/win6482cbe035…c560108— byte-identical to thetools.jsonpin (verifiedbefore upload, then HEAD/range verified:
206,content-range bytes 0-1023/413859845).esp32s3slice: 108,967,431 B vs 413,859,845 B (−73.7 %),eefdb938…84c462, 3,550 entries, 116bin/*.exe, only theesp32s3chip dir kept. Re-sliced from the pinned vendor zip with
ci/slice_toolchain.py;--checkre-hashes the shard and confirms theIndex descriptor (
5ac459de…, 5,073 B).esp32/esp32s2and every other host keep thewhole-archive fallback.
.github/workflows/esp32s3-arm64-slice-proof.yml: adds awindows-latest(win64) leg to the existing dispatchable matrix. Oneshell (
bash, Git Bash on Windows) for every leg; the daemon existencecheck is matrix-driven (
fbuild-daemon.exe); the "no whole archive" assertionnow keys on the vendor asset name instead of
.tar.xz, because the Windowsbundle is a
.zipwhile a platform zip in the cache is legitimate.Proof (required before listing — a listed slice is authoritative)
Run 42547282445 —
all three legs green (
win64leg is the new one):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 wholearchive. Green requires identical
flash/ram, a…+esp32s3chip-scopedinstall directory, and no whole toolchain archive in the slice build's
cache. Sizes alone are not accepted as proof.