Skip to content

fix(udev): host-independent elevation argv (unblocks 2.5.32 Windows check) - #1626

Merged
zackees merged 1 commit into
mainfrom
fix/release-2.5.32-blockers
Oct 2, 2026
Merged

zackees merged 1 commit into
mainfrom
fix/release-2.5.32-blockers

Conversation

@zackees

@zackees zackees commented Oct 2, 2026 •

Copy link
Copy Markdown
Member

Release dry run 37070075494 for 2.5.32 failed Full validation / windows / Check: udev_install::tests::pkexec_runs_the_named_helper_with_the_destination_first and sudo_askpass_adds_dash_a (added in #1622) got \usr\bin\pkexec because NormalizedPath::display() renders backslashes on Windows.

elevated_argv now renders the elevation binary with display_slash(), which is identity on Unix (the only place this argv executes), so Linux behavior is byte-identical.

The other failure in that run, Adafruit QT Py M0 / build, was a daemon-startup flake ("daemon did not become healthy after 3 spawn attempts", no compilation attempted) while 75 other board builds passed with the same artifact; it needs a rerun, no code change.

Verified locally: the 13 udev_install unit tests pass and clippy with -D warnings is clean.

Summary by CodeRabbit

  • Tests
    • Improved cross-platform test reliability for Unix-style pkexec and sudo command paths.

…ass on Windows

NormalizedPath::display() prints backslashes on Windows, so the
pkexec/sudo argv tests added in #1622 failed the 2.5.32 release
dry run (windows Check job). display_slash is identity on Unix,
where this argv actually executes, so Linux behavior is unchanged.
@coderabbitai

coderabbitai Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: FastLED/fbuild/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 02a7f8e8-2579-47c3-bc05-7c05d3aa8900
📥 Commits

Reviewing files that changed from the base of the PR and between d9955af and b3a0bbf.

📒 Files selected for processing (1)
  • crates/fbuild-cli/src/cli/udev_install.rs

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

The elevated_argv helper now renders executable paths for pkexec and sudo with slash separators. Other argument formatting remains unchanged.

Changes

Elevated command arguments

Layer / File(s) Summary
Elevated executable path rendering
crates/fbuild-cli/src/cli/udev_install.rs
pkexec and sudo executable paths use slash separators. Direct and the sudo -A flag retain their existing formatting.

Priority: ➖ Normal

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

Change: Bug fix

Merge Risk: ⚪ Minimal · up to b3a0b

The change preserves Linux path rendering while normalizing the elevation executable path for Windows argv tests. No actionable merge-blocking risk is established.

Architecture Summary

Architecture risk: 🔵 Low · up to b3a0b

The change affects 1 system.

Changed systems: crates

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — crates (service) was modified; 1 changed file maps to changed impact.

Before / after behavior

  • observed — Modified behavior in crates/fbuild-cli/src/cli/udev_install.rs: elevated_argv documents cross-platform argv rendering and uses slash-form paths for pkexec and sudo; Direct and the sudo -A flag are unchanged.
🚥 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 concisely describes the main change: making the udev elevation argument host-independent to fix the Windows check.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 1 files.
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
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Autopilot is currently an internal CodeRabbit preview.


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.

@zackees
zackees merged commit 6bfb838 into main Oct 2, 2026
24 checks passed
@zackees
zackees deleted the fix/release-2.5.32-blockers branch October 2, 2026 22:23
@fastled-project-sync fastled-project-sync Bot moved this to Triage in FastLED Tracker Oct 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Triage

Development

Successfully merging this pull request may close these issues.

1 participant