Skip to content

Improve CI by running Clippy directly and locking dependencies - #46

Merged
jerrysxie merged 5 commits into
OpenDevicePartnership:mainfrom
jerrysxie:fixing-workflow
Aug 20, 2026
Merged

Improve CI by running Clippy directly and locking dependencies#46
jerrysxie merged 5 commits into
OpenDevicePartnership:mainfrom
jerrysxie:fixing-workflow

Conversation

@jerrysxie

@jerrysxie jerrysxie commented Aug 20, 2026

Copy link
Copy Markdown
Contributor
  • Replace the silently passing clippy GH action with direct calls to clippy
  • Fix all the clippy warnings that came up
  • Lock down dependencies by checking Cargo.lock into source control and add --locked flag to all CI workflows where it is applicable

@jerrysxie jerrysxie self-assigned this Aug 20, 2026
Run Clippy directly and track workspace lockfiles so local and hosted
checks resolve the same dependency versions.

Raise the MSRV to 1.93 and fix the stable Clippy diagnostics. Keep the
feature matrix compatible with cargo-batch's supported arguments.

Assisted-by: GitHub Copilot:gpt-5.3-codex
@jerrysxie
jerrysxie marked this pull request as ready for review August 20, 2026 04:23
@jerrysxie
jerrysxie requested a review from a team as a code owner August 20, 2026 04:23
@jerrysxie
jerrysxie requested review from kurtjd, tullom and williampMSFT and a lite review from Copilot and removed request for Copilot August 20, 2026 04:23

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Improves CI reproducibility with committed lockfiles and locked Cargo commands, while simplifying Clippy execution and command handling.

Changes:

  • Commits workspace lockfiles and updates ignore rules.
  • Runs Clippy directly, locks CI dependency resolution, and raises MSRV to 1.93.
  • Boxes nested download commands and applies minor cleanup.

Reviewed changes

Copilot reviewed 6 out of 9 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
.github/workflows/check.yml Updates Clippy, locked commands, and MSRV.
libs/ci.sh Adjusts generated build-command indentation.
libs/Cargo.lock Locks library workspace dependencies.
libs/.gitignore Allows the library lockfile.
examples/rt685s/Cargo.lock Locks example workspace dependencies.
examples/rt685s/.gitignore Allows the example lockfile.
bootloader-tool/src/processors/otp.rs Removes an unnecessary borrow.
bootloader-tool/src/lib.rs Boxes flattened run commands.
bootloader-tool/src/commands/download.rs Unboxes commands before processing.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread libs/ci.sh
Comment thread examples/rt685s/.gitignore
RobertZ2011
RobertZ2011 previously approved these changes Aug 20, 2026
Comment thread .github/workflows/check.yml Outdated
Comment thread .github/workflows/check.yml Outdated
Comment thread .github/workflows/check.yml
Restore beta to the Clippy toolchain matrix and document why Rust 1.93
is the minimum supported version.
Replace the unchecked slice conversion with as_chunks so beta Clippy
accepts the state parser without changing remainder handling.

Assisted-by: GitHub Copilot:gpt-5.3-codex
kurtjd
kurtjd previously approved these changes Aug 20, 2026
felipebalbi
felipebalbi previously approved these changes Aug 20, 2026

@felipebalbi felipebalbi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One error left, but I think you already fixed it.

Use fixed-size slice chunks for hexadecimal parsing and integer
conversion so the beta style lint passes without changing remainder
handling.

Assisted-by: GitHub Copilot:claude-opus-4.6
@jerrysxie
jerrysxie dismissed stale reviews from felipebalbi and kurtjd via 45a6e53 August 20, 2026 17:27
@jerrysxie
jerrysxie merged commit 7165bb3 into OpenDevicePartnership:main Aug 20, 2026
9 checks passed
@jerrysxie
jerrysxie deleted the fixing-workflow branch August 20, 2026 19:50
alamfarjadf pushed a commit to alamfarjadf/ec-slimloader that referenced this pull request Aug 26, 2026
…evicePartnership#46)

- Replace the silently passing clippy GH action with direct calls to
clippy
- Fix all the clippy warnings that came up
- Lock down dependencies by checking Cargo.lock into source control and
add `--locked` flag to all CI workflows where it is applicable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants