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: maven release #2024

Merged
merged 7 commits into from
Feb 16, 2025
Merged

docs: maven release #2024

merged 7 commits into from
Feb 16, 2025

Conversation

jo-elimu
Copy link
Member

@jo-elimu jo-elimu commented Feb 16, 2025

Issue Number

Purpose

  • Document how to perform a release. Reduce time spent on performing a release.

Technical Details

Testing Instructions

Screenshots


Format Checks

Note

Files in PRs are automatically checked for format violations with mvn spotless:check.

If this PR contains files with format violations, run mvn spotless:apply to fix them.

@jo-elimu jo-elimu self-assigned this Feb 16, 2025
@jo-elimu jo-elimu requested a review from a team as a code owner February 16, 2025 09:25
@jo-elimu jo-elimu requested review from nya-elimu, eymaal and alexander-kuruvilla and removed request for a team February 16, 2025 09:25
Copy link

codecov bot commented Feb 16, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 13.05%. Comparing base (de91980) to head (7d271a8).
Report is 10 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #2024   +/-   ##
=========================================
  Coverage     13.05%   13.05%           
  Complexity      301      301           
=========================================
  Files           257      257           
  Lines          7103     7103           
  Branches        800      800           
=========================================
  Hits            927      927           
  Misses         6126     6126           
  Partials         50       50           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

coderabbitai bot commented Feb 16, 2025

Warning

Rate limit exceeded

@jo-elimu has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 24 minutes and 36 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

Reviewing files that changed from the base of the PR and between d7a2f48 and 7d271a8.

📒 Files selected for processing (1)
  • src/main/config/DEPLOY.md (1 hunks)

Walkthrough

The pull request introduces a new section in the RELEASE.md file that outlines the process for performing a project release. It details how to trigger the release workflow using GitHub Actions, specifically referencing the maven-release.yml file. The section includes guidance for creating release notes, uploading the resulting .war file to JitPack, and executing a deployment script, along with visual aids and links for user assistance. Additionally, a new section titled "Release 📦" has been added to the README.md file, referencing the RELEASE.md document.

Changes

File Change Summary
RELEASE.md Added a new section detailing the release process, including instructions for triggering the GitHub Actions workflow via maven-release.yml, generating release notes, and uploading the .war file to JitPack.
README.md Added a new section titled "Release 📦" that references the RELEASE.md document for information related to the release process.

Suggested reviewers

  • alexander-kuruvilla
  • SnehaHS65
  • vrudas
  • shiv810

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 generate docstrings to generate docstrings for this PR. (Beta)
  • @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
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

🧹 Nitpick comments (4)
RELEASE.md (4)

3-4: Explicit Reference to Workflow File
The reference to the GitHub Actions workflow file (.github/workflows/maven-release.yml) is direct and useful. Consider adding a brief explanation of what users should expect when they navigate to that file—for example, what aspects of the release process it automates.


8-9: Improve Image Accessibility
The inclusion of the image (intended to illustrate the workflow run) is a great visual aid. However, the markdown image syntax could benefit from more descriptive alternative text to enhance accessibility (e.g., ![Screenshot of Run Workflow Button](...)).


10-16: Clear Instructions for Creating Release Notes
The "Create Release Notes 🗒️" section clearly outlines the steps to generate release notes following a release. The direct URL to the tags page and step-by-step guidance are well presented.

  • Suggestion: Include descriptive alt text for the embedded image on line 14 to support accessibility (e.g., ![Screenshot: Create Release]).

24-45: Informative Footer with Consistent Branding
The footer content embeds essential branding elements and navigational links to the website, Wiki, projects, milestones, community, and support. The centered layout and inclusion of logos enhance the document's professional appearance.

  • Suggestion: Ensure that the logo image (line 27) includes proper alternative text for accessibility and consider adding descriptive titles to the links for improved usability.
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between e19a748 and f0221d7.

📒 Files selected for processing (1)
  • RELEASE.md (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (8)
  • GitHub Check: build (windows-latest, 21)
  • GitHub Check: build (windows-latest, 17)
  • GitHub Check: build (macos-latest, 21)
  • GitHub Check: build (macos-latest, 17)
  • GitHub Check: build (ubuntu-latest, 21)
  • GitHub Check: build (ubuntu-latest, 17)
  • GitHub Check: test_rest_ENG
  • GitHub Check: test_ui_ENG
🔇 Additional comments (3)
RELEASE.md (3)

1-2: Clear Title and Introduction
The document opens with a clear and descriptive title ("How to perform a release 📦"). The introductory lines immediately communicate the purpose of the file.


5-7: Direct Workflow Trigger Instructions
The note block provides clear instructions on how to trigger the release workflow via the Actions page. The URL is explicit, and the call-to-action ("Run workflow") is prominent. This is very user-friendly for someone performing a release.


18-23: Usage Section Provides Artifact Information
The "Usage" section efficiently communicates how users can verify the release artifact, with the inclusion of a JitPack badge and instructions on where the .war file is uploaded. This section is concise and self-explanatory.

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

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

34-55: Branding Footer – Consistent & Informative

The HTML block for the branding footer is well-crafted and effectively centers the content with logos and links. Note that while HTML in Markdown is acceptable (especially on GitHub), you might consider using Markdown alternatives for broader compatibility if needed.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between f0221d7 and 5332e99.

📒 Files selected for processing (1)
  • RELEASE.md (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (6)
  • GitHub Check: build (windows-latest, 21)
  • GitHub Check: build (windows-latest, 17)
  • GitHub Check: build (ubuntu-latest, 21)
  • GitHub Check: test_ui_ENG
  • GitHub Check: build (ubuntu-latest, 17)
  • GitHub Check: test_rest_ENG
🔇 Additional comments (5)
RELEASE.md (5)

1-3: Header & Workflow Link – Looks Good

The title and the link to the GitHub Actions workflow (.github/workflows/maven-release.yml) are clear and appropriately presented.


5-8: Release Workflow Note – Clear Instructions

The note block providing guidance on how to trigger the release workflow is concise and visually aided by the image. Ensure that the link to the Actions workflow is accurate and accessible.


10-16: Release Notes Section – Clear Steps

The section "### Create release notes 🗒️" outlines the instructions effectively. The steps for accessing tags and generating release notes are clear. Consider adding a brief note for users on any prerequisites if needed.


18-23: Usage Section – Correct & Informative

The usage section with the JitPack badge and explanation regarding the .war file upload is well-structured. Verify that the JitPack configuration remains current with the deployment pipeline.


32-32: Post-Deployment Instructions – Good Clarity

The explanation that the deployment will restart the web server and the instruction to verify the release version in the footer is straightforward and effective.

@jo-elimu
Copy link
Member Author

@AshishBagdane I've changed the GitHub settings so that code owners (maintainers) with direct write access to the main branch can perform releases without having to open a pull request.

@jo-elimu jo-elimu merged commit a713505 into main Feb 16, 2025
9 checks passed
@jo-elimu jo-elimu deleted the 1792-docs-maven-release branch February 16, 2025 10:01
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