Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

build(deps:) update celestia-node to v0.13.2 #91

Merged
merged 6 commits into from
Mar 27, 2024

Conversation

tuxcanfly
Copy link
Collaborator

@tuxcanfly tuxcanfly commented Mar 26, 2024

Overview

This PR updates celestia-node to v0.13.2. Also added a deprecation notice after the next release.

Checklist

  • New and updated code has appropriate documentation
  • New and updated code has new and/or updated testing
  • Required CI checks are passing
  • Visual proof for any user facing features like CLI or documentation updates
  • Linked issues closed with keywords

Summary by CodeRabbit

  • Chores
    • Updated Golang version to 1.22 for development and build environments.
    • Updated migration information for deprecating celestia-da and migrating to go-da JSONRPC client.
  • Documentation
    • Updated README to reflect the new required Go version and provided an updated installation link for golangci-lint.
  • New Features
    • Enhanced data encoding in the GetProofs function for improved performance and compatibility.

Copy link

coderabbitai bot commented Mar 26, 2024

Warning

Rate Limit Exceeded

@tuxcanfly has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 3 minutes and 33 seconds before requesting another review.

How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.
Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.
Please see our FAQ for further information.

Commits Files that changed from the base of the PR and between 79db7f2 and 86c100b.

Walkthrough

The updates involve increasing the required Go version to 1.22 and modifying the installation link for golangci-lint. Furthermore, a deprecation notice for celestia-da post v0.13.2 release is introduced, recommending migration to go-da v0.5.0 JSONRPC client for interactions with celestia-node.

Changes

Files Change Summary
README.md Updated required Go version to 1.22 and changed golangci-lint installation link.
migration.md Introduced deprecation of celestia-da after v0.13.2 release, advising migration to go-da v0.5.0 JSONRPC client for celestia-node interaction. Includes instantiation guide and code snippet.

🐰🌟
Code evolves, like a dance in the night,
Versions shift, bringing new light.
celestia-da steps back, go-da takes the lead,
JSONRPC whispers what nodes need.
In the realm of bytes, changes prance,
Progress sings, in the code's elegant dance. 🚀🐇

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-tests 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 tests 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 tests.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

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 a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai help to get help.

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

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • The JSON schema for the configuration file is available here.
  • 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/coderabbit-overrides.v2.json

CodeRabbit Discord Community

Join our Discord Community to get help, request features, and share feedback.

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.

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between b5b95ff and d4165ef.
Files ignored due to path filters (2)
  • go.mod is excluded by: !**/*.mod
  • go.sum is excluded by: !**/*.sum
Files selected for processing (4)
  • .github/workflows/ci_release.yml (1 hunks)
  • Dockerfile (1 hunks)
  • README.md (2 hunks)
  • celestia/celestia.go (2 hunks)
Additional comments: 7
.github/workflows/ci_release.yml (2)
  • 29-29: Updating the Go version to "1.22" in the lint job is a good practice to keep the project up-to-date with the latest Go features and improvements. Ensure that all dependencies and actions used in this workflow are compatible with Go 1.22.
  • 34-34: Updating the Go version to "1.22" in the test job follows the same rationale as the lint job. It's important to verify compatibility with all testing frameworks and dependencies used in this workflow.
Dockerfile (1)
  • 1-1: Updating the Golang version to 1.22 in the Dockerfile is consistent with the updates made in the CI workflow. This ensures that the development environment is up-to-date with the latest Go features and improvements. Make sure to verify that all tools and dependencies installed in the Dockerfile are compatible with Go 1.22.
README.md (2)
  • 20-20: Updating the required Go version to 1.22 in the README.md is important for ensuring users set up their development environment with the correct version. This change aligns with the updates made in the CI workflow and Dockerfile.
  • 81-81: Changing the installation link for golangci-lint to a new URL is a helpful update for users. Please ensure that the new link is accessible and directs users to the correct installation instructions.
celestia/celestia.go (2)
  • 6-6: Importing encoding/json is necessary for using json.Marshal in the GetProofs function. This change aligns with best practices for data serialization in Go.
  • 130-130: Replacing a custom marshaling function with json.Marshal in the GetProofs function is a good practice for leveraging standard library functionalities. Ensure that the data structure being marshaled is fully compatible with json.Marshal and that all necessary fields are correctly annotated for serialization.

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.

