Repository navigation
[CI] Deduplicate Nvidia/AMD CI reply comments and add headers - #48655
Conversation
- Rename comment headers: "CI Results" → "CI Results (Nvidia)" in self-comment-ci.yml; AMD already used "CI Results (AMD)" - Add "## Nvidia CI" / "## AMD CI" headers to reply_to_comment posts and say "on Nvidia" / "on AMD" explicitly - Before posting any reply_to_comment, delete all existing "## Nvidia CI" and "## AMD CI" comments so re-triggering run-slow keeps only one acknowledgment comment on the PR Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
|
@askserge It's beautiful no? |
CI recapDashboard: View test results in Grafana |
There was a problem hiding this comment.
🤗 Serge says:
Add pull-requests: write to both report jobs and fix the bash comments to match the scoped deletion.
Correctness
self-comment-ci-amd.ymlandself-comment-ci.yml:reportjobs callgh api DELETE/POSTon issue comments but lackpull-requests: write, so they will 403. Thereply_to_commentjobs already have this permission; apply it here too.
Maintainability
- Bash comments in both workflows say they delete both Nvidia and AMD CI comments, but the jq
startswithfilter only matches that workflow's own header (## AMD CIor## Nvidia CI). Update the comments to reflect the actual behavior.
Note: 2 suggested inline comment(s) were dropped because they referenced lines not present in the diff.
serge v0.1.0 · model: moonshotai/Kimi-K2.7-Code · 3 LLM turns · 6 tool calls · 141.6s · 29241 in / 4969 out tokens
| github_repository: ${{ github.repository }} | ||
| pr_number: ${{ needs.get-pr-number.outputs.PR_NUMBER }} | ||
| run: | | ||
| # Delete previous Nvidia CI and AMD CI comments before posting |
There was a problem hiding this comment.
This bash comment says "Nvidia CI and AMD CI", but the startswith filter below only matches ## AMD CI. Please update the comment to match the implementation, e.g. # Delete previous AMD CI comments before posting.
| github_repository: ${{ github.repository }} | ||
| pr_number: ${{ needs.get-pr-number.outputs.PR_NUMBER }} | ||
| run: | | ||
| # Delete previous Nvidia CI and AMD CI comments before posting |
There was a problem hiding this comment.
This bash comment says "Nvidia CI and AMD CI", but the startswith filter below only matches ## Nvidia CI. Please update the comment to match the implementation, e.g. # Delete previous Nvidia CI comments before posting.
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
…gface#48655) * [CI] Deduplicate Nvidia/AMD CI comments and add headers - Rename comment headers: "CI Results" → "CI Results (Nvidia)" in self-comment-ci.yml; AMD already used "CI Results (AMD)" - Add "## Nvidia CI" / "## AMD CI" headers to reply_to_comment posts and say "on Nvidia" / "on AMD" explicitly - Before posting any reply_to_comment, delete all existing "## Nvidia CI" and "## AMD CI" comments so re-triggering run-slow keeps only one acknowledgment comment on the PR Co-Authored-By: Claude Sonnet 4.6 <[email protected]> * [CI] Each workflow only deletes its own CI comments Co-Authored-By: Claude Sonnet 4.6 <[email protected]> * [CI] Also deduplicate CI Results (AMD) report comments Co-Authored-By: Claude Sonnet 4.6 <[email protected]> --------- Co-authored-by: ydshieh <[email protected]>
Summary
self-comment-ci.yml(Nvidia):reply_to_commentnow posts## Nvidia CIas the header and adds "on Nvidia" to the message body; deletes any existing## Nvidia CIcomment before posting.reportjob comment header changed from## CI Results→## CI Results (Nvidia); deletes any existing## CI Results (Nvidia)comment before posting.self-comment-ci-amd.yml(AMD):reply_to_commentnow posts## AMD CIas the header; deletes any existing## AMD CIcomment before posting.reportjob already used## CI Results (AMD); now also deletes any existing## CI Results (AMD)comment before posting.Each workflow only touches its own comments — Nvidia does not delete AMD comments and vice versa.
Result: re-triggering
run-slowon a PR replaces the previous acknowledgment/result comment instead of accumulating duplicates.🤖 Generated with Claude Code