Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates the xtask-based CI/pipeline helpers to incorporate review feedback, improving safety, portability, and consistency of various repo automation steps.
Changes:
- Replace process-global env mutation in
buildwithxshell::Shell::set_var. - Improve formatting/CI helpers: path normalization and exit-status handling in
clang_format, always run clippy on the workspace, and append outputs for GitHub Actions report tasks. - Refactor
prechecksubtask invocation for simpler, more direct calls and clarify comments.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| xtask/src/build.rs | Use Shell::set_var for RUSTFLAGS instead of std::env::set_var. |
| xtask/src/clang_format.rs | Use imported stdout(), normalize separators in excludes, and surface clang-format failures in --in-place mode. |
| xtask/src/clippy.rs | Ensure clippy runs against the full workspace consistently. |
| xtask/src/coverage_report.rs | Correct module-level doc comment to match JSON-based coverage input. |
| xtask/src/nextest_report.rs | Append to GITHUB_OUTPUT rather than overwriting it. |
| xtask/src/precheck.rs | Use targeted imports and inline task construction + execution; add clarifying comments. |
| xtask/src/rustup_component_add.rs | Fix struct field doc comment wording. |
You can also share your feedback on Copilot code review. Take the survey.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.
You can also share your feedback on Copilot code review. Take the survey.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.
You can also share your feedback on Copilot code review. Take the survey.
|
|
||
| - **precheck**: Combines copyright, fmt, and clippy checks for comprehensive validation | ||
| - **precheck**: Combines setup, copyright, audit, fmt, clippy, and nextest stages for comprehensive validation | ||
| - **clippy**: Runs `cargo clippy --all-targets` with warnings treated as errors |
There was a problem hiding this comment.
The clippy implementation now always runs with --workspace, but this README line still documents the command as cargo clippy --all-targets. Please update the documentation to reflect the actual invocation (e.g., mention --workspace, or describe it in a way that remains accurate if flags change again).
| - **clippy**: Runs `cargo clippy --all-targets` with warnings treated as errors | |
| - **clippy**: Runs Clippy across the entire workspace (all targets) with warnings treated as errors |
|
|
||
| It auto fixes copyright issues. This ensures all source code has correct copyright headers. | ||
|
|
||
| ## Precheckin Steps |
There was a problem hiding this comment.
Section header has a typo: "Precheckin" should be "Prechecking".
| ## Precheckin Steps | |
| ## Prechecking Steps |
Some of the logic in this repository's CI pipelines recently received a copilot code review in a context outside of this repository, and a portion of the feedback is applicable to this repository. This change applies that feedback.
Changes include: