Contributing To Kraken

Issues

Please feel free to submit new issues.

Contributing

Start by reading our coding style guidelines.

Please follow standard fork-and-pull workflow.

  • Fork the repo on GitHub
  • Clone the project locally
  • Commit changes to your own branch
  • Push the change back to your fork
  • Submit a Pull request. We will review and merge your change.

If you are new to Kraken, have a look at our good first issues to get started.

Setup

Most tests and scripts assumes the developer to have Docker installed locally. To install dependencies:

$ go mod download

To run unit tests:

$ make unit-test

To run integration tests:

$ make integration

To build docker images:

$ make images

Linting

Krake uses golangci-lint for checking Go code quality.

Prerequisite

Install golangci-lint and ensure it is in your PATH. (macOS example: brew install golangci-lint).
Official instructions: https://golangci-lint.run/docs/welcome/install/

Quick Checklist

  1. Install golangci-lint.
  2. Verify: golangci-lint version.
  3. Install Git hooks (runs lint automatically on each commit): make install-hooks
  4. Make changes and commit (the hook blocks commits on lint errors).
  5. If the hook fails, fix the reported issues and retry the commit.

Documentation website

The website uses MkDocs and GitHub Pages at https://uber.github.io/kraken/. It does not use a custom domain.

To preview the site from the repository root:

make docs

Run make docs-build before you submit documentation changes. The build checks links between documentation pages and local files. It writes the website to site/.

Both commands run in venv. To run MkDocs without venv, use mkdocs serve or mkdocs build --strict.

The Documentation website workflow builds documentation changes in PRs. It deploys changes from master only. PRs and forks cannot deploy this site.