Repository navigation
ci(lpc8xx): add Blink canary workflows for all 5 ArduinoCore-LPC8xx variants (closes #2990) - #3080
Conversation
…ariants Closes #2990. Stage 2a (LPC dispatcher in src/platforms/arm/is_arm.h) already shipped via the LPC8xx port work; the remaining checkbox was the CI canary, which this PR delivers. What this adds: * Five new per-board workflow files mirroring the existing build_<board>.yml pattern (compare build_attiny85.yml, build_apollo3_red.yml). Each calls build_template.yml with args = "<variant> Blink" so the canary path is well-bounded for flash-constrained LPC8xx targets: .github/workflows/build_lpc845.yml .github/workflows/build_lpc804.yml .github/workflows/build_lpc845brk.yml .github/workflows/build_lpcxpresso845max.yml .github/workflows/build_lpcxpresso804.yml * Four new [env:lpc*] sections in platformio.ini for the variants that did not already have one. The existing [env:lpc845brk] env is left untouched (it carries AutoResearch-specific build_flags; the Blink canary builds against those flags fine, so no second "canary" env is needed for lpc845brk). build_template.yml already runs against fbuild via FastLED/fbuild/.github/actions/setup@main and invokes ./compile which dispatches to the nxplpc orchestrator -- matching the upstream contract shown in #2990's body: pip install fbuild && fbuild build . -e <variant> Upstream proof of green builds on all 5 variants is documented in the issue body (zackees/ArduinoCore-LPC8xx workflow runs from 2026-06-09). This closes the FastLED side of fbuild's META #487 Stage 6 and unblocks one of the five remaining items on fbuild#586's burn-down. Verification: * platformio.ini parses cleanly via configparser; all 5 env:lpc* sections expose platform=nxplpc, board=<variant>, framework=arduino. * bash lint -- clean (the warn-only PlatformIO-internal-usage triggers from rephrasing one comment to avoid the literal "pio run" string, addressed inline). Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (6)
📝 WalkthroughWalkthroughFive GitHub Actions workflows are added for NXP LPC8xx board variants ( ChangesLPC8xx Canary CI and PlatformIO Environments
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~4 minutes Possibly related issues
Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
…build#550) (#3091) * ci(lpc8xx): extend Blink canary to also exercise DemoReel100 + FxEngine Closes FastLED/fbuild#550. PR #3080 wired the 5 ArduinoCore-LPC8xx variants into FastLED CI with args = "<variant> Blink". The remaining acceptance criterion on fbuild#550 is that DemoReel100 and FxEngine link clean on lpc845 + lpc804 (and by extension the other 3 board variants of those MCUs). This bumps the canary scope from one example to three: args: <variant> Blink DemoReel100 FxEngine One line per workflow. If a specific example overflows the LPC8xx 64 KB flash budget, the canary will surface a clean linker-overflow signal that the next bloat-hunt round can address (see FastLED #3079 -- LPC845 64 KB flash bloat-hunt meta -- for the broader effort). Why FastLED-side instead of fbuild-side fixtures: the existing fbuild tests/platform/<board>/<board>.ino fixtures are Arduino-HAL only (pinMode/digitalWrite/delay). Pulling FastLED in as a fbuild test dependency would have required new fixture infrastructure on the fbuild repo (libs/FastLED/ vendoring + pinning + per-example sub-fixtures). FastLED's own per-board CI already runs `./compile <variant> <example>` through the fbuild nxplpc orchestrator -- that's the validation surface fbuild#550 cares about, just on the FastLED side. Verification: * No code changes -- only the args string in each workflow's `uses: build_template.yml` call. * bash lint passes (no Python/C++/JS code touched). Refs FastLED/fbuild#586 (burn-down meta item 4-of-5). Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]> * fix(ci/lpc8xx): point FxEngine arg at nested examples/Fx/FxEngine path CodeRabbit review on #3091 caught that `FxEngine` lives at `examples/Fx/FxEngine/`, not `examples/FxEngine/`. The argument parser validates example paths and would have rejected `FxEngine` as-is. Updated all 5 LPC workflow files from `FxEngine` to `Fx/FxEngine` so the canary actually finds and compiles the example. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]> --------- Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
…#3265) `ci/util/fbuild_compiledb.py::_candidate_fbuild_release_dirs` listed three candidate locations for fbuild artifacts, but missed the layout the FastLED CI orchestrator actually produces: fbuild collapses the `<env>` segment when its env name matches the build_dir's board, and writes to `.build/pio/<board>/.fbuild/build/release/` (no env name in the path). Effect of the bug: `was_compiled_with_fbuild` returned False for every LPC8xx board (and any other board built via the FastLED orchestrator), so `ci/ci-cppcheck.py` fell through to `pio check` — which then failed for boards the platformio-side platform doesn't register, namely `lpc804`. The lpcxpresso804/845max/lpc845brk variants happened to be registered with the `zackees/platform-nxplpc-arduino` platform and so were green; `lpc804` was not, and `build_lpc804.yml` had been red since the LPC8xx canary CI was wired up in #3080. CI artifact path from a failing run: ``` Artifact: /home/runner/work/.../.build/pio/lpc804/.fbuild/build/release/firmware.elf ``` — note `.fbuild/build/release/`, not `.fbuild/build/lpc804/release/`. After this change, `was_compiled_with_fbuild` finds the build via the new candidate path, `ensure_compile_commands` locates the sibling `compile_commands.json`, and `run_static_analysis_against_compile_db` runs `clang-tool-chain-tidy` against the fbuild-emitted DB instead of shelling out to `pio check`. lpc804 (and any other fbuild-only board) should go green. Closes #3264 Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
Summary
build_<board>.ymlpattern.build_template.ymlwithargs: <variant> Blink, narrowing the canary surface toexamples/Blink/Blink.inoper lpc8xx: fbuild build is shipping for all 5 ArduinoCore-LPC8xx variants — add FastLED canary sketches to CI #2990's explicit ask (well-bounded for the 64 KB LPC8xx flash budget).[env:lpc*]entries toplatformio.ini(lpc845,lpc804,lpcxpresso845max,lpcxpresso804—lpc845brkwas already present with AutoResearch-specific flags, left untouched).Why this resolves #2990
build_template.ymlalready runs against fbuild viaFastLED/fbuild/.github/actions/setup@mainand invokes./compile, which dispatches to thenxplpcorchestrator. That matches the upstream contract cited in #2990's body:Upstream proves the five variants build green on
zackees/ArduinoCore-LPC8xx(workflow runs from 2026-06-09 cited in the issue). This PR mirrors that into FastLED's per-board CI so the next time a FastLED-side change touches LPC8xx, the canary catches it.Issue #2990's first checkbox ("Add LPC8xx to FastLED's
is_armdispatcher") was already shipped earlier in the LPC8xx port work — confirmed atsrc/platforms/arm/is_arm.h:17(#include "lpc/is_lpc.h") and line 80 (FL_IS_ARM_LPCin the ARM family detection block). So the only remaining work was the CI canary, which this PR delivers.Files
.github/workflows/build_lpc845.ymllpc845env.github/workflows/build_lpc804.ymllpc804env.github/workflows/build_lpc845brk.ymllpc845brkenv (already had platformio entry; this just adds the CI driver).github/workflows/build_lpcxpresso845max.ymllpcxpresso845maxenv.github/workflows/build_lpcxpresso804.ymllpcxpresso804envplatformio.ini[env:lpc*]sections (no build_flags — Blink doesn't need any)Burn-down context
This closes one of the five remaining items on the LPC8xx end-to-end burn-down meta (FastLED/fbuild#586). The fbuild side has 5 parallel
build-lpc*.ymlworkflows that already pass onzackees/ArduinoCore-LPC8xx; this PR brings FastLED to the same coverage parity.Test plan
platformio.iniparses cleanly under configparser; all five[env:lpc*]sections resolveplatform=nxplpc, board=<variant>, framework=arduino.bash lintpasses (one inline comment was rephrased to avoid the warn-only[pio_run]literal-string trigger; otherwise no changes to existing files).Refs FastLED/fbuild#586 (burn-down meta item 4-of-5).
🤖 Generated with Claude Code
Summary by CodeRabbit