Skip to content

Fix unquarantine threshold to use per-pipeline build counts#66285

Merged
wtgodbe merged 1 commit into
mainfrom
wtgodbe/QuarUnquarAgain
Apr 12, 2026
Merged

Fix unquarantine threshold to use per-pipeline build counts#66285
wtgodbe merged 1 commit into
mainfrom
wtgodbe/QuarUnquarAgain

Conversation

@wtgodbe
Copy link
Copy Markdown
Member

@wtgodbe wtgodbe commented Apr 12, 2026

Summary

The unquarantine step was likely skipping valid candidates because it aggregated build counts across both pipelines (84 and 87) and then checked if a test appeared in 66% of all builds. Since a quarantined test only runs in one of the two pipelines, its appearance rate would be ~50% at best when measured against the combined total — always failing the 66% threshold.

Changes

  • Step 2.1: Track test counts per-pipeline instead of combining across both
  • Step 2.2: Compare each test's appearance rate against the build count for the specific pipeline it runs in, not the combined total

Quarantined tests only run in one of the two pipelines (84 or 87),
so aggregating build counts across both pipelines dilutes the
appearance rate and causes valid unquarantine candidates to be
incorrectly excluded. Track counts per-pipeline and compare each
test's appearance rate against the pipeline it actually runs in.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 12, 2026 17:07
@wtgodbe wtgodbe requested a review from a team as a code owner April 12, 2026 17:07
@github-actions github-actions Bot added the area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework label Apr 12, 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 unquarantine candidate selection guidance to avoid incorrectly excluding quarantined tests by ensuring the “appeared in ≥66% of builds” threshold is evaluated against the correct per-pipeline build totals.

Changes:

  • Update Step 2.1 to aggregate test result counts separately per pipeline (84 vs 87), instead of combining them.
  • Update Step 2.2 to compare a test’s appearance rate against the total build count of the pipeline that actually runs it.

@wtgodbe wtgodbe merged commit 174461f into main Apr 12, 2026
16 checks passed
@wtgodbe wtgodbe deleted the wtgodbe/QuarUnquarAgain branch April 12, 2026 17:20
@dotnet-policy-service dotnet-policy-service Bot added this to the 11.0-preview4 milestone Apr 12, 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