Repository navigation
Minimize CI workflow failures and pipeline start comments - #39564
Merged
Merged
Conversation
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
kubaflo
temporarily deployed
to
copilot-pat-pool
October 22, 2026 17:22 — with
GitHub Actions
Inactive
Contributor
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 39564Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 39564" |
|
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. |
kubaflo
temporarily deployed
to
copilot-pat-pool
October 22, 2026 17:22 — with
GitHub Actions
Inactive
kubaflo
temporarily deployed
to
copilot-pat-pool
October 22, 2026 17:23 — with
GitHub Actions
Inactive
kubaflo
temporarily deployed
to
copilot-pat-pool
October 22, 2026 17:26 — with
GitHub Actions
Inactive
kubaflo
temporarily deployed
to
copilot-pat-pool
October 22, 2026 17:27 — with
GitHub Actions
Inactive
kubaflo
temporarily deployed
to
copilot-pat-pool
October 22, 2026 17:28 — with
GitHub Actions
Inactive
Contributor
There was a problem hiding this comment.
🟡 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 |
Contributor
Author
|
@dalexsoto stamp |
This was referenced Oct 23, 2026
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

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_TOKENdo not trigger anotherissue_commentworkflow. Manual dispatch can target a singlepr_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.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.