Skip to content

Stop agentic workflows filing [aw] Failed jobs issues they opted out of - #39096

Merged
kubaflo merged 2 commits into
mainfrom
kubaflo-aw-silence-failed-jobs
Oct 3, 2026
Merged

kubaflo merged 2 commits into
mainfrom
kubaflo-aw-silence-failed-jobs

Conversation

@kubaflo

@kubaflo kubaflo commented Oct 2, 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

There are currently 423 open agentic-workflows issues, and 168 of them are [aw] Failed jobs: ... reports. 166 of those 168 come from five workflows that already declare safe-outputs.report-failure-as-issue: false:

Open [aw] Failed jobs: issues Workflow Source
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
1 Rerun Review Scanner (workflow no longer exists)

Root cause. report-failure-as-issue only 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 to true:

"report-failed-jobs": {
  "type": "boolean",
  "description": "Controls whether to report failed non-builtin jobs as issues (default: true). Set to false to disable.",
  "default": true
}

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 says report-failure-as-issue: false.

This was a near-miss rather than a deliberate choice: 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 against the generated lock. report-failed-jobs is simply the one that was missed.

Change. Set safe-outputs.report-failed-jobs: false on 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 jobs issues (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 a pwsh/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:

Check Command Result
Compile with the pinned compiler gh aw compile ci-status-net11 ci-status-main agentic-labeler copilot-review-tests copilot-review-performance Passed — ✓ Compiled 5 workflows: 5 succeeded, 0 warnings (strict mode)
Lock files are valid YAML and keep all jobs python3 -c "yaml.safe_load(...)" over all 5 lock files Passed — 8 / 8 / 7 / 8 / 10 jobs, unchanged
actionlint gh aw lint <5 lock files> Not run locally — requires Docker, unavailable on this machine. Runs in CI.

Lock files are regenerated with the pinned compiler (gh aw v0.86.2, matching compiler_version in the existing lock metadata), not hand-edited. The diff is uniform across all five files — 1 insertion (the frontmatter_hash in the metadata header) and 19 deletions:

  • the entire Report failed jobs step is dropped, and
  • the conclusion job sheds the now-unnecessary actions: read permission (a least-privilege improvement that falls out of the step removal).

body_hash is 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.

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>
Copilot AI balanced review requested due to automatic review settings October 2, 2026 23:00
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool October 2, 2026 23:00 — with GitHub Actions Inactive
@github-actions

github-actions Bot commented Oct 2, 2026

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 -- 39096

Or

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

@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.

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: false alongside 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 PureWeen 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.

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.

@kubaflo

kubaflo commented Oct 3, 2026

Copy link
Copy Markdown
Contributor Author

@dalexsoto stamp

dalexsoto
dalexsoto previously approved these changes Oct 3, 2026

@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.

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>
Copilot AI balanced review requested due to automatic review settings October 3, 2026 17:13
@kubaflo

kubaflo commented Oct 3, 2026

Copy link
Copy Markdown
Contributor Author

Resolved #39096’s conflicts with the latest main (912e56c58d6ae977f1fe065daa112a3d00585b41) and pushed ordinary merge commit faf751fc9c99bd5f9ec79566e2955d150ef2bee1 to the original kubaflo-aw-silence-failed-jobs branch. No rebase or force-push.

The five conflicts were all generated gh-aw lock files. I regenerated them from the PR’s unchanged workflow frontmatter using the pinned gh aw v0.86.2 compiler. This retains the new pat_pool if: success() condition from main while removing the opted-out “Report failed jobs” step and its unnecessary actions: read permission from all five workflows. Unrelated changes from main were preserved.

Validation: gh aw compile ci-status-net11 ci-status-main agentic-labeler copilot-review-tests copilot-review-performance --no-check-update succeeded (5/5, 0 warnings). All five generated locks parse as YAML, preserve their existing job counts (8/8/7/8/10), retain the PAT-pool condition, and omit the failed-jobs reporter. Diff whitespace checks passed. No pipeline tests were added or run for this configuration change.

GitHub now reports no merge conflicts. The exact-head PowerShell Script Tests, Build Insights, and Build Analysis checks are still running; maui-pr was filtered out by its trigger conditions.

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.

Copilot review overview

🟢 Approval recommended

The focused frontmatter changes match the compiler contract, and all generated lock-file updates are consistent with the intended behavior.

Review effort: Balanced
Findings: None

@PureWeen PureWeen 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.

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.

@kubaflo

kubaflo commented Oct 3, 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 d162488 into main Oct 3, 2026
5 of 8 checks passed
@kubaflo
kubaflo deleted the kubaflo-aw-silence-failed-jobs branch October 3, 2026 18:29
@github-actions github-actions Bot added this to the .NET 10 SR12 milestone Oct 3, 2026
This was referenced Oct 3, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 3, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants