[docs] chore: Add docs/tests checklist and refactor PR guidance to CONTRIBUTING.md#2890
[docs] chore: Add docs/tests checklist and refactor PR guidance to CONTRIBUTING.md#2890
Conversation
…NTRIBUTING.md - All feature PRs must evaluate whether docs and tests need adding or updating - Refactoring PRs must check docs, docstrings, and scripts for stale references - L1 tests also triggered by needs-more-tests label - New functional tests should start at L0; maintainer adjusts tier later Signed-off-by: yaoyu-33 <[email protected]> Made-with: Cursor
|
/ok to test b5c2f51 |
📝 WalkthroughWalkthroughCONTRIBUTING.md updated with expanded CI/CD guidance, clarified test tier requirements, enhanced documentation standards for features, and new refactoring procedures guidance. Changes address launcher script setup, PR labeling for tests, and mandatory checks for documentation and refactoring tasks. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes 🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
CONTRIBUTING.md (1)
332-339: Consider aligning the example with the L0 guidance.Line 332 instructs contributors to "always start with the L0 tier," but the YAML example shows an L1 test. For better clarity and consistency, consider either:
- Updating the example to show an L0 test, or
- Adding a note explaining that the example shows L1 format but contributors should initially add their script to the L0 matrix
Additionally, "corresponding job matrix" might not be immediately clear to first-time contributors. Consider rephrasing to: "You must also update
.github/workflows/cicd-main.ymlto include it in the L0 job matrix (or L1/L2 if a maintainer promotes it later):"📝 Example improvement
-When adding a new launcher script, always start with the **L0** tier so it runs on every PR. A maintainer will adjust the tier later if the test is too slow or better suited for nightly coverage. You must **also update** [`.github/workflows/cicd-main.yml`](.github/workflows/cicd-main.yml) to include it in the corresponding job matrix: +When adding a new launcher script, always start with the **L0** tier so it runs on every PR. A maintainer will adjust the tier later if the test is too slow or better suited for nightly coverage. You must **also update** [`.github/workflows/cicd-main.yml`](.github/workflows/cicd-main.yml) to include it in the **L0 job matrix** (or L1/L2 if promoted later): ```yaml -# Example: adding an L1 test -- script: L1_Launch_your_new_test +# Example: adding an L0 test +- script: L0_Launch_your_new_test</details> <details> <summary>🤖 Prompt for AI Agents</summary>Verify each finding against the current code and only fix it if needed.
In
@CONTRIBUTING.mdaround lines 332 - 339, Update the example in
CONTRIBUTING.md to match the guidance to "always start with the L0 tier": change
the shown YAML snippet to use an L0 launcher name (e.g., replace the example
script value with something like L0_Launch_your_new_test) and update the
adjacent sentence to explicitly tell contributors to also add the launcher to
the L0 job matrix in .github/workflows/cicd-main.yml (or note that maintainers
may promote it to L1/L2 later); reference the example YAML block and the file
.github/workflows/cicd-main.yml so reviewers can find and update the snippet and
the explanatory text consistently.</details> </blockquote></details> </blockquote></details> <details> <summary>🤖 Prompt for all review comments with AI agents</summary>Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In@CONTRIBUTING.md:
- Around line 332-339: Update the example in CONTRIBUTING.md to match the
guidance to "always start with the L0 tier": change the shown YAML snippet to
use an L0 launcher name (e.g., replace the example script value with something
like L0_Launch_your_new_test) and update the adjacent sentence to explicitly
tell contributors to also add the launcher to the L0 job matrix in
.github/workflows/cicd-main.yml (or note that maintainers may promote it to
L1/L2 later); reference the example YAML block and the file
.github/workflows/cicd-main.yml so reviewers can find and update the snippet and
the explanatory text consistently.</details> --- <details> <summary>ℹ️ Review info</summary> <details> <summary>⚙️ Run configuration</summary> **Configuration used**: Path: .coderabbit.yaml **Review profile**: CHILL **Plan**: Pro **Run ID**: `0f85f6fd-2e7e-4f18-842c-2f120651bad2` </details> <details> <summary>📥 Commits</summary> Reviewing files that changed from the base of the PR and between 9a4f5312397635536fbb3e0a840078eea876aa40 and b5c2f51fb871a8f1fc0912064a32d8e60bd8288d. </details> <details> <summary>📒 Files selected for processing (1)</summary> * `CONTRIBUTING.md` </details> </details> <!-- This is an auto-generated comment by CodeRabbit for review status -->
- Add "Labeling Your PR" section with minimum label checklist - docs-only label skips most CI jobs - Add area:distill, area:prune, area:quant to areas and label table - Allow multiple area labels per PR Signed-off-by: yaoyu-33 <[email protected]> Made-with: Cursor
|
/ok to test 597d3b8 |
…er updates - Add needs-more-tests and high-complexity to PR labeling checklist - Discourage required dependencies; recommend optional under extra groups - Separate dependency PRs from feature PRs - Note docs-only label skips most CI Signed-off-by: yaoyu-33 <[email protected]> Made-with: Cursor
|
/ok to test a4d7e55 |
Summary
scripts/for stale references when renaming symbols, moving files, or changing pathsneeds-more-testsalso trigger L1 testsTest plan
Made with Cursor
Summary by CodeRabbit
needs-more-tests.