Skip to content

chore(ci): add cargo-deny, deny warnings, and dependency policy fixes#59

Merged
shiv-tyagi merged 1 commit into
ROCm:mainfrom
sgopinath1:cargo_deny
Jun 3, 2026
Merged

chore(ci): add cargo-deny, deny warnings, and dependency policy fixes#59
shiv-tyagi merged 1 commit into
ROCm:mainfrom
sgopinath1:cargo_deny

Conversation

@sgopinath1

Copy link
Copy Markdown
Collaborator

Align spur-cloud CI with spur: run cargo deny check, set RUSTFLAGS="-D warnings", and keep clippy --locked with -W clippy::all.

Add deny.toml (licenses, sources allow-git for ROCm/spur, bans) and fix license metadata on workspace crates (license/publish inheritance). Clarify Apache-2.0 for git-sourced spur-proto.

Update Cargo.lock for RUSTSEC advisories (rand 0.8.6+, rustls-webpki 0.103.13, rustls 0.23.40). Pin spur-proto to ROCm/spur v0.3.0 tag.

Resolve Clippy warnings without allow(dead_code) or allow(too_many_arguments): parameter structs for session/Spur client calls, expose DB/API fields, OIDC issuer check, and small lint fixes. Align frontend Session/UserProfile types with the API.

Copilot AI review requested due to automatic review settings June 3, 2026 09:48

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

This PR tightens the Rust CI and dependency policy for spur-cloud by introducing cargo-deny checks, enforcing -D warnings, and updating dependency metadata/lockfile to satisfy advisory and policy requirements.

Changes:

  • Add cargo-deny configuration (deny.toml) and a new CI job to run cargo deny check.
  • Enforce RUSTFLAGS="-D warnings" in CI and align workspace crate metadata (license.workspace, publish.workspace, publish = false).
  • Update dependency constraints and Cargo.lock to pick up security/advisory-related updates (e.g., rand, rustls, rustls-webpki).

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
deny.toml Adds cargo-deny policy (licenses/advisories/bans/sources) including a clarification for spur-proto.
crates/spur-cloud-common/Cargo.toml Inherits workspace license/publish metadata for policy compliance.
crates/spur-cloud-api/Cargo.toml Inherits workspace license/publish metadata for policy compliance.
Cargo.toml Sets workspace publish = false and pins rand minimum to 0.8.6.
Cargo.lock Updates locked dependency graph to newer versions addressing advisories.
.github/workflows/ci.yml Adds a deny job and enforces -D warnings globally in CI.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/ci.yml
shiv-tyagi
shiv-tyagi previously approved these changes Jun 3, 2026

@shiv-tyagi shiv-tyagi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM.

One small thing. Please feel free to address in same PR or a follow up.

Comment thread deny.toml Outdated
Align spur-cloud CI with spur: run cargo deny check, set
RUSTFLAGS="-D warnings", and keep clippy --locked with -W clippy::all.

Add deny.toml (licenses, sources allow-git for ROCm/spur, bans) and
fix license metadata on workspace crates (license/publish inheritance).
Clarify Apache-2.0 for git-sourced spur-proto.

Update Cargo.lock for RUSTSEC advisories (rand 0.8.6+, rustls-webpki
0.103.13, rustls 0.23.40). Pin spur-proto to ROCm/spur v0.3.0 tag.

Resolve Clippy warnings without allow(dead_code) or
allow(too_many_arguments): parameter structs for session/Spur client
calls, expose DB/API fields, OIDC issuer check, and small lint fixes.
Align frontend Session/UserProfile types with the API.
@sgopinath1

Copy link
Copy Markdown
Collaborator Author

LGTM.

One small thing. Please feel free to address in same PR or a follow up.

Addressed it.

@shiv-tyagi shiv-tyagi merged commit 971b7e6 into ROCm:main Jun 3, 2026
5 of 6 checks passed
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.

3 participants