opensearch-project / opensearch-java

Java Client for OpenSearch
Apache License 2.0
105 stars 169 forks source link

Document version auto-increment and fix typos. #1039

Closed dblock closed 6 days ago

dblock commented 1 week ago

Description

Document version auto-increment and fix typos.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. For more information on following Developer Certificate of Origin and signing off your commits, please check here.

dblock commented 1 week ago

@reta @Xtansia I think I am getting confused to what's supposed to happen in which order for the release.

  1. If I am releasing a 2.10.5, which branch is that supposed to happen on?
  2. If I am releasing a 2.11.0, which branch is that supposed to happen on?
  3. How do the instruction change for CHANGELOG, where do you make the changes first?
reta commented 1 week ago

@reta @Xtansia I think I am getting confused to what's supposed to happen in which order for the release.

I think the branch versioning was a bit messed up:

So the sequence we follow for releases is:

dblock commented 1 week ago

Ok, @reta take a look at the updated instructions, does this capture this process?

reta commented 1 week ago

Ok, @reta take a look at the updated instructions, does this capture this process?

It does (in my opinion), thanks @dblock !

Xtansia commented 1 week ago

I don't know about the Java client, it looks like it's been doing branches per patch version off of 2.x. Normally for OpenSearch and at least the Rust & .NET clients, the branching is (assuming 2.10.4 is latest released):

Then releasing a new patch is:

  1. Commit changelog to 2.10
  2. Tag v2.10.5 on 2.10
  3. Auto build & release v2.10.5
  4. Auto-increments 2.10 to developing 2.10.6-SNAPSHOT

Releasing a new minor:

  1. Commit changelog to 2.x
  2. Tag v2.11.0 on 2.x
  3. Auto build & release v2.11.0
  4. Auto-increment 2.x to developing 2.12.0-SNAPSHOT
  5. Auto-branch and increment 2.11 to developing 2.11.1-SNAPSHOT

Releasing a new major:

  1. Commit changelog to main
  2. Tag v3.0.0 on main
  3. Auto build & release v3.0.0
  4. Auto-increment main to developing 4.0.0-SNAPSHOT
  5. Auto-branch and increment 3.x to developing 3.1.0-SNAPSHOT
  6. Auto-branch and increment 3.0 to developing 3.0.1-SNAPSHOT

.NETs Bump Version Workflow: https://github.com/opensearch-project/opensearch-net/blob/main/.github/workflows/bump-version.yml

dblock commented 1 week ago

@Xtansia I think yours is clearer, take a look at the update please?