Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

WSO2 Carbon Kernel is the base platform for all WSO2 products. With the new version of carbon kernel - 4.3.0, WSO2 has moved to the Git-based source code configuration management (SCM). All the code base is now moved to the WSO2 user account in github.

...

  1. Better management for each git repository (based on branches).

  2. External contribution can be made easy with better code visibility.

  3. Tools such as the maven-release-plugin and nexus staging repositories can be used easily.

     

  4. Create a git release branch from the master. The branch name would be "release-<release-version>".

    Code Block
    git checkout -b release-<release-version> master
  5. Maven release plugin does not update some properties that we use, such as the osgi import and export versions. These properties also have the “SNAPSHOT” part in it. This has to be manually updated before performing the release preparation command. Also make sure that the project does not have any SNAPSHOT dependencies and update those with released versions. If there are any unreleased SNAPSHOT dependencies, we will have to release them separately. This will anyway be checked by the release plugin during the release:prepare stage. To test the above, we can use the “dryRun” option with the maven release plugin.

  6. Issue the following release preparation command: mvn release:clean release:prepare
    Note: Please use an appropriate user name for the maven build. The build artifacts will have this username in its MANIFEST file. Give appropriate values for the release, development, and tag versions as shown below when prompted for the release preparation command.

    Panel

    [INFO] Checking dependencies and plugins for snapshots …
    What is the release version for "WSO2 Carbon Kernel"? (org.wso2.carbon:carbon-kernel) 4.3.0: : 4.3.0
    What is SCM release tag or label for "WSO2 Carbon Kernel"? (org.wso2.carbon:carbon-kernel) carbon-4.3.0: : 4.3.0
    What is the new development version for "WSO2 Carbon Kernel"? (org.wso2.carbon:carbon-kernel) 4.3.1-SNAPSHOT: : 4.4.0-SNAPSHOT

  7. Issue the release perform command: mvn release:perform 

  8. When the above process succeeds, the artifacts will be deployed to a staging repo. The newly created staging repo will not be closed automatically when the artifacts are uploaded. This can be done through the release-manager. That is, by logging into the nexus UI the repo can be manually closed. When a staging repo is closed, it becomes available for public access. Eg: http://maven.wso2.org/nexus/content/repositories/orgwso2carbon-037/

  9. If there is a failure, the prepared release process can be rolled back using the following command: mvn release:rollback
    This will revert all the commits made during the preparation process. 

  10. With the staging repo in effect, a release candidate VOTE should be called on dev@wso2.org using the template given below. This VOTE is essential for a product release. For other projects, this is optional.

    Panel

    Subject : [VOTE] Release <Project Name> <Project Version> <RC #>

    <BEGIN>

    This is the <RC #> release candidate of <Project Name> <Project Version>

    Eg : WSO2 Carbon Kernel 4.3.0 rc1

    This release fixes the following issues:

    <URL to the fixed jira list>

    Please download, test and vote. Please refer the release verification guide for detailed information on verifying this release.

     

    Source & binary distribution files:

    <URL to the source and binary files>

     

    Maven staging repo:

    <URL to the maven nexus staging repo>

    Eg: http://maven.wso2.org/nexus/content/repositories/orgwso2carbon-1000/

     

    The tag to be voted upon:

    <URL to the release tag location>

    Eg: https://github.com/wso2/carbon4-kernel/releases/tag/carbon4-kernel-4.3.0-rc1

     

    KEYS file containing PGP keys we use to sign the release:

    <URL to the Keys used with signing the artifacts>

     

    Release verification guide:

    <If any>

     

    [ ] Broken - do not release (explain why)

    [ ] Stable - go ahead and release

    </BEGIN>

  11. A release VOTE should be kept open for 72 hours. During this period, the developers should test the artifacts and then vote. When there are at least 3 binding +1 votes and no -1 votes, the vote is considered as a pass. Once the release vote is completed (the artifacts are tested and verified), the staging repo can be released, which will make the artifacts available in the public maven repo. Note that this should be done by the release manager. The released artifacts will be available in the WSO2 Releases maven repository at : http://maven.wso2.org/nexus/content/repositories/releases/

  12. If the vote failed, then the staging repository should be dropped and the changes for the release branch should be reverted. This process should be started again from #9 onwards, after fixing the issues mentioned during the vote.