Skip to content

fix(bench): actually clear the ESP32 framework before the cold trial - #1910

Merged
zackees merged 1 commit into
mainfrom
fix/bench-trickle
Nov 5, 2026
Merged

zackees merged 1 commit into
mainfrom
fix/bench-trickle

Conversation

@zackees

@zackees zackees commented Nov 5, 2026

Copy link
Copy Markdown
Member

The 10 Mbit run (#1909) produced invalid esp32s3 numbers: fbuild cold trials were 3.8 / 3.5 / 3.4 s with fw-libs: 9.6 ms, while PlatformIO paid 222 s for the same 271.8 MB at 1.19 MB/s. fbuild never downloaded — it looked ~63x faster by skipping the work.

Cause: remove_cache_entries matched name.starts_with(prefix), but fbuild also stores this package as espressif-framework-arduinoespressif32 and dl-framework-arduinoespressif32-<ver>-<sha> — none start with the stem, so the installed framework survived and ensure_libs short-circuited on a complete tree.

Fix:

  • match on substring, not prefix
  • also sweep the cache root itself (sibling roots), not just platforms/
  • drop the project's .fbuild state as a last resort

Test now asserts every variant is removed and that toolchains survive. soldr cargo test -p fbuild-bench-fastled-examples → 38 passed.

Expected after this: fbuild cold esp32s3 ≈ 40.8 MB slice + compile (~35-40 s) vs PlatformIO ≈ 222 s.

The 10 Mbit run exposed that fbuild's cold arm never downloaded anything:
cold trials were 3.8/3.5/3.4 s with fw-libs 9.6 ms, while PlatformIO paid
222 s for the same 271.8 MB. The published esp32s3 comparison was therefore
invalid — fbuild looked ~63x faster because it skipped the download entirely.

Cause: remove_cache_entries matched starts_with, but fbuild also stores the
package as espressif-framework-arduinoespressif32 and
dl-framework-arduinoespressif32-<ver>-<sha>, none of which start with the
stem. Match on substring instead, also sweep the cache root itself, and drop
the project's .fbuild state, so a surviving install cannot short-circuit.

Tests updated: the cleanup test now asserts every variant is removed.
@coderabbitai

coderabbitai Bot commented Nov 5, 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 merged commit 8658292 into main Nov 5, 2026
19 of 22 checks passed
@zackees
zackees deleted the fix/bench-trickle branch November 5, 2026 22:52
@fastled-project-sync fastled-project-sync Bot moved this to Triage in FastLED Tracker Nov 6, 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