8000 [docs] Describe the Cozystack release workflow by NickVolynkin · Pull Request #817 · cozystack/cozystack · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[docs] Describe the Cozystack release workflow #817

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

Merged
merged 1 commit into from
Apr 17, 2025

Conversation

NickVolynkin
Copy link
Collaborator
@NickVolynkin NickVolynkin commented Apr 16, 2025

See preview in https://github.com/cozystack/cozystack/blob/127-document-release-workflow/docs/release.md

Resolves #127

Co-authored-by: Andrei Kvapil kvapss@gmail.com

Signed-off-by: Nick Volynkin nick.volynkin@gmail.com

Summary by CodeRabbit

  • Documentation
    • Added a comprehensive "Release Workflow" section detailing steps for regular and patch releases, including tagging, CI workflows, pull request management, artifact building, and publication.
    • Included diagrams illustrating branching and release flows for improved clarity.

Copy link
Contributor
coderabbitai bot commented Apr 16, 2025

Warning

Rate limit exceeded

@NickVolynkin has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 12 minutes and 39 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 19ce2cf and ffe6109.

📒 Files selected for processing (1)
  • docs/release.md (1 hunks)

Walkthrough

A new "Release Workflow" section has been added to the documentation, detailing the procedures for both regular and patch releases of the Cozystack software. The section describes the steps for tagging, triggering CI workflows, building and publishing artifacts, managing release branches, and finalizing releases. It also explains the differences between regular and patch releases, including the use of cherry-picking for patches. Multiple mermaid diagrams are included to visually illustrate the branching and release processes.

Changes

File(s) Change Summary
docs/release.md Added comprehensive documentation outlining the release workflow for regular and patch releases, including step-by-step instructions and mermaid diagrams.

Sequence Diagram(s)

sequenceDiagram
    participant Maintainer
    participant GitHub
    participant CI
    participant Release Branch
    participant Draft Release Page

    Maintainer->>GitHub: Tag commit on main (vX.Y.Z)
    GitHub->>CI: Trigger release workflow
    CI->>Draft Release Page: Create draft release
    CI->>CI: Build and push container images
    CI->>Release Branch: Commit updated digests (release-x.y.z)
    CI->>GitHub: Open PR to main
    CI->>Draft Release Page: Upload distributive artifacts
    Maintainer->>GitHub: Review & merge PR
    Maintainer->>Draft Release Page: Publish release
    Maintainer->>GitHub: Force-move tag to merge commit
    CI->>GitHub: Final CI check
    Maintainer->>Community: Announce release
Loading
sequenceDiagram
    participant Maintainer
    participant GitHub
    participant CI
    participant Release Branch
    participant Draft Release Page

    Maintainer->>Release Branch: Cherry-pick patch commits
    Maintainer->>GitHub: Tag release branch head (vX.Y.Z+1)
    GitHub->>CI: Trigger patch release workflow
    CI->>Draft Release Page: Create draft release
    CI->>CI: Build and push container images
    CI->>Release Branch: Commit updated digests (release-x.y.z+1)
    CI->>GitHub: Open PR to release branch
    CI->>Draft Release Page: Upload distributive artifacts
    Maintainer->>GitHub: Review & merge PR
    Maintainer->>Draft Release Page: Publish release
    Maintainer->>GitHub: Force-move tag to merge commit
    CI->>GitHub: Final CI check
    Maintainer->>Community: Announce release
Loading

Assessment against linked issues

