Skip to content

Extend PR failure scan for servicing and infrastructure KBEs - #138158

Merged
ViveliDuCh merged 4 commits into
dotnet:mainfrom
ViveliDuCh:servicing-pr-failure-triage
Nov 25, 2026
Merged

ViveliDuCh merged 4 commits into
dotnet:mainfrom
ViveliDuCh:servicing-pr-failure-triage

Conversation

@ViveliDuCh

@ViveliDuCh ViveliDuCh commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Summary

  • support exact PR check-run deep links without mixing workflow attempts
  • add optional runtime versus dnceng KBE routing and a create-dnceng-kbe skill
  • add servicing branch and conditional VMR propagation analysis
  • preserve the existing create-kbe, pr-failure-scan, scheduled scanner, and fixer responsibilities

Motivation

PR-targeted failure triage currently focuses on the latest PR head and the dotnet/runtime KBE destination. This leaves several gaps:

  • a user cannot reliably analyze a specific historical check run without risking evidence from a newer rerun on the same commit
  • servicing failures may already be tracked or fixed on main while the applicable fix has not reached the release branch or VMR
  • Build Analysis offers runtime and infrastructure issue destinations, but pr-failure-scan currently supports only the dotnet/runtime KBE destination
  • infrastructure drafts should follow the authoritative dotnet/dnceng issue form instead of reusing runtime-specific KBE formatting

These changes extend the existing KBE flow rather than replacing it:

  • preserve the existing runtime lookup, drafting, publication, and workflow contracts
  • add exact check-run analysis
  • add branch-aware servicing and VMR propagation checks
  • add optional dnceng lookup, drafting, and explicitly authorized publication
  • retain dry-run and review-only safety boundaries

Compatibility

  • create-kbe keeps its existing description, use cases, publication rules, and runtime KBE flow
  • pr-failure-scan continues to use the shared KBE instructions directly
  • ci-failure-fix.md remains unchanged and continues to consume the existing runtime KBE body sections
  • ci-failure-scan.md adds only an explicit runtime-only scope statement; its compiled lock is regenerated with gh-aw v1.0.1
  • shared KBE instructions add optional destination routing and dnceng lookup while retaining the existing runtime lookup anchors and templates
  • dnceng publication requires explicit user permission; dry-run and review-only drafts remain local

Review feedback addressed

  • screen security-sensitive evidence before dnceng lookup
  • preserve runtime KBE deduplication before infrastructure routing
  • define closed dnceng lookup windows and canonicalize duplicate chains
  • distinguish plain trackers from Build Analysis KBEs
  • verify fixes against the failing source revision
  • retain generic 30/90-day barriers while adding a bounded servicing-only historical fix resolver
  • stop ambiguous, filtered, cyclic, incomplete, or over-budget historical lookups for human review

Validation

  • skill-validator check --skills .github/skills --allow-repo-traversal --verbose
  • Markdownlint on all changed Markdown files
  • gh-aw compile/validate for ci-failure-scan with v1.0.1
  • git diff --check

Note

This pull request was prepared with GitHub Copilot assistance.

Add exact check-run analysis, servicing propagation guidance, and
infrastructure KBE lookup and creation support while preserving the existing
runtime KBE skill and workflow contracts.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 17757b0e-9837-4682-8c2b-2789d4de4019
@github-actions github-actions Bot added the area-skills Agent Skills label Nov 23, 2026
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
14 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

The duplicate lookup can send security-sensitive failure details to GitHub before screening, and unresolved tracker and fix-history handling can lead to incorrect KBE decisions.

5 open issues
What changed in this PR

This PR extends the runtime CI failure-triage instructions to handle exact check runs, servicing propagation, and infrastructure Known Build Errors in dotnet/dnceng.

Changes:

  • Preserve check-run identity and avoid mixing evidence across attempts.
  • Add infrastructure lookup, drafting, and explicit publication-permission rules.
  • Add release-branch fix propagation checks and conditional VMR analysis.
File Description
.github/​workflows/​shared/​create-kbe.instructions.md Adds destination routing and dnceng lookup classifications.
.github/​skills/​pr-failure-scan/​SKILL.md Integrates exact check runs, infrastructure outcomes, and servicing analysis.
.github/​skills/​pr-failure-scan/​references/​servicing-triage.md Defines branch-aware tracker reuse and fix propagation checks.
.github/​skills/​create-kbe/​SKILL.md Reuses supplied lookup evidence and delegates infrastructure drafts.
.github/​skills/​create-dnceng-kbe/​SKILL.md Defines infrastructure drafting and guarded publication contracts.

Review effort: Balanced

