Repository navigation
fix(esptool): fall back to the pinned pioarduino release and report the source error - #2063
Merged
Merged
Conversation
…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
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
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).
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.
Fixes #2061.
Root cause
platform-espressif32@stablenow pins esptool 5.6.0 (pioarduino/esptoolv5.6.0/esptool.zip).ubuntu-26.04, 20261111.196) has nouv.ensure_source_installedtherefore fails to spawnuv tool install. The real error from a local repro withuvoff PATH and a fresh cache:pinned esptool source needs uv for isolated Python dependencies: failed to spawn ["uv", "tool", "install", ...]: No such file or directorytasmota/esptoolat 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.esptool v5.6.0) withuv tool install --python 3.10.Fix
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.1.30300.0, orunknown). Windows was already excluded. In those cases the source error is returned instead.Tests
RED first, then GREEN (
esptool_tests.rs):standalone_fallback_uses_the_pinned_pioarduino_releasestandalone_primary_url_uses_pioarduino_not_tasmotaregistry_payload_has_no_standalone_fallbackwindows_has_no_standalone_fallbackfailed_fallback_reports_the_source_install_error_firstValidation
FBUILD_DEV_MODE=1, a freshFBUILD_CACHE_DIRand nouvon PATH. After the fix,tests/platform/esp32devbuilds both withoutuv(pioarduino standalone 5.6.0) and withuv(source install).soldr cargo fmt --all,soldr cargo clippy --workspace --all-targets -- -D warnings,bash test -p fbuild-library(354 passed), and dylint forfbuild-library.