Skip to content

perf(ci): Wild for direct Linux native audit workflows; keep LLD for ThinLTO release links (#4558) - #4607

Merged
zackees merged 2 commits into
masterfrom
perf/issue-4558-wild-audit-workflows
Sep 25, 2026
Merged

zackees merged 2 commits into
masterfrom
perf/issue-4558-wild-audit-workflows

Conversation

@zackees

@zackees zackees commented Sep 25, 2026

Copy link
Copy Markdown
Member

Closes #4558

Inventory (RED)

The new guard ci/tests/test_native_linker_workflow_coverage.py scans every workflow. On master it fails on exactly these Linux host-native Meson steps that run without ci/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) and Build 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):

wild: error: Input file ...fl.fs+.cpp.o contains LLVM-IR, but linker plugin was not supplied

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() honoured FASTLED_NATIVE_LINKER in 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 when FASTLED_NATIVE_LINKER is set. The test now asserts this; non-LTO modes still accept the override.
  • linux_native and mp3_memory_audit install the same SHA-verified Wild as the templates.
  • mp3_cpu_audit gets 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.
  • The guard exempts --build-mode release steps and Python-only bash test --py. MCU cross-compile steps are out of scope. Fixtures cover a bypassing job, a covered job, macOS, and MCU steps.
  • No change to Windows, macOS, MCU compilers, or profile measurement semantics.

Hosted timings

The same master revision 78eebfaf74 both ways; the branch adds only this change. One run per side, so treat small deltas as noise-sensitive.

workflow step master (LLD) this PR
linux_native Install Wild — 4 s
Run Native Build (test.py --cpp) 329 s 291 s
whole job 5 m 59 s 5 m 19 s
mp3_memory_audit Install Wild — 1 s
Verify codec allocation hooks (quick, Wild) 67 s 60 s
Build production decoder memory profile (release, LLD) 93 s 101 s (same linker; runner noise)
ledger output — identical to master
mp3_cpu_audit Verify fixed-point SIMD (release, LLD) 211 s 222 s (unchanged linker; noise)
result success success

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.
  • All three workflows pass on hosted runners with this branch.

🤖 Generated with Claude Code

zackees and others added 2 commits September 24, 2026 19:32
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]>
@zackees
zackees merged commit e61aae4 into master Sep 25, 2026
88 of 89 checks passed
@fastled-project-sync fastled-project-sync Bot moved this to Triage in FastLED Tracker Sep 25, 2026
@coderabbitai

coderabbitai Bot commented Sep 25, 2026

Copy link
Copy Markdown

Review in Change Stack →

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 configuration

Configuration used: Repository: FastLED/FastLED/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: aa0ff98e-5f31-4921-bb4d-d3e17bcc0e85

📥 Commits

Reviewing files that changed from the base of the PR and between 78eebfa and f38219a.

📒 Files selected for processing (5)
  • .github/workflows/build_linux.yml
  • .github/workflows/mp3_memory_audit.yml
  • ci/meson/meson_setup_execute.py
  • ci/tests/test_native_linker_selection.py
  • ci/tests/test_native_linker_workflow_coverage.py
 _________________________________________________________________________________________
< The function of good software is to make the complex appear to be simple. - Grady Booch >
 -----------------------------------------------------------------------------------------
  \
   \   (\__/)
       (•ㅅ•)
       /   づ
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

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.

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]>
@zackees
zackees deleted the perf/issue-4558-wild-audit-workflows branch November 5, 2026 05:53
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.

perf(ci): audit Wild coverage in direct Linux native audit workflows

1 participant