Skip to content

[ci-scan-feedback] Add full-leg failure detection to prevent per-test KBE flood #128972

Closed

Description

@github-actions

Triggering signals

Proposed edits

  • .github/workflows/ci-failure-scan.md:310-319 — Add full-leg failure detection rule: when >80% of a leg's work items fail, file one leg-level KBE and skip individual tests. Tied to [ci-scan] Test failure: DelegateCombine1 segfault on NativeAOT linux-arm #128932 signal where scanner filed a per-test KBE for one test when the entire arm32 NativeAOT leg was broken.
  • .github/workflows/ci-failure-scan.md:356 — Add leg-level failure filed as #aw_<id> to recognized skip-reason vocabulary so tally aggregation remains stable.

Expected behavior change

The next run encountering a full-leg failure (e.g., all arm32 NativeAOT tests crash with SIGBUS/segfault) will file a single leg-scoped KBE instead of N per-test KBEs. This reduces noise, prevents duplicate closures, and correctly identifies the failure as a leg-level regression rather than N independent test bugs.

Generated by CI Outer-Loop Failure Scanner — Feedback · ● 17.3M · ◷


Note

This was originally intended as a pull request, but the git push operation failed.

Workflow Run: View run details and download patch artifact

The patch file is available in the agent artifact in the workflow run linked above.

To create a pull request with the changes:

# Download the artifact from the workflow run
gh run download 26932350930 -n agent -D /tmp/agent-26932350930

# Create a new branch
git checkout -b ci-scan-feedback/full-leg-detection-b3c232223d2eb0f9

# Apply the patch (--3way handles cross-repo patches where files may already exist)
git am --3way /tmp/agent-26932350930/aw-ci-scan-feedback-full-leg-detection.patch

# Push the branch to origin
git push origin ci-scan-feedback/full-leg-detection-b3c232223d2eb0f9

# Create the pull request
gh pr create --title '[ci-scan-feedback] Add full-leg failure detection to prevent per-test KBE flood' --base main --head ci-scan-feedback/full-leg-detection-b3c232223d2eb0f9 --repo dotnet/runtime
Show patch preview (45 of 45 lines)
From 170a36796645d0b4ae4410fa303cc6d0ed8237bb Mon Sep 17 00:00:00 2001
From: "github-actions[bot]" <github-actions[bot]@users.noreply.github.com>
Date: Thu, 4 Jun 2026 05:23:44 +0000
Subject: [PATCH] Add full-leg failure detection to ci-failure-scan

When >80% of a timeline leg's work items fail with unrelated signatures
or a common crash pattern, file one leg-level KBE instead of per-test
KBEs. This prevents filing dozens of issues for a single root cause
(e.g., arm32 NativeAOT toolchain regression).

Co-authored-by: Copilot <[email protected]>
---
 .github/workflows/ci-failure-scan.md | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/ci-failure-scan.md b/.github/workflows/ci-failure-scan.md
index d69cc515..e19efd93 100644
--- a/.github/workflows/ci-failure-scan.md
+++ b/.github/workflows/ci-failure-scan.md
@@ -309,6 +309,12 @@ No meta / aggregate / outage issues. Every KBE is keyed to a single `(definition
 - Infra-shaped (agent disconnect, pool offline, dead-letter, queue capacity, transient network): emit zero issues and one `missing_data` safe-output. Record `skipped: suspected infra outage` for each signature.
 - Product-shaped (assertion, exception, stack frame, JIT marker) converging on a common element (same assembly / stack frame / assertion file): file ONE representative KBE per element (cap 3 total). Skip the rest with `skipped: representative KBE filed as #aw_<id>`.
 
+**Full-leg failure detection (single pipeline).** Before filing individual per-test KBEs from a timeline leg (e.g. `NativeAOT linux-arm`), count the distinct failed work items in that leg. If > 80% of the leg's work items failed with unrelated signatures (or with a common early-exit pattern such as segfault, SIGBUS, or missing shared library), the leg itself is likely broken — a toolchain, SDK, or Helix image regression. In that case:
+
+- File ONE KBE scoped to the leg-level failure (use the most common crash/error signa
... (truncated)

Activity

  1. added
    untriaged
    on Jun 4, 2026
  2. dotnet-policy-service commented on Jun 4, 2026

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @dotnet/runtime-infrastructure
    See info in area-owners.md if you want to be subscribed.

  3. locked and limited conversation to collaborators on Jul 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

agentic-workflowsarea-Infrastructureuntriaged

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions