Skip to content

ci(lpc8xx): add Blink canary workflows for all 5 ArduinoCore-LPC8xx variants (closes #2990) - #3080

Merged
zackees merged 1 commit into
masterfrom
feat/2990-lpc-canary-ci
Jun 15, 2026
Merged

zackees merged 1 commit into
masterfrom
feat/2990-lpc-canary-ci

Conversation

@zackees

@zackees zackees commented Jun 15, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Add five new per-board CI workflow files (one per ArduinoCore-LPC8xx variant) following the existing build_<board>.yml pattern.
  • Each calls build_template.yml with args: <variant> Blink, narrowing the canary surface to examples/Blink/Blink.ino per 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).
  • Add the four missing [env:lpc*] entries to platformio.ini (lpc845, lpc804, lpcxpresso845max, lpcxpresso804 — lpc845brk was already present with AutoResearch-specific flags, left untouched).

Why this resolves #2990

build_template.yml already runs against fbuild via FastLED/fbuild/.github/actions/setup@main and invokes ./compile, which dispatches to the nxplpc orchestrator. That matches the upstream contract cited in #2990's body:

pip install fbuild && fbuild build . -e <variant>

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_arm dispatcher") was already shipped earlier in the LPC8xx port work — confirmed at src/platforms/arm/is_arm.h:17 (#include "lpc/is_lpc.h") and line 80 (FL_IS_ARM_LPC in the ARM family detection block). So the only remaining work was the CI canary, which this PR delivers.

Files

File Purpose
.github/workflows/build_lpc845.yml new — Blink canary on lpc845 env
.github/workflows/build_lpc804.yml new — Blink canary on lpc804 env
.github/workflows/build_lpc845brk.yml new — Blink canary on lpc845brk env (already had platformio entry; this just adds the CI driver)
.github/workflows/build_lpcxpresso845max.yml new — Blink canary on lpcxpresso845max env
.github/workflows/build_lpcxpresso804.yml new — Blink canary on lpcxpresso804 env
platformio.ini four new minimal [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*.yml workflows that already pass on zackees/ArduinoCore-LPC8xx; this PR brings FastLED to the same coverage parity.

Test plan

  • platformio.ini parses cleanly under configparser; all five [env:lpc*] sections resolve platform=nxplpc, board=<variant>, framework=arduino.
  • bash lint passes (one inline comment was rephrased to avoid the warn-only [pio_run] literal-string trigger; otherwise no changes to existing files).
  • CI: all five new workflows green on this PR (the first run is the canary).

Refs FastLED/fbuild#586 (burn-down meta item 4-of-5).

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • Added build automation workflows for multiple LPC microcontroller targets
    • Configured support for LPC804, LPC845, LPC845BRK, LPCXpresso804, and LPCXpresso845MAX variants

…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]>
@coderabbitai

coderabbitai Bot commented Jun 15, 2026 •

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 472b6788-33c8-4501-a146-6d2442761022

📥 Commits

Reviewing files that changed from the base of the PR and between c8fca96 and 2b506a0.

📒 Files selected for processing (6)
  • .github/workflows/build_lpc804.yml
  • .github/workflows/build_lpc845.yml
  • .github/workflows/build_lpc845brk.yml
  • .github/workflows/build_lpcxpresso804.yml
  • .github/workflows/build_lpcxpresso845max.yml
  • platformio.ini

📝 Walkthrough

Walkthrough

Five GitHub Actions workflows are added for NXP LPC8xx board variants (lpc804, lpc845, lpc845brk, lpcxpresso804, lpcxpresso845max), each delegating to the shared build_template.yml with Blink as the target. Four corresponding minimal PlatformIO environments are added to platformio.ini.

Changes

LPC8xx Canary CI and PlatformIO Environments

Layer / File(s) Summary
New LPC8xx PlatformIO environments
platformio.ini
Adds four minimal canary environments (lpc845, lpc804, lpcxpresso845max, lpcxpresso804) each with platform = nxplpc, a board name, and framework = arduino. These do not inherit the lpc845brk AutoResearch-specific build flags.
GitHub Actions workflows for all five LPC8xx targets
.github/workflows/build_lpc804.yml, .github/workflows/build_lpc845.yml, .github/workflows/build_lpc845brk.yml, .github/workflows/build_lpcxpresso804.yml, .github/workflows/build_lpcxpresso845max.yml
Five near-identical workflows, each named after its board, triggered on push to master with path filters covering src/**, examples/**, ci/**, and project config files. Each sets a concurrency group (${{ github.workflow }}-${{ github.ref }}) and cancels in-progress runs for pull requests, then runs a single build job via build_template.yml passing the board name and Blink.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~4 minutes

Possibly related issues

Possibly related PRs

  • FastLED/FastLED#2333: Introduced the same concurrency group and cancel-in-progress pattern on GitHub Actions workflows that the new LPC8xx workflows adopt.

Poem

🐇 Hop hop, five boards now join the queue,
LPC8xx targets all brand new,
Blink canary flies on master push,
The template handles each workflow whoosh.
No flags from lpc845brk to share —
Clean envs glisten in the CI air! ✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The pull request title clearly and concisely summarizes the main change: adding Blink canary CI workflows for all 5 ArduinoCore-LPC8xx variants. The title is specific, descriptive, and directly reflects the core objective documented in the PR objectives.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/2990-lpc-canary-ci

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 and usage tips.

@zackees
zackees merged commit 4a514d4 into master Jun 15, 2026
6 of 7 checks passed
@fastled-project-sync fastled-project-sync Bot moved this from Triage to Done in FastLED Tracker Jun 15, 2026
@zackees
zackees deleted the feat/2990-lpc-canary-ci branch June 15, 2026 17:30
zackees added a commit that referenced this pull request Jun 15, 2026
…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]>
zackees added a commit that referenced this pull request Jun 19, 2026
…#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]>
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.

lpc8xx: fbuild build is shipping for all 5 ArduinoCore-LPC8xx variants — add FastLED canary sketches to CI

1 participant