Skip to content

Latest commit

 

History

History
81 lines (59 loc) · 4.24 KB

CONTRIBUTING.md

File metadata and controls

81 lines (59 loc) · 4.24 KB

Contributing to Quickwit

There are many ways to contribute to Quickwit. Code contribution are welcome of course, but also bug reports, feature request, and evangelizing are as valuable.

Submitting a PR

Check if your issue is already listed github. If it is not, create your own issue.

Please add the following phrase at the end of your commit. Closes #<Issue Number>. It will automatically link your PR in the issue page. Also, once your PR is merged, it will closes the issue. If your PR only partially addresses the issue and you would like to keep it open, just write See #<Issue Number>.

Feel free to send your contribution in an unfinished state to get early feedback. In that case, simply mark the PR with the tag [WIP] (standing for work in progress).

Signing the CLA

Quickwit is an opensource project licensed a AGPLv3. It is also distributed under a commercial license by Quickwit, Inc.

Contributors are required to sign a Contributor License Agreement. The process is simple and fast. Upon your first pull request, you will be prompted to sign our CLA by visiting this link.

Development

Setup & run tests

  1. Install Docker (https://docs.docker.com/engine/install/) and Docker Compose (https://docs.docker.com/compose/install/)
  2. Install awslocal https://github.com/localstack/awscli-local
  3. Start the external services with make docker-compose-up
  4. Run QW_S3_ENDPOINT=http://localhost:4566 cargo test --all-features

Running services such as Amazon Kinesis or S3, Kafka, or PostgreSQL locally.

  1. Ensure Docker and Docker Compose are correctly installed on your machine (see above)
  2. Run make docker-compose-up to launch all the services or make docker-compose-up DOCKER_SERVICES=kafka,postgres to launch a subset of services.

Tracing with Jaeger

  1. Ensure Docker and Docker Compose are correctly installed on your machine (see above)
  2. Start the Jaeger services (UI, collector, agent, ...) running the command make docker-compose-up DOCKER_SERVICES=jaeger
  3. Open your browser and visit localhost:16686

Using tokio console

  1. Install tokio-console by running cargo install tokio-console.
  2. Install the quickwit binary in the quickwit-cli folder RUSTFLAGS="--cfg tokio_unstable" cargo install --path . --features tokio-console
  3. Launch a long running command such as index and activate tokio with the: QW_TOKIO_CONSOLE_ENABLED=1 quickwit index ...
  4. Run tokio-console.

Building binaries

Currently, we use cross to build Quickwit binaries for different architectures. For this to work, we've had to customize the docker images cross uses. These customizations can be found in docker files located in ./cross-images folder. To make cross take into account any change on those docker files, you will need to build and push the images on dockerhub by running make cross-images. We also have nightly builds that are pushed to dockerhub. This helps continiously check our binaries are still built even with external dependency update. Successful builds let you accessed the artifacts for the next three days. Release builds always have their artifacts attached to the release.

Testing release (alpha, beta, rc)

The following Quickwit installation command curl -L https://install.quickwit.io | sh always installs the latest stable version of quickwit. To make it easier in installing and testing new (alpha, beta, rc) releases, you can manually pull and execute the script as ./install.sh --allow-any-latest-version. This will force the script to install any latest available release package.

Documentation

Quickwit documentation is located in the docs directory.

Generating the CLI docs.

The CLI doc page is partly generated by a script. To update it, first run the script:

cargo run --bin generate_markdown > docs/reference/cli_insert.md

Then manually edit the doc page to update it. I put two comments to indicate where you want to insert the new docs and where it ends:`

[comment]: <> (Insert auto generated CLI docs from here.)

...docs to insert...

[comment]: <> (End of auto generated CLI docs.)