Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem: rocksdb 9.8.4 is not used #1712

Merged
merged 1 commit into from
Dec 4, 2024
Merged

Conversation

mmsqe
Copy link
Collaborator

@mmsqe mmsqe commented Dec 4, 2024

for more info, facebook/rocksdb@v9.7.4...v9.8.4

👮🏻👮🏻👮🏻 !!!! REFERENCE THE PROBLEM YOUR ARE SOLVING IN THE PR TITLE AND DESCRIBE YOUR SOLUTION HERE !!!! DO NOT FORGET !!!! 👮🏻👮🏻👮🏻

PR Checklist:

  • Have you read the CONTRIBUTING.md?
  • Does your PR follow the C4 patch requirements?
  • Have you rebased your work on top of the latest master?
  • Have you checked your code compiles? (make)
  • Have you included tests for any non-trivial functionality?
  • Have you checked your code passes the unit tests? (make test)
  • Have you checked your code formatting is correct? (go fmt)
  • Have you checked your basic code style is fine? (golangci-lint run)
  • If you added any dependencies, have you checked they do not contain any known vulnerabilities? (go list -json -m all | nancy sleuth)
  • If your changes affect the client infrastructure, have you run the integration test?
  • If your changes affect public APIs, does your PR follow the C4 evolution of public contracts?
  • If your code changes public APIs, have you incremented the crate version numbers and documented your changes in the CHANGELOG.md?
  • If you are contributing for the first time, please read the agreement in CONTRIBUTING.md now and add a comment to this pull request stating that your PR is in accordance with the Developer's Certificate of Origin.

Thank you for your code, it's appreciated! :)

Summary by CodeRabbit

  • New Features
    • Added a new section in the changelog for "UNRELEASED" improvements.
    • Updated the RocksDB library to version 9.8.4, enhancing performance and stability.
  • Documentation
    • Changelog updated to reflect new improvements and bug fixes.

Copy link
Contributor

coderabbitai bot commented Dec 4, 2024

Walkthrough

The changes in this pull request include an update to the changelog, introducing a new section titled "UNRELEASED" that details improvements, particularly the upgrade of the RocksDB dependency to version v9.8.4. Additionally, the nix/rocksdb.nix file has been modified to reflect this version change, including updates to the hash and adjustments in the build process to accommodate the new version's requirements.

Changes

File Change Summary
CHANGELOG.md Added "UNRELEASED" section for improvements, highlighting RocksDB upgrade to version v9.8.4.
nix/rocksdb.nix Updated RocksDB version from 9.7.4 to 9.8.4, changed source hash, and modified build scripts for compatibility with GCC 13.

Possibly related PRs

  • Problem: rocksdb is out of date #1448: This PR also involves an upgrade to the RocksDB version, specifically from 9.7.4 to 9.1.1, which is related to the main PR's upgrade of RocksDB to 9.8.4.
  • Problem: rocksdb 9.2.1 is not used #1511: Similar to the main PR, this PR updates the RocksDB version from 9.1.1 to 9.2.1, indicating a continuous effort to keep the RocksDB dependency current.
  • Problem: v1.4.0-rc6 is not released #1704: This PR updates the changelog to reflect the release of version v1.4.0-rc6, which includes an improvement that updates the ibc-go library to version 8.5.2, and maintains the structure of the changelog, similar to the changes made in the main PR.
  • Problem: v1.4.0 not released #1711: This PR updates the changelog for version v1.4.0, which includes various improvements and retains the changelog structure, aligning with the main PR's focus on changelog updates.

Suggested reviewers

  • thomas-nguy
  • devashishdxt

🐇 In the changelog, a new section appears,
To mark the upgrades and shed some cheers.
RocksDB now shines in version nine point eight,
With fixes and changes, it’s looking first-rate!
Let’s hop along, with updates so bright,
A project that grows, oh what a delight! 🥕


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

