Skip to content
This repository was archived by the owner on Aug 12, 2022. It is now read-only.

Latest commit

 

History

History
151 lines (93 loc) · 9.74 KB

File metadata and controls

151 lines (93 loc) · 9.74 KB

Contributing to CloudQuery

👍🎉 First off, thanks for taking the time to contribute! 🎉👍

The following is a set of guidelines for contributing to this repository.

Table of Contents

Code of Conduct

I don't want to read this whole thing, I just have a question!!!

What should I know before I get started?

How Can I Contribute?

Code of Conduct

This project and everyone participating in it is governed by the CloudQuery Code of Conduct. By participating, you are expected to uphold this code. To report inappropriate behavior in violation of the code, please start by reaching out to us on our Discord channel.

I don't want to read this whole thing I just have a question!!!

Note: Please don't file an issue to ask a question. You'll get faster results by reaching out to the community on our Discord channel

What To Know Before Getting Started

CloudQuery Architecture

CloudQuery has a pluggable architecture and is using the go-plugin to load, run, and communicate between providers via gRPC. To develop a new provider for CloudQuery, you don’t need to understand the inner workings of go-plugin as those are abstracted away via the provider-sdk.

architecture overview

Breakdown of Responsibilities and Repositories

CQ Core Repo:

  • Main entry point and CLI for the user
  • Reading CloudQuery configuration
  • Downloading, verifying, and running providers
  • Running policy packs
  • Repository for CQ Core can be found

CQ Provider SDK Repo:

  • Interacting with CQ Core for initialization and configuration
  • Helper functions for defining table schemas
  • Methods for testing the resource
  • Framework for running and building a provider locally

CQ Provider Repos:

  • Executed only by CQ-Core via gRPC
  • Interaction with remote data sources:
    • Initialization of clients
    • Authentication
    • Fetching of configuration information
  • More information about developing your own provider can be found here

How Can I Contribute?

Reporting Bugs

This section guides you through submitting a bug report for the AWS Provider for CloudQuery. Following these guidelines helps maintainers and the community understand your report 📝, reproduce the behavior 💻 ☁️, and find related reports 🔎.

Before creating bug reports, please check this list as you might find out that you don't need to create one. When you are creating a bug report, please include as many details as possible. Fill out the required template, the information it asks for helps us resolve issues faster.

Note: If you find a Closed issue that seems like it is the same thing that you're experiencing, open a new issue and include a link to the original issue in the body of your new one

Before Submitting a Bug Report

How Do I Submit a (Good) Bug Report?

Bugs are tracked as GitHub issues. After you've determined which repository your bug is related to, create an issue on that repository and provide the following information by filling in the template.

Explain the problem and include additional details to help maintainers reproduce the problem:

  • Use a clear and descriptive title for the issue to identify the problem
  • Describe the Bug in as many details as possible. For example, start by explaining how and where you are running CloudQuery (local machine, cloud service, docker, k8s, CI Pipeline, etc)
  • Provide specific examples to demonstrate the steps. Include links to gists and or files, or copy/pasteable snippets to help give context to the issue. If you're providing snippets in the issue, use Markdown code blocks
  • Explain which behavior you expected to see instead and why.
  • Include (sanitized) log output execute CloudQuery with the --enable-console-log and -v flags to get all of the debug information

Provide more context by answering these questions:

Include details about your configuration and environment:

  • Which version of CloudQuery are you using? You can get the exact version by running cloudquery version
  • What's in your config.hcl? Include as much of the config.hcl as possible. This will allow the community to work to reproduce the issue and identify workarounds and/or create fixes to your issues

Suggesting Enhancements

This section guides you through submitting an enhancement suggestion for CloudQuery, including completely new features, minor improvements to existing functionality and new providers. Following these guidelines helps maintainers and the community understand your suggestion 📝 and find related suggestions 🔎.

Before creating enhancement suggestions, please check this list as you might find out that you don't need to create one. When you are creating an enhancement suggestion, please include as many details as possible. Fill in the template, including the steps that you imagine you would take if the feature you're requesting existed.

Before Submitting an Enhancement Suggestion

How Do I Submit a (Good) Enhancement Suggestion?

Enhancement suggestions are tracked as GitHub issues. After you've determined which repository your enhancement suggestion is related to, create an issue on that repository and provide the following information:

  • Use a clear and descriptive title for the issue to identify the suggestion
  • Describe the problem In detail please try and convey the workflow or functionality you are trying to implement. This will help the community design and implement tooling that is both intuitive to use across many different domains as well as applicable to you and your specific challenge
  • Describe the use case for this feature in as much detail as possible. Be sure to include any relevant information inluding links or other implementations

Your First Code Contribution

Unsure where to begin contributing to CloudQuery? You can start by looking through these beginner and help-wanted issues:

  • [Beginner issues][beginner] - issues which should only require a few lines of code, and a test or two
  • [Help wanted issues][help-wanted] - issues which should be a bit more involved than beginner issues

If you don't see any issues that you think you can help with reach out to the community on Discord and we would be happy to work with you!

Local Development

CloudQuery has the ability to be run locally with a corresponding local postgres database. To get it up and running follow the following instructions:

Commit Messages

We make use of the Conventional Commits specification for pull request titles. This allows us to categorize contributions and automate versioning for releases. Pull request titles should start with one of the prefixes specified in the table below:

Title Message Action
chore: <Message> <String> patch release
fix: <Message> <String> patch release
feat: <Message> <String> patch release
refactor: <Message> <String> patch release
test: <Message> <String> patch release

Additional context can be provided in parentheses, e.g. fix(docs): Fix typo. Breaking changes should be suffixed with !, e.g. feat!: Drop support for X. This will always result in a minor release.