build: bump pyo3 to 0.29 and add a cargo audit config #7327
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
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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
sunchao
Which issue does this PR close?
No tracking issue. Found by running
cargo auditonnative/Cargo.lock.Rationale for this change
cargo auditon 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 makescargo audit --deny warningsa usable signal instead of a list everyone has to re-triage.What changes are included in this PR?
Two commits:
1. Bump
pyo3from 0.28 to 0.29 (resolves to 0.29.3). Fixes RUSTSEC-2026-0176 and RUSTSEC-2026-0177, which affect the optionalpython-udffeature. 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
pprofand 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.ShuffleCodecContextalready resets the session before every frame, which is the upstream fix for RUSTSEC-2026-0391. OnlyDecoder::with_buffer(the read path) is used. Multithreaded compression, dictionaries,try_cloneand the seekable API are unused.- Unmaintained
async-std(criterion, dev-only),paste(proc-macro) andunsafe-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 warningsexits 0 fromnative/.cargo clippy --all-targets --features python-udf -- -D warningspasses on pyo3 0.29.3.python_udfunit 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 thepyarrow_udf_testworkflow.