This document explains the release strategy for artifacts in this organization.
Given the current major release of 1.0, projects in this organization maintain the following active branches.
- main: The next major release. This is the branch where all merges take place and code moves fast.
- 1.x: The next minor release. Once a change is merged into
main, decide whether to backport it to1.x. - 1.0: The current release. In between minor releases, only hotfixes (e.g. security) are backported to
1.0.
Label PRs with the next major version label (e.g. 2.0.0) and merge changes into main. Label PRs that you believe need to be backported as 1.x and 1.0. Backport PRs by checking out the versioned branch, cherry-pick changes and open a PR against each target backport branch.
Do not creating branches in the upstream repo, use your fork, for the exception of long lasting feature branches that require active collaboration from multiple developers. Name feature branches feature/<thing>. Once the work is merged to main, please make sure to delete the feature branch.
Repositories create consistent release labels, such as v1.0.0, v1.1.0 and v2.0.0, as well as patch and backport. Use release labels to target an issue or a PR for a given release. See MAINTAINERS for more information on triaging issues.
The release process is standard across repositories in this org and is run by a release manager volunteering from amongst MAINTAINERS.
- Identify the commit to release and create a tag on it, pushing to the upstream repo:
git fetch origin
git tag <tag-name> <commit-sha>
git push origin <tag-name>
- The release_drafter.yml will be automatically kicked off. Before creating a release, this workflow creates a GitHub issue asking for approval from the maintainers. The maintainers need to approve in order to continue the workflow run.
- Once approved, a pre-release will be created with the build artifacts attached.
- This pre-release triggers the opensearch-hadoop-release jenkins workflow. The artifacts will be automatically signed and published to maven. Please note that the release workflow is triggered only if created release is in pre-release state.
- Once the above release workflow is successful, it creates a GitHub issue requesting maintainers to manually publish the pre-release to release on GitHub.
- Increment the version in opensearch-hadoop-version.properties to the next patch release, e.g.
2.1.1.
The snapshots builds are published to sonatype using publish_snapshot.yml workflow. Each push event to the main branch triggers this workflow.