Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
Bump version to 2.6.2-SNAPSHOT (#224)
Browse files Browse the repository at this point in the history
* Fix the release process

* Bumped version to 2.6.2-SNAPSHOT

* Fix docs
  • Loading branch information
BewareMyPower authored Nov 6, 2020
1 parent 803f232 commit f81f7e4
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 26 deletions.
47 changes: 24 additions & 23 deletions docs/release-process.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,17 @@ There has two type of the tags, one is stable `vX.Y.Z(.M)`, and another is unsta

1. Prepare for a release
2. Create the release branch
3. Update the project version and tag
3. Update the project version and pulsar version
4. Build the artifacts
5. Verify the artifacts
6. Release the artifacts using streamnative-ci
7. Write release notes
8. Overwrite the branch
9. Move master branch to the next version
8. Move master branch to the next version

## Steps in detail

> In this section, `X.Y.Z.M` represents a specific version, e.g. `2.6.2.0`.
1. Prepare for a release

Create a new milestone and move the pull requests that can not be published in this release to the new milestone.
Expand All @@ -37,18 +38,16 @@ There has two type of the tags, one is stable `vX.Y.Z(.M)`, and another is unsta
```bash
$ git clone [email protected]:streamnative/kop.git
$ cd kop
$ git checkout -b branch-X.Y.Z
$ git checkout -b bump-pulsar-version
```

3. Update the project version and tag
3. Update the project version and pulsar version

```bash
$ ./scripts/set-project-version.sh X.Y.Z.M
$ ./scripts/set-pulsar-version.sh X.Y.Z.M
$ git commit -m "Release X.Y.Z.M" -a
$ git push origin branch-X.Y.Z
$ git tag vX.Y.Z.M
$ git push origin vX.Y.Z.M
$ git push origin bump-pulsar-version
```

4. Build the artifacts
Expand Down Expand Up @@ -78,11 +77,24 @@ There has two type of the tags, one is stable `vX.Y.Z(.M)`, and another is unsta

After the PR being merged to `master`, you can use streamnative-ci to release the artifacts.

The streamnative-ci needs the specified tag, so we need to push a tag `vX.Y.Z.M` first, as well as the branch:

```bash
$ git clone [email protected]:streamnative/kop.git
$ cd kop
$ git checkout -b branch-X.Y.Z
$ git push origin branch-X.Y.Z
$ git tag vX.Y.Z.M
$ git push origin vX.Y.Z.M
```

Then use streamnative-ci to release the latest KoP:

```bash
$ git clone https://github.com/streamnative/streamnative-ci.git
$ git clone git@github.com:streamnative/streamnative-ci.git
$ cd streamnative-ci
$ git checkout release
$ git commit --allow-empty -m "/snbot release kop X.Y.Z.M"
$ git commit --allow-empty -m "/snbot release kop vX.Y.Z.M"
$ git push origin release
# Then, you can see the release process: https://github.com/streamnative/streamnative-ci/actions
```
Expand All @@ -96,23 +108,12 @@ There has two type of the tags, one is stable `vX.Y.Z(.M)`, and another is unsta
- Feature
- Bug fixed

8. Overwrite the branch

Because the PR may contain multiple commits that will be squashed to a single commit, we need to overwrite the branch after the release.

```bash
$ git clone [email protected]:streamnative/kop.git
$ cd kop
$ git checkout -b branch-X.Y.Z
$ git push origin branch-X.Y.Z -f
```

9. Move master branch to the next version
8. Move master branch to the next version

```bash
$ git checkout -b bump-master
$ ./scripts/set-project-version.sh X.Y.Z-SNAPSHOT
$ git commit -m 'Bumped version to X.Y.Z-SNAPSHOT' -a
$ git commit -m 'Bump version to X.Y.Z-SNAPSHOT' -a
$ git push origin bump-master
# create a PR for this change
```
2 changes: 1 addition & 1 deletion kafka-impl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>io.streamnative.pulsar.handlers</groupId>
<artifactId>pulsar-protocol-handler-kafka-parent</artifactId>
<version>2.6.2.0</version>
<version>2.6.2-SNAPSHOT</version>
</parent>

<groupId>io.streamnative.pulsar.handlers</groupId>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

<groupId>io.streamnative.pulsar.handlers</groupId>
<artifactId>pulsar-protocol-handler-kafka-parent</artifactId>
<version>2.6.2.0</version>
<version>2.6.2-SNAPSHOT</version>
<name>StreamNative :: Pulsar Protocol Handler :: KoP Parent</name>
<description>Parent for Kafka on Pulsar implemented using Pulsar Protocol Handler.</description>

Expand Down
2 changes: 1 addition & 1 deletion tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>io.streamnative.pulsar.handlers</groupId>
<artifactId>pulsar-protocol-handler-kafka-parent</artifactId>
<version>2.6.2.0</version>
<version>2.6.2-SNAPSHOT</version>
</parent>

<groupId>io.streamnative.pulsar.handlers</groupId>
Expand Down

0 comments on commit f81f7e4

Please sign in to comment.