Skip to content

chore(deps): consolidate Dependabot bumps + upgrade pyo3 0.29 / arrow 59 - #172

Merged
vikrantpuppala merged 2 commits into
mainfrom
chore/consolidate-dependabot-and-pyo3-0.29
Jul 20, 2026
Merged

vikrantpuppala merged 2 commits into
mainfrom
chore/consolidate-dependabot-and-pyo3-0.29

Conversation

@vikrantpuppala

Copy link
Copy Markdown
Collaborator

What

Consolidates the repo's open Dependabot updates into a single change and takes the pyo3 0.29 upgrade that eliminates the RUSTSEC-2026-0176 / -0177 advisories at the source — now possible because arrow-pyarrow 59.1.0 lifted its pyo3 cap to allow 0.29 (it previously capped at ^0.28, which is why the earlier attempt suppressed rather than fixed).

This replaces the suppression-only approach in #159 — no osv-scanner.toml entries needed; the advisories are gone from the dependency tree.

Rust dependency bumps

Crate From To Notes
pyo3 0.26 0.29 fixes RUSTSEC-2026-0176 (OOB read in Bound{List,Tuple}Iterator::nth/nth_back) + RUSTSEC-2026-0177 (missing Sync on PyCFunction::new_closure)
pyo3-log 0.13 0.13.4
arrow-* 57 59 root, pyo3, napi — kept in lock-step
napi / napi-derive 2 3
rand 0.9 0.10
sha2 0.10 0.11
dirs 5 6
dashmap 5 6
lz4_flex 0.11 0.13
anyhow 1.0.102 1.0.103 transitive; fixes RUSTSEC-2026-0190 (Error::downcast_mut unsoundness) — newly published, affected main too

Code changes required by the bumps

  • rand 0.10: random_range moved to the RngExt trait (retry.rs).
  • sha2 0.11: finalize() now returns a hybrid_array::Array with no LowerHex impl → format via hex::encode, and declare hex as a direct dep (previously only transitively available).
  • napi 3: #[napi(string_enum)] no longer derives Copy → add Clone, Copy to AuthMode; ThreadsafeFunction::unref is soft-deprecated → scoped #[allow(deprecated)] on the single call (the weak-TSFN replacement can't be expressed as a #[napi] arg type).

GitHub Actions

SHA-pinned per the hardened-runner convention: actions/checkout v6.0.3, setup-rust-toolchain v1.17.0, taiki-e/install-action v2.83.1, actions/stale v10.4.0, actions/setup-python v6.3.0, astral-sh/setup-uv v8.3.2, actions/upload-artifact v7.0.1.

