Skip to content

feat(espidf): move the delegated pin to v5.5.6 and select the P4 silicon family from the board - #2161

Merged
zackees merged 2 commits into
mainfrom
agent/esp-idf-v5-5-6-pin
Nov 23, 2026
Merged

zackees merged 2 commits into
mainfrom
agent/esp-idf-v5-5-6-pin

Conversation

@zackees

@zackees zackees commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

What

Moves the delegated ESP-IDF pin from v5.5.1 to v5.5.6, the newest patch
of the same release line, and selects the ESP32-P4 silicon family from the
board's own build.chip_variant. Delivers the RED half of #2133:
v5.5.1 caps ESP32P4_REV_MAX_FULL at 199, so rev-3 P4 boards were refused
before anything was downloaded; v5.5.2+ carries both families in one release.

One release, not two (#1878 was closed over a second pin).

The data diff

PINS (tool components), copied verbatim from the release's tools.json
status: recommended rows — every row re-checked against the committed
snapshot by the verification tests added in #2151:

component v5.5.1 v5.5.6
xtensa-esp-elf esp-14.2.0_20241119 esp-14.2.0_20260121
riscv32-esp-elf esp-14.2.0_20241119 esp-14.2.0_20260121
esp-rom-elfs 20241011 20260528
openocd-esp32 v0.12.0-esp32-20250707 v0.12.0-esp32-20260831
cmake, ninja, esp32ulp-elf unchanged unchanged

v5.5.6 also publishes a linux-arm64 ninja (ninja-linux-aarch64.zip), which
v5.5.1's tools.json did not have; that row is pinned here, so an arm64 Linux
host can now pin every component.

  • Source tree: commit fcae3288 → 880a203a (v5.5.6), new archive sha256 +
    size; 18 of 23 gitlinks moved, each archive re-downloaded and hashed.
  • Python environment: v5.5.6's requirements.core.txt dropped the
    tree_sitter pair, the served espidf.constraints.v5.5.txt moved, and the
    hash-locked file was re-resolved (uv pip compile --universal --generate-hashes --python-version 3.12).
  • Installed sizes re-measured with du -sb on linux-amd64 (2026-11-22). The
    method was validated first: re-measuring v5.5.1's Xtensa archive reproduced
    the committed 1_103_937_348 byte-for-byte.

The family selection

espidf_delegate writes one fbuild-owned SDKCONFIG_DEFAULTS entry into its
build root and puts it ahead of the project's own defaults:

board chip_variant Kconfig written resulting ESP32P4_REV_MIN_FULL
esp32p4 (rev-3) CONFIG_ESP32P4_REV_MIN_300=y 300
esp32p4_es (pre-rev-3) CONFIG_ESP32P4_SELECTS_REV_LESS_V3=y + CONFIG_ESP32P4_REV_MIN_0=y 0
  • SDKCONFIG_DEFAULTS replaces IDF's own list, so the project's
    sdkconfig.defaults (and sdkconfig.defaults.<target>, when present) are
    appended explicitly — and only files that exist, because IDF aborts a
    configure that names a missing one.
  • A project sdkconfig that already selected the other family is a
    configuration error naming both the file and the symbol: a sdkconfig
    outranks every default, so building with it would be a silent wrong-silicon
    image.
  • A P4 board naming neither family is refused by name instead of guessed.

The old unconditional rev-3 refusal and its docs are gone: nothing is refused
for the pin's sake any more, and the error message that claimed v5.5.1's cap
would otherwise have become false.

Verification

  • soldr cargo test -p fbuild-toolchain --lib — 214 passed, 0 failed,
    6 ignored
    . The pin verifier suite
    (pins_are_verbatim_rows_of_the_release_tools_json,
    pins_cover_exactly_the_archives_upstream_publishes,
    the_tools_json_snapshot_belongs_to_the_pinned_release) is what made this a
    data diff: it caught the newly published linux-arm64 ninja and the lock's
    package-count move before the PR existed.
  • soldr cargo test -p fbuild-build-esp --lib — 269 passed, 0 failed,
    7 ignored
    , including the new
    the_p4_silicon_family_comes_from_the_board_variant,
    an_unknown_p4_variant_is_refused,
    the_silicon_defaults_file_carries_the_family_symbol,
    the_sdkconfig_defaults_list_puts_the_family_first,
    the_child_gets_the_silicon_family_defaults (a REAL spawn: the child's
    environment carries the family entry first),
    a_sdkconfig_pinning_the_other_family_is_refused.
  • soldr cargo fmt --all clean; ci/enforce_platform_boundary.py --print-totals → rows=0; dylint_rows=0.

Not in this PR

  • The five-chip delegated end-to-end runs (espidf_*_component_project_*,
    all #[ignore]: each needs a ~1.8-2.8 GB install and a real idf.py build).
    They stay the gate before claiming the AC's GREEN; ran here only when the
    host has the bandwidth. espidf_riscv_component_project_is_refused_for_p4_rev3_silicon
    is replaced by espidf_riscv_component_project_builds_for_both_p4_silicon_families,
    which asserts CONFIG_ESP32P4_REV_MIN_FULL=300 and =0 for the two boards.
  • P4 hardware validation (out of scope in feat(espidf): move the delegated ESP-IDF pin to v5.5.2+ so ESP32-P4 rev-3 silicon builds #2133).
  • The footprint ceiling moved from 1.35 GB to 1.36 GB for toolchains + build
    tools: v5.5.6's toolchains measure 54 MB more than v5.5.1's (1.203 GB, still
    under AC2's 1.3 GB cap on the toolchains themselves).

#2133 stays open: the five-chip e2e proof and the released-footprint table.

…con family

The delegated `idf.py` path pinned ESP-IDF v5.5.1, which caps
`ESP32P4_REV_MAX_FULL` at 199: every ESP32-P4 board whose `chip_variant` was
not `esp32p4_es` was refused before anything downloaded, so rev-3 silicon had
no bare-IDF path (#2133).

Move the single pin to v5.5.6 -- the newest patch of the same release line,
which carries both P4 families -- and select the family from the board:

- `PINS` (tool components) re-copied from the release's `tools.json`
  `status: recommended` rows: xtensa/riscv32 esp-elf `20241119` -> `20260121`,
  esp-rom-elfs `20241011` -> `20260528`, openocd `20250707` -> `20260831`;
  cmake 3.30.2, ninja 1.12.1 and esp32ulp-elf unchanged. v5.5.6 also
  publishes a linux-arm64 ninja, so that row is now pinned (v5.5.1 had none).
- Source tree: commit `fcae3288` -> `880a203a`, new archive sha256/size, and
  18 of 23 gitlinks re-hashed from their archives.
- Python environment: v5.5.6's `requirements.core.txt` dropped the
  `tree_sitter` pair, the served constraints moved, and the hash-locked file
  was re-resolved with `uv pip compile --universal --generate-hashes
  --python-version 3.12` (71 package lines; esptool 4.14.0).
- Installed sizes re-measured with `du -sb` on linux-amd64; the method was
  validated first by reproducing v5.5.1's committed xtensa constant
  byte-for-byte. The toolchain + build-tool ceiling moves 1.35 -> 1.36 GB
  (1.357 GB measured; the toolchain set itself is 1.203 GB, still under
  AC2's 1.3 GB cap).

`espidf_delegate` now writes one fbuild-owned `SDKCONFIG_DEFAULTS` entry into
its build root, ahead of the project's own `sdkconfig.defaults` (and
`sdkconfig.defaults.<target>`), and only lists files that exist because IDF
aborts a configure naming a missing one:

- `chip_variant = esp32p4` (rev-3): `CONFIG_ESP32P4_REV_MIN_300=y`
  -> `ESP32P4_REV_MIN_FULL=300`.
- `chip_variant = esp32p4_es` (pre-rev-3): `CONFIG_ESP32P4_SELECTS_REV_LESS_V3=y`
  plus `CONFIG_ESP32P4_REV_MIN_0=y`.
- A project `sdkconfig` that selected the other family is a configuration
  error naming the file and the symbol (a `sdkconfig` outranks defaults), and a
  P4 board naming neither family is refused by name instead of guessed.

The old unconditional rev-3 refusal and the docs that justified it with
v5.5.1's cap are replaced, so no message claims a limit the pin no longer has.

Verified: soldr cargo test -p fbuild-toolchain --lib => 214 passed, 0 failed,
6 ignored; soldr cargo test -p fbuild-build-esp --lib => 269 passed, 0 failed,
7 ignored; rustfmt clean; boundary scanner rows=0, dylint_rows=0.

The five-chip delegated e2e proofs stay `#[ignore]` (each installs 1.8-2.8 GB
and runs a real `idf.py` build); the rev-3 refusal e2e became
`espidf_riscv_component_project_builds_for_both_p4_silicon_families`, which
asserts `CONFIG_ESP32P4_REV_MIN_FULL=300` and `=0` for the two boards.
#2133 stays open (five-chip e2e, released footprint table).
@coderabbitai

coderabbitai Bot commented Nov 23, 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

Note

.coderabbit.yaml has unrecognized properties

CodeRabbit is using all valid settings from your configuration. Unrecognized properties (listed below) have been ignored and may indicate typos or deprecated fields that can be removed.

Parsing warnings: 1

Validation error: Unrecognized key: "enabled" at "reviews.pre_merge_checks"
Configuration instructions

  • Please see the configuration documentation for more information.
  • You can also validate your configuration using the online YAML validator.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
  • 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

The pin move to v5.5.6 replaced the literal GCC version in the real-install
test with a pin lookup, which pushed
esp_idf_s3_profile_installs_every_component_for_real() to 105 lines and
tripped clippy::too_many_lines (-D warnings) in Dylint Full.

Extract the lookup into a tests-module helper (pinned_version) and fold the
intermediate `text` binding into the assertion, so the test body is back
under the cap. No behaviour change: the assertion still compares the real
compiler output to the pinned version.
@zackees
zackees added this pull request to the merge queue Nov 23, 2026
Merged via the queue into main with commit eddec99 Nov 23, 2026
41 checks passed
@fastled-project-sync fastled-project-sync Bot moved this to Triage in FastLED Tracker Nov 24, 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.

1 participant