Table of Contents
Users wishing to contribute to JanusGraph should fork the JanusGraph repository and then submit pull requests using the GitHub pull request process. Every pull request must be associated with an existing issue. Be sure to include the relevant issue number in the title of your pull request, complete the pull request template checklist, and provide a description of what test suites were run to validate the pull request. Pull requests commit messages should clearly describe what work was accomplished. Intermediate work-in-progress commits should be squashed prior to pull request submittal.
Pull requests must be reviewed before being merged following a review-then-commit (RTC) process. The JanusGraph project uses the GitHub review process to review pull requests. Non-committers are welcomed and encouraged to review pull requests. Their review will be non-binding, but can be taken into consideration and are still very valuable community input. The following rules apply to the voting process.
- 2 committer approvals are required to merge a pull request
- If a committer submits the pull request, it has their implicit approval so it requires 1 additional committer approval
- 1 committer approval followed a one week review period for objections at which point a lazy consensus is assumed
- One or more -1 votes within a change request will veto the pull request until the noted issue(s) are addressed and the -1 vote is withdrawn
- Change requests will not be considered valid without an explanation
In instances where the committer deems the full RTC process unnecessary, a commit-then-review (CTR) process may be employed. The purpose of invoking CTR is to reduce the burden on the committers and minimize the turnaround time for merging trivial changes. Changes of this sort may include:
- Documentation typo or small documentation addition
- Addition of a new test case
- Merging approved fixes into an upstream branch
Any commit that is made following CTR shall include the fact that it is a CTR in the commit comments. Community members who wish to review CTRs may subscribe to the JanusGraph commits list so that they will see CTRs as they come through. If another committer responds with a -1, the commit should be rolled back and the formal RTC process should be followed.
A pull request is ready to be merged when it has been approved
(see Section 47.1, “Review-Then-Commit (RTC)”).
It can either be merged manually with
git commands or through the GitHub UI
with the Merge pull request button.
If the pull request targets a release branch that is upstream of other release
0.2 is upstream of
master), then it is important to make
sure that the change also lands in the downstream release branches.
This is the responsibility of the committer who merges the pull request.
Therefore, merge the pull request first into its target branch and then merge
that branch (e.g.,
0.2) into the next downstream branch (e.g.,
so on until you merge the last release branch into
Afterwards push all release branches, ideally with an atomic commit:
git push --atomic origin master 0.3 0.2
This approach keeps merge conflicts to a minimum when a release branch is merged into a downstream release branch.