Verification (local)

  • root: cargo build + clippy -D warnings + cargo test (23 lib + integration) green.
  • pyo3: build + clippy + cargo test (14) + maturin develop + pytest — 6 no-network pass, and 4 live warehouse tests pass including test_range_drains_to_pyarrow_table (the Arrow 59 → pyarrow handoff).
  • napi: lib + release cdylib (LTO) build + clippy -D warnings green. (The Rust test-binary link needs N-API host symbols; that step runs in CI's environment — main fails to test-link locally the same way.)
  • osv-scanner v2.3.8: 0 findings across all three lockfiles.

Supersedes

Dependabot PRs #49, #50, #51, #52, #53, #54, #55, #56, #57, #63, #87, #109, #110, #111, #112, #114, #128, #164. These can be closed once this merges.

This pull request and its description were written by Isaac.

@vikrantpuppala
vikrantpuppala requested a review from a team as a code owner July 17, 2026 12:29
@vikrantpuppala
vikrantpuppala force-pushed the chore/consolidate-dependabot-and-pyo3-0.29 branch from d514883 to 3d3a0ad Compare July 17, 2026 16:44
Consolidates the repo's open Dependabot updates into one change and
takes the pyo3 0.29 upgrade that eliminates the RUSTSEC-2026-0176 /
-0177 advisories at the source (rather than suppressing them) now that
arrow-pyarrow 59.1.0 lifted its pyo3 cap to allow 0.29.

Rust dependency bumps:
  - pyo3 0.26 -> 0.29, pyo3-log -> 0.13.4 (fixes RUSTSEC-2026-0176 OOB
    read in Bound{List,Tuple}Iterator::nth/nth_back and RUSTSEC-2026-0177
    missing Sync bound on PyCFunction::new_closure)
  - arrow-* 57 -> 59 across root, pyo3, and napi crates (kept in
    lock-step to avoid two arrow versions in the graph)
  - napi / napi-derive 2 -> 3
  - rand 0.9 -> 0.10, sha2 0.10 -> 0.11, dirs 5 -> 6, dashmap 5 -> 6,
    lz4_flex 0.11 -> 0.13
  - anyhow dropped from the tree by the lockfile refresh (had been
    1.0.102, affected by the newly-published RUSTSEC-2026-0190
    Error::downcast_mut unsoundness — newly published, affected main too)

Code changes required by the bumps:
  - rand 0.10: `random_range` moved to the `RngExt` trait (retry.rs)
  - sha2 0.11: `finalize()` returns a `hybrid_array::Array` with no
    `LowerHex` impl; format via `hex::encode` and declare `hex` as a
    direct dep (it was previously only transitively available)
  - napi 3: `#[napi(string_enum)]` no longer derives Copy — add
    `Clone, Copy` to `AuthMode`; `ThreadsafeFunction::unref` is
    soft-deprecated — scope an `#[allow(deprecated)]` to the one call

GitHub Actions (SHA-pinned, matching the repo's hardened-runner
convention): actions/checkout v6.0.3, setup-rust-toolchain v1.17.0,
taiki-e/install-action v2.83.1, actions/stale v10.4.0,
actions/setup-python v6.3.0, astral-sh/setup-uv v8.3.2,
actions/upload-artifact v7.0.1.

Verification:
  - root: build + clippy -D warnings + `cargo test` (23 lib + integ) green
  - pyo3: build + clippy + cargo test (14) + `maturin develop` +
    pytest (6 no-network, 4 live warehouse incl. Arrow->pyarrow handoff)
  - napi: lib + release cdylib (LTO) build + clippy -D warnings green
  - osv-scanner v2.3.8: 0 findings across all three lockfiles, no
    osv-scanner.toml suppression needed

Supersedes Dependabot PRs #49-#57, #63, #87, #109-#114, #128, #164.

Co-authored-by: Isaac
Signed-off-by: Vikrant Puppala <vikrant.puppala@databricks.com>
Two CI gates broke after the dependency bumps in this PR; both are
config/CLI issues, not code defects.

napi test (napi-checks.yml): napi-rs 3's `napi::error` references N-API
symbols (`napi_reference_unref`, `napi_call_threadsafe_function`,
`napi_delete_reference`) from a `Drop` impl unconditionally. The
hostless `lib test` executable therefore fails to link on Linux (and
crashes on load under undefined-symbol linking) — napi-build only emits
dynamic-lookup for the cdylib, not test binaries. Add a `dyn-symbols`
passthrough feature (napi/dyn-symbols) that resolves N-API via
libloading with no-op stubs when absent, and enable it only for
`cargo test`. The release cdylib keeps link-time symbols. Verified:
`cargo test --features dyn-symbols` runs 70 tests hostless; release
cdylib still builds without the feature.

License check (license-check.yml): the `taiki-e/install-action` bump
(already on main via #164) pulls a newer cargo-deny whose CLI moved
`--config` to a global flag (before the `check` subcommand). The napi
invocation placed it after `check` and errored with "unexpected
argument '--config'". Move `--config` before `check` (alongside
`--manifest-path`) and pin `cargo-deny@0.20.2` so the CLI grammar can't
drift again from an unpinned install. This also fixes the same breakage
already present on main.

Co-authored-by: Isaac
Signed-off-by: Vikrant Puppala <vikrant.puppala@databricks.com>

@msrathore-db msrathore-db left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@vikrantpuppala
vikrantpuppala added this pull request to the merge queue Jul 20, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jul 20, 2026
@vikrantpuppala
vikrantpuppala added this pull request to the merge queue Jul 20, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jul 20, 2026
@vikrantpuppala
vikrantpuppala added this pull request to the merge queue Jul 20, 2026

This branch was previously deployed

1 inactive deployment
azure-prod — 2504e9f5 Deployed Jul 17, 2026 by vikrantpuppala via PyO3 build + test (Python 3.14) #152
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.

2 participants