Skip to content

Commit f707fdc

Browse files
author
Tyler Titsworth
authored
Update CONTRIBUTING.md (#180)
Signed-off-by: tylertitsworth <tyler.titsworth@intel.com> Signed-off-by: Tyler Titsworth <tyler.titsworth@intel.com>
1 parent 6006b33 commit f707fdc

File tree

3 files changed

+99
-18
lines changed

3 files changed

+99
-18
lines changed

.github/ISSUE_TEMPLATE/bug-report.yml

+2
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ body:
6464
required: false
6565
- label: test-runner
6666
required: false
67+
- label: workflows
68+
required: false
6769
- type: textarea
6870
id: versions
6971
attributes:

CONTRIBUTING.md

+91-14
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,49 @@ Thank you for considering contributing to Intel® AI Containers! We welcome your
44

55
## Getting Started
66

7-
Before you start contributing, please take a moment to review the following guidelines.
7+
Before you start contributing, submit a request to be added to the [Intel](https://github.com/intel) Organization on GitHub by contacting one of the [`ai-containers-maintain`](https://github.com/orgs/intel/teams/ai-containers-maintain) members.
8+
9+
Once assigned to the [`ai-containers-write`](https://github.com/orgs/intel/teams/ai-containers-write) or [`ai-containers-maintain`](https://github.com/orgs/intel/teams/ai-containers-maintain) team depending on the scope of your contributions, you will be able to create branches and submit pull requests.
10+
11+
Once you are added to the organization, you will be given acces to ai-containers' Azure Container Registry (ACR).
812

913
## Code of Conduct
1014

1115
This project follows the [Contributor Covenant Code of Conduct](CODE_OF_CONDUCT.md). Please review it to understand the expectations for participant behavior.
1216

1317
### How to Contribute
1418

15-
1. Fork the repository.
16-
2. Create a new branch for your contribution: `git checkout -b feature/your-feature`.
17-
3. Install [pre-commit](https://pre-commit.com/), [Docker](https://docs.docker.com/engine/install/), and [Python 3.8+](https://www.python.org/downloads/).
18-
4. Follow the [Project Setup](README.md#project-setup) steps.
19-
5. Install the third-party python dependencies necessary for pre-commit depending on the type of contribution you are making:
20-
1. If you are contributing to Test Runner, run `pip install -r test-runner/dev-requirements.txt`.
21-
2. If you are contributing to documentation, run `pip install -r docs/requirements.txt`. (This hook will always run)
22-
3. If you are contributing to helm charts, run `pip install -r workflows/charts/dev-requirements.txt`. Install [Helm](https://helm.sh/docs/intro/install/) and then [Chart Testing](https://github.com/helm/chart-testing) tool.
23-
6. Make your changes, commit, and sign your changes: `git commit -s -m 'Add your feature'`.
24-
7. Push to the branch: `git push origin feature/your-feature`.
25-
8. Submit a pull request.
19+
1. Create a new branch for your contribution: `git checkout -b username/your-feature`.
20+
2. Install [pre-commit](https://pre-commit.com/), [Docker](https://docs.docker.com/engine/install/), and [Python 3.8+](https://www.python.org/downloads/).
21+
1. `pre-commit install`
22+
2. `sudo usermod -aG docker $USER`
23+
3. `sudo apt-get install -y python3-venv`
24+
3. Follow the [Project Setup](README.md#project-setup) steps.
25+
4. Install the third-party python dependencies necessary for pre-commit depending on the type of contribution you are making:
26+
1. Always install the documentation hook requirements: `pip install -r docs/requirements.txt`.
27+
2. If you are contributing to Test Runner, run `pip install -r test-runner/dev-requirements.txt`.
28+
3. If you are contributing to helm charts, run `pip install -r workflows/charts/dev-requirements.txt`. Install [Helm](https://helm.sh/docs/intro/install/) and then the [Chart Testing](https://github.com/helm/chart-testing) tool.
29+
5. Make your changes, commit, and [sign](#sign-your-work) your changes: `git commit -s -m 'Add your feature'`.
30+
6. Push to the branch: `git push origin username/your-feature`.
31+
7. Submit a pull request.
32+
33+
### Code Review
34+
35+
All submissions, including submissions by project members, require review. We use GitHub pull requests for this purpose. Consult the [GitHub Help](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/about-pull-requests) for more information on using pull requests.
36+
37+
In order to complete the review process, the following steps are required:
38+
39+
1. All status checks pass.
40+
2. All third-party dependencies are approved by the maintainers and no new vulnerabilities are introduced to the codebase.
41+
3. At least one approval from a [codeowner](https://github.com/intel/ai-containers/blob/main/.github/CODEOWNERS) that maintains the area of the code you are changing.
42+
43+
Depending on the size and complexity of the change, additional reviews may be required and it may be subject to additional requirements, for example, if you are submitting a contribution to [Test Runner](https://github.com/intel/ai-containers/tree/main/test-runner) you may be required to write unit tests that satisfy our coverage requirements.
44+
45+
### Merge Queue
46+
47+
Once your pull request has been approved, it will be added to the merge queue. The merge queue is a list of pull requests that are ready to be merged. The merge queue runs additional CI over your code to make sure no regressions were introduced into other areas of the codebase.
48+
49+
If your pull request passes the merge queue, it will be merged into the main branch. Otherwise, it will be removed from the merge queue, and you will need to address the issues that caused the failure.
2650

2751
## Contribution Guidelines
2852

@@ -36,7 +60,6 @@ To ensure a smooth and effective contribution process, please follow these guide
3660

3761
### Making Changes
3862

39-
- Fork the repository and create a new branch for your changes.
4063
- Keep each pull request focused on a single feature or bugfix.
4164
- Write clear and descriptive commit messages.
4265
- Keep code changes concise and well-documented.
@@ -65,6 +88,60 @@ To ensure a smooth and effective contribution process, please follow these guide
6588
- Reference the relevant issue(s) if applicable.
6689
- Be responsive to feedback and be ready to make further changes if necessary.
6790

91+
### Sign your work
92+
93+
Please use the sign-off line at the end of the patch. Your signature certifies that you wrote the patch or otherwise have the right to pass it on as an open source patch. The rules are pretty simple: if you can certify
94+
the below (from [developercertificate.org](http://developercertificate.org/)):
95+
96+
```text
97+
Developer Certificate of Origin
98+
Version 1.1
99+
100+
Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
101+
660 York Street, Suite 102,
102+
San Francisco, CA 94110 USA
103+
104+
Everyone is permitted to copy and distribute verbatim copies of this
105+
license document, but changing it is not allowed.
106+
107+
Developer's Certificate of Origin 1.1
108+
109+
By making a contribution to this project, I certify that:
110+
111+
(a) The contribution was created in whole or in part by me and I
112+
have the right to submit it under the open source license
113+
indicated in the file; or
114+
115+
(b) The contribution is based upon previous work that, to the best
116+
of my knowledge, is covered under an appropriate open source
117+
license and I have the right under that license to submit that
118+
work with modifications, whether created in whole or in part
119+
by me, under the same open source license (unless I am
120+
permitted to submit under a different license), as indicated
121+
in the file; or
122+
123+
(c) The contribution was provided directly to me by some other
124+
person who certified (a), (b) or (c) and I have not modified
125+
it.
126+
127+
(d) I understand and agree that this project and the contribution
128+
are public and that a record of the contribution (including all
129+
personal information I submit with it, including my sign-off) is
130+
maintained indefinitely and may be redistributed consistent with
131+
this project or the open source license(s) involved.
132+
```
133+
134+
Then you just add a line to every git commit message:
135+
136+
```text
137+
Signed-off-by: Joe Smith <joe.smith@email.com>
138+
```
139+
140+
Use your real name (sorry, no pseudonyms or anonymous contributions.)
141+
142+
If you set your `user.name` and `user.email` git configs, you can sign your
143+
commit automatically with `git commit -s`.
144+
68145
## License
69146

70-
Intel® AI Containers is licensed under the terms in [LICENSE](#license). By contributing to the project, you agree to the license and copyright terms therein and release your contribution under these terms.
147+
Intel® AI Containers is licensed under the terms in [LICENSE](./LICENSE). By contributing to the project, you agree to the license and copyright terms therein and release your contribution under these terms.

README.md

+6-4
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,14 @@ Define your project's registry and repository each time you use the project:
2121
# REGISTRY/REPO:TAG
2222
export REGISTRY=<registry_name>
2323
export REPO=<repo_name>
24-
```
2524

26-
The maintainers of Intel® AI Containers use [harbor](https://github.com/goharbor/harbor) to store containers.
25+
docker login $REGISTRY
2726

28-
> [!NOTE]
29-
> `REGISTRY` and `REPO` are used to authenticate with the private registry necessary to push completed container layers and saved them for testing and publication. For example: `REGISTRY=intel && REPO=intel-extension-for-pytorch` would become `intel/intel-extension-for-pytorch` as the name of the container image, followed by the tag generated from the service found in that project's compose file.
27+
# Verify your access permissions
28+
docker pull $REGISTRY/$REPO:latest
29+
```
30+
31+
The maintainers of Intel® AI Containers use Azure to store containers, but an open source container registry like [harbor](https://github.com/goharbor/harbor) is preferred.
3032

3133
> [!WARNING]
3234
> You can optionally skip this step and use some placeholder values, however some container groups depend on other images and will pull from a registry that you have not defined and result in an error.

0 commit comments

Comments
 (0)