It is warmly welcomed if you have interest to hack on Higress. First, we encourage this kind of willing very much. And here is a list of contributing guide for you.
Security issues are always treated seriously. As our usual principle, we discourage anyone to spread security issues. If you find a security issue of Higress, please do not discuss it in public and even do not open a public issue. Instead we encourage you to send us a private email to [higress@googlegroups.com](mailto:higress@googlegroups. com) to report this.
To be honest, we regard every user of Higress as a very kind contributor. After experiencing Higress, you may have some feedback for the project. Then feel free to open an issue via NEW ISSUE.
Since we collaborate project Higress in a distributed way, we appreciate WELL-WRITTEN, DETAILED, EXPLICIT issue reports. To make the communication more efficient, we wish everyone could search if your issue is an existing one in the searching list. If you find it existing, please add your details in comments under the existing issue instead of opening a brand new one.
To make the issue details as standard as possible, we setup an ISSUE TEMPLATE for issue reporters. Please BE SURE to follow the instructions to fill fields in template.
There are a lot of cases when you could open an issue:
Also we must remind that when filling a new issue, please remember to remove the sensitive data from your post. Sensitive data could be password, secret key, network locations, private business data and so on.
Every action to make project Higress better is encouraged. On GitHub, every improvement for Higress could be via a PR (short for pull request).
Actually it is impossible to list them completely. Just remember one principle:
WE ARE LOOKING FORWARD TO ANY PR FROM YOU.
Since you are ready to improve Higress with a PR, we suggest you could take a look at the PR rules here.
To put forward a PR, we assume you have registered a GitHub ID. Then you could finish the preparation in the following steps:
FORK Higress to your repository. To make this work, you just need to click the button Fork in right-left of
alibaba/higress main page. Then you will end up with your repository in https://github.com/<your-username>/higress
, in which your-username
is your GitHub username.
CLONE your own repository to develop locally. Use git clone git@github.com:<your-username>/higress.git
to
clone repository to your local machine. Then you can create new branches to finish the change you wish to make.
Set Remote upstream to be git@github.com:alibaba/higress.git
using the following two commands:
git remote add upstream git@github.com:alibaba/higress.git
git remote set-url --push upstream no-pushing
With this remote setting, you can check your git remote configuration like this:
$ git remote -v
origin git@github.com:<your-username>/higress.git (fetch)
origin git@github.com:<your-username>/higress.git (push)
upstream git@github.com:alibaba/higress.git (fetch)
upstream no-pushing (push)
Adding this, we can easily synchronize local branches with upstream branches.
Right now we assume every contribution via pull request is for [branch main](https://github. com/alibaba/higress/tree/main) in Higress. Before contributing, be aware of branch definition would help a lot.
As a contributor, keep in mind again that every contribution via pull request is for branch main. While in project Higress, there are several other branches, we generally call them release branches (such as 0.6.0,0.6.1), feature branches, hotfix branches.
When officially releasing a version, there will be a release branch and named with the version number.
After the release, we will merge the commit of the release branch into the main branch.
When we find that there is a bug in a certain version, we will decide to fix it in a later version or fix it in a specific hotfix version. When we decide to fix the hotfix version, we will checkout the hotfix branch based on the corresponding release branch, perform code repair and verification, and merge it into the main branch.
For larger features, we will pull out the feature branch for development and verification.
Actually in Higress, we take two rules serious when committing:
Commit message could help reviewers better understand what is the purpose of submitted PR. It could help accelerate the code review procedure as well. We encourage contributors to use EXPLICIT commit message rather than ambiguous message. In general, we advocate the following commit message type:
On the other side, we discourage contributors from committing message like the following ways:
If you get lost, please see How to Write a Git Commit Message for a start.
Commit content represents all content changes included in one commit. We had better include things in one single commit which could support reviewer's complete review without any other commits' help. In another word, contents in one single commit can pass the CI to avoid code mess. In brief, there are three minor rules for us to keep in mind:
user.name
, user.email
) when committing to ensure that it is associated with your github ID.In addition, in the code change part, we suggest that all contributors should read the code style of Higress.
No matter commit message, or commit content, we do take more emphasis on code review.
PR is the only way to make change to Higress project files. To help reviewers better get your purpose, PR description could not be too detailed. We encourage contributors to follow the PR template to finish the pull request.
Any test case would be welcomed. Currently, Higress function test cases are high priority.
For unit test, you need to create a test file named xxxTest.java
in the test directory of the same module. Recommend you to use the junit5 UT framework
For integration test, you can put the integration test in the test directory or the higress-test module. It is recommended to use the mockito test framework.
We choose GitHub as the primary place for Higress to collaborate. So the latest updates of Higress are always here. Although contributions via PR is an explicit way to help, we still call for any other ways.
Higress code style Comply with Alibaba Java Coding Guidelines.
Alibaba-Java-Coding-Guidelines
It is not necessary to install, if you want to find a problem when you are coding.
In a word, ANY HELP IS CONTRIBUTION.