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

docs: add notes about upgrading for validators in the release notes #4006

Merged
merged 1 commit into from
Oct 24, 2024

Conversation

cmwaters
Copy link
Contributor

Provide some information to validators on signalling to upgrade

@cmwaters cmwaters requested review from liamsi and a team as code owners October 24, 2024 09:59
@cmwaters cmwaters requested review from rootulp and rach-id and removed request for a team October 24, 2024 09:59
@celestia-bot celestia-bot requested a review from a team October 24, 2024 09:59
Copy link
Contributor

coderabbitai bot commented Oct 24, 2024

📝 Walkthrough

Walkthrough

The release notes for version 3.0.0 of the Celestia application have been updated to include new requirements and functionalities for consensus node operators. Key changes include the mandatory use of the BBR congestion control algorithm and the configuration of the ttl-num-blocks parameter in the config.toml file. Additionally, a new x/signal module has been introduced to facilitate network upgrade coordination, allowing validators to signal their intent to upgrade and track the signaling tally. The notes also indicate the relocation of constants in the appconsts package.

Changes

File Path Change Summary
docs/release-notes/release-notes.md Updated to include new requirements for consensus node operators, introduction of x/signal module, commands for signaling upgrades, and relocation of constants.

Possibly related PRs

  • chore: move pending-release to release-notes #3988: This PR updates the release notes for version 3.0.0, specifically mentioning the requirement for consensus node operators to enable the BBR congestion control algorithm and configure the mempool settings, which directly relates to the changes made in the main PR.

Suggested labels

external

Suggested reviewers

  • liamsi
  • ninabarbakadze
  • evan-forbes

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:

‼️ IMPORTANT
Auto-reply has been disabled for this repository in the CodeRabbit settings. The CodeRabbit bot will not respond to your replies unless it is explicitly tagged.

  • 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.

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
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: 1

🧹 Outside diff range and nitpick comments (4)
docs/release-notes/release-notes.md (4)

16-17: Consider adding more context about the x/signal module.

The introduction of the x/signal module could benefit from a brief explanation of its purpose and benefits compared to the previous upgrade mechanism.

- Upgrades now use the `x/signal` module to coordinate the network to an upgrade height.
+ Upgrades now use the `x/signal` module to coordinate network upgrades more efficiently. This module allows validators to signal their upgrade readiness and automatically determines the upgrade height once consensus is reached.

18-22: Add prerequisites for the upgrade signaling command.

The command section should clarify any prerequisites or conditions that must be met before a validator can signal for the upgrade.

-The following command can be used, if you are a validator in the active set, to signal to upgrade to v3
+### Signaling for the Upgrade
+
+Prerequisites:
+- You must be a validator in the active set
+- Your node must be running the latest version
+
+Use the following command to signal your readiness for the v3 upgrade:

39-40: Improve documentation reference formatting.

The reference to module documentation needs better formatting and context.

-For more information refer to the module [docs](../../x/signal/README.md)
+For more information, refer to the [x/signal module documentation](../../x/signal/README.md).
🧰 Tools
🪛 LanguageTool

[uncategorized] ~39-~39: A comma might be missing here.
Context: ...sion 3 at height 2348907. ``` For more information refer to the module [docs](../../x/sign...

(AI_EN_LECTOR_MISSING_PUNCTUATION_COMMA)


34-37: Add error handling example for the upgrade query.

The upgrade query example should include possible error scenarios.

 ```bash
 celestia-appd query signal upgrade
 > An upgrade is pending to app version 3 at height 2348907.
+> # Or when no upgrade is pending:
+> No pending upgrades found.

</blockquote></details>

</blockquote></details>

<details>
<summary>📜 Review details</summary>

**Configuration used: .coderabbit.yaml**
**Review profile: CHILL**

<details>
<summary>📥 Commits</summary>

Files that changed from the base of the PR and between 312def62a1fcb688c30f7f98ae92e81924f3ceee and 47d5a5f22a89bdc17a557b548ff74f1f894b0d29.

</details>

<details>
<summary>📒 Files selected for processing (1)</summary>

* docs/release-notes/release-notes.md (1 hunks)

</details>

<details>
<summary>🧰 Additional context used</summary>

<details>
<summary>🪛 LanguageTool</summary><blockquote>

<details>
<summary>docs/release-notes/release-notes.md</summary><blockquote>

