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

build(deps): Bump github.com/cometbft/cometbft-db from 0.7.0 to 0.14.0 #542

Conversation

dependabot[bot]
Copy link

@dependabot dependabot bot commented on behalf of github Aug 12, 2024

Bumps github.com/cometbft/cometbft-db from 0.7.0 to 0.14.0.

Release notes

Sourced from github.com/cometbft/cometbft-db's releases.

v0.14.0

📖 CHANGELOG

v0.13.0

📖 CHANGELOG

v0.12.0

📖 CHANGELOG

v0.11.0

📖 CHANGELOG

v0.10.0

📖 CHANGELOG

v0.9.0

📖 CHANGELOG

v0.8.0

📖 CHANGELOG

Changelog

Sourced from github.com/cometbft/cometbft-db's changelog.

v0.14.0

Aug 9, 2024

This release reinstates boltdb and cleveldb as deprecated backend types. Please note that we discourage the use of them, as we plan to discontinue support in a future release.

DEPENDENCIES

  • reinstate BoltDB and ClevelDB as backend DBs (#177)

v0.13.0

Aug 2, 2024

This release:

  • changes the contract of the Iterator Key() and Value() APIs. Namely, the caller is now responsible for creating a copy of their returned value if they want to modify it.
  • removes support for boltDB and clevelDB, which were marked as deprecated in release v0.12.0.

BREAKING CHANGES

  • removed deprecated boltdb and cleveldb (#155)

FEATURES

  • Iterator Key and Value APIs now return an object that must be copied before use (#168)

v0.12.0

Apr 10, 2024

This release deprecates boltdb and cleveldb. Also, Go MSRV is bumped to 1.22.

FEATURES

  • Deprecate boltdb and cleveldb. If you're using either of those, please reach out (#153)

v0.11.0

Feb 7, 2024

This release adds support for explicit compaction. Please note that badger and bolt do not support this.

BREAKING CHANGES

  • Expanded db interface to support compaction (#111)

... (truncated)

Commits
  • 4d1c572 Release v0.14.0 (#178)
  • 9db1a44 Reinstate BoltDB and ClevelDB as backend DBs (#177)
  • a79d349 Update v0.13.0 Changelog (#176)
  • 4206c01 build(deps): bump golangci/golangci-lint-action from 6.0.1 to 6.1.0 (#173)
  • fa53f97 build(deps): bump docker/setup-buildx-action from 3.4.0 to 3.6.1 (#174)
  • 66f1cd5 build(deps): bump docker/login-action from 3.2.0 to 3.3.0 (#171)
  • 73ce493 updated changelog for release v0.13.0 (#172)
  • 8182c1c Update cometbft-db Go version to 1.22.5 (#169)
  • 8ff6942 feat!: Iterator Key() and Value() no longer return a copy (#168)
  • 20b4a09 build(deps): bump docker/setup-buildx-action from 3.3.0 to 3.4.0 (#167)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Summary by CodeRabbit

  • New Features

    • Updated dependencies to enhance performance, error handling, and functionality within the application.
  • Bug Fixes

    • Upgraded libraries may resolve previous bugs, ensuring better stability and reliability.
  • Chores

    • Routine maintenance of dependencies to ensure security and compatibility with current standards.

Bumps [github.com/cometbft/cometbft-db](https://github.com/cometbft/cometbft-db) from 0.7.0 to 0.14.0.
- [Release notes](https://github.com/cometbft/cometbft-db/releases)
- [Changelog](https://github.com/cometbft/cometbft-db/blob/main/CHANGELOG.md)
- [Commits](cometbft/cometbft-db@v0.7.0...v0.14.0)

---
updated-dependencies:
- dependency-name: github.com/cometbft/cometbft-db
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Aug 12, 2024
Copy link
Author

dependabot bot commented on behalf of github Aug 12, 2024

The following labels could not be found: A:automerge.

Copy link

coderabbitai bot commented Aug 12, 2024

Walkthrough

The updates to the go.mod file reflect a comprehensive upgrade of several dependencies, enhancing functionality and performance. Notable changes include significant version increases for github.com/cometbft/cometbft-db and github.com/dgraph-io/badger, which may introduce new features and optimizations. Overall, these changes aim to improve error handling, concurrency utilities, and tracking capabilities, ensuring the project remains secure and up-to-date.

Changes

File/Dependency Change Summary
github.com/cockroachdb/errors Updated from v1.10.0 to v1.11.3
github.com/cometbft/cometbft-db Updated from v0.7.0 to v0.14.0
golang.org/x/sync Updated from v0.6.0 to v0.7.0
github.com/DataDog/zstd Added new dependency v1.4.5
github.com/cockroachdb/fifo Added new dependency v0.0.0-20240606204812-0bbfbd93a7ce
github.com/cockroachdb/pebble Added new dependency v1.1.1
github.com/dgraph-io/badger/v2 Updated from v2.2007.4 to v4.2.0
github.com/getsentry/sentry-go Updated from v0.23.0 to v0.27.0
go.etcd.io/bbolt Updated from v1.3.7 to v1.3.10

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant Application
    participant Dependencies

    User->>Application: Request for functionality
    Application->>Dependencies: Call updated libraries
    Dependencies-->>Application: Respond with results
    Application-->>User: Return results
Loading

🐰 In the meadow where rabbits hop,
New versions bloom, we can’t stop!
With errors fixed and features bright,
We celebrate with pure delight!
Dependencies fresh, our code takes flight! ✨


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>.
    • 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 generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @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 as 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.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

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

@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

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 40d4293 and 2de1920.

Files ignored due to path filters (1)
  • go.sum is excluded by !**/*.sum
Files selected for processing (1)
  • go.mod (6 hunks)
Additional comments not posted (9)
go.mod (9)

61-61: Verify compatibility with golang.org/x/sync v0.7.0.

Ensure that the update from v0.6.0 to v0.7.0 does not introduce any breaking changes that affect the codebase.


79-79: Verify integration of github.com/DataDog/zstd v1.4.5.

Ensure that the new dependency is correctly integrated and does not introduce any issues.

Verification successful

Integration of github.com/DataDog/zstd v1.4.5 verified.

The dependency is listed as indirect in go.mod and go.sum, indicating it is used by another dependency. There are no direct references in the codebase, which is consistent with its indirect status. No issues found with its integration.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify integration of `github.com/DataDog/zstd` v1.4.5.

# Test: Search for usage of `github.com/DataDog/zstd` in the codebase.
# Expect: Correct integration without issues.
rg --type go 'github.com/DataDog/zstd'

Length of output: 38


Script:

#!/bin/bash
# Description: Check for dependencies that might rely on `github.com/DataDog/zstd`.

# Search for any dependencies in go.mod or go.sum that might require `github.com/DataDog/zstd`.
rg 'github.com/DataDog/zstd' go.mod go.sum

Length of output: 272


21-21: Verify compatibility with github.com/cometbft/cometbft-db v0.14.0.

This major update includes changes and reinstates deprecated backends. Ensure that deprecated features like BoltDB and ClevelDB are not used.

Verification successful

No deprecated features found.

The codebase does not use deprecated features BoltDB and ClevelDB, ensuring compatibility with github.com/cometbft/cometbft-db v0.14.0. No further action is required.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify compatibility with `github.com/cometbft/cometbft-db` v0.14.0.

# Test: Search for usage of `github.com/cometbft/cometbft-db` in the codebase.
# Expect: No usage of deprecated features like `BoltDB` and `ClevelDB`.
rg --type go 'github.com/cometbft/cometbft-db'

Length of output: 5362


Script:

#!/bin/bash
# Description: Check for usage of deprecated features `BoltDB` and `ClevelDB` in the codebase.

# Test: Search for usage of `BoltDB`.
rg --type go 'BoltDB'

# Test: Search for usage of `ClevelDB`.
rg --type go 'ClevelDB'

Length of output: 45


88-88: Verify integration of github.com/cockroachdb/pebble v1.1.1.

Ensure that the new dependency is correctly integrated and does not introduce any issues.


98-98: Verify compatibility with github.com/dgraph-io/badger/v4 v4.2.0.

This major version update may include breaking changes. Ensure that the codebase is compatible with v4.2.0.

Verification successful

No direct usage of github.com/dgraph-io/badger/v4 found in the codebase.

The dependency is listed as indirect in go.mod and go.sum, but there is no direct usage in the Go code files. This suggests minimal risk of breaking changes affecting the current codebase. However, ensure that any indirect dependencies using badger are compatible with version v4.2.0.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify compatibility with `github.com/dgraph-io/badger/v4` v4.2.0.

# Test: Search for usage of `github.com/dgraph-io/badger` in the codebase.
# Expect: No breaking changes in the usage.
rg --type go 'github.com/dgraph-io/badger'

Length of output: 42


Script:

#!/bin/bash
# Search for references to `badger` in go.mod and go.sum files.
rg 'badger' go.mod go.sum

# Search for any comments or indirect usage of `badger` in the codebase.
rg --type go 'badger' -g '!vendor/*' -g '!*_test.go'

Length of output: 329


170-170: Verify compatibility with go.etcd.io/bbolt v1.3.10.

Ensure that the update from v1.3.7 to v1.3.10 does not introduce any breaking changes that affect the codebase.


19-19: Verify compatibility with github.com/cockroachdb/errors v1.11.3.

Ensure that the update from v1.10.0 to v1.11.3 does not introduce any breaking changes that affect the codebase.


104-104: Verify compatibility with github.com/getsentry/sentry-go v0.27.0.

Ensure that the update from v0.23.0 to v0.27.0 does not introduce any breaking changes that affect the codebase.


86-86: Verify integration of github.com/cockroachdb/fifo.

Ensure that the new dependency is correctly integrated and does not introduce any issues.

Copy link
Author

dependabot bot commented on behalf of github Sep 10, 2024

Superseded by #571.

@dependabot dependabot bot closed this Sep 10, 2024
@dependabot dependabot bot deleted the dependabot/go_modules/github.com/cometbft/cometbft-db-0.14.0 branch September 10, 2024 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants