Unknown macro: {next_previous_links}
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

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.

Before the code base was moved to git, the platform repository in svn had the complete code base of all the products together. Thereby, releasing individual products using this svn-based model was done in chunks. A chunk release consists of one or more product releases. Therefore, with every new chunk release, the individual components that goes into the products in that chunk release were branched internally using directory structures, and then released using separate pom files that groups all the modules (service-stubs, components, features).

When the source code was moved from svn to github, the code base that was in svn had to be refactored into separate individual repositories. With git, everything is based on branches. So the above branching strategy using directories will not work. Therefore, the chunk based release of products has to be changed. For this reason, the platform repository was divided into multiple, individual git repositories by grouping common components. For example, carbon-deployment repository has grouped all components (including service stubs, components and features) related to the deployment of artifacts (webapps, axis2services). These individual repositories can then be released separately and the products depending on these repositories will be released afterwards.

Example: WSO2 Application Server depends on the following individual repositories:

  • carbon4-kernel
  • carbon-utils
  • carbon-deployment
  • carbon-commons
  • carbon-multitenancy
  • carbon-qos
  • carbon-identity
  • carbon-platform-integration-utils
  • carbon-registry
  • jaggery
  • carbon-governance

For the first release of WSO2 Application Server in git, all of the above repositories have to be released beforehand. But this is needed only for the very first release from git. The subsequent releases of WSO2 Application Server can depend on already released versions of these repositories. These dependent repositories are known as upstream projects of the WSO2 Application Server product. This is the same for other repositories based on WSO2 products as well.

Apart from the above, moving to git also has some added advantages:

  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>".

    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.

    [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.

    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.

  • No labels