Repository navigation
AI assisted contribution guides - #14848
DaanHoogland wants to merge 2 commits into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #14848 +/- ##
=========================================
Coverage 20.92% 20.92%
- Complexity 21142 21146 +4
=========================================
Files 6057 6057
Lines 549556 549556
Branches 73477 73477
=========================================
+ Hits 114991 115003 +12
+ Misses 421116 421104 -12
Partials 13449 13449
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
🔴 Test Coverage Grade:
|
| Metric | Value |
|---|---|
| Line coverage | 25.87% |
| Branch coverage | 21.09% |
Grade Scale
| Grade | Line Coverage | Meaning |
|---|---|---|
| 🟢 A | ≥ 80% | Excellent - this code sleeps well at night 😴 |
| 🟡 B | 60-79% | Good - almost there, don't stop now 😉 |
| 🟠 C | 40-59% | Acceptable - your code is wearing a seatbelt, but no airbags 😬 |
| 🔴 D | 20-39% | Marginal - boldly shipping where no test has gone before 🖖 |
| ⛔ F | < 20% | Failing - tests? what tests? 🔥 |
Branch coverage is shown as a secondary signal. Grade is determined by line coverage.
View full Actions run
bernardodemarco
left a comment
There was a problem hiding this comment.
@DaanHoogland, thanks for the PR, we were really needing something like this...
I just left some minor suggestions, but all good from my side
|
|
||
| If you use AI to submit an issue of any kind (bug report, improvement, feature idea, documentation report, security finding) or a pull request, you are expected to spend the extra tokens and include the work that makes it actionable: | ||
|
|
||
| - **Documentation**: a clear description of the problem or change, the affected versions and components, and, for new or changed behaviour, the documentation or PendingReleaseNotes text that goes with it. |
There was a problem hiding this comment.
@DaanHoogland, maybe an example or description about what PendingReleaseNotes is would be helpful here
| - **Documentation**: a clear description of the problem or change, the affected versions and components, and, for new or changed behaviour, the documentation or PendingReleaseNotes text that goes with it. | |
| - **Documentation**: a clear and straightforward description of the problem or change, the affected versions and components, and, for new or changed behaviour, the documentation or PendingReleaseNotes text that goes with it. |
There was a problem hiding this comment.
PendingReleaseNotes to me is nothing but things that should go in the next release notes. not my forte :/ can you suggest a text?
There was a problem hiding this comment.
@DaanHoogland, maybe something like this? I don't know if it's worth it mentioning about content for release notes
| - **Documentation**: a clear description of the problem or change, the affected versions and components, and, for new or changed behaviour, the documentation or PendingReleaseNotes text that goes with it. | |
| - **Documentation**: a clear and straightforward description of the problem or change, the affected versions and components, and, for new or changed behaviour, the corresponding documentation. Documentation content, including user guides, should be submitted as a separate PR to the https://github.com/apache/cloudstack-documentation/ repository, and linked from the code PR. |
|
|
||
| Review and verify AI output before you submit it. You are responsible for the accuracy of what you submit, and for making sure it compiles, passes the tests and actually addresses the issue. Please mention in the issue or pull request that AI tools were used. | ||
|
|
||
| Issues or pull requests that are clearly AI-generated but lack these elements may be closed or put on hold until they are completed. |
There was a problem hiding this comment.
@DaanHoogland, maybe a note highlighting the importance of manual testing AI patches and ensuring they actually work?
There was a problem hiding this comment.
| Issues or pull requests that are clearly AI-generated but lack these elements may be closed or put on hold until they are completed. | |
| Issues or pull requests that are clearly AI-generated but lack these elements may be closed or put on hold until they are completed. It helps if you describe how you "manually" tested the AI's output. |
how about that @bernardodemarco ?
There was a problem hiding this comment.
@DaanHoogland, what about something like this?
| Issues or pull requests that are clearly AI-generated but lack these elements may be closed or put on hold until they are completed. | |
| Issues or pull requests that are clearly AI-generated but lack these elements may be closed or put on hold until they are completed. **Note:** Submitting AI-generated code does not replace testing it. Before opening a PR, you must manually test your changes and confirm they work as intended. Do not rely on the AI's output, or on a passing CI run alone, as proof of correctness. In the PR description, state what you tested and how (environment, steps, and results), so reviewers can see that a human has verified the change. As the author, you are responsible for every line you submit, whether or not an AI tool wrote it. |
bhouse-nexthop
left a comment
There was a problem hiding this comment.
I agree this is a good direction to advertise that AI assistance was used in generation of the PR. I also agree that if a contributor is using AI they should be generating test coverage as well, that is something AI excels at.
That said, I think you should go a step further in this PR (or a follow-up) and provide a detailed AGENTS.md to provide some guardrails to ensure PRs are still reviewable by humans for common problems:
- language forms for commit messages, code comments, and pr descriptions that aren't in plain simple english, or state things that simply don't need to be said or don't add clarity.
- code comments just stating what the code below does that is already obvious.
- minimize code for review-ability. Often AI will go down a rabbit hole on handling code paths that are impossible making PRs 10x larger than they need to be.
Co-authored-by: Bernardo De Marco Gonçalves <bernardomg2004@gmail.com>
very good idea (for a separate/parallel PR), will you start that @bhouse-nexthop ? |
I got impatient, so I generated one from my own dev-env, but need to really look again. I guess some habits and mix of project/work/hobby is due addressing. We do have a very terse AGENTS.md, which only refers to the security model so far. |
|
please discuss #14872 |
|



Description
This PR...
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
How did you try to break this feature and the system with this change?