Repository navigation
fix(bench): actually clear the ESP32 framework before the cold trial - #1910
Merged
Merged
Conversation
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.
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
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.
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_entriesmatchedname.starts_with(prefix), but fbuild also stores this package asespressif-framework-arduinoespressif32anddl-framework-arduinoespressif32-<ver>-<sha>— none start with the stem, so the installed framework survived andensure_libsshort-circuited on a complete tree.Fix:
platforms/.fbuildstate as a last resortTest 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.