Review Status

Actionable comments generated: 3

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between b5b95ff and 65c4668.
Files ignored due to path filters (2)
  • go.mod is excluded by: !**/*.mod
  • go.sum is excluded by: !**/*.sum
Files selected for processing (4)
  • .github/workflows/ci_release.yml (1 hunks)
  • Dockerfile (1 hunks)
  • README.md (2 hunks)
  • celestia/celestia.go (2 hunks)
Files skipped from review as they are similar to previous changes (3)
  • .github/workflows/ci_release.yml
  • Dockerfile
  • celestia/celestia.go
Additional comments: 5
README.md (5)
  • 20-20: The update to specify Go version 1.22 or higher aligns with the PR's objective of ensuring environment compatibility with the new celestia-node version. This change is clear and correctly documented.
  • 81-81: The change in the installation link for golangci-lint from golangci-lint.run/usage/install/ to golangci-lint.run/welcome/install/ is correctly updated to ensure users are directed to the appropriate installation guide. This aligns with the PR's emphasis on code refinements and maintaining up-to-date documentation.
  • 17-23: > 📝 NOTE

This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [1-1]

The document's title "celestia-da" is correctly spelled, but the static analysis tool flagged it as a possible spelling mistake. This is a false positive, as "celestia-da" is the name of the project.

  • 17-23: > 📝 NOTE

This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [2-2]

The sentence starting with "celestia-da is an implementation of the Generic DA interface" does not start with an uppercase letter after the project name. This is a stylistic choice often used in README files where the project name is the first word of the sentence. It's acceptable in this context.

  • 81-84: The static analysis tool flagged unpaired symbols (‘]’) in the list of tools. This is a false positive, as the markdown syntax for links is correctly used. Each tool installation link is properly formatted with both opening and closing square brackets.

README.md Show resolved Hide resolved
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.

Review Status

Actionable comments generated: 6

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 65c4668 and 2d02e09.
Files selected for processing (2)
  • README.md (3 hunks)
  • migration.md (1 hunks)
Additional comments: 2
README.md (2)
  • 22-22: Updating the Go version requirement to 1.22 is a significant change. Verify that all CI/CD pipelines, Dockerfiles, and any build scripts have been updated accordingly.
  • 83-86: The installation links for tools like golangci-lint, markdownlint, hadolint, and yamllint are updated. Ensure that these links are accessible and that the installation instructions on these pages are up-to-date and correct.
Verification successful

The provided URLs for golangci-lint, markdownlint, hadolint, and yamllint in the README.md are accessible. This confirms that the installation links are correctly updated and accessible as per the review comment.

Scripts Executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Check if the provided URLs are accessible.
urls=(
"https://golangci-lint.run/welcome/install/"
"https://github.com/DavidAnson/markdownlint"
"https://github.com/hadolint/hadolint"
"https://yamllint.readthedocs.io/en/stable/quickstart.html"
)
for url in "${urls[@]}"; do
  if ! curl --output /dev/null --silent --head --fail "$url"; then
    echo "URL not accessible: $url"
  else
    echo "URL accessible: $url"
  fi
done

Length of output: 1204

migration.md Outdated Show resolved Hide resolved
migration.md Outdated Show resolved Hide resolved
migration.md Outdated Show resolved Hide resolved
README.md Show resolved Hide resolved
README.md Show resolved Hide resolved
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.

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 2d02e09 and e238f7d.
Files selected for processing (1)
  • migration.md (1 hunks)

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.

Review Status

Actionable comments generated: 2

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between e238f7d and 79db7f2.
Files selected for processing (1)
  • migration.md (1 hunks)
Additional comments: 1
migration.md (1)
  • 26-26: The term "releasenotes" should be written as two separate words or hyphenated for clarity.

migration.md Show resolved Hide resolved
migration.md Outdated Show resolved Hide resolved
Manav-Aggarwal
Manav-Aggarwal previously approved these changes Mar 27, 2024
Copy link
Member

@Manav-Aggarwal Manav-Aggarwal left a comment

Choose a reason for hiding this comment

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

LGTM

@Manav-Aggarwal Manav-Aggarwal added this pull request to the merge queue Mar 27, 2024
Merged via the queue into main with commit 725ac33 Mar 27, 2024
16 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants