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

Updating release instructions (Lombiq Technologies: OCORE-223) #17499

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

Conversation

Piedone
Copy link
Member

@Piedone Piedone commented Feb 20, 2025

Summary:

  • Aligned the instructions with what we've actually been doing.
  • Whitespace fixes.
  • I'd name the release branches as 2.1.x instead of 2.1 to signify that it's not only for 2.1.0.
  • Unified the same steps across the patch and other instructions.

The #17496 issue shows most of this in action, but I adjusted the template even after that.

@Piedone Piedone requested a review from MikeAlhayek February 20, 2025 01:36
Copy link
Member

@MikeAlhayek MikeAlhayek left a comment

Choose a reason for hiding this comment

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

We no longer use patch version in a release branch. All of our release branches are major.minor only. Please keep it as it was major.minor.

- [ ] Create a **Documentation PR** titled "Release with the new version number" (e.g., `Release 2.1.1`) from the documentation branch (e.g., `release-notes/2.1.1`) into the release branch (e.g., `release/2.1`)
- [ ] Merge the Documentation PR.
- [ ] In GitHub, manually run the `Preview - CI` workflow on your branch (NOT `main`). This will release a new preview version on CloudSmith for testing.
- [ ] From the release branch (e.g., `release/2.1.x`), create a new temporary branch for the version (e.g., `release/2.1.1`).
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
- [ ] From the release branch (e.g., `release/2.1.x`), create a new temporary branch for the version (e.g., `release/2.1.1`).
- [ ] From the release branch (e.g., `release/2.1`), create a new temporary branch for the version (e.g., `release/2.1`).

Copy link
Member Author

Choose a reason for hiding this comment

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

The second branch name is for the patch release. It's deleted after completing it. Previously, the guide contained release-notes/2.1.1 for the same.

- [ ] Merge the PR if all checks pass. If there are merge conflicts, then you'll need to merge to `main` manually using the following steps:
1. Fetch the latest changes from the Git repository.
2. Checkout the `main` branch.
3. Merge the release branch (e.g., `release/2.1.x`) into `main` with a merge commit (NOT a squash merge).
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
3. Merge the release branch (e.g., `release/2.1.x`) into `main` with a merge commit (NOT a squash merge).
3. Merge the release branch (e.g., `release/2.1`) into `main` with a merge commit (NOT a squash merge).

Copy link
Member

Choose a reason for hiding this comment

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

  • Name it something like "Merge release/2.1 into main"

- [ ] Create a **Documentation PR** titled "Release with the new version number" (e.g., `Release 2.1.1`) from the documentation branch (e.g., `release-notes/2.1.1`) into the release branch (e.g., `release/2.1`)
- [ ] Merge the Documentation PR.
- [ ] In GitHub, manually run the `Preview - CI` workflow on your branch (NOT `main`). This will release a new preview version on CloudSmith for testing.
- [ ] From the release branch (e.g., `release/2.1`), create a new temporary branch for the version (e.g., `release/2.1.1`).
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
- [ ] From the release branch (e.g., `release/2.1`), create a new temporary branch for the version (e.g., `release/2.1.1`).
- [ ] From the release branch (e.g., `release/2.1`), create a new temporary branch for the version (e.g., `release-notes/2.1.1`).

This was purposely set to release-notes to distinguish the docs branches from an actual release branch.

Copy link
Member Author

Choose a reason for hiding this comment

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

But it's not just about the release notes. There are other preparations as well, that the guide included already (changing the version numbers in the code, updating the guides), that need to happen in some branch and shouldn't happen directly in the release one.

Copy link
Member

Choose a reason for hiding this comment

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

yes but these are all administrative changes. I am fine with release-notes, if you want to change it, please change it to something other than release this way we don't confuse it with an actual release branch.

Copy link
Member Author

Choose a reason for hiding this comment

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

release-prep?

Copy link
Member

Choose a reason for hiding this comment

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

Sure

Copy link
Member Author

Choose a reason for hiding this comment

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

That's in the template now.


## Step 6: Post-Release Tasks
## Step 7: Post-Release Tasks
Copy link
Member

Choose a reason for hiding this comment

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

If you like the ing, the would Be Posting Release Tasks but I don't like the ing :)

Copy link
Member

Choose a reason for hiding this comment

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

@Piedone this one?

Copy link
Member Author

Choose a reason for hiding this comment

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

Not sure what you mean, sorry. If you mean this I left out: isn't this answered by #17499 (comment)?

Co-authored-by: Mike Alhayek <[email protected]>
@@ -11,67 +11,71 @@ assignees: ''

## Step 1: Backporting Pull Requests

1. **Identify Pull Requests**: Review any pull requests (PRs) that need to be backported to the release branch.
2. **Backporting Process**: For PRs merged into the `main` branch that need to be applied to the release branch (e.g., `release/2.1`), comment on the merged PR with `/backport to release/2.1`. This comment will trigger a GitHub Action to create a new PR with the same changes for the `release/2.1` branch.
1. **Identify Pull Requests**: Review any pull requests (PRs) that need to be backported to the release branch. These should be PRs that contain strictly bug fixes and nothing else.
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
1. **Identify Pull Requests**: Review any pull requests (PRs) that need to be backported to the release branch. These should be PRs that contain strictly bug fixes and nothing else.
1. **Identify Pull Requests**: Review any pull requests (PRs) that need to be backported to the release branch. These should be PRs that contain strict bug fixes and nothing else.

Copy link
Member Author

Choose a reason for hiding this comment

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

This would mean that the bug fixes are strict. But the original is neither correct, should be "strictly contain...".

- [ ] Merge the Documentation PR.
- [ ] In GitHub, manually run the `Preview - CI` workflow on your branch (NOT `main`). This will release a new preview version on CloudSmith for testing.
- [ ] From the release branch (e.g., `release/2.1`), create a new temporary branch for the version (e.g., `release/2.1.1`).
- [ ] Update version references in the documentation and code. Refer to [this PR](https://github.com/OrchardCMS/OrchardCore/pull/17065/files) for an example. The easiest is to start with a search & replace on the previous version. Version Updates Checklist:
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
- [ ] Update version references in the documentation and code. Refer to [this PR](https://github.com/OrchardCMS/OrchardCore/pull/17065/files) for an example. The easiest is to start with a search & replace on the previous version. Version Updates Checklist:
- [ ] Update version references in the documentation and code. Refer to [this PR](https://github.com/OrchardCMS/OrchardCore/pull/17065/files) for an example. The easiest is to start with a search & replace the previous version. Version Updates Checklist:

Copy link
Member Author

Choose a reason for hiding this comment

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

Something needs to be between "search & replace" and "the previous version". I refined it a bit.

Co-authored-by: Hisham Bin Ateya <[email protected]>
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.

4 participants