Skip to content

docs: add details for experimental releases #2946

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

khancode
Copy link
Collaborator

High Level Overview of Change

Add details for experimental releases.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Refactor (non-breaking change that only restructures code)
  • Tests (You added tests for code that already exists, or your new feature included in this PR)
  • Documentation Updates
  • Release

Did you update HISTORY.md?

  • Yes
  • No, this change does not impact library users

Test Plan

@khancode khancode requested review from Patel-Raj and ckeshava March 24, 2025 21:52
Copy link

coderabbitai bot commented Mar 24, 2025

Walkthrough

This update introduces a new guideline to the CONTRIBUTING.md file. The guideline specifies that experimental releases must have a git tag combining the version number with the feature name, and it includes an example for the MPT beta release. No existing content was removed or modified.

Changes

File Change Summary
CONTRIBUTING.md Added a guideline for experimental release tagging that requires both the version number and feature name, with an example provided for the MPT beta release.

Suggested reviewers

  • ckeshava
  • Patel-Raj

Poem

I'm a rabbit with a skip and a hop,
New guidelines in CONTRIBUTING.md make my heart pop!
Experimental tags now dance with flair,
Like carrots and code floating in the air.
With each bug squashed, I forever cheer—🐰💻
Hop along, let progress be clear!
ASCII smiles lead the way, oh dear!

Tip

⚡💬 Agentic Chat (Pro Plan, General Availability)
  • We're introducing multi-step agentic chat in review comments and issue comments, within and outside of PR's. This feature enhances review and issue discussions with the CodeRabbit agentic chat by enabling advanced interactions, including the ability to create pull requests directly from comments and add commits to existing pull requests.

🪧 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 generate docstrings to generate docstrings for this 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

@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

🧹 Nitpick comments (1)
CONTRIBUTING.md (1)

258-259: Clear Enhancement for Experimental Release Tagging

The new guideline specifying that experimental release git tags should include both the version number and the feature name (with an illustrative example for the MPT beta release) makes the process more explicit. To further improve clarity, consider adding a brief note explicitly stating that this convention applies only to experimental releases, contrasting it with the standard tagging for stable releases.

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 7fe27f3 and 8d893b1.

📒 Files selected for processing (1)
  • CONTRIBUTING.md (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (5)
  • GitHub Check: snippets (22.x)
  • GitHub Check: snippets (20.x)
  • GitHub Check: snippets (18.x)
  • GitHub Check: unit (20.x)
  • GitHub Check: browser (18.x)

@@ -255,6 +255,8 @@ This should almost always be done using the [`xrpl-codec-gen`](https://github.co
NOW YOU HAVE PUBLISHED! But you're not done; we have to notify people!

1. Run `git tag <tagname> -m <tagname>`, where `<tagname>` is the new package and version (e.g. `[email protected]`), for each version released.

For experimental releases, the git tagname should include its own version number along with feature name. Here's an example for [MPT beta release](https://github.com/XRPLF/xrpl.js/releases/tag/xrpl%401.0.1-mpt-beta).
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm trying to understand the differences between a usual release and an experimental release. Why was the MPT feature not release with the normal semver nomenclature? Why do we need to do experimental releases at all?

Should we follow the rc-1, 2, ... system of "release candidate" names instead?

Copy link
Collaborator Author

@khancode khancode Mar 25, 2025

Choose a reason for hiding this comment

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

It prevents disruption of the version of a normal release. For example, normal version is 2.4.0, we add an experimental feature with the version 2.5.0-beta. However, if we decide to do a normal release without the experimental feature being 2.5.0, then it wouldn't be accurate. That's why it's better for the feature to use its own version.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm still confused. After the release of the experimental feature (titled, say 2.5.0-mpt), what would be the next version? How do we indicate the continuity of the versioning system? Suppose the next release is 2.5.1, users do not know if mpt feature is included in the 2.5.1 release.

Why do we need to consider experimental features? A feature will either be included (if it gains 80% UNL majority vote on the mainnet for 2 weeks) or not. Since this is a binary decision, why should we account for an "experimental feature" ? In this example, the MPT (or) AMM feature would definitely be enabled on the XRPL Mainnet within a pre-determined time frame.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The 2.5.0 is a counter-example. An experimental feature would have its own version like the MPT example that's in this PR.

There have been cases where experimental features (AMM, Sidechains) would take awhile to develop such that we would do incremental beta releases for them. They usually would have their own devnets. In the meantime, we would still do the normal releases with other features/fixes. Therefore, having separate versions fixes this issue.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think it's fine to have experimental feature with its own version in case the feature will not be on the next release

@khancode khancode requested a review from ckeshava March 25, 2025 19:31
@@ -255,6 +255,8 @@ This should almost always be done using the [`xrpl-codec-gen`](https://github.co
NOW YOU HAVE PUBLISHED! But you're not done; we have to notify people!

1. Run `git tag <tagname> -m <tagname>`, where `<tagname>` is the new package and version (e.g. `[email protected]`), for each version released.

For experimental releases, the git tagname should include its own version number along with feature name. Here's an example for [MPT beta release](https://github.com/XRPLF/xrpl.js/releases/tag/xrpl%401.0.1-mpt-beta).
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: maybe we should mention that the feature name should not be beta or rc to avoid confusion. I will leave it up to you.

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

🧹 Nitpick comments (1)
CONTRIBUTING.md (1)

253-253: Minor grammar improvement and optional clarification on feature names.

The new instruction is clear and helpful. For improved clarity and correctness, consider changing "along with feature name" to "along with the feature name".

Optionally, to avoid confusion, you may want to add a note that the feature name should not be "beta" or "rc", as suggested in a previous review.

Example revision:

-For experimental releases, the git tagname should include its own version number along with feature name. Here's an example for [MPT beta release](https://github.com/XRPLF/xrpl.js/releases/tag/xrpl%401.0.1-mpt-beta).
+For experimental releases, the git tagname should include its own version number along with the feature name (avoid using "beta" or "rc" as the feature name to prevent confusion). Here's an example for [MPT beta release](https://github.com/XRPLF/xrpl.js/releases/tag/xrpl%401.0.1-mpt-beta).
🧰 Tools
🪛 LanguageTool

[uncategorized] ~253-~253: You might be missing the article “the” here.
Context: ...clude its own version number along with feature name. Here's an example for [MPT beta r...

(AI_EN_LECTOR_MISSING_DETERMINER_THE)

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 8d893b1 and 54d722b.

📒 Files selected for processing (1)
  • CONTRIBUTING.md (1 hunks)
🧰 Additional context used
🪛 LanguageTool
CONTRIBUTING.md

[uncategorized] ~253-~253: You might be missing the article “the” here.
Context: ...clude its own version number along with feature name. Here's an example for [MPT beta r...

(AI_EN_LECTOR_MISSING_DETERMINER_THE)

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.

5 participants