Skip to content

[ci-scan] Tighten agentic CI workflow dedup and feedback emission#129231

Merged
kotlarmilos merged 2 commits into
dotnet:mainfrom
kotlarmilos:agentic-workflow-improvements
Jun 11, 2026
Merged

[ci-scan] Tighten agentic CI workflow dedup and feedback emission#129231
kotlarmilos merged 2 commits into
dotnet:mainfrom
kotlarmilos:agentic-workflow-improvements

Conversation

@kotlarmilos

@kotlarmilos kotlarmilos commented Jun 10, 2026

Copy link
Copy Markdown
Member

Description

The detection step only searched open issues, so it could miss a recently-closed predecessor or an unlabeled human report of the same failure and file a duplicate Known Build Error; this change adds a no-label open-issue search and a recently-closed search so a repeat failure is skipped for human review instead of refiled, unless it genuinely reproduces after the earlier issue was closed, while the feedback step now passes the pull request number explicitly when it pushes or updates a branch on a scheduled run (which previously failed because there is no triggering pull request) and emits the KPI tracker update before the pull request outputs so a push or patch failure can no longer drop the daily snapshot, and because the prompts are imported at runtime no compiled workflow files need regenerating.

Detection (ci-failure-scan + shared KBE instructions): the existing-KBE
search was open-only, so a closed `[ci-scan]` predecessor or an unlabeled
human "Test failure: ..." report was invisible and the same failure got
re-filed across runs (e.g. X509Certificate2CollectionRemoveRangeArray,
crossgen2_comparison.py). Add a no-label open-issue search variation and a
recently-closed-KBE search that records `skipped: recently-closed dup #<n>`
unless the signature genuinely recurs after the predecessor was closed.

Feedback (ci-failure-scan-feedback): on a scheduled run there is no
triggering PR, so `push_to_pull_request_branch`/`update_pull_request` must
carry the found PR's `pull_request_number`. Also emit the KPI tracker
`update_issue` before the PR safe-outputs, so a push or patch failure can no
longer cancel the daily tracker snapshot.

Prompts are runtime-imported, so no lock regeneration is required.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

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.

Pull request overview

This PR updates the agentic CI workflow prompts/instructions to improve (1) duplicate detection when filing Known Build Errors (KBEs) and (2) robustness of feedback/KPI emission in scheduled runs.

Changes:

  • Extend the shared KBE dedup search to also catch unlabeled human-filed issues and to consider recently-closed KBEs.
  • Update the CI failure scan workflow to follow the new “recently-closed” dedup section and record the new skip outcome.
  • Adjust the feedback workflow instructions to pass pull_request_number on scheduled PR updates and to emit the KPI tracker output before PR safe-outputs.
Show a summary per file
File Description
.github/workflows/shared/create-kbe.instructions.md Adds a “recently-closed KBEs” search section and an open-issue no-label search variation to reduce duplicate KBE creation.
.github/workflows/ci-failure-scan.md Updates the scan workflow to follow the new dedup section and to recognize the new “recently-closed” skip outcome.
.github/workflows/ci-failure-scan-feedback.md Updates feedback emission guidance for scheduled runs (explicit PR number) and orders KPI tracker emission ahead of PR safe-outputs.

Copilot's findings

  • Files reviewed: 3/3 changed files
  • Comments generated: 3

Comment thread .github/workflows/shared/create-kbe.instructions.md
Comment thread .github/workflows/ci-failure-scan.md
Comment thread .github/workflows/ci-failure-scan.md
@kotlarmilos kotlarmilos changed the title Tighten agentic CI workflow dedup and feedback emission [ci-scan] Tighten agentic CI workflow dedup and feedback emission Jun 10, 2026
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@kotlarmilos kotlarmilos requested a review from vitek-karas June 10, 2026 12:18
@kotlarmilos kotlarmilos self-assigned this Jun 10, 2026
@kotlarmilos kotlarmilos added this to the 11.0.0 milestone Jun 10, 2026
@kotlarmilos kotlarmilos marked this pull request as ready for review June 10, 2026 12:18
@kotlarmilos kotlarmilos requested review from a team and jeffhandley as code owners June 10, 2026 12:18
Copilot AI review requested due to automatic review settings June 10, 2026 12:18

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's findings

  • Files reviewed: 3/3 changed files
  • Comments generated: 3

Comment thread .github/workflows/shared/create-kbe.instructions.md
Comment thread .github/workflows/ci-failure-scan.md
Comment thread .github/workflows/ci-failure-scan.md
@kotlarmilos kotlarmilos merged commit 19b511a into dotnet:main Jun 11, 2026
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants