← Back to Pull requests

build: bump pyo3 to 0.29 and add a cargo audit config #7327

Closed
unknown closed this pull request without merging on Oct 30, 2026 14:22 UTC
View on GitHub
unknown unknown commented on Oct 29, 2026 22:13 UTC
Author

Which issue does this PR close?

No tracking issue. Found by running cargo audit on native/Cargo.lock.

Rationale for this change

cargo audit on main reports 10 vulnerabilities and 13 warnings. Only the pyo3 ones can be fixed from Comet's own manifests. The rest are in third-party crates pinned by DataFusion, arrow, or object_store, or are dev-only, or do not apply to how Comet uses the crate. Recording why in a checked-in config makes cargo audit --deny warnings a usable signal instead of a list everyone has to re-triage.

What changes are included in this PR?

Two commits:

1. Bump pyo3 from 0.28 to 0.29 (resolves to 0.29.3). Fixes RUSTSEC-2026-0176 and RUSTSEC-2026-0177, which affect the optional python-udf feature. No source changes were needed.
2. Add native/.cargo/audit.toml, which ignores the remaining advisories by ID, each with the reason and what unblocks removing it:
- quick-xml (RUSTSEC-2026-0194 and RUSTSEC-2026-0195): fixed in quick-xml 0.41, which object_store 0.14 requires. Blocked on DataFusion moving to object_store 0.14. The 0.26 copy comes from pprof and is dev-only.
- rsa (RUSTSEC-2023-0071): no fixed release exists. Reached only through reqsign credential signing.
- zstd and zstd-safe (RUSTSEC-2026-0391, -0398, -0403 and the nine unsound warnings): fixed in zstd 0.14.3 and zstd-safe 8.2, but arrow-ipc 59 pins zstd ^0.13. Blocked on the arrow 60 upgrade. None applies to Comet's use. ShuffleCodecContext already resets the session before every frame, which is the upstream fix for RUSTSEC-2026-0391. Only Decoder::with_buffer (the read path) is used. Multithreaded compression, dictionaries, try_clone and the seekable API are unused.
- Unmaintained async-std (criterion, dev-only), paste (proc-macro) and unsafe-libyaml (log4rs).

The ignores are by advisory ID rather than by crate, so a new advisory against the same crate still fails the audit.

How are these changes tested?

  • cargo audit --deny warnings exits 0 from native/.

  • cargo clippy --all-targets --features python-udf -- -D warnings passes on pyo3 0.29.3.

  • Of the python_udf unit tests, the 4 that do not need pyarrow pass. The other 11 need pyarrow, which could not be installed in my environment, so they are left to the pyarrow_udf_test workflow.
  • Diff: 290 lines (+217 / -73) across 3 files Reviewer: sunchao Review duration: 969m
    All Vouch review confidence checks passed
    Residual risk 0.25 = Change Risk (0.63) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.63 · 290 lines diff across 3 files
    0.63
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.339
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.063
    Real PR Conversation Timeline
    1 comments
    "Review active on #7327"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed sensitive_module
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 63% (MEDIUM) · Higher = larger blast radius
    63%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 24.9% · Safe to merge
    24.9%