Skip to content

fix(platforms): activate compile-time invariants - #3889

Merged
zackees merged 1 commit into
masterfrom
fix/3816-remove-dead-compiletest
Aug 18, 2026
Merged

zackees merged 1 commit into
masterfrom
fix/3816-remove-dead-compiletest

Conversation

@zackees

@zackees zackees commented Aug 18, 2026 •

Copy link
Copy Markdown
Member

Summary

  • remove the unreachable examples/CompileTest headers
  • preserve valid AVR, ARM, and WASM assertions in active platform compile tests
  • route Apollo3 before generic ARM so its strict checks execute
  • rely on the library compile-test translation unit compiled by every platform build

Verification

  • bash compile wasm --examples Blink
  • bash compile uno --examples Blink
  • bash lint
  • git diff --check

Closes #3816

Summary by CodeRabbit

  • Bug Fixes

    • Improved platform compatibility checks for ARM, AVR, Apollo3, and WebAssembly builds.
    • Added validation for required CPU frequency, platform configuration, and core definitions.
    • Corrected Apollo3 platform detection to ensure the appropriate checks run.
  • Chores

    • Consolidated platform compile-time validation and removed obsolete example checks.

@zackees
zackees merged commit e9fff0e into master Aug 18, 2026
10 of 17 checks passed
@zackees
zackees deleted the fix/3816-remove-dead-compiletest branch August 18, 2026 20:57
@coderabbitai

coderabbitai Bot commented Aug 18, 2026 •

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: e1a0a318-f7fe-4c9b-9fc1-e2d71583796b

📥 Commits

Reviewing files that changed from the base of the PR and between cd41639 and d203cdd.

📒 Files selected for processing (8)
  • examples/CompileTest/apollo3_test.h
  • examples/CompileTest/arm_test.h
  • examples/CompileTest/avr_test.h
  • examples/CompileTest/wasm_test.h
  • src/platforms/arm/compile_test.hpp
  • src/platforms/avr/compile_test.hpp
  • src/platforms/compile_test.cpp.hpp
  • src/platforms/stub/compile_test.hpp

📝 Walkthrough

Walkthrough

The change removes unused example compile-test headers and moves platform checks into active compile-test headers. ARM, AVR, and WASM receive new validations. Apollo3 detection now uses FL_IS_APOLLO3 in header selection and test dispatch.

Changes

Compile-test validation

Layer / File(s) Summary
Platform invariant checks
examples/CompileTest/*, src/platforms/arm/compile_test.hpp, src/platforms/avr/compile_test.hpp, src/platforms/stub/compile_test.hpp
Removes the unused Apollo3, ARM, AVR, and WASM example headers. Adds DEFAULT checks for ARM and AVR, plus F_CPU and FASTLED_STUB_IMPL checks for WASM.
Apollo3 platform dispatch
src/platforms/compile_test.cpp.hpp
Uses FL_IS_APOLLO3 for Apollo3 header selection and compile-test dispatch before the generic ARM branch.

Estimated code review effort: 2 (Simple) | ~10 minutes

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/3816-remove-dead-compiletest

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

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

examples/CompileTest/ asserts platform invariants that have never been checked

1 participant