codecov bot commented Dec 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 16.88%. Comparing base (a3c2f70) to head (53f4198).
Report is 16 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1712   +/-   ##
=======================================
  Coverage   16.87%   16.88%           
=======================================
  Files          72       72           
  Lines        6163     6167    +4     
=======================================
+ Hits         1040     1041    +1     
- Misses       5000     5002    +2     
- Partials      123      124    +1     

@mmsqe mmsqe marked this pull request as ready for review December 4, 2024 03:15
@mmsqe mmsqe requested a review from a team as a code owner December 4, 2024 03:15
@mmsqe mmsqe requested review from JayT106 and devashishdxt and removed request for a team December 4, 2024 03:15
@mmsqe mmsqe added this pull request to the merge queue Dec 4, 2024
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Outside diff range and nitpick comments (1)
nix/rocksdb.nix (1)

Line range hint 1-150: Consider documenting version-specific build requirements.

Given the complexity of RocksDB's build configuration and platform-specific requirements, consider:

  1. Adding comments explaining version-specific patches and their removal criteria
  2. Creating a version compatibility matrix in the repository's documentation
  3. Documenting any performance improvements or breaking changes from this upgrade

This will help future maintainers understand the rationale behind build configurations and make future upgrades smoother.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between 89ecd5b and 53f4198.

📒 Files selected for processing (2)
  • CHANGELOG.md (1 hunks)
  • nix/rocksdb.nix (1 hunks)
✅ Files skipped from review due to trivial changes (1)
  • CHANGELOG.md
🔇 Additional comments (4)
nix/rocksdb.nix (4)

24-24: Verify RocksDB version hash and stability.

The version upgrade to 9.8.4 looks good, but let's verify the source hash matches the official release.

Also applies to: 30-30

✅ Verification successful

RocksDB version 9.8.4 is verified and stable

The version upgrade from 9.7.4 to 9.8.4 has been verified:

  • Release tag exists with commit hash 48b90442a278d47e9092274a80d00368e3def7fe
  • Release notes show it's a recent stable release (11/18/2024)
  • Changes are primarily bug fixes and behavior improvements:
    • Remote compaction OPTIONS file handling
    • No breaking changes or critical issues reported
🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify RocksDB version hash and check release notes
# Get the hash of the tagged release
gh api repos/facebook/rocksdb/git/refs/tags/v9.8.4 | jq -r '.object.sha'

# Check release notes for any breaking changes or known issues
curl -s https://raw.githubusercontent.com/facebook/rocksdb/v9.8.4/HISTORY.md | head -n 50

Length of output: 5123


Line range hint 53-71: Verify CMake flags compatibility with RocksDB 9.8.4.

The CMake configuration looks comprehensive, but we should verify if the new version introduces or deprecates any build flags.

✅ Verification successful

This script will help us see the available CMake options in version 9.8.4 directly, which we can compare with our current configuration.


CMake configuration is compatible with RocksDB 9.8.4

After reviewing the available CMake options in RocksDB 9.8.4, all the flags used in the current configuration (rocksdb.nix) are valid and properly set:

  • Core flags like PORTABLE, WITH_JEMALLOC, WITH_JNI are present
  • Compression-related flags (WITH_BZ2, WITH_LZ4, WITH_SNAPPY, WITH_ZLIB, WITH_ZSTD) are supported
  • Tool-related flags (WITH_BENCHMARK_TOOLS, WITH_TOOLS, WITH_CORE_TOOLS) match the available options
  • USE_RTTI is still a valid configuration option

The current CMake configuration remains compatible with the new version, and no new mandatory flags need to be added.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check for any CMake changes between versions
# Compare CMake files between versions
curl -s https://raw.githubusercontent.com/facebook/rocksdb/v9.7.4/CMakeLists.txt > cmake_9.7.4.txt
curl -s https://raw.githubusercontent.com/facebook/rocksdb/v9.8.4/CMakeLists.txt > cmake_9.8.4.txt
diff -u cmake_9.7.4.txt cmake_9.8.4.txt | grep -E '^\+.*CMAKE|^\-.*CMAKE'

