Skip to content

ci(probe): drop runtime-DLL PATH injection (#3129 A6) - #3205

Merged
zackees merged 1 commit into
masterfrom
probe/3129-a6-runtime-dll-path
Jun 17, 2026
Merged

zackees merged 1 commit into
masterfrom
probe/3129-a6-runtime-dll-path

Conversation

@zackees

@zackees zackees commented Jun 17, 2026 •

Copy link
Copy Markdown
Member

Summary

Probe PR: removes three call sites that prepended clang-tool-chain runtime directories (ASan, MinGW) to the test PATH so DLLs would be discoverable even when zccache caches the link and skips ctc-clang++'s post-link deployment.

The upstream-blessed replacement is already in place: ZCCACHE_LINK_DEPLOY_CMD=clang-tool-chain-libdeploy, set at ci/meson/runner_helpers.py:374-375 (zccache#33). The commit message that added the env var explicitly described the PATH workaround as belt-and-suspenders.

What changes

File Change
ci/meson/native/meson.build Drop the run_command(uv_prog, ...) that populates runtime_dll_paths; leave runtime_dll_paths = [] so dead references don't error
tests/meson.build Drop two foreach _rtdll_dir : runtime_dll_paths loops (test_env, this_test_env)
examples/meson.build Drop one foreach _rtdll_dir : runtime_dll_paths loop (example_test_env)

ci/meson/get_runtime_dll_paths.py is intentionally left in place so revert is a single-line restoration of the run_command(...).

How to read CI on this branch

  • Watch: Windows unit-test and example-test runs for 0xc0000135 (STATUS_DLL_NOT_FOUND) or "DLL not found" failures.
  • Green for a week → workaround stays gone.
  • Any DLL-load failure → revert.

3 files changed, 20 insertions(+), 39 deletions(-).

Part of #3129 (Section A6).

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • Simplified build configuration by removing legacy Windows runtime dependency path injection across CI, testing, and example environments. The build system now relies on upstream link-deployment mechanisms for resolving runtime dependencies, reducing configuration complexity and improving maintainability while maintaining full functionality of tests and examples.

Three call sites in the meson build prepended clang-tool-chain runtime
directories (ASan, MinGW) to the test PATH so DLLs would be discoverable
even when zccache caches the link and skips ctc-clang++'s post-link
deployment. The upstream-blessed replacement is ZCCACHE_LINK_DEPLOY_CMD=
clang-tool-chain-libdeploy, set at ci/meson/runner_helpers.py:374-375
(zccache#33). The commit message that added the env var explicitly says:
"runtime_dll_paths PATH workaround is kept as belt-and-suspenders."

Probe PR: remove the belt-and-suspenders injection and let CI watch for
0xc0000135 (STATUS_DLL_NOT_FOUND) failures on Windows. If green for a
week the workaround stays gone; if any test or example fails to find
ASan/MinGW DLLs at runtime, revert.

Files touched:
- ci/meson/native/meson.build: remove the run_command(...) that
  populates runtime_dll_paths; keep `runtime_dll_paths = []` so dead
  references don't error if anything was missed.
- tests/meson.build: drop two foreach loops (test_env, this_test_env).
- examples/meson.build: drop one foreach loop (example_test_env).

ci/meson/get_runtime_dll_paths.py is left in place so revert is a
single-line restoration of the run_command(...) call.

Part of #3129 (Section A6).

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

coderabbitai Bot commented Jun 17, 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: f7b92e11-09c8-4349-a4a7-a1124d4a7643

📥 Commits

Reviewing files that changed from the base of the PR and between fe5c638 and 0b464ef.

📒 Files selected for processing (3)
  • ci/meson/native/meson.build
  • examples/meson.build
  • tests/meson.build

📝 Walkthrough

Walkthrough

The PR removes the Windows runtime DLL PATH-injection mechanism from the Meson CI build system. ci/meson/native/meson.build stubs out the get_runtime_dll_paths.py probe, setting runtime_dll_paths to an empty list unconditionally. Downstream consumers in tests/meson.build and examples/meson.build remove the corresponding foreach PATH-prepending loops.

Changes

Remove runtime_dll_paths PATH injection from Meson CI builds

Layer / File(s) Summary
Stub out runtime_dll_paths probe
ci/meson/native/meson.build
Replaces the Windows-only get_runtime_dll_paths.py invocation, stdout parsing, and failure warnings with a stub comment and unconditional runtime_dll_paths = [] initialization.
Remove PATH injection in tests and examples
tests/meson.build, examples/meson.build
Removes the foreach _rtdll_dir : runtime_dll_paths PATH-prepending loops from both the shared test_env and per-test this_test_env in tests, and the equivalent loop in examples, replacing each with comments citing the zccache link-deploy replacement.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Possibly related PRs

  • FastLED/FastLED#2340: Enables the ZCCACHE_LINK_DEPLOY_CMD post-link hook in zccache to deploy runtime DLLs alongside test binaries, which is the replacement mechanism cited in the comments added by this PR.

Poem

🐇 Hop hop, no more DLL hunt tonight,
The PATH injection loop is out of sight!
A stub replaces the probe with care,
zccache deploys what once lived there.
Less config clutter, cleaner build air! ✨

🚥 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 'ci(probe): drop runtime-DLL PATH injection (#3129 A6)' accurately summarizes the main change: removing runtime DLL PATH injection from CI/Meson build configuration, and is specific and actionable.
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 probe/3129-a6-runtime-dll-path

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.

@zackees
zackees merged commit 4c877bb into master Jun 17, 2026
11 checks passed
@fastled-project-sync fastled-project-sync Bot moved this from Triage to Done in FastLED Tracker Jun 17, 2026
@zackees
zackees deleted the probe/3129-a6-runtime-dll-path branch August 21, 2026 19:16
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