Skip to content

bug(ci): FBUILD_MIRROR_MANIFEST_URL does not move slice resolution — a new host slice cannot be proven before it is listed #1961

Closed

Description

@zackees

FBUILD_MIRROR_MANIFEST_URL reaches the daemon (all FBUILD_* vars are forwarded in
daemon_client.rs::spawn_daemon_process) but a package install still downloads the
vendor whole archive instead of the per-chip slice the manifest lists.

Why it matters

Proving a slice for a NEW host requires listing it before it can be tested
(#1956: a listed slice is authoritative, so it may only be listed after a real
build on that host). The documented way out of that cycle is the manifest
override — point the client at the candidate manifest on a branch, build, then
merge. If the override does not move slice resolution, no new host can ever be
proven, and the entry has to be merged unproven or not at all.

Reproduction (linux-amd64, where the slice IS published and proven)

export FBUILD_CACHE_DIR=<empty dir>
export FBUILD_BUILD_DIR=<empty dir>
export FBUILD_MIRROR_MANIFEST_URL=https://raw.githubusercontent.com/FastLED/fbuild/<branch>/site/mirror/manifest.json
fbuild daemon stop; sleep 2
fbuild build tests/platform/esp32s3 -e esp32s3

Result on fbuild 2.5.50+git.9c0dd1bcaa38 (2026-11-08):

esp32-xtensa-gcc xtensa-esp-elf-14.2.0_20260121-x86_64-linux-gnu: downloading
  xtensa-esp-elf-14.2.0_20260121-x86_64-linux-gnu.tar.xz: 152/168 MB (90%)
build succeeded in 194.4s (flash: 356075 bytes, ram: 74919 bytes)
  • the whole archive was fetched, although @esp-toolchain lists an esp32s3
    slice for that exact URL (106,462,349 B);
  • no chip-scoped install directory (…+esp32s3) was created — only
    include-farms/<hash>/esp32s3;
  • same shape on ubuntu-24.04-arm with the linux-arm64 entry published for the
    first time (arm64-slice-proof runs 42496939107 / 42497713426, both builds
    flash 356075 / ram 74919, no +esp32s3 dir).

Expected

With the override set to a manifest that lists a slice for the package URL, the
install resolves the slice (PackageBase::chip_install_path() ->
…-gnu+esp32s3) exactly as it does from the default manifest.

Not yet localised

Not determined whether the override is ignored only for slice selection, for the
whole manifest lookup, or whether the fetch of the override fails quietly and
falls back to the vendor. downloader_mirror_manifest.rs reads the env at call
time and spawn_daemon_process forwards every FBUILD_* var, so the gap is
somewhere downstream of both.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions