This document describes how to contribute to hyperbench project. It is an entry point for developers who are interested in build, develop, create an issue or pull request to hyperbench.
1. clone
git clone git@github.com:meshplus/hyperbench.git2. build
make build3. run test
make test1. fork
visit https://github.com/meshplus/hyperbench, click fork button
2. clone
We assume that you have go v1.13 installed, and GOPATH is set.
Create your clone:
git clone git@github.com:$user/hyperbench.git $GOPATH/src/github.com/meshplus/hyperbench3. fetch && rebase
Get your local master up to date:
cd $GOPATH/src/github.com/meshplus/hyperbench
git fetch upstream
git checkout master
git rebase upstream/master
npm install4. branch
Branch from it:
git checkout -b myfeatureThen edit code on the myfeature branch.
5. commit
If already run npm install ,use git cz instead ofgit commit. If not, use git commit.
git cz6. push
When ready to review (or just to establish an offsite backup or your work), push your branch to your fork on github.com:
git push -f ${your_remote_name} myfeature7. create pull request
- Visit your fork at https://github.com/$user/hyperbench
- Click the
Compare & Pull Requestbutton next to yourmyfeaturebranch.
Each contributor should follow the git workflow. If your use of git is not particularly clear, please read this document first.
If you would like to contribute to hyperbench, please fork, commit and send a pull request for maintainers to review code and merge to main code base.
Issue
If use want to create a issue, please follow this issue template.
#### Environment
hyperbench version: `hyperbench --version`
OS: Windows/Linux/OSX
Commit hash:
#### What happened:
#### What you expected to happen:
#### How to reproduce it (as minimally and precisely as possible):
#### Backtrace
````
[backtrace]
````
Pull request
- Pull request should be based on hyperbench's
masterbranch - Commit messages should begin with the package name they modify, e.g.
- core/executor: use default parameters to initialize executor
- Please use
golangci-linttool to format the source code before submit changes
We encourage any form of contribution, no matter it's bug fixes, new features, or something else. Our team will do our best to make every valuable contribution to get merged as soon as possile.