Skip to content

fix(lpc): bump platform-nxp-lpc8xx pin past the FastLED-org transfer - #3543

Merged
zackees merged 1 commit into
masterfrom
fix/lpc-platform-post-transfer-pin
Jul 1, 2026
Merged

zackees merged 1 commit into
masterfrom
fix/lpc-platform-post-transfer-pin

Conversation

@zackees

@zackees zackees commented Jul 1, 2026 •

Copy link
Copy Markdown
Member

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 e6bbcc339...
got      e64f0cb81...

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

  • Chores
    • Updated the pinned platform version used for LPC8xx board support to a newer revision.

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

coderabbitai Bot commented Jul 1, 2026 •

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

This PR updates a single constant in ci/boards.py, changing the pinned commit hash referenced in the _NXPLPC_PLATFORM GitHub URL for the NXP LPC8xx PlatformIO platform.

Changes

LPC8xx Platform Pin Update

Layer / File(s) Summary
Update pinned commit hash
ci/boards.py
_NXPLPC_PLATFORM URL's commit reference changed from 12265f765a... to 4b6d395cbb....

Estimated code review effort: 1 (Trivial) | ~2 minutes

Possibly related PRs

  • FastLED/FastLED#2289: Also modifies ci/boards.py to pin PlatformIO platform versions for a different board constant.
  • FastLED/FastLED#3440: Also modifies the same _NXPLPC_PLATFORM constant to change the pinned LPC8xx platform URL.
  • FastLED/FastLED#3475: Also modifies the same _NXPLPC_PLATFORM PlatformIO reference in ci/boards.py.
🚥 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 title clearly matches the main change: bumping the LPC8xx PlatformIO pin to a newer commit after the FastLED org transfer.
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.
✨ 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/lpc-platform-post-transfer-pin

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.

@fastled-project-sync fastled-project-sync Bot moved this to Triage in FastLED Tracker Jul 1, 2026
@zackees
zackees merged commit 035c43e into master Jul 1, 2026
11 of 12 checks passed
@zackees
zackees deleted the fix/lpc-platform-post-transfer-pin branch July 1, 2026 19:27

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

📥 Commits

Reviewing files that changed from the base of the PR and between b6a989d and 7ce6bf2.

📒 Files selected for processing (1)
  • ci/boards.py

Comment thread 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"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🗄️ 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.

@fastled-project-sync fastled-project-sync Bot moved this from Triage to Done in FastLED Tracker Jul 1, 2026
zackees added a commit that referenced this pull request Jul 1, 2026
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]>
zackees added a commit that referenced this pull request Jul 1, 2026
…#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]>
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.

1 participant