Repository navigation
fix(lpc): bump platform-nxp-lpc8xx pin past the FastLED-org transfer - #3543
Conversation
Every LPC build (lpc804, lpc845, lpcxpresso804, lpcxpresso845max) has
been failing on master with:
build error: package error: checksum mismatch for
FastLED-framework-arduino-lpc8xx / 0.2.0+g50d76e0_staging /
50d76e0d63c2d2a2b365b29de47100d93c530c83.tar.gz:
expected e6bbcc3392ae9da44c5c92268d7cd953770e0011fcf285561104633e36087428
got e64f0cb81ab1673e05c2a63b7b4548c1373c9ba885413d2a2351bbfae160fbec
Root cause: the framework repo was transferred to the FastLED org
(zackees/ArduinoCore-LPC8xx → FastLED/framework-arduino-lpc8xx) on
2026-06-28, and platform-nxp-lpc8xx#10 (`4b6d395cbb`) rewrote the
framework URL in platform.json to use the canonical FastLED/* URL. Our
pin is stuck at `12265f76`, one commit BEFORE that URL rewrite, so
fbuild resolves the old zackees/* URL, GitHub follows the transfer
redirect and returns a byte-different tarball for the same commit
sha, and the pre-transfer checksum fbuild was expecting no longer
matches.
Bump the pin from `12265f76` (pre-transfer) to `4b6d395cbb` (post-
transfer). The framework SHA (`50d76e0`) is unchanged — same source
tree — but the URL now hits the canonical FastLED endpoint, which
serves the tarball with the checksum fbuild recorded when the
transfer landed.
Verified locally on Windows: `bash compile lpc804 --examples Blink`
succeeds — Flash 7.33KB / 32KB (was failing at the framework-fetch
step, never got to compile).
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
📝 WalkthroughWalkthroughThis PR updates a single constant in ChangesLPC8xx Platform Pin Update
Estimated code review effort: 1 (Trivial) | ~2 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@ci/boards.py`:
- Line 1166: The NXP platform pin was updated in ci/boards.py, but
platformio.ini still hard-codes the old nxplpc commit in several environment
sections, so those builds will keep failing with a checksum mismatch. Update the
remaining platformio.ini platform pins to match the new nxplpc reference used by
_NXPLPC_PLATFORM, and make sure all affected env blocks stay consistent with the
value in ci/boards.py.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: c5398aa4-4c24-4ac7-92d0-22aa0c4da412
📒 Files selected for processing (1)
ci/boards.py
| # Once fbuild 2.3.16 ships with #900 the `nxplpc@` prefix becomes | ||
| # redundant but stays valid PlatformIO syntax (name @ source URI). | ||
| _NXPLPC_PLATFORM = "nxplpc@https://github.com/FastLED/platform-nxp-lpc8xx.git#12265f765aebd3893465d6d7ad76be66d89ba015" | ||
| _NXPLPC_PLATFORM = "nxplpc@https://github.com/FastLED/platform-nxp-lpc8xx.git#4b6d395cbbfb9faf97a53af3733ad802dc160f1d" |
There was a problem hiding this comment.
🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
# Check if platformio.ini pins are static or regenerated from ci/boards.py
rg -n '12265f765aebd3893465d6d7ad76be66d89ba015|4b6d395cbbfb9faf97a53af3733ad802dc160f1d' platformio.ini ci/boards.py
# Check if there's a generation script that writes platformio.ini from boards.py
rg -n 'to_platformio_ini' -g '*.py'Repository: FastLED/FastLED
Length of output: 901
Update the remaining platformio.ini NXP pins
ci/boards.py now points nxplpc at 4b6d395cbbfb9faf97a53af3733ad802dc160f1d, but platformio.ini still hard-codes 12265f765aebd3893465d6d7ad76be66d89ba015 in five env sections (platformio.ini:192,228,235,242,249). Those builds will keep hitting the checksum mismatch unless the static pins are updated too.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@ci/boards.py` at line 1166, The NXP platform pin was updated in ci/boards.py,
but platformio.ini still hard-codes the old nxplpc commit in several environment
sections, so those builds will keep failing with a checksum mismatch. Update the
remaining platformio.ini platform pins to match the new nxplpc reference used by
_NXPLPC_PLATFORM, and make sure all affected env blocks stay consistent with the
value in ci/boards.py.
PR #3543 bumped `_NXPLPC_PLATFORM` from the pre-transfer pin (`12265f76`) to the post-transfer pin (`4b6d395cbb`), which switches the framework tarball URL from `zackees/ArduinoCore-LPC8xx.git#50d76e0` to `FastLED/framework-arduino-lpc8xx.git#50d76e0`. Cold cache locally picks up the new URL and its (different) sha256 fine. CI still reports the same `sha256 mismatch for FastLED-framework-arduino-lpc8xx/.../50d76e0d63c...tar.gz: expected e6bbcc339..., got e64f0cb81...` on `035c43efd` because the per-board fbuild cache key was: cache-key-extra: ${{ board }}-${{ hashFiles('platformio.ini', 'library.json', 'pyproject.toml', 'uv.lock') }} `ci/boards.py` (which owns `_NXPLPC_PLATFORM`) is not in that list, so a pin change does not invalidate the cache. The GHA cache restore delivers the OLD tarball + its OLD sha256 to fbuild, fbuild downloads the NEW tarball, and it explodes on the mismatch. Add `ci/boards.py` to the hashFiles set so future platform-pin bumps bust the cache cleanly. Only bumps to `ci/boards.py` produce a new cache generation; unrelated edits still hit the warm cache. Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
…#3551) Root cause of the ongoing LPC-lane failures (#3543 + #3547 did not resolve them): The fbuild setup action's cache uses restore-keys that fall back to `fbuild-<version>-<os>-<arch>-<fbuild-hash>-` — a prefix that ignores `cache-key-extra`. So an lpc804 job whose exact key misses can still restore an unrelated board's cache (observed: uno_r4_wifi's). That cache contains a `platforms/FastLED-framework-arduino-lpc8xx/.../ 50d76e0d63c...tar.gz` from BEFORE the framework repo was transferred to the FastLED org (2026-06-28), with expected sha256 = e6bbcc339... The current-pin URL now serves e64f0cb81..., so fbuild's integrity check fires immediately. Bumping `ci/boards.py` into `cache-key-extra` in #3547 was necessary but not sufficient — the restore-keys fallback wins on a fresh cache miss. Fix: add a small step between the fbuild-cache restore and the pio/compile invocation that deletes ONLY `$RUNNER_TEMP/fbuild-cache/platforms/FastLED-framework-arduino-lpc8xx/`. Other cached artifacts (toolchain, cook, per-board build outputs) are untouched. Non-LPC boards never had this subtree so the step is a no-op for them. Deleted entries are lazily re-populated by the next fbuild call, which now downloads the FastLED-org tarball and records the correct sha256. Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
Every LPC build (lpc804, lpc845, lpcxpresso804, lpcxpresso845max) has been failing on master with:
Root cause: the framework repo was transferred to the FastLED org on 2026-06-28 (zackees/ArduinoCore-LPC8xx → FastLED/framework-arduino-lpc8xx), and platform-nxp-lpc8xx#10 (commit 4b6d395cbb) rewrote the framework URL in platform.json to use the canonical FastLED/* URL. Our pin was stuck one commit BEFORE that URL rewrite, so fbuild kept resolving the old zackees/* URL, GitHub followed the transfer redirect and returned a byte-different tarball for the same commit sha, and fbuild's cached checksum no longer matched.
Bump the pin from 12265f76 (pre-transfer) to 4b6d395cbb (post-transfer). The framework SHA (50d76e0) is unchanged — same source tree — but the URL now hits the canonical FastLED endpoint.
Verified locally on Windows: bash compile lpc804 --examples Blink succeeds (Flash 7.33KB / 32KB).
Generated with Claude Code
Summary by CodeRabbit