volcano.sh/apis@v1.8.2/contribute.md (about)

     1  # Welcome to Volcano!
     2  
     3  -   [Before you get started](#before-you-get-started)
     4      -   [Code of Conduct](#code-of-conduct)
     5      -   [Community Expectations](#community-expectations)
     6  -   [Getting started](#getting-started)
     7  -   [Your First Contribution](#your-first-contribution)
     8      -   [Find something to work on](#find-something-to-work-on)
     9          -   [Find a good first topic](#find-a-good-first-topic)
    10          -   [Work on an Issue](#work-on-an-issue)
    11          -   [File an Issue](#file-an-issue)
    12  -   [Contributor Workflow](#contributor-workflow)
    13      -   [Creating Pull Requests](#creating-pull-requests)
    14      -   [Code Review](#code-review)
    15      -   [Testing](#testing)
    16  
    17  # Before you get started
    18  
    19  ## Code of Conduct
    20  
    21  Please make sure to read and observe our [Code of Conduct](./code_of_conduct.md).
    22  
    23  ## Community Expectations
    24  
    25  Volcano is a community project driven by its community which strives to promote a healthy, friendly and productive environment.
    26  The goal of the community is to develop a volcano system which is useful for running high performance workloads such as AI, ML, Deep Learning Application on top of Kubernetes. To build a such volcano system at such scale requires the support of a community with similar aspirations.
    27  
    28  - See [Community Membership](./community-membership.md) for a list of various community roles. With gradual contributions, one can move up in the chain.
    29  
    30  
    31  # Getting started
    32  
    33  - Read the [get started](docs/development/prepare-for-development.md) for developing code for Volcano
    34  - Read the [setup](docs/development/development.md) for build/deploy instructions.
    35  
    36  
    37  # Your First Contribution
    38  
    39  We will help you to contribute in different areas like filing issues, developing features, fixing critical bugs and getting your work reviewed and merged.
    40  
    41  If you have questions about the development process, feel free to jump into our [Slack Channel](https://github.com/volcano-sh/volcano/blob/master/slack-invitation) or join our [mailing list](https://groups.google.com/forum/#!forum/volcano-sh).
    42  
    43  ## Find something to work on
    44  
    45  We are always in need of help, be it fixing documentation, reporting bugs or writing some code.
    46  Look at places where you feel best coding practices aren't followed, code refactoring is needed or tests are missing.
    47  Here is how you get started.
    48  
    49  ### Find a good first topic
    50  
    51  There are [multiple repositories](https://github.com/volcano-sh/) within the Volcano organization.
    52  Each repository has beginner-friendly issues that provide a good first issue.
    53  For example, [Volcano-Issues](https://github.com/volcano-sh/volcano) has [help wanted](https://github.com/volcano-sh/volcano/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22) and [good first issue](https://github.com/volcano-sh/volcano/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22) labels for issues that should not need deep knowledge of the system.
    54  We can help new contributors who wish to work on such issues.
    55  
    56  Another good way to contribute is to find a documentation improvement, such as a missing/broken link.
    57  
    58  #### Work on an issue
    59  
    60  When you are willing to take on an issue, you can assign it to yourself. Just reply with `/assign` or `/assign @yourself` on an issue,
    61  then the robot will assign the issue to you and your name will present at `Assignees` list.
    62  
    63  ### File an Issue
    64  
    65  While we encourage everyone to contribute code, it is also appreciated when someone reports an issue.
    66  Issues should be filed under the appropriate Volcano sub-repository.
    67  
    68  *Example:* a Volcano issue should be opened to [Volcano](https://github.com/volcano-sh/volcano/issues).
    69  
    70  Please follow the prompted submission guidelines while opening an issue.
    71  
    72  # Contributor Workflow
    73  
    74  Please do not ever hesitate to ask a question or send a pull request.
    75  
    76  This is a rough outline of what a contributor's workflow looks like:
    77  
    78  - Create a topic branch from where to base the contribution. This is usually master.
    79  - Make commits of logical units.
    80  - Make sure commit messages are in the proper format (see below).
    81  - Push changes in a topic branch to a personal fork of the repository.
    82  - Submit a pull request to [Volcano](https://github.com/volcano-sh/volcano).
    83  - The PR must receive an approval from two maintainers.
    84  
    85  ## Creating Pull Requests
    86  
    87  Pull requests are often called simply "PR".
    88  Volcano generally follows the standard [github pull request](https://help.github.com/articles/about-pull-requests/) process.
    89  
    90  In addition to the above process, a bot will begin applying structured labels to your PR.
    91  
    92  The bot may also make some helpful suggestions for commands to run in your PR to facilitate review.
    93  These `/command` options can be entered in comments to trigger auto-labeling and notifications.
    94  Refer to its [command reference documentation](https://go.k8s.io/bot-commands).
    95  
    96  ## Code Review
    97  
    98  To make it easier for your PR to receive reviews, consider the reviewers will need you to:
    99  
   100  * follow [good coding guidelines](https://github.com/golang/go/wiki/CodeReviewComments).
   101  * write [good commit messages](https://chris.beams.io/posts/git-commit/).
   102  * break large changes into a logical series of smaller patches which individually make easily understandable changes, and in aggregate solve a broader issue.
   103  * label PRs with appropriate reviewers: to do this read the messages the bot sends you to guide you through the PR process.
   104  
   105  ### Format of the commit message
   106  
   107  We follow a rough convention for commit messages that is designed to answer two questions: what changed and why.
   108  The subject line should feature the what and the body of the commit should describe the why.
   109  
   110  ```
   111  scripts: add test codes for metamanager
   112  
   113  this add some unit test codes to improve code coverage for metamanager
   114  
   115  Fixes #12
   116  ```
   117  
   118  The format can be described more formally as follows:
   119  
   120  ```
   121  <subsystem>: <what changed>
   122  <BLANK LINE>
   123  <why this change was made>
   124  <BLANK LINE>
   125  <footer>
   126  ```
   127  
   128  The first line is the subject and should be no longer than 70 characters, the second line is always blank, and other lines should be wrapped at 80 characters. This allows the message to be easier to read on GitHub as well as in various git tools.
   129  
   130  Note: if your pull request isn't getting enough attention, you can use the reach out on Slack to get help finding reviewers.
   131  
   132  ## Testing
   133  
   134  There are multiple types of tests.
   135  The location of the test code varies with type, as do the specifics of the environment needed to successfully run the test:
   136  
   137  * Unit: These confirm that a particular function behaves as intended. Unit test source code can be found adjacent to the corresponding source code within a given package. These are easily run locally by any developer.
   138  * Integration: These tests cover interactions of package components or interactions between Volcano components and Kubernetes control plane components like API server.
   139  * End-to-end ("e2e"): These are broad tests of overall system behavior and coherence. The e2e tests are in [Volcano e2e](https://github.com/volcano-sh/volcano/tree/master/test/e2e).
   140  
   141  Continuous integration will run these tests on PRs.
   142