Skip to content

CI: diagnose and fix cargo audit and lint failures seen on PR #543 #545

Closed

Description

@Mec-iS

Observed

PR #543 at head afd3369 has two failing checks:

  • cargo audit failed; the separate cargo deny job passed. The Dependency audit history also shows a failed run on main at bbb0b64 (run fix: Change to compile for wasm32-unknown-unknown target #80). This establishes a failure on the base branch, but not that both runs failed for the same reason.
  • lint failed. The PR description reports three pre-existing Clippy findings in src/decomposition/lda.rs and src/tree/base_tree.rs. The job logs could not be verified, so neither the exact lint diagnostics nor the audit failure cause is confirmed.

Triage

Run the workflow commands on the PR revision and on main (bbb0b64), using the same Rust and cargo-audit versions where possible:

cargo generate-lockfile
cargo audit --deny yanked --deny unsound
cargo fmt --all -- --check
cargo clippy --all-features -- -Drust-2018-idioms -Dwarnings
  • Capture the failed audit step and exact error. If it is a dependency finding, record the crate, resolved version, dependency path, and advisory ID if applicable. CI generates a fresh lockfile, so record the resolved versions when comparing runs.
  • Confirm whether the lint failure comes from rustfmt or Clippy. Record the lint names and file/line locations, and check whether they reproduce on main.
  • Fix the confirmed causes without weakening the audit or lint policy. Verify both CI checks pass after the fixes.

Related: #489 (introduced dependency audit CI).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions