cvp2004 opened a new pull request, #27815:
URL: https://github.com/apache/datafusion/pull/27815

   ## Which issue does this PR close?
   
   - Closes #27812.
   
   ## Rationale for this change
   
   On Windows, `cargo clippy -p datafusion-xtask -- -D warnings` and `cargo 
test -p datafusion-xtask` both fail, so the CI lint and test commands can't be 
run locally there. Details are in the issue.
   
   ## What changes are included in this PR?
   
   - `xtask/src/command.rs`: remove a needless `return` in the 
`#[cfg(windows)]` block of `executable_in`.
   - `xtask/src/ci_steps.rs`: add a `StepContext::root_path` helper that 
appends `/`-separated paths to the workspace root with `/` instead of 
`Path::join`, and use it for the five root-relative paths. `--explain` output 
is unchanged on Linux and macOS, and on Windows it now matches the snapshots.
   
   ## What is the testing strategy for this PR?
   
   Covered by the existing `ci_steps::tests::explain_all_available_ci_commands` 
snapshot test, which now passes on Windows. Tested locally on Windows 
(`x86_64-pc-windows-msvc`): `cargo test -p datafusion-xtask` (10/10), `cargo 
clippy --all-targets -p datafusion-xtask -- -D warnings`, `cargo fmt --all -- 
--check`, and `cargo xtask ci step test <step> --explain` for the affected 
steps, which resolve to real paths. CI on Linux covers the unchanged behavior 
there.
   
   ## Are there any user-facing changes?
   
   No. This only changes internal dev tooling (`xtask`).
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to