Skip to content

docs: add Ascend contribution templates - #124

Open
blackdragoon26 wants to merge 1 commit into
Project-HAMi:mainfrom
blackdragoon26:fix/contribution-templates
Open

docs: add Ascend contribution templates#124
blackdragoon26 wants to merge 1 commit into
Project-HAMi:mainfrom
blackdragoon26:fix/contribution-templates

Conversation

@blackdragoon26

@blackdragoon26 blackdragoon26 commented Aug 8, 2026

Copy link
Copy Markdown

What type of PR is this?

/kind documentation

What this PR does / why we need it:

Adds concise, repository-specific templates for bug reports, enhancements, good first issues, questions, and pull requests. This helps reports collect consistent Ascend NPU, CANN, scheduler, runtime, and reproduction details while keeping project behavior unchanged.

Which issue(s) this PR fixes:
Fixes #123

Special notes for your reviewer:

This is a documentation-only change. The issue-template front matter was parsed locally, uses existing repository labels, and all five Markdown files were checked for whitespace errors. Diagnostic prompts request only relevant, time-bounded excerpts and require sensitive identifiers to be masked.

Does this PR introduce a user-facing change?:

Yes. Contributors will see repository-specific prompts when opening issues and pull requests.

AI Disclosure:

AI was used only for formatting purposes.

Summary by CodeRabbit

  • Documentation
    • Added templates for bug reports, enhancement requests, questions, and good-first issues.
    • Added prompts for reproduction steps, environment details, diagnostics, task planning, and sanitized information.
    • Added a pull request template covering change type, linked issues, reviewer notes, user-facing impact, and AI assistance disclosure.

Signed-off-by: blackdragoon26 <sankalp.jha9643@gmail.com>
@hami-robot

hami-robot Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

@blackdragoon26: The label(s) kind/documentation cannot be applied, because the repository doesn't have them.

Details

In response to this:

What type of PR is this?

/kind documentation

What this PR does / why we need it:

Adds concise, repository-specific templates for bug reports, enhancements, good first issues, questions, and pull requests. This helps reports collect consistent Ascend NPU, CANN, scheduler, runtime, and reproduction details while keeping project behavior unchanged.

Which issue(s) this PR fixes:
Fixes #123

Special notes for your reviewer:

This is a documentation-only change. The issue-template front matter was parsed locally, uses existing repository labels, and all five Markdown files were checked for whitespace errors. Diagnostic prompts request only relevant, time-bounded excerpts and require sensitive identifiers to be masked.

Does this PR introduce a user-facing change?:

Yes. Contributors will see repository-specific prompts when opening issues and pull requests.

AI Disclosure:

AI was used only for formatting purposes.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@hami-robot

hami-robot Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: blackdragoon26
Once this PR has been reviewed and has the lgtm label, please assign archlitchi for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@coderabbitai

coderabbitai Bot commented Aug 8, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

Added repository-local GitHub issue templates for four issue types and a pull request template. The templates collect structured reproduction, environment, contribution, review, and disclosure details, with guidance to redact sensitive information.

Changes

Contribution Templates