[uncategorized] ~30-~30: This word is normally spelled with a hyphen.
Context: ..., the upgrade will be ready. There is a hard coded delay between confirmation of the upgra...

(HARD_CODE_COMPOUND)

---

[uncategorized] ~30-~30: The preposition ‘of’ seems more likely in this position.
Context: ...nfirmation of the upgrade and execution to the new state machine.   To view the up...

(AI_HYDRA_LEO_REPLACE_TO_OF)

---

[uncategorized] ~39-~39: A comma might be missing here.
Context: ...sion 3 at height 2348907. ```  For more information refer to the module [docs](../../x/sign...

(AI_EN_LECTOR_MISSING_PUNCTUATION_COMMA)

</blockquote></details>

</blockquote></details>
<details>
<summary>🪛 Markdownlint</summary><blockquote>

<details>
<summary>docs/release-notes/release-notes.md</summary><blockquote>

30-30: Expected: 0 or 2; Actual: 1
Trailing spaces

(MD009, no-trailing-spaces)

</blockquote></details>

</blockquote></details>

</details>

</details>

<!-- This is an auto-generated comment by CodeRabbit for review status -->

Comment on lines +30 to +31
Once 5/6+ of the voting power have signalled, the upgrade will be ready. There is a hard coded delay between confirmation of the upgrade and execution to the new state machine.

Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue

Fix grammar and add specifics about the upgrade delay.

The sentence structure needs improvement, and the hard-coded delay should be specified.

-Once 5/6+ of the voting power have signalled, the upgrade will be ready. There is a hard coded delay between confirmation of the upgrade and execution to the new state machine. 
+Once 5/6+ of the voting power has signaled, the upgrade will be confirmed. There is a hard-coded delay of X blocks between the upgrade confirmation and execution of the new state machine.

Committable suggestion was skipped due to low confidence.

🧰 Tools
🪛 LanguageTool

[uncategorized] ~30-~30: This word is normally spelled with a hyphen.
Context: ..., the upgrade will be ready. There is a hard coded delay between confirmation of the upgra...

(HARD_CODE_COMPOUND)


[uncategorized] ~30-~30: The preposition ‘of’ seems more likely in this position.
Context: ...nfirmation of the upgrade and execution to the new state machine. To view the up...

(AI_HYDRA_LEO_REPLACE_TO_OF)

🪛 Markdownlint

30-30: Expected: 0 or 2; Actual: 1
Trailing spaces

(MD009, no-trailing-spaces)

Copy link
Member

@rach-id rach-id left a comment

Choose a reason for hiding this comment

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

some personal opinion nits

The following command can be used, if you are a validator in the active set, to signal to upgrade to v3

```bash
celestia-appd tx signal signal 3 <plus transaction flags>
Copy link
Member

Choose a reason for hiding this comment

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

[personal opinion][nit]

Suggested change
celestia-appd tx signal signal 3 <plus transaction flags>
celestia-appd tx signal signal 3 <transaction flags>

the plus seems a bit redundant

@@ -13,6 +13,31 @@ This guide provides notes for major version releases. These notes may be helpful
sed -i 's/ttl-num-blocks = 5/ttl-num-blocks = 12/' ~/.celestia-app/config/config.toml
```

- Upgrades now use the `x/signal` module to coordinate the network to an upgrade height.

The following command can be used, if you are a validator in the active set, to signal to upgrade to v3
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
The following command can be used, if you are a validator in the active set, to signal to upgrade to v3
The following command can be used, if you are a validator in the active set, to signal to upgrade to v3:

celestia-appd tx signal signal 3 <plus transaction flags>
```

You can track the tally of signalling by validators using the following query
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
You can track the tally of signalling by validators using the following query
You can track the tally of signalling by validators using the following query:

> An upgrade is pending to app version 3 at height 2348907.
```

For more information refer to the module [docs](../../x/signal/README.md)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
For more information refer to the module [docs](../../x/signal/README.md)
For more information refer to the module [docs](../../x/signal/README.md).

@evan-forbes evan-forbes enabled auto-merge (squash) October 24, 2024 11:48
@evan-forbes evan-forbes merged commit b991437 into main Oct 24, 2024
32 checks passed
@evan-forbes evan-forbes deleted the cal/upgrade-docs branch October 24, 2024 11:58
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.

3 participants