refactor(esp8266): apply boards.txt menu props as pure config -> config rules - #1610
Merged
Merged
Conversation
…ig rules `apply_esp8266_board_props(&props, &mut config)` rewrote defines and linker libs in place through four scattered blocks. Replace it with `for_board_props(config, &props) -> config`, composed from the named rules `with_sdk_define`, `with_define` (folded over `board_define_flags`), and `with_first_lib_replaced`, applied in one line where the MCU config loads. Behaviour is unchanged; adds tests for the previously untested path. Co-Authored-By: Claude <noreply@anthropic.com>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 14 minutes. View limit detailsLimit details: You’ve used the included review currently available. Review configuration: ⚙️ Run configurationConfiguration used: Repository: FastLED/fbuild/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (3)
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. Comment |
Keeps orchestrator.rs under the 1000-line gate. Co-Authored-By: Claude <noreply@anthropic.com>
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.
Replaces the in-place
apply_esp8266_board_props(&props, &mut config), which rewrote defines and linker libs through four scatteredretain/push/overwrite blocks, with a side-effect-freefor_board_props(config, &props) -> config. It is composed from these named rules:with_sdk_define: replace the recipe'sNONOSDK*key/value define with the board'ssdkboard_define_flags+with_define: fold the-Dtokens fromflash_flags/lwip_flags/mmuflags/vtable_flags, last one winswith_first_lib_replaced: thelwip_libandstdcpp_libvariantsIt is applied in one line:
Behaviour is unchanged. This path had no tests before; this PR adds tests for the none/no-op case and for the full rewrite.
Same theme as the #1605 review: fixups should be pure state -> state functions applied once.
Local checks: fmt,
clippy -p fbuild-build-esp --all-targets -D warnings, andtest -p fbuild-build-esp(146 passed). e2e:fbuild build <fastled>/.build/fbuild/esp8266 -e esp8266 --cleanwith this branch's binary and daemon: build succeeded (flash 269911 B).