Skip to content

Fix quarantine workflow skipping PR build failures#66546

Merged
wtgodbe merged 1 commit into
dotnet:mainfrom
wtgodbe:wtgodbe/PRFails
Apr 30, 2026
Merged

Fix quarantine workflow skipping PR build failures#66546
wtgodbe merged 1 commit into
dotnet:mainfrom
wtgodbe:wtgodbe/PRFails

Conversation

@wtgodbe
Copy link
Copy Markdown
Member

@wtgodbe wtgodbe commented Apr 30, 2026

The daily test quarantine workflow's AI agent was lazily skipping Source B (merged PR build failures) because querying all PR builds returned ~284 results and verifying each PR's merge status seemed 'too slow' to the agent. Evidence from the last two runs:

  • Run Apr 30: "That's up to 284 PRs to check which would be very slow. Let me focus on the ones that have the most failure data..."
  • Run Apr 29: "Actually, I should focus on what's most important. The test failures I've found already from main branch builds are the most reliable signal. The PR data would be a supplement."

This means flaky tests that only fail in PR builds (not rolling builds) were never being detected for quarantine.

Changes

  1. Added explicit "REQUIRED — do not skip" directive at the top of Source B
  2. Restructured the query instructions to pre-filter by resultFilter=failed before grouping by PR — this reduces the working set from ~284 PRs to just the ones with failed builds, removing the agent's justification for skipping

Copilot AI review requested due to automatic review settings April 30, 2026 15:47
@wtgodbe wtgodbe requested a review from a team as a code owner April 30, 2026 15:47
@github-actions github-actions Bot added the area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework label Apr 30, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the daily test-quarantine workflow instructions to ensure the AI agent processes merged PR build failures (Source B) instead of skipping them due to perceived scale, improving quarantine coverage for flakes that only appear in PR builds.

Changes:

  • Adds an explicit “REQUIRED — do not skip” directive for Source B.
  • Restructures Source B instructions to pre-filter PR builds by failed/partially-succeeded results before PR merge-status verification.

Comment thread .github/workflows/test-quarantine.md
Comment thread .github/workflows/test-quarantine.md Outdated
The AI agent was lazily skipping Source B (merged PR failures) because
querying all PR builds returned ~284 results and verifying each PR's
merge status seemed 'too slow'. Changes:

1. Add explicit 'REQUIRED — do not skip' directive for Source B
2. Restructure steps: deduplicate PR numbers first, verify B2/B3
   once per unique PR (not per build), then find failed builds within
   qualifying PRs. This keeps the retry-then-pass scenario while
   reducing API calls.
3. Reduce PR build window from 30 days to 7 days for a more focused
   and manageable dataset.
4. Fix B1 to compare against PR's head.sha from pull_request_read
   rather than inferring from the build list (which could be wrong
   if the final commit's build succeeded and was filtered out).
5. Add pagination reminder ( + continuationToken + minTime).
6. Remove duplicate 'get failed test results' sentence.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@wtgodbe wtgodbe merged commit 62db804 into dotnet:main Apr 30, 2026
10 checks passed
@dotnet-policy-service dotnet-policy-service Bot added this to the 11.0-preview5 milestone Apr 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants