Skip to content

build(tests): drop test_pch depends:[fastled_lib] (#3129 A11) - #3193

Merged
zackees merged 1 commit into
masterfrom
chore/3129-a11-drop-test-pch-dep
Jun 16, 2026
Merged

zackees merged 1 commit into
masterfrom
chore/3129-a11-drop-test-pch-dep

Conversation

@zackees

@zackees zackees commented Jun 16, 2026 •

Copy link
Copy Markdown
Member

Summary

Removes the misplaced depends: [fastled_lib] edge from the test_pch custom_target in tests/meson.build.

Why this is safe

  • The PCH input is test_pch.h, which #includes FastLED.h directly.
  • The PCH compile already uses -MD -MF @DEPFILE@ to emit a gcc-style depfile, so the build graph tracks every header that test_pch.h pulls in.
  • fastled_lib is the compiled DLL, not a header. The PCH does not link, so a wall-clock dep on the library was never required for correctness.

Why this matters

The spurious edge serialized ~241 test DLLs behind every relink of fastled.dll. Even though restat=1 would let the build graph skip downstream rebuilds when the archive is content-equal, the wall-clock dependency was forcing the graph to wait for the link before evaluating PCH staleness.

Removing the edge lets the build parallelize PCH and library work freely.

1 file changed, 1 deletion(-).

Part of #3129 (Section A11).

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • Internal build system optimization to adjust dependency ordering for test compilation.

The PCH custom_target input is test_pch.h, which #includes FastLED.h
directly. The PCH compiles from headers — the build graph's deps=gcc
depfile (generated via -MD -MF @DEPFILE@) already tracks every header
it pulls in.

The depends:[fastled_lib] edge serialized ~241 test DLLs behind every
relink of fastled.dll, even though restat=1 would have saved downstream.
The wall-clock dependency was forcing the graph to wait for the DLL
link before re-evaluating PCH staleness.

PCH inputs are headers, not the compiled library. Removing the spurious
edge lets the build parallelize PCH and library work freely.

Part of #3129 (Section A11).

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@coderabbitai

coderabbitai Bot commented Jun 16, 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: baa955f3-3880-49b4-bba6-d8a81334cac2

📥 Commits

Reviewing files that changed from the base of the PR and between da59e86 and dda56b0.

📒 Files selected for processing (1)
  • tests/meson.build
💤 Files with no reviewable changes (1)
  • tests/meson.build

📝 Walkthrough

Walkthrough

Removes the depends: [fastled_lib] argument from the custom_target('test_pch') declaration in tests/meson.build, eliminating the explicit Meson build-order constraint that previously required fastled_lib to be built before the PCH generation step.

Changes

Meson PCH build-order wiring

Layer / File(s) Summary
Drop fastled_lib dependency from test_pch
tests/meson.build
Removes depends: [fastled_lib] from the test_pch custom target, decoupling the PCH generation step from the FastLED library in Meson's build graph.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

A single line removed, the build graph grows light,
No longer must pch wait through the night.
The FastLED lib hops free of the queue,
One dependency gone — what a tidy breakthrough!
🐇✨

🚥 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 and specifically identifies the main change: removing a dependency declaration from the test_pch custom_target in the Meson build configuration.
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 chore/3129-a11-drop-test-pch-dep

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.

@fastled-project-sync fastled-project-sync Bot moved this to Triage in FastLED Tracker Jun 16, 2026
@zackees
zackees merged commit cc23da1 into master Jun 16, 2026
5 checks passed
@zackees
zackees deleted the chore/3129-a11-drop-test-pch-dep branch August 21, 2026 19:15
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