Skip to content

fix(esptool): fall back to the pinned pioarduino release and report the source error - #2063

Merged
zackees merged 1 commit into
mainfrom
fix/esptool-install-2061
Nov 17, 2026
Merged

zackees merged 1 commit into
mainfrom
fix/esptool-install-2061

Conversation

@zackees

@zackees zackees commented Nov 17, 2026

Copy link
Copy Markdown
Member

Fixes #2061.

Root cause

  • platform-espressif32@stable now pins esptool 5.6.0 (pioarduino/esptool v5.6.0/esptool.zip).
  • The CI runner image (ubuntu-26.04, 20261111.196) has no uv. ensure_source_installed therefore fails to spawn uv tool install. The real error from a local repro with uv off PATH and a fresh cache:
    pinned esptool source needs uv for isolated Python dependencies: failed to spawn ["uv", "tool", "install", ...]: No such file or directory
  • That had always happened in CI. It was hidden because the standalone fallback rescued the build by fetching from tasmota/esptool at the same tag. tasmota's latest release is v5.4.0, so for 5.6.0 the fallback 404s. Its error replaced the source error, and the warning only went to the daemon log.
  • The 5.6.0 archive is fine: same layout as 5.4.0, and it installs and runs (esptool v5.6.0) with uv tool install --python 3.10.

Fix

  • The standalone binary now comes from pioarduino/esptool, the same release that publishes the pinned source archive. Its standalone assets match tasmota's for every earlier tag I checked (4.8.5, 5.0.2, 5.1.0, 5.3.0, 5.4.0), and it also has v5.6.0. So the fallback always fetches the same version from the same release, never a different version.
  • No fallback is attempted when the version is not an esptool release tag (PlatformIO registry payloads such as 1.30300.0, or unknown). Windows was already excluded. In those cases the source error is returned instead.
  • When the fallback also fails, the error carries both failures, source first.

Tests

RED first, then GREEN (esptool_tests.rs):

  • standalone_fallback_uses_the_pinned_pioarduino_release
  • standalone_primary_url_uses_pioarduino_not_tasmota
  • registry_payload_has_no_standalone_fallback
  • windows_has_no_standalone_fallback
  • failed_fallback_reports_the_source_install_error_first

Validation

  • Reproduced the CI error locally with FBUILD_DEV_MODE=1, a fresh FBUILD_CACHE_DIR and no uv on PATH. After the fix, tests/platform/esp32dev builds both without uv (pioarduino standalone 5.6.0) and with uv (source install).
  • These all passed: soldr cargo fmt --all, soldr cargo clippy --workspace --all-targets -- -D warnings, bash test -p fbuild-library (354 passed), and dylint for fbuild-library.

…he source error

ESP32 builds failed in CI once platform-espressif32 moved to esptool 5.6.0.
The runner image (ubuntu-26.04) has no `uv`, so the pinned source install
fails to spawn `uv tool install`. That was always the case; the build was
rescued by the standalone fallback, which asked tasmota/esptool for the
same tag. tasmota lags pioarduino and has no v5.6.0, so the fallback 404'd,
and its error replaced the real one.

- Take the standalone binary from pioarduino/esptool, the release the
  pinned source archive comes from. Its standalone assets match tasmota's
  for every earlier tag checked (4.8.5, 5.0.2, 5.1.0, 5.3.0, 5.4.0), and it
  also publishes v5.6.0.
- Never try a fallback for a version that is not an esptool release tag
  (PlatformIO registry payloads such as 1.30300.0, or "unknown"). The
  source error is returned instead.
- When the fallback also fails, report both errors, source first.

Fixes #2061
@coderabbitai

coderabbitai Bot commented Nov 17, 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 17, 2026
Merged via the queue into main with commit c0e113b Nov 17, 2026
31 checks passed
@zackees
zackees deleted the fix/esptool-install-2061 branch November 17, 2026 19:14
zackees added a commit that referenced this pull request Nov 18, 2026
Brings #2051 (reroot relative spelling), #2057 (rp2040 large future),
#2058 (respell has_root / native tool spelling / renesas OnceCell), #2059
(bench framework + tracing feature) and #2063/#2067. Only conflict was
fbuild-toolchain esp32.rs test fixture, resolved to main's #2058 native-spelling
semantics (explicit native_name let-binding).
@fastled-project-sync fastled-project-sync Bot moved this to Triage in FastLED Tracker Nov 18, 2026
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.

ci: ESP32 builds fail: pinned esptool 5.6.0 source install falls back to a tasmota asset that does not exist (404)

1 participant