Screen security-sensitive evidence before dnceng lookups, distinguish plain
trackers from KBEs, verify fixes against the failing source revision, and
canonicalize closed duplicate dnceng issues before recurrence decisions.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 17757b0e-9837-4682-8c2b-2789d4de4019
@ViveliDuCh
ViveliDuCh marked this pull request as ready for review November 24, 2026 00:58
@ViveliDuCh
ViveliDuCh requested review from a team and jeffhandley as code owners November 24, 2026 00:58

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

Review summary

The PR adds useful coverage for exact-run, servicing, and infrastructure triage. Keeping destination routing optional appears to preserve the scheduled scanner/fixer contracts. I left an inline regression finding on runtime-KBE deduplication before creating a dnceng tracker and a non-blocking request to define the scheduled scanner's scope in its own instructions. The existing comment asking what ‘recent’ means is preserved.

Validation

Scanner tests passed (28/28), fixer intake tests passed (18/18), and eval-spec lint, Markdown lint, and isolated relative-link checks passed. The feedback eval passed (4/4) after using a substitute judge. Full scanner eval scored 10/11 before a final helper correction and was not rerun afterward; the corrected fixer eval scored 2/6 because the live eval rejected a skip required by production policy. Those eval results do not establish a regression in the PR.

Scope: code review only. CI/check status and merge readiness were not evaluated; use the repository's CI-analysis workflow for that assessment.

Note

This review was generated by GitHub Copilot.

Make dnceng lookup windows explicit, preserve runtime KBE dedup before
infrastructure routing, document the scheduled scanner's runtime-only scope,
and add a bounded servicing-only historical fix resolver.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 17757b0e-9837-4682-8c2b-2789d4de4019

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

Holistic Review

Motivation: Exact check-run triage, infrastructure KBE handling, and servicing fix-propagation checks address distinct gaps in the existing PR failure scan.

Approach: Reusing the runtime lookup before optional destination routing preserves existing deduplication. However, the new dnceng path depends on a form that has moved.

Summary: ❌ Needs Changes. The mandatory dnceng issue-form reference returns 404, so the new skill must stop instead of producing a draft. Update both references to .github/ISSUE_TEMPLATE/known-build-error.yml.

Detailed Findings

❌ Logic — The new mandatory form dependency blocks dnceng drafting and publication. The same stale path appears in .github/skills/create-dnceng-kbe/SKILL.md:21 and .github/workflows/shared/create-kbe.instructions.md:109. Confirmed by 3/3 reviewers + repo specialist.

Previous feedback: All eight existing review threads are resolved, and their requested changes are substantively present in the reviewed revision. No previous finding needs reopening.

Coverage: No new evals accompany these instruction changes. This review inspected the decision rules and verified the external form rename; it did not execute the skills or run tests.

Methodology: 3 independent reviewers with adversarial consensus + repo domain specialist.

Scope: code review only. CI/check status and merge readiness were not evaluated; use the repository's CI-analysis workflow for that assessment.

Note

This review was generated by GitHub Copilot.

Point dnceng KBE drafting at the current known-build-error.yml issue form so
fail-closed form validation no longer blocks the infrastructure path.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 17757b0e-9837-4682-8c2b-2789d4de4019

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

Holistic Review

Motivation: The PR addresses gaps in exact check-run, servicing, and infrastructure failure triage.

Approach: The previous form-link blocker is fixed in both references. The new dnceng lookup still needs to distinguish an ordinary tracker from a Known Build Error.

Summary: ⚠️ Needs Changes. A dnceng tracker without a KBE label or matcher can be reported as an existing KBE even though Build Analysis cannot match it. Preserve the existing tracker without automatically filing a duplicate, but surface the missing KBE coverage.

Detailed Findings

⚠️ Logic — The new lookup treats any open canonical dnceng issue as existing-dnceng-kbe, including an ordinary tracker with neither the Known Build Error label nor a matching JSON signature. Confirmed by 2/3 reviewers + repo specialist; one reviewer disagreed.

Previous feedback: The form-link finding is fixed and its thread is resolved. The other eight previously reviewed threads remain resolved.

Coverage: No new evals accompany these instruction changes. This review inspected the rules and current external form; it did not execute the skills or run tests.

Methodology: 3 independent reviewers with adversarial consensus + repo domain specialist.

Scope: code review only. CI/check status and merge readiness were not evaluated; use the repository's CI-analysis workflow for that assessment.

Note

This review was generated by GitHub Copilot.

@ViveliDuCh
ViveliDuCh merged commit 4fc4830 into dotnet:main Nov 25, 2026
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-skills Agent Skills

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants