-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated contributing instructions (#1852)
Co-authored-by: Amir Blum <[email protected]>
- Loading branch information
1 parent
dcf8a9c
commit 070a2f1
Showing
1 changed file
with
90 additions
and
39 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 |
---|---|---|
@@ -1,16 +1,24 @@ | ||
# Contributing Guide | ||
|
||
- [Contributing Guide](#contributing-guide) | ||
- [Ways to Contribute](#ways-to-contribute) | ||
- [Find an Issue](#find-an-issue) | ||
- [Ask for Help](#ask-for-help) | ||
- [Local Development](#local-development) | ||
- [Run Odigos Cli from code](#run-odigos-cli-from-code) | ||
- [How to Develop Odigos Locally](#how-to-develop-odigos-locally) | ||
- [How to Build and run Odigos Frontend Locally](#how-to-build-and-run-odigos-frontend-locally) | ||
- [Odiglet](#odiglet) | ||
- [builder base image](#builder-base-image) | ||
- [Remote debugging](#remote-debugging) | ||
* [Welcome](#welcome) | ||
* [Ways to Contribute](#ways-to-contribute) | ||
* [Find an Issue](#find-an-issue) | ||
* [Issue Guidelines](#issue-guidelines) | ||
* [Pull Request Guidelines](#pull-request-guidelines) | ||
* [Communication](#communication) | ||
* [Code Review Process](#code-review-process) | ||
* [Testing Requirements](#testing-requirements) | ||
* [Code of Conduct](#code-of-conduct) | ||
* [License](#license) | ||
* [Local Development](#local-development) | ||
- [Run Odigos CLI from Code](#run-odigos-cli-from-code) | ||
- [How to Develop Odigos Locally](#how-to-develop-odigos-locally) | ||
- [How to Build and Run Odigos Frontend Locally](#how-to-build-and-run-odigos-frontend-locally) | ||
* [Odiglet](#odiglet) | ||
- [Builder Base Image](#builder-base-image) | ||
- [Remote Debugging](#remote-debugging) | ||
* [Instrumentor](#instrumentor) | ||
- [Debugging](#debugging) | ||
|
||
Welcome! We are glad that you want to contribute to our project! 💖 | ||
|
||
|
@@ -24,19 +32,21 @@ our project that we need help with, including: | |
If anything doesn't make sense, or doesn't work when you run it, please open a | ||
bug report and let us know! | ||
|
||
## Ways to Contribute | ||
### Ways to Contribute | ||
|
||
We welcome many different types of contributions, including: | ||
There are many ways to contribute to the Odigos project: | ||
|
||
- New features | ||
- Builds, CI/CD | ||
- Bug fixes | ||
- Documentation | ||
- Issue Triage | ||
- Answering questions on Slack/Mailing List | ||
- Web design | ||
- Communications / Social Media / Blog Posts | ||
- Release management | ||
- **New Features:** Suggest or implement new features that can improve the project. Provide as much context and detail as possible to help us evaluate your idea. | ||
- **Builds and CI/CD:** Help enhance the build pipelines or improve CI/CD workflows to ensure smoother development processes. | ||
- **Bug Fixes:** Identify and fix bugs. Make sure to document the issue and verify your fixes with appropriate tests. | ||
- **Documentation:** Improve existing documentation, fix typos, or write new guides and tutorials to help contributors and users. | ||
- **Issue Triage:** Assist with categorizing, labeling, and prioritizing issues to streamline the workflow. | ||
- **Answering Questions:** Participate in discussions on Slack or mailing lists to help community members. | ||
- **Web Design:** Contribute to the design and UX of project-related websites or dashboards. | ||
- **Communications, Social Media, and Blog Posts:** Help create content for social media, blogs, or other channels to promote the project and engage with the community. | ||
- **Release Management:** Assist in preparing, testing, and documenting releases to ensure smooth rollouts. | ||
|
||
Every contribution, big or small, is greatly appreciated and helps make Odigos better for everyone! | ||
|
||
## Find an Issue | ||
|
||
|
@@ -52,13 +62,54 @@ likely still something for you to work on. | |
Once you see an issue that you'd like to work on, please post a comment saying | ||
that you want to work on it. Something like "I want to work on this" is fine. | ||
|
||
## Ask for Help | ||
## Issue Guidelines | ||
|
||
When reporting an issue: | ||
|
||
1. Use a clear and descriptive title. | ||
2. Include detailed steps to reproduce the issue. | ||
3. Share relevant logs, configurations, or screenshots. | ||
4. Label the issue appropriately (e.g., bug, feature request, enhancement). | ||
|
||
## Pull Request Guidelines | ||
|
||
When submitt | ||
|
||
1. Include a clear description of the change and its purpose. | ||
2. Link to any related issues or documentation. | ||
3. Add tests to cover new functionality or fix existing ones. | ||
4. Ensure your branch is up to date with the main branch. | ||
|
||
## Communication | ||
|
||
If you have questions or need help: | ||
|
||
- Join our [Slack Community](https://join.slack.com/t/odigos/shared_invite/zt-1d7egaz29-Rwv2T8kyzc3mWP8qKobz~A#link-to-slack). | ||
- Post questions or ideas in our [GitHub Discussions](https://github.com/odigos-io/odigos/discussions#link-to-discussions). | ||
- Email the core maintainers at [email protected]. | ||
|
||
## Code Review Process | ||
|
||
All contributions will go through the following review process: | ||
|
||
The best way to reach us with a question when contributing is to ask on: | ||
1. A maintainer will review your pull request within 3-5 business days. | ||
2. Feedback will be provided for improvements, if necessary. | ||
3. Once approved, your pull request will be merged into the main branch. | ||
4. Larger changes may require discussion in a GitHub issue or pull request thread. | ||
5. We are available on [Slack](https://join.slack.com/t/odigos/shared_invite/zt-1d7egaz29-Rwv2T8kyzc3mWP8qKobz~A) to discuss any issues regarding the PR process or general contributions. | ||
|
||
- The original github issue | ||
- The developer mailing list | ||
- Our Slack channel | ||
## Testing Requirements | ||
|
||
Tests will run automatically in CI (Continuous Integration) and must pass for the pull request to be merged. | ||
|
||
## Code of Conduct | ||
|
||
We expect all contributors to follow our [Code of Conduct](CODE_OF_CONDUCT.md). | ||
This ensures a welcoming, inclusive, and respectful community for everyone. | ||
|
||
## License | ||
|
||
By contributing, you agree that your contributions will be licensed under the project's [Apache License](LICENSE). | ||
|
||
## Local Development | ||
|
||
|
@@ -69,18 +120,19 @@ First, follow the [Quickstart Guide](https://docs.odigos.io/quickstart/introduct | |
|
||
Make sure you are able to: | ||
|
||
- [x] run Odigos CLI in your terminal. | ||
- [x] open the demo application UI in your browser to interact with it. | ||
- [x] install odigos in your development cluster with `odigos install`. | ||
- [x] open Odigos UI in your browser to interact with it. | ||
- [x] see telemetry data that odigos generates, for example traces in jaeger. | ||
- [X] run Odigos CLI in your terminal. | ||
- [X] open the demo application UI in your browser to interact with it. | ||
- [X] install odigos in your development cluster with `odigos install`. | ||
- [X] open Odigos UI in your browser to interact with it. | ||
- [X] see telemetry data that odigos generates, for example traces in jaeger. | ||
|
||
After you have a working odigos setup, you can start making changes to the code and test them locally. | ||
|
||
### Run Odigos Cli from code | ||
|
||
The code for the odigos cli tool is found in the `cli` directory [here](https://github.com/odigos-io/odigos/tree/main/cli). | ||
Test your cli code changes by running the following: | ||
|
||
```bash | ||
go run -tags=embed_manifests ./cli | ||
``` | ||
|
@@ -99,9 +151,9 @@ If you test changes to the `install` command, you will need to `odigos uninstall | |
The main steps involved when debugging Odigos locally are: | ||
|
||
1. Use a Kind kubernetes cluster. | ||
2. Choose one of the following options for deploy: | ||
2. Choose one of the following options for deploy: | ||
|
||
- Deploy all pods in the odigos-system namespace: | ||
- Deploy all pods in the odigos-system namespace: | ||
|
||
```bash | ||
make deploy | ||
|
@@ -168,20 +220,19 @@ make debug-odiglet | |
Then, you can attach a debugger to the Odiglet pod. For example, if you are using Goland, you can follow the instructions [here](https://www.jetbrains.com/help/go/attach-to-running-go-processes-with-debugger.html#step-3-create-the-remote-run-debug-configuration-on-the-client-computer) to attach to a remote process. | ||
For Visual Studio Code, you can use the `.vscode/launch.json` file in this repo to attach to the Odiglet pod. | ||
|
||
|
||
|
||
## Instrumentor | ||
|
||
### Debugging | ||
|
||
If the Mutating Webhook is enabled, follow these steps: | ||
|
||
1. Copy the TLS certificate and key: | ||
Create a local directory and extract the certificate and key by running the following command: | ||
Create a local directory and extract the certificate and key by running the following command: | ||
|
||
``` | ||
mkdir -p serving-certs && kubectl get secret instrumentor-webhook-cert -n odigos-system -o jsonpath='{.data.tls\.crt}' | base64 -d > serving-certs/tls.crt && kubectl get secret instrumentor-webhook-cert -n odigos-system -o jsonpath='{.data.tls\.key}' | base64 -d > serving-certs/tls.key | ||
``` | ||
|
||
|
||
2. Apply this service to the cluster, it will replace the existing `odigos-instrumentor` service: | ||
|
||
``` | ||
|
@@ -199,4 +250,4 @@ spec: | |
protocol: TCP | ||
``` | ||
|
||
Once this is done, you can use the .vscode/launch.json configuration and run instrumentor local for debugging. | ||
Once this is done, you can use the .vscode/launch.json configuration and run instrumentor local for debugging. |