Skip to content

[CI] Deduplicate Nvidia/AMD CI reply comments and add headers - #48655

Merged
ydshieh merged 3 commits into
mainfrom
fix-ci-comment-dedup
Sep 9, 2026
Merged

ydshieh merged 3 commits into
mainfrom
fix-ci-comment-dedup

Conversation

@ydshieh

@ydshieh ydshieh commented Sep 9, 2026 •

Copy link
Copy Markdown
Collaborator

CPU CI GPU run-slow

Summary

  • self-comment-ci.yml (Nvidia):
    • reply_to_comment now posts ## Nvidia CI as the header and adds "on Nvidia" to the message body; deletes any existing ## Nvidia CI comment before posting.
    • report job 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_comment now posts ## AMD CI as the header; deletes any existing ## AMD CI comment before posting.
    • report job 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-slow on a PR replaces the previous acknowledgment/result comment instead of accumulating duplicates.

🤖 Generated with Claude Code

ydshieh and others added 3 commits September 9, 2026 17:24
- 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]>
@ydshieh

ydshieh commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator Author

@askserge It's beautiful no?

@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

CI recap

Dashboard: View test results in Grafana
Latest run: 34370044394:1
Result: success | Jobs: 2 | Tests: 16 | Failures: 0 | Duration: 1m 53s

@sergereview sergereview Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🤗 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.yml and self-comment-ci.yml: report jobs call gh api DELETE/POST on issue comments but lack pull-requests: write, so they will 403. The reply_to_comment jobs 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 startswith filter only matches that workflow's own header (## AMD CI or ## 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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

@ydshieh
ydshieh merged commit d7d7fff into main Sep 9, 2026
32 checks passed
@ydshieh
ydshieh deleted the fix-ci-comment-dedup branch September 9, 2026 15:36
@HuggingFaceDocBuilderDev

Copy link
Copy Markdown

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.

sbucaille pushed a commit to sbucaille/transformers that referenced this pull request Sep 16, 2026
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants