|
1 | 1 | # Contribute to the NVIDIA `sandbox-device-plugin` Project |
2 | 2 |
|
3 | | -Want to contribute to the NVIDIA `sandbox-device-plugin` Project? Awesome! |
4 | | -We only require you to sign your work, the below section describes this! |
| 3 | +To file feature requests or bugs, submit an issue at https://github.com/NVIDIA/sandbox-device-plugin/issues. For questions, ask in the `#gpu-operator` channel in our community Slack at https://inviter.co/dsx-ai-factory. |
| 4 | + |
| 5 | +All external contributions start with an issue. External contributors must have an accepted issue that is assigned to them before they open a pull request. See [Contribution workflow](#contribution-workflow). Contributions do not require explicit contributor license agreements (CLA), but we expect contributors to [sign](#sign-your-work) their work. |
| 6 | + |
| 7 | +PR approval and decision-making for major changes are documented in [GOVERNANCE.md](GOVERNANCE.md). |
5 | 8 |
|
6 | 9 | All contributions must adhere to the [Code of Conduct](CODE_OF_CONDUCT.md). |
7 | 10 |
|
| 11 | +### AI Usage |
| 12 | +AI-assisted contributions are welcome, however, **you must understand your code**. If you can't explain what your changes do and how they interact with the greater system without the aid of AI tools, your contribution may not be accepted. AI should assist your effort, not replace it or shift the burden of understanding, testing, and reviewing onto maintainers. |
| 13 | + |
| 14 | +The human contributor is accountable for all code, regardless of how much was AI-generated. Each contribution must name the human behind the change via a [DCO sign-off](#sign-your-work). |
| 15 | + |
| 16 | +Maintainers may close issues and PRs that are unproductive or low-quality, without explanation, regardless of whether AI tools were used or not. If a contributor repeatedly opens unproductive issues or PRs, they may be blocked from contributing to the project because it is disruptive and disrespectful of the maintainers' time. |
| 17 | + |
| 18 | +Below are some unacceptable usages of AI that will likely result in your contribution being closed: |
| 19 | + |
| 20 | +- Submitting AI-generated issues or PRs without thorough review and verification |
| 21 | +- Submitting AI-generated code that you cannot explain or answer questions about during review |
| 22 | +- Using AI to generate replies to review comments or issue discussions |
| 23 | +- Submitting AI-generated code that contains unnecessary refactoring or unrelated changes not scoped to the problem the PR is solving |
| 24 | + |
| 25 | +### Contribution workflow |
| 26 | + |
| 27 | +**To propose a new issue:** start at step 1.\ |
| 28 | +**To work on an existing issue:** skip to step 3 and [claim an `accepted` issue](https://github.com/NVIDIA/sandbox-device-plugin/issues?q=is%3Aopen+label%3Aaccepted+no%3Aassignee) with no assignees. |
| 29 | + |
| 30 | +1. **Open an issue.** Use the bug report template to report a defect, or the feature request template to propose new behavior or a [major change](GOVERNANCE.md#core-decisions). Indicate if you want to work on the issue. Each new issue gets the `needs-triage` label. |
| 31 | +2. **Wait for triage.** A maintainer reviews the issue against the [triage criteria](#triage-criteria). The maintainer then labels the issue `accepted`, `needs-more-info`, or closes it. |
| 32 | +3. **Claim the issue.** When an issue is `accepted`, comment on it expressing interest and summarizing your proposed solution. Issue authors have priority if they indicate they would like to work on it. Other claims are first-come, first-served. A maintainer discusses your plan with you and assigns the issue to you when the plan is ready. |
| 33 | +4. **Open a pull request.** File a pull request at https://github.com/NVIDIA/sandbox-device-plugin/pulls and link the issue in the description (for example, `Fixes #1234`). Maintainers close pull requests that do not link an issue assigned to the author, and pull requests that are duplicates of existing ones. |
| 34 | + |
| 35 | +### Issue labels |
| 36 | + |
| 37 | +Each open issue has one state label and one category label. For example, `needs-triage` and `bug` together identify a bug report that no maintainer has reviewed yet. |
| 38 | + |
| 39 | +| Label | Type | Meaning | |
| 40 | +| ----- | ---- | ------- | |
| 41 | +| `needs-triage` | State | No maintainer has reviewed the issue yet. | |
| 42 | +| `needs-more-info` | State | Maintainers are waiting for more information from the author. If the issue has no activity for 30 days, it is closed. | |
| 43 | +| `accepted` | State | The issue is approved for work. Contributors can claim it. | |
| 44 | +| `bug` | Category | A defect in existing behavior. | |
| 45 | +| `feature` | Category | A request for new behavior. | |
| 46 | + |
| 47 | +### Triage criteria |
| 48 | + |
| 49 | +Maintainers use these questions to triage an issue: |
| 50 | + |
| 51 | +- Is the problem clear and reproducible? |
| 52 | +- Is the issue a duplicate, or does other work already address it? |
| 53 | +- Does the issue fit the supported use cases and the project priorities? |
| 54 | +- Is the proposed approach appropriate? |
| 55 | +- Does the issue align with the product roadmap? |
| 56 | + |
8 | 57 | ## Sign your work |
9 | 58 |
|
10 | 59 | The sign-off is a simple line at the end of the explanation for the patch. Your |
|
0 commit comments