Repository navigation
Stop agentic workflows filing [aw] Failed jobs issues they opted out of - #39096
Conversation
Five agentic workflows already declare `safe-outputs.report-failure-as-issue: false`,
but between them they account for 166 of the 168 open `[aw] Failed jobs: ...`
issues in the repo:
70 CI Failure Scanner (net11.0) ci-status-net11.md
63 CI Failure Scanner ci-status-main.md
29 Agentic Labeler agentic-labeler.md
4 Review PR Test Failures copilot-review-tests.md
1 Review PR Performance copilot-review-performance.md
`report-failure-as-issue` only governs the *agent*-level failure reporter
(`handle_agent_failure.cjs`). Job-level failures go through a completely
separate reporter, `report_failed_jobs.cjs`, gated by its own frontmatter key
`safe-outputs.report-failed-jobs`, which defaults to true. So every one of
these workflows kept filing `[aw] Failed jobs: ...` issues on every red run
despite having explicitly opted out of failure issues.
agentic-labeler.md already carries a comment showing the maintainers walked
this exact list of knobs (`noop.report-as-issue`, `missing-tool.create-issue`,
`report-incomplete.create-issue`, `report-failure-as-issue`) and verified each
one against the generated lock. `report-failed-jobs` is simply the one that
was missed.
Set it to false on those five workflows and recompile. These runs are already
visible as red runs in the Actions tab and, for the scanners, through their
own `[ci-scan]` issue stream, so nothing becomes invisible.
Lock files are regenerated with the pinned compiler (gh aw v0.86.2). The diff
is uniform across all five: the `Report failed jobs` step is dropped, and the
`conclusion` job sheds the now-unnecessary `actions: read` permission.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 39096Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 39096" |
|
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. |
There was a problem hiding this comment.
Copilot review overview
🔵 Needs a closer look
The configuration is internally consistent, but final CI and actionlint results were unavailable for verification.
Review effort: Balanced
Findings: None
What changed in this PR
Disables duplicate [aw] Failed jobs issues across five agentic workflows. The title and description accurately match the implementation.
Changes:
- Adds
report-failed-jobs: falsealongside existing failure-reporting opt-outs. - Regenerates lock files, removing failed-job reporting steps and unnecessary permissions.
| File | Description |
|---|---|
.github/workflows/agentic-labeler.md |
Disables job-failure issues. |
.github/workflows/agentic-labeler.lock.yml |
Regenerates compiled workflow. |
.github/workflows/ci-status-main.md |
Disables job-failure issues. |
.github/workflows/ci-status-main.lock.yml |
Regenerates compiled workflow. |
.github/workflows/ci-status-net11.md |
Disables job-failure issues. |
.github/workflows/ci-status-net11.lock.yml |
Regenerates compiled workflow. |
.github/workflows/copilot-review-tests.md |
Disables job-failure issues. |
.github/workflows/copilot-review-tests.lock.yml |
Regenerates compiled workflow. |
.github/workflows/copilot-review-performance.md |
Disables job-failure issues. |
.github/workflows/copilot-review-performance.lock.yml |
Regenerates compiled workflow. |
PureWeen
left a comment
There was a problem hiding this comment.
Adversarial review
As an independent reviewer, I found no actionable defects introduced by this change at commit 041dd0a202a1521fc67eff775f306db52d0dc732. All three independent reviewers reached the same code-review assessment.
The five workflow sources explicitly disable safe-outputs.report-failed-jobs, separately from their existing agent-failure reporting setting. Their generated locks consistently remove the failed-job issue reporter and its conclusion-job actions: read permission, without changing prompt bodies or job graphs. The remaining conclusion handlers do not depend on the removed reporter or its Actions Jobs API permission.
The scanners' structured [ci-scan] / [ci-scan-net11] publishing and the review workflows' dedicated failure notifications remain intact. No repository consumer of the generic [aw] Failed jobs: issue stream was identified. The title and description match the implementation.
Validation scope: Static review of the immutable diff, source/lock consistency, affected consumers, and pinned v0.86.2 compiler/runtime behavior. No new executable tests are included, and workflow compilation or execution was not performed in this review.
Prior feedback: No existing reviews or inline review comments were present when context was gathered.
Methodology: 3 independent reviewers with adversarial consensus.
Scope: code review only. CI/check status and merge readiness were not evaluated; use the repository's CI-analysis workflow for that assessment.
|
@dalexsoto stamp |
Regenerate gh-aw lock files with the pinned compiler to retain the main PAT-pool condition and remove the five opted-out failed-jobs reporters. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
Resolved #39096’s conflicts with the latest The five conflicts were all generated gh-aw lock files. I regenerated them from the PR’s unchanged workflow frontmatter using the pinned Validation: GitHub now reports no merge conflicts. The exact-head PowerShell Script Tests, Build Insights, and Build Analysis checks are still running; |
PureWeen
left a comment
There was a problem hiding this comment.
Adversarial review
As an independent reviewer, I found no new actionable defects at commit faf751fc9c99bd5f9ec79566e2955d150ef2bee1. All three independent reviewers reached the same assessment after reviewing the merged head.
The five regenerated locks preserve main's pat_pool if: success() guard while retaining the intended safe-outputs.report-failed-jobs: false opt-out. Compared with the merged main, the workflow changes remain limited to that source setting, explanatory comments, updated frontmatter hashes, removal of the failed-job reporter, and removal of its conclusion-job actions: read permission. Prompt body hashes and job graphs remain unchanged.
The remaining conclusion handlers do not require the removed reporter's Actions Jobs API permission. The scanners' structured [ci-scan] / [ci-scan-net11] publishing and review-specific failure notifications remain intact. No dependency on the removed generic failed-job issue stream was identified in the affected consumers. The title and description still match the implementation.
Prior feedback: This is an exact-head follow-up to the earlier clean review at 041dd0a202a1521fc67eff775f306db52d0dc732. Existing review feedback was considered; no prior causal finding needed repetition, and no inline review comments were present when context was gathered.
Scope and limitations: Static review of the immutable diff, merge resolutions, workflow source/lock consistency, affected consumers, and pinned v0.86.2 compiler/runtime behavior. No new executable tests are included. Workflow compilation, linting, tests, and execution were not performed in this review; generated frontmatter hashes were not independently recomputed.
Methodology: 3 independent reviewers with adversarial consensus.
Scope: code review only. CI/check status and merge readiness were not evaluated; use the repository's CI-analysis workflow for that assessment.
|
@dalexsoto stamp |
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
There are currently 423 open
agentic-workflowsissues, and 168 of them are[aw] Failed jobs: ...reports. 166 of those 168 come from five workflows that already declaresafe-outputs.report-failure-as-issue: false:[aw] Failed jobs:issuesci-status-net11.mdci-status-main.mdagentic-labeler.mdcopilot-review-tests.mdcopilot-review-performance.mdRoot cause.
report-failure-as-issueonly governs the agent-level failure reporter (handle_agent_failure.cjs). Job-level failures are emitted by a completely separate reporter,report_failed_jobs.cjs, gated by its own frontmatter key —safe-outputs.report-failed-jobs, which defaults totrue:So each of these workflows kept filing
[aw] Failed jobs: ...on every red run despite having explicitly opted out of failure issues. You can see it directly in the committed lock files today —GH_AW_REPORT_FAILED_JOBS: "true"sits in a workflow whose frontmatter saysreport-failure-as-issue: false.This was a near-miss rather than a deliberate choice:
agentic-labeler.mdalready carries a comment showing the maintainers walked this exact list of knobs (noop.report-as-issue,missing-tool.create-issue,report-incomplete.create-issue,report-failure-as-issue) and verified each against the generated lock.report-failed-jobsis simply the one that was missed.Change. Set
safe-outputs.report-failed-jobs: falseon those five workflows and recompile.Nothing becomes invisible: these runs still show as red in the Actions tab, and the two scanners additionally report through their own
[ci-scan]/[ci-scan-net11]issue stream. This only stops the duplicate, unactioned issue-per-red-run stream that the workflows had already opted out of.Deliberately not changed in this PR: the ~160 remaining non-
Failed jobsissues (Memory Leak Fixer is missing required data,CI Failure Fixer ... reported incomplete result, etc.). Those have real root causes — MCP integrity-policy filtering on the leak workflows, and apwsh/command-policy denial in the CI fixers — and should be fixed rather than silenced.Validation
Pipeline/CI configuration, so no tests were added per repo convention. Validated with the toolchain instead:
gh aw compile ci-status-net11 ci-status-main agentic-labeler copilot-review-tests copilot-review-performance✓ Compiled 5 workflows: 5 succeeded, 0 warnings(strict mode)python3 -c "yaml.safe_load(...)"over all 5 lock filesactionlintgh aw lint <5 lock files>Lock files are regenerated with the pinned compiler (
gh awv0.86.2, matchingcompiler_versionin the existing lock metadata), not hand-edited. The diff is uniform across all five files — 1 insertion (thefrontmatter_hashin the metadata header) and 19 deletions:Report failed jobsstep is dropped, andconclusionjob sheds the now-unnecessaryactions: readpermission (a least-privilege improvement that falls out of the step removal).body_hashis unchanged in every file, confirming only frontmatter was touched.Issues Fixed
No single tracking issue — this addresses the
[aw] Failed jobs:issue flood surfaced while auditing open-issue health. It stops future recurrence; the 168 already-open issues can be bulk-closed separately.