Skip to content

*: upgrade zstd-sys to 2.1.2 - #866

Merged
ti-chi-bot[bot] merged 1 commit into
tikv:masterfrom
LykxSassinator:fix/zstd-sys-2.1.2
Oct 27, 2026
Merged

ti-chi-bot[bot] merged 1 commit into
tikv:masterfrom
LykxSassinator:fix/zstd-sys-2.1.2

Conversation

@LykxSassinator

@LykxSassinator LykxSassinator commented Oct 27, 2026 •

Copy link
Copy Markdown

Descriptions

Require the patched zstd-sys release in both the RocksDB and Titan native bindings. This raises the bundled zstd library from 1.5.6 to 1.5.7 and removes the old upper bound that prevented downstream dependency upgrades.

Addresses RUSTSEC-2026-0410 in zstd-sys. Rust zstd and zstd-safe wrapper advisories still require separate downstream dependency upgrades.

Validated the native build and focused compression, Titan blob, and Zstd compaction tests with encryption,portable on macOS ARM64.

Summary by CodeRabbit

  • Chores
    • Updated internal build configuration for the storage components. This change does not alter application features, workflows, or user-facing behavior, and no changes to public interfaces are included. Existing functionality remains available as before, with no additional steps required. These notes reflect the scope of the changes provided; no new user-facing capabilities or behavior changes are described.

Require the patched zstd-sys release in both the RocksDB and Titan native bindings. This raises the bundled zstd library from 1.5.6 to 1.5.7 and removes the old upper bound that prevented downstream dependency upgrades.

Addresses RUSTSEC-2026-0410 in zstd-sys. Rust zstd and zstd-safe wrapper advisories still require separate downstream dependency upgrades.

Validated the native build and focused compression, Titan blob, and Zstd compaction tests with encryption,portable on macOS ARM64.

Signed-off-by: lucasliang <nkcs_lykx@hotmail.com>
@ti-chi-bot ti-chi-bot Bot added the dco-signoff: yes Indicates the PR's author has signed the dco. label Oct 27, 2026
@coderabbitai

coderabbitai Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 1db208b2-e571-4099-8fb9-c10aa06c03c7
Commits

Reviewing files that changed from the base of the PR and between 25e516a and a23b35b.

Files selected for processing: 2
  • librocksdb_sys/Cargo.toml
  • librocksdb_sys/libtitan_sys/Cargo.toml

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.

Walkthrough

Both Rust binding manifests change the zstd-sys dependency requirement from a bounded version range to 2.1.2.

Changes: zstd-sys Version Update

Layer / File(s) Summary
Update zstd-sys requirements
librocksdb_sys/Cargo.toml, librocksdb_sys/libtitan_sys/Cargo.toml
Both manifests change the zstd-sys requirement to 2.1.2.

Priority: Normal

Estimated code review effort: 1 (Trivial) | ~4 minutes

Change: Other

Possibly related issues

  • tikv/tikv issue 20333: This pull request updates zstd-sys to 2.1.2, which the issue identifies as addressing the zstd-sys advisory. Wrapper upgrades remain separate.
Merge Risk: Minimal · up to a23b3

No actionable merge-blocking risk is identified in this dependency-only change.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "*: upgrade zstd-sys to 2.1.2" names the main change. Both librocksdb_sys/Cargo.toml and librocksdb_sys/libtitan_sys/Cargo.toml replace the bounded zstd-sys range with the exact version 2.1.…
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Documentation-only edits and deletions within survi…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title ": upgrade zstd-sys to 2.1.2" names the main change. Both librocksdb_sys/Cargo.toml and librocksdb_sys/libtitan_sys/Cargo.toml replace the bounded zstd-sys range with the exact version 2.1.2. The PR objectives confirm the goal is raising the bundled Zstd library from 1.5.6 to 1.5.7 and removing the upper bound. The title is specific and matches the changeset. The scope prefix ":" is a generic wildcard rather than a named component, which is a minor style issue and does not affect the result.

Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 0 files. (2 skipped: 2 unsupported.)

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@ti-chi-bot ti-chi-bot Bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Oct 27, 2026
@ti-chi-bot ti-chi-bot Bot added the lgtm label Oct 27, 2026
@ti-chi-bot

ti-chi-bot Bot commented Oct 27, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ekexium

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot

ti-chi-bot Bot commented Oct 27, 2026

Copy link
Copy Markdown

[LGTM Timeline notifier]

Timeline:

  • 2026-10-27 07:47:50.982309876 +0000 UTC m=+447608.474022135: ☑️ agreed by ekexium.

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

Labels

approved dco-signoff: yes Indicates the PR's author has signed the dco. lgtm size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants