Repository navigation
Fix stale KBE action to use last summary table in issue body - #55195
Merged
MichaelSimons merged 1 commit intoJul 8, 2026
Merged
Conversation
When infrastructure updates Known Build Error issues, it appends or updates the last summary table in the body. When multiple tables exist, the action was reading the first (stale) one. Switch from .match() (first hit) to .matchAll() taking the last match so the action uses the most recent hit counts. Fixes issues like #55174 where 4 summary tables exist and only the last one reflects current data. Co-authored-by: Copilot App <[email protected]>
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the KBE stale-management workflow to parse the most recent hit-count summary table from a Known Build Error issue body, avoiding decisions based on outdated tables when multiple summaries exist.
Changes:
- Switch hit-count parsing from
String.match()(first hit) toString.matchAll()and select the last match. - Add inline comments explaining why the last table is authoritative when multiple exist.
mthalman
approved these changes
Jul 8, 2026
MichaelSimons
enabled auto-merge (squash)
July 8, 2026 14:39
MichaelSimons
disabled auto-merge
July 8, 2026 17:56
Member
Author
|
Merging as the Build Analysis step appears hung. The dotnet-sdk-public-ci was green. |
MichaelSimons
deleted the
michaelsimons-fix-stale-issue-last-summary-table
branch
July 8, 2026 17:56
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When infrastructure updates Known Build Error issues, it appends or updates the last summary table in the issue body. When multiple tables exist, the stale action was reading the first (outdated) table, potentially marking issues as stale based on stale data. This has happened multiple times (e.g. #55174 is one such case).
This switches from .match() (returns first hit) to .matchAll() taking the last match, so the action always uses the most recent hit counts.