This topic describes how you can contribute code to Tizen.
For more information about the whole work process, see Tizen Development Workflow.
To clone source files for a specific project, see Cloning Tizen Source Files.
You can perform patch submission and review on Gerrit.
To submit a patch to Gerrit:
Switch to the project directory and perform local development.
Stage the revised content:
$ git add <Revised_File>...
Commit the revised content:
$ git commit
Push the patch to Gerrit:
$ git push origin HEAD:refs<remote_branch_name>
Valid values for
tizen: corresponds to the branch of the latest Tizen version
tizen_3.0: corresponds to the Tizen 3.0 branch
For more information, see Gerrit Documentation.
To review a patch in the Gerrit Web UI, publish the comments and vote for the patch.
The patch is merged or discarded depending on the voting results.The merge is performed if:
Voting “+2” requires a proper privilege level.
When a patch meets the above criteria, privileged users can submit to merge the patch to the Git repository.
You can submit a single package or a group of packages.
To submit a package to the build system, execute the following command:
$ gbs submit [-c <Commit_ID>] -m "<Comments>"
During the submission, GBS automatically creates an annotated tag in the following format:
If the code change has already been merged in Gerrit, a merge request is created and release engineers are notified to review.
If the patch has not been merged in Gerrit, the backend services abort the operation and send an email to the patch owner, to notify that the patch needs to be re-submitted after it is merged.
If multiple changed packages have mutual dependencies, they must be submitted as a group. This means that all of the packages must be submitted with 1 unified identification, through a process known as group submission.
This feature is supported by the collaboration of the Tizen client development tool (GBS) and Tizen backend services.
For the platform developers, GBS provides the
--tag <TAG> option, to accept a developer-specified “TAG” for the
gbs submit command. All submissions for multiple packages with the same TAG are considered as a group, and packages in the same group are handled in the build system together.
For example, assume that “ail”, a low level library, depends on “aul”. “ail” developers have changed some APIs, and “aul” must be updated to adapt to the new API changes in “ail”. Therefore, once all related patches have been merged to “ail” and “aul” separately, these 2 packages must be submitted as a group:
Submit 1 of the packages in the group to create a tag:
cd platform/core/appfw/aul-1/ gbs submit -m "<Comments>"
Obtain the tag name from the output of the above command, and use the same tag as a
--tag parameter for other packages in the group:
$ cd platform/core/appfw/ail/ $ gbs submit --tag <same_tag> -m "<Comments>"
You can also specify the tag yourself, and use the same tag for all packages in the package group. In this case, the tag must follow the usual tag format with an optional suffix:
submit/$Tizen_Version/$( . ).N (N is a number you can choose freely)
Tizen backend services take care of all submissions with the same tag, and build them together.
If you are a release engineer, you can review and accept changes on the build system side.
After a developer runs the
gbs submit command, the Tizen backend service starts the pre-release and normal release processes at the same time. During the pre-release process, packages and Tizen images with a specific package inside are presented to release engineers and Quality Assurance (QA) engineers for review.
QA engineers are responsible for testing packages as isolated objects, as well as verifying Tizen images with a specific package inside to offer release engineers comprehensive information to make appropriate decision about whether to accept or reject a package, including the following:
After the packages are accepted by release engineers, the corresponding images are automatically created by the normal release process and can be obtained on http://download.tizen.org/releases/daily.