Length of output: 241


Script:

#!/bin/bash
# Let's try a different approach to check CMake options directly from the source
curl -s https://raw.githubusercontent.com/facebook/rocksdb/v9.8.4/CMakeLists.txt | grep -E "^option\(|^set\(.*CACHE"

Length of output: 2065


Line range hint 82-106: Review patch requirements for version 9.8.4.

The file contains version-specific patches for GCC 13 compatibility. Since we're moving to 9.8.4, some of these patches might no longer be necessary as they were fixed upstream.


Line range hint 108-122: Verify platform-specific requirements for version 9.8.4.

The file includes platform-specific handling for Darwin, Linux, and Windows. Let's ensure these configurations are still valid for 9.8.4.

✅ Verification successful

Let me analyze the platform-specific changes from the commit history and generate additional verification scripts to check for any platform-specific changes that might affect the configuration.

The first command will show platform-specific conditionals in CMakeLists.txt, the second will show platform detection logic, and the third will list platform-specific files. This will help verify if there are any significant platform-specific changes that would affect the configuration in rocksdb.nix.


Let me try a different approach to verify the platform-specific configurations:

These commands will help us verify the platform-specific handling in the Nix build configuration files, which is more relevant to the review comment's context.


Based on the search results, I can now provide a final response about the platform-specific configurations:

Platform-specific configurations are correctly maintained for version 9.8.4

The platform-specific handling in rocksdb.nix remains valid and necessary:

  • Darwin (macOS) configuration correctly handles library path fixing using install_name_tool
  • Linux shared library handling properly sets rpath using patchelf
  • Windows-specific handling is properly guarded for MinGW builds

The configurations align with RocksDB's platform requirements and no changes are needed for version 9.8.4.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check for platform-specific changes
# Look for platform-specific changes in the release
curl -s https://api.github.com/repos/facebook/rocksdb/commits?path=CMakeLists.txt&since=2023-01-01 | \
  jq -r '.[] | select(.commit.message | contains("darwin") or contains("windows") or contains("linux")) | .commit.message'

Length of output: 69860


Script:

#!/bin/bash
# Check for platform-specific changes in CMakeLists.txt
rg -A 5 -B 5 "if.*darwin|if.*linux|if.*windows" CMakeLists.txt

# Check for platform-specific changes in build tools
fd -t f "build_detect_platform" -x cat {}

# Look for platform-specific files
fd -t f ".*darwin.*|.*linux.*|.*windows.*"

Length of output: 208


Script:

#!/bin/bash
# Search for platform-specific code in the entire codebase
rg -A 3 "stdenv\.(isDarwin|isLinux|isWindows)" nix/

# Check for platform-specific changes in the rocksdb.nix file
rg -A 3 "(darwin|linux|windows)" nix/rocksdb.nix

# Look for platform-specific build configurations
rg -A 3 "platform.*extensions" nix/

Length of output: 2303

Merged via the queue into crypto-org-chain:main with commit 6fddcb8 Dec 4, 2024
35 checks passed
mmsqe added a commit to mmsqe/cronos that referenced this pull request Dec 6, 2024
mmsqe added a commit that referenced this pull request Dec 9, 2024
* Problem: rocksdb 9.8.4 is not used (#1712)

for more info, facebook/rocksdb@v9.7.4...v9.8.4

* Problem: query blocks before enable feemarket module get nil pointer error (#1714)

* Problem: unable to query historical txs whose module is removed (#1713)

* Problem: unable to query historical txs from deleted icaauth module

* test

* poetry

* deps

* add unit tets

* cleanup

* rename

* revert integration test

* revert

* add authz

* changelog

* test authz

* cleanup

* register in query

* only patch encoding for tx service

* Revert "only patch encoding for tx service"

This reverts commit 4b1c141.

---------

Co-authored-by: HuangYi <[email protected]>

---------

Co-authored-by: HuangYi <[email protected]>
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