Objective Addressed Explanation
Describe steps needed to make a release, including branching, tagging, building, and documentation (#127)

Poem

In the warren where releases hop,
A workflow now guides each software drop.
With tags and branches, CI in tow,
Artifacts build as the diagrams show.
Patch or regular, the process is clear,
The path to release brings rabbits cheer!
🐇✨


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ 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.
  • @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 (3)
docs/release.md (3)

8-8: Add a comma for clarity.

Consider adding a comma after "explanation" for improved readability:

-In this explanation we'll use version `v0.42.0` as an example:
+In this explanation, we'll use version `v0.42.0` as an example:
🧰 Tools
🪛 LanguageTool

[typographical] ~8-~8: It appears that a comma is missing.
Context: ...e to make it a release x.y.0. In this explanation we'll use version v0.42.0 as an examp...

(DURING_THAT_TIME_COMMA)


138-138: Correct verb agreement.

Change "CI workflows moves the tag" to "CI workflows move the tag" for proper subject-verb agreement:

-7. CI workflows moves the tag `v0.42.1` to the newly created merge commit. Moving is done by force-pushing to GitHub.
+7. CI workflows move the tag `v0.42.1` to the newly created merge commit. Moving is done by force-pushing to GitHub.
🧰 Tools
🪛 LanguageTool

[grammar] ~138-~138: It seems that the correct verb form here is “move”.
Context: ...e (draftlatest). 7. CI workflows moves the tag v0.42.1 to the newly created ...

(AGREEMENT_SENT_START_2)


139-139: Add a comma for clarity and fix unordered list style.

Add a comma after "in draft" for clarity, and consider using an asterisk for the unordered list to match the rest of the document's style:

-    - Another CI workflow triggers on the new tag push, checks that release is not in draft and stops.
+    * Another CI workflow triggers on the new tag push, checks that release is not in draft, and stops.
🧰 Tools
🪛 LanguageTool

[uncategorized] ~139-~139: Possible missing comma found.
Context: ...tag push, checks that release is not in draft and stops. 8. Maintainer can now announ...

(AI_HYDRA_LEO_MISSING_COMMA)

🪛 markdownlint-cli2 (0.17.2)

139-139: Unordered list style
Expected: asterisk; Actual: dash

(MD004, ul-style)

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 86210c1 and 25a2f0c.

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

[typographical] ~8-~8: It appears that a comma is missing.
Context: ...e to make it a release x.y.0. In this explanation we'll use version v0.42.0 as an examp...

(DURING_THAT_TIME_COMMA)


[uncategorized] ~64-~64: The preposition ‘as’ seems more likely in this position.
Context: ...es: * A release branch is used instead of main * Patch commits are cherry-picke...

(AI_HYDRA_LEO_REPLACE_OF_AS)


[grammar] ~138-~138: It seems that the correct verb form here is “move”.
Context: ...e (draftlatest). 7. CI workflows moves the tag v0.42.1 to the newly created ...

(AGREEMENT_SENT_START_2)


[uncategorized] ~139-~139: Possible missing comma found.
Context: ...tag push, checks that release is not in draft and stops. 8. Maintainer can now announ...

(AI_HYDRA_LEO_MISSING_COMMA)

🪛 markdownlint-cli2 (0.17.2)
docs/release.md

139-139: Unordered list style
Expected: asterisk; Actual: dash

(MD004, ul-style)

🔇 Additional comments (2)
docs/release.md (2)

64-64: Consider rephrasing for clarity.

The phrase "used instead of main" could be clearer as "used as an alternative to main" or "used in place of main." However, the current wording is understandable and not incorrect for technical documentation.

🧰 Tools
🪛 LanguageTool

[uncategorized] ~64-~64: The preposition ‘as’ seems more likely in this position.
Context: ...es: * A release branch is used instead of main * Patch commits are cherry-picke...

(AI_HYDRA_LEO_REPLACE_OF_AS)


1-141: Excellent technical documentation!

The release workflow is described in a clear, detailed, and structured manner. The use of mermaid diagrams is especially helpful for visualizing the process. The steps for both regular and patch releases are well explained and should be easy for maintainers to follow.

🧰 Tools
🪛 LanguageTool

[typographical] ~8-~8: It appears that a comma is missing.
Context: ...e to make it a release x.y.0. In this explanation we'll use version v0.42.0 as an examp...

(DURING_THAT_TIME_COMMA)


[uncategorized] ~64-~64: The preposition ‘as’ seems more likely in this position.
Context: ...es: * A release branch is used instead of main * Patch commits are cherry-picke...

(AI_HYDRA_LEO_REPLACE_OF_AS)


[grammar] ~138-~138: It seems that the correct verb form here is “move”.
Context: ...e (draftlatest). 7. CI workflows moves the tag v0.42.1 to the newly created ...

(AGREEMENT_SENT_START_2)


[uncategorized] ~139-~139: Possible missing comma found.
Context: ...tag push, checks that release is not in draft and stops. 8. Maintainer can now announ...

(AI_HYDRA_LEO_MISSING_COMMA)

🪛 markdownlint-cli2 (0.17.2)

139-139: Unordered list style
Expected: asterisk; Actual: dash

(MD004, ul-style)

docs/release.md Outdated
5. CI workflow triggers on merge:
1. Publishes the release page (`draft` → `latest`).
2. Moves the tag `v0.42.0` to the newly created merge commit by force-pushing a tag to GitHub.
6. Another CI workflow triggers on the new tag push, checks that release is already published, and stops.
Copy link
Member
@kvaps kvaps Apr 16, 2025

Choose a reason for hiding this comment

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

This is not happening because GitHub Actions ignores tags created not by a human, details: #816 (comment)

@NickVolynkin NickVolynkin force-pushed the 127-document-release-workflow branch from 1750ede to 19ce2cf Compare April 16, 2025 16:17
@NickVolynkin NickVolynkin requested a review from kvaps April 16, 2025 16:17
@NickVolynkin NickVolynkin force-pushed the 127-document-release-workflow branch from 19ce2cf to 8e6bfc5 Compare April 16, 2025 16:28
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 (5)
docs/release.md (5)

63-63: Minor language improvement: use "as" instead of "instead of".

Consider rephrasing for clarity and correctness:

"* A release branch is used as main"

However, the intended meaning is likely "A release branch is used instead of main". The current phrasing is correct, but if you want to improve readability, you could say:

"* A release branch is used in place of main"

This is a minor nitpick and does not affect understanding.

🧰 Tools
🪛 LanguageTool

[uncategorized] ~63-~63: The preposition ‘as’ seems more likely in this position.
Context: ...es: * A release branch is used instead of main * Patch commits are cherry-picke...

(AI_HYDRA_LEO_REPLACE_OF_AS)


19-24: Clarify CI asset build step for accuracy.

In step 2.4, clarify that the CI builds release assets from the "Prepare release v0.42.0" commit (not the originally tagged commit), as discussed in previous reviews. This avoids confusion about which commit is used for the distributive artifacts.

Suggested rewording:

"4. Builds Cozystack release assets from the 'Prepare release v0.42.0' commit, uploads them to the release draft page."

This matches the actual workflow and aligns with past reviewer suggestions.


43-44: Clarify tag movement and release publication steps.

For steps 5.1 and 5.2, clarify that the tag is force-moved to the merge commit and the release page is published, as per previous reviewer suggestions. This helps avoid ambiguity about the sequence and mechanics.

Suggested rewording:

"1. Moves the tag v0.42.0 to the newly created merge commit by force-pushing a tag to GitHub."
"2. Publishes the release page (draftlatest)."

This matches the actual workflow and aligns with past reviewer suggestions.


136-137: Clarify patch release tag movement and publication steps.

For patch releases, clarify that the CI workflow moves the tag to the merge commit and publishes the release page, as per previous reviewer suggestions.

Suggested rewording:

"6. CI workflow moves the tag v0.42.1 to the newly created merge commit. Moving is done by force-pushing a tag to GitHub."
"7. CI workflow publishes the release page (draftlatest)."

This ensures consistency and clarity with the regular release section.


24-24: Consistency: Use the same wording for asset build steps in both release types.

For both regular and patch releases, ensure the description of the asset build/upload step is consistent and clear. Use the same phrasing as suggested above for both step 2.4 (regular) and step 3.4 (patch).

Example:

"Builds Cozystack release assets from this commit, uploads them to the release draft page."

This improves clarity and avoids confusion.

Also applies to: 112-112

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 25a2f0c and 19ce2cf.

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

[uncategorized] ~63-~63: The preposition ‘as’ seems more likely in this position.
Context: ...es: * A release branch is used instead of main * Patch commits are cherry-picke...

(AI_HYDRA_LEO_REPLACE_OF_AS)

🔇 Additional comments (1)
docs/release.md (1)

1-139: Overall: Excellent, clear, and thorough documentation of the release workflow.

The document is well-structured, uses diagrams effectively, and provides a step-by-step guide for both regular and patch releases. The process is transparent and should be easy for maintainers to follow.

Minor improvements suggested above are optional and mostly stylistic.

🧰 Tools
🪛 LanguageTool

[uncategorized] ~63-~63: The preposition ‘as’ seems more likely in this position.
Context: ...es: * A release branch is used instead of main * Patch commits are cherry-picke...

(AI_HYDRA_LEO_REPLACE_OF_AS)

Resolves #127

Co-authored-by: Andrei Kvapil <kvapss@gmail.com>

Signed-off-by: Nick Volynkin <
8000
nick.volynkin@gmail.com>
@NickVolynkin NickVolynkin force-pushed the 127-document-release-workflow branch from 8e6bfc5 to ffe6109 Compare April 16, 2025 16:32
@kvaps kvaps merged commit acbfb6a into main Apr 17, 2025
5 checks passed
@kvaps kvaps deleted the 127-document-release-workflow branch April 17, 2025 07:14
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.

Describe steps needed to make a release
2 participants
0