Layer / File(s) Summary
Issue intake templates
.github/ISSUE_TEMPLATE/*
Added structured templates for bug reports, enhancement requests, good-first issues, and questions. The templates collect diagnostic and environment details and request sensitive-data redaction.
Pull request contribution template
.github/PULL_REQUEST_TEMPLATE.md
Added prompts for PR classification, purpose, linked issues, reviewer notes, user-facing changes, and AI assistance disclosure.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Possibly related issues

  • Project-HAMi/volcano-vgpu-device-plugin#147 — Covers the same repository-local issue and pull request template set.
  • Project-HAMi/HAMi-core#254 — Covers matching contribution template files and prompts.
  • Project-HAMi/HAMi#2482 — Includes the AI disclosure section added to the pull request template.

Suggested labels: enhancement

Suggested reviewers: archlitchi, dsfans2014

Poem

A rabbit hops through templates bright,
Bug clues gathered, fields aligned.
Questions, features, pull requests too,
Redacted logs keep secrets few.
“Review with carrots!” says the hare,
“Clear contributions start right there.”

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Linked Issues check ❓ Inconclusive The five requested templates are included, but the summary does not confirm labels, blank issue availability, or all required diagnostic guidance [#123]. Verify blank issue creation, all four existing labels, and each required diagnostic and redaction prompt.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly identifies the addition of Ascend contribution templates, which is the main change.
Out of Scope Changes check ✅ Passed All listed changes are contribution templates and align with the documentation-only scope of issue #123.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@hami-robot

hami-robot Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Welcome @blackdragoon26! It looks like this is your first PR to Project-HAMi/ascend-device-plugin 🎉

@hami-robot hami-robot Bot added the size/L label Aug 8, 2026
@blackdragoon26
blackdragoon26 marked this pull request as ready for review August 8, 2026 14:24
@coderabbitai coderabbitai Bot added the enhancement New feature or request label Aug 8, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
.github/ISSUE_TEMPLATE/enhancement.md (1)

9-14: 📐 Maintainability & Code Quality | 🟠 Major | ⚡ Quick win

Make contribution intake consistent across templates.

The templates do not consistently collect the deployment, environment, acceptance, and verification data required by the PR objectives.

  • .github/ISSUE_TEMPLATE/enhancement.md#L9-L14: Add affected component, deployment context, acceptance criteria, and a verification plan.
  • .github/ISSUE_TEMPLATE/question.md#L13-L21: Split installation method and slicing mode, then add image/tag, container runtime, scheduler, deployment configuration, and verification-result fields.
  • .github/PULL_REQUEST_TEMPLATE.md#L15-L26: Add tests or checks with results and a deployment/configuration impact field.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/ISSUE_TEMPLATE/enhancement.md around lines 9 - 14, Make contribution
intake consistent across the templates: in .github/ISSUE_TEMPLATE/enhancement.md
lines 9-14, add fields for affected component, deployment context, acceptance
criteria, and a verification plan; in .github/ISSUE_TEMPLATE/question.md lines
13-21, separate installation method from slicing mode and add image/tag,
container runtime, scheduler, deployment configuration, and verification-result
fields; in .github/PULL_REQUEST_TEMPLATE.md lines 15-26, add tests or checks
with their results and a deployment/configuration impact field.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/ISSUE_TEMPLATE/bug-report.md:
- Line 22: Update the kubelet log command in the bug-report template to include
explicit journalctl --since and --until bounds, while preserving the existing
reverse ordering and kubelet unit filter.

---

Outside diff comments:
In @.github/ISSUE_TEMPLATE/enhancement.md:
- Around line 9-14: Make contribution intake consistent across the templates: in
.github/ISSUE_TEMPLATE/enhancement.md lines 9-14, add fields for affected
component, deployment context, acceptance criteria, and a verification plan; in
.github/ISSUE_TEMPLATE/question.md lines 13-21, separate installation method
from slicing mode and add image/tag, container runtime, scheduler, deployment
configuration, and verification-result fields; in
.github/PULL_REQUEST_TEMPLATE.md lines 15-26, add tests or checks with their
results and a deployment/configuration impact field.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 9c448677-eb77-44ae-8e0b-8ec0fac3ba80

📥 Commits

Reviewing files that changed from the base of the PR and between 771e19f and d307546.

📒 Files selected for processing (5)
  • .github/ISSUE_TEMPLATE/bug-report.md
  • .github/ISSUE_TEMPLATE/enhancement.md
  • .github/ISSUE_TEMPLATE/good-first.md
  • .github/ISSUE_TEMPLATE/question.md
  • .github/PULL_REQUEST_TEMPLATE.md

- Relevant Docker or containerd configuration sections. Omit credentials, tokens, passwords, private keys, certificates, and unrelated host data.
- Relevant, time-bounded excerpts from the ascend-device-plugin container logs
- Relevant, time-bounded excerpts from the HAMi scheduler or Volcano scheduler container logs
- Relevant, time-bounded excerpts from the kubelet logs on the node (e.g: `sudo journalctl -r -u kubelet`)

@coderabbitai coderabbitai Bot Aug 8, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔒 Security & Privacy | 🟡 Minor | ⚡ Quick win

Make the kubelet example time-bounded.

journalctl -r -u kubelet filters by unit but returns the full retained journal. It does not enforce the template’s time-bounded logging requirement. Add explicit --since and --until values.

Proposed fix
-- Relevant, time-bounded excerpts from the kubelet logs on the node (e.g: `sudo journalctl -r -u kubelet`)
+- Relevant kubelet log excerpts for the incident window (e.g. `sudo journalctl -r -u kubelet --since "<start>" --until "<end>" --no-pager`)

The PR objective requires time-bounded diagnostic excerpts.

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
- Relevant, time-bounded excerpts from the kubelet logs on the node (e.g: `sudo journalctl -r -u kubelet`)
- Relevant kubelet log excerpts for the incident window (e.g. `sudo journalctl -r -u kubelet --since "<start>" --until "<end>" --no-pager`)
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/ISSUE_TEMPLATE/bug-report.md at line 22, Update the kubelet log
command in the bug-report template to include explicit journalctl --since and
--until bounds, while preserving the existing reverse ordering and kubelet unit
filter.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mean yeah, but would like to see maintainers idea on that, until then I would hold

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@blackdragoon26, acknowledged. Hold this change until a maintainer provides direction. The review comment remains open for now.

You are interacting with an AI system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add GitHub contribution templates

1 participant