-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a contributing and releasing guide (#500)
* Add a contributing and releasing guide * Describe how to run integration tests * Update CONTRIBUTING.md Co-authored-by: malcolmholmes <[email protected]> --------- Co-authored-by: malcolmholmes <[email protected]>
- Loading branch information
1 parent
d15bc92
commit 1dcea76
Showing
2 changed files
with
61 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# Contributing Guidelines | ||
|
||
This document is a guide to help you through the process of contributing to `grizzly`. | ||
|
||
## Developing the extension | ||
|
||
### Create a fork | ||
|
||
[Fork][fork], then clone the repository: | ||
|
||
```shell | ||
git clone [email protected]:{your_github_username}/grizzly.git | ||
cd grizzly | ||
git remote add upstream https://github.com/grafana/grizzly.git | ||
git fetch upstream | ||
``` | ||
|
||
### Install dependencies | ||
|
||
```shell | ||
go mod vendor | ||
``` | ||
|
||
### Building from sources | ||
|
||
To build Grizzly locally, inside a checkout, run: | ||
|
||
```shell | ||
make dev | ||
``` | ||
|
||
### Run locally | ||
|
||
To run Grizzly locally, use: | ||
|
||
```shell | ||
go run cmd/grr/*.go | ||
``` | ||
|
||
## Run the tests | ||
|
||
There are both unit tests and integration tests in this repo. | ||
|
||
Unit tests can be run using `make test`. Integration tests are run with | ||
`make integration`. This command spins up a Grafana instance with certain config | ||
and provisioned resources, so the integration tests can run against it. | ||
|
||
You can also manually execute `make run-test-image-locally` and run the tests | ||
for debugging. | ||
|
||
## Releasing grizzly | ||
|
||
Releasing is done as follows: | ||
|
||
1. Trigger the release pipeline by creating and pushing a tag: `git tag {version} && git push origin {version}` | ||
2. The pipeline publishes docker images of grizzly and creates a GitHub release. The latter, however, is marked as draft and as such needs to be reviewed and updated with change notes before being published. | ||
|
||
|
||
[fork]: https://github.com/grafana/grizzly/fork |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters