Skip to content

Latest commit

 

History

History
75 lines (67 loc) · 3.03 KB

CONTRIBUTING.md

File metadata and controls

75 lines (67 loc) · 3.03 KB

Want to contribute? Great! First, read this page (including the small print at the end).

Before you contribute

Before we can use your code, you must sign the Google Individual Contributor License Agreement (CLA), which you can do online. The CLA is necessary mainly because you own the copyright to your changes, even after your contribution becomes part of our codebase, so we need your permission to use and distribute your code. We also need to be sure of various other things—for instance that you'll tell us if you know that your code infringes on other people's patents. You don't have to sign the CLA until after you've submitted your code for review and a member has approved it, but you must do it before we can put your code into our codebase. Before you start working on a larger contribution, you should get in touch with us first through the issue tracker with your idea so that we can help out and possibly guide you. Coordinating up front makes it much easier to avoid frustration later on.

Code reviews

All submissions, including submissions by project members, require review. We use GitHub pull requests for this purpose.

The small print

Contributions made by corporations are covered by a different agreement than the one above, the Software Grant and Corporate Contributor License Agreement.

Configuring a local development environment

This can optionally done within a virtualenv.

Fork the repository

If you plan on contributing, create your own fork of PerfKitBenchmarker to publish your changes. GitHub has a great tutorial (we follow the Fork & pull model).

  • Clone the repository:
$ git clone [email protected]:<your-user-name>/PerfKitBenchmarker.git -b dev && cd PerfKitBenchmarker
  • Install Python 2.7.
  • Install pip:
$ sudo apt-get install -y python-pip
  • Install PerfKitBenchmarker's Python dependencies:
$ [sudo] pip install -r requirements.txt
  • Install PerfKitBenchmarker's test dependencies:
$ [sudo] pip install -r test-requirements.txt
  • Install git pre-commit hooks, to enable linting and copyright checks:
$ hooks/install.sh

Create a branch

  • Start from the dev branch in your forked repository.
$ git checkout dev
  • Create a branch to contain your changes.
$ git checkout -b <your-branch-name>
$ git push origin
  • Create a pull request to integrate your change into the dev branch. This can be done on github.com, or by installing and using the command line tool hub.
$ hub pull-request -h <your-branch-name> -b dev

When making a pull request on GitHub, please set the base branch of the Pull Request to dev.