Repository navigation
perf(ci): Wild for direct Linux native audit workflows; keep LLD for ThinLTO release links (#4558) - #4607
Merged
Conversation
mp3_cpu_audit, mp3_memory_audit and linux_native ran host-native Meson (`bash test --cpp`, `bash profile`, `test.py --cpp`) without the SHA-verified Wild installer the native templates use (#4552), so their links silently stayed on LLD. Add the same installer step, and a workflow guard test that fails when a Linux-capable job runs a host-native Meson step before `ci/tools/install_native_linker.py`. MCU cross-compile and Python-only steps are out of scope. Closes #4558 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Hosted runs showed the pinned Wild 0.10 cannot link release-mode objects
("contains LLVM-IR, but linker plugin was not supplied"): release uses
-flto=thin. resolve_native_linker now returns LLD for release even when
FASTLED_NATIVE_LINKER is set, the workflow guard exempts
--build-mode release steps, and the all-release MP3 CPU audit drops the
Wild installer it would never use.
Refs #4558
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configurationConfiguration used: Repository: FastLED/FastLED/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (5)
✨ 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 |
This was referenced Sep 25, 2026
pull Bot
pushed a commit
to manmuqingshan/FastLED
that referenced
this pull request
Sep 25, 2026
…hers Replace the Linux-only upstream Wild override (FastLED#4552/FastLED#4607) with reld (zackees/reld v0.2.0) for every host-native link on Linux, macOS and Windows, in every build mode: - ci/tools/reld.py provisions the pinned, SHA-256-verified release into .cached/reld and resolves the clang-tool-chain linker reld bridges to (RELD_BRIDGE_LINKER) for ThinLTO and COFF/Mach-O links. - resolve_native_linker() always selects reld; FASTLED_NATIVE_LINKER may name another reld build only. The ThinLTO exception is gone: reld routes LTO links to its bridge (verified: release fft_cq_compare). - Native build config always links with --ld-path=<reld>; the Linux-only guard and the macOS-debug system-linker exception are removed. - New `bash lint` stage ci/lint/banned_linkers.py fails on any other linker selection in ci/, .github/ and build-config files. Board (fbuild) and WebAssembly links are out of scope. - Remove the Wild installer, linker_bench, their tests and workflow steps, the system linker apt step, a dead system-linker probe and ci/build_example.toml. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #4558
Inventory (RED)
The new guard
ci/tests/test_native_linker_workflow_coverage.pyscans every workflow. On master it fails on exactly these Linux host-native Meson steps that run withoutci/tools/install_native_linker.py:build_linux.yml(linux_native):Run Native Build,Test Multi-Word Fuzzy Matching(uv run test.py --cpp, quick mode)mp3_memory_audit.yml:Verify codec allocation hooks(bash test --cpp, quick mode) andBuild production decoder memory profile(bash profile --build-mode release)mp3_cpu_audit.yml:Verify the fixed-point SIMD is not slower than scalar(bash test fl_codec --cpp --build-mode release)The reusable unit/example templates already pass.
Finding: Wild cannot link release builds
With the installer added to all three workflows, both MP3 audits failed on hosted runners (runs 36086679640 and 36086682126):
Release mode builds with
-flto=thin, and the pinned Wild 0.10.0 has no LLVM plugin. This was a latent bug in #4552:resolve_native_linker()honouredFASTLED_NATIVE_LINKERin every mode (its test even asserted release accepted it), so any Linux release-mode native build with Wild selected would break.Changes (GREEN)
resolve_native_linker()returns LLD for release (ThinLTO) builds even whenFASTLED_NATIVE_LINKERis set. The test now asserts this; non-LTO modes still accept the override.linux_nativeandmp3_memory_auditinstall the same SHA-verified Wild as the templates.mp3_cpu_auditgets no installer (documented exception): every native step it runs is--build-mode release, so Wild would never be used and the install would be pure overhead.--build-mode releasesteps and Python-onlybash test --py. MCU cross-compile steps are out of scope. Fixtures cover a bypassing job, a covered job, macOS, and MCU steps.Hosted timings
The same master revision
78eebfaf74both ways; the branch adds only this change. One run per side, so treat small deltas as noise-sensitive.test.py --cpp)Runs: master 36086535400 / 36086532589 / 36086577135; PR 36086684894 / 36087565716 / 36087562578.
Validation
ci/tests/test_native_linker_selection.py,test_native_linker_workflow_coverage.py,test_install_native_linker.py: 18 passed.bash lint: passes.🤖 Generated with Claude Code