Skip to content

Minimize CI workflow failures and pipeline start comments - #39564

Merged
kubaflo merged 1 commit into
mainfrom
kubaflo-bot-comment-cleanup
Oct 23, 2026
Merged

kubaflo merged 1 commit into
mainfrom
kubaflo-bot-comment-cleanup

Conversation

@kubaflo

@kubaflo kubaflo commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Note

Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!

Description of Change

Extend the existing comment cleanup to minimize successful Azure Pipelines start acknowledgments that include the standard authorization hint, and GitHub Actions workflow-failure notices, including marked review failures, agent-job failures, failed workflow statuses, and security-scanning failure notices.

Keep substantive review reports (including Tests Failure Analysis), actual Azure Pipelines failures, standalone authorization warnings, and ordinary discussion visible. Comments are collapsed, not deleted.

Add hourly reconciliation across all open PRs, including historical comments, because comments posted with GITHUB_TOKEN do not trigger another issue_comment workflow. Manual dispatch can target a single pr_number, or reconcile all open PRs when omitted. Read live comment bodies, paginate all comments, and leave already-minimized comments unchanged. No PR code is checked out or executed, and no new secret is required.

Validation:

  • actionlint .github/workflows/azure-pipelines-comment-cleanup.yml — passed.
  • git diff --check — passed.
  • Embedded workflow JavaScript syntax check with Node.js AsyncFunction — passed.
  • gh workflow run azure-pipelines-comment-cleanup.yml --repo dotnet/maui --ref kubaflo-bot-comment-cleanup -f pr_number=39493 — passed (targeted hosted run). Confirmed that the Azure start notice and workflow-failure notification were minimized, while the substantive test-failure analysis and dogfood instructions remained visible.
  • gh workflow run azure-pipelines-comment-cleanup.yml --repo dotnet/maui --ref kubaflo-bot-comment-cleanup — passed (all-open-PR hosted run). The sweep minimized 327 additional eligible comments across 77 PRs.

Issues Fixed

No linked issue. Follow-up to #39404, addressing the automation noise illustrated by the Azure start notice and the workflow-failure notification on #39493.

Include successful Azure starts with the standard authorization hint and GitHub Actions workflow-failure notifications. Reconcile open PR comments hourly because GITHUB_TOKEN comments do not emit issue_comment events, and support targeted manual cleanup while preserving substantive review reports.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: db5934e5-dd19-491e-8567-41cad2b43361
Copilot AI balanced review requested due to automatic review settings October 22, 2026 17:22
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool October 22, 2026 17:22 — with GitHub Actions Inactive
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 39564

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 39564"

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
1 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI 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.

🟡 Changes recommended

An explicit zero PR number bypasses validation and unexpectedly selects repository-wide cleanup.

1 open issue
What changed in this PR

Extends the existing Azure Pipelines comment cleanup to reduce CI notification noise while keeping substantive reports and discussion visible.

Changes:

  • Collapses successful pipeline-start acknowledgments with authorization hints and recognized GitHub Actions failure notices.
  • Adds hourly and manual reconciliation with pagination and checks for already-minimized comments.
  • Documents cleanup scope, preserved comments, and activation behavior.
File Description
.github/​workflows/​azure-pipelines-comment-cleanup.yml Expands classification and adds scheduled and manual cleanup.
.github/​docs/​trigger-azdo-pipeline-setup.md Documents expanded cleanup behavior and reconciliation options.

Review effort: Balanced

pr_number:
description: 'PR number to clean up (omit to scan all open PRs)'
required: false
type: number
@github-actions github-actions Bot added the s/agent-review-in-progress AI review is currently running for this PR label Oct 22, 2026
@kubaflo

kubaflo commented Oct 23, 2026

Copy link
Copy Markdown
Contributor Author

@dalexsoto stamp

@dalexsoto dalexsoto left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Stamping as requested by @kubaflo; no code review performed.

@kubaflo
kubaflo merged commit 74cf8e3 into main Oct 23, 2026
15 of 17 checks passed
@kubaflo
kubaflo deleted the kubaflo-bot-comment-cleanup branch October 23, 2026 10:52
@github-actions github-actions Bot added this to the .NET 10 SR13 milestone Oct 23, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 23, 2026

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — 419461a9 Deployed Oct 22, 2026 by kubaflo via conclusion #2463
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

s/agent-review-in-progress AI review is currently running for this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants