Skip to content

Skip tests previously rejected for quarantine/unquarantine#66284

Merged
wtgodbe merged 2 commits intomainfrom
wtgodbe/QuarImprove412
Apr 12, 2026
Merged

Skip tests previously rejected for quarantine/unquarantine#66284
wtgodbe merged 2 commits intomainfrom
wtgodbe/QuarImprove412

Conversation

@wtgodbe
Copy link
Copy Markdown
Member

@wtgodbe wtgodbe commented Apr 12, 2026

Summary

When the daily test quarantine workflow opens a quarantine PR and a human engineer closes it (without merging) with a comment explaining why the test shouldn't be quarantined, the workflow should respect that decision and not re-open a PR for the same test for the next 30 days.

Motivated by #66283, where @javiercn closed a quarantine PR because the test failure was a real bug that had already been fixed, not a flaky test.

Changes

Adds a new rule to the test-quarantine workflow prompt:

  • Before creating quarantine/unquarantine PRs, search for closed (not merged) [test-quarantine] PRs from the past 30 days that targeted the same test
  • If a repo member's comment explains why the action shouldn't happen (e.g., not actually flaky, fix already merged, infra issue resolved), skip that test
  • PRs closed without explanation do not block future attempts

Check closed (not merged) [test-quarantine] PRs from the past 30
days before creating new quarantine/unquarantine PRs. If a previous
PR for the same test was closed by a repo member with a comment
explaining why (e.g., test wasn't actually flaky, fix was merged),
skip that test for the current run.

Motivated by PR #66283 where a quarantine PR was closed because the
test failure was a real bug that had already been fixed, not a flaky
test.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@wtgodbe wtgodbe requested a review from a team as a code owner April 12, 2026 16:50
Copilot AI review requested due to automatic review settings April 12, 2026 16:50
@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 Daily Test Quarantine Management workflow guidance so that tests are skipped if they were previously part of a recently closed (unmerged) [test-quarantine] PR that a human closed with a substantive explanation.

Changes:

  • Adds an instruction to check recently closed (not merged) [test-quarantine] PRs (last 30 days) for the same test before creating new quarantine/unquarantine PRs.
  • Codifies the rule in the “Important Rules” section, including the requirement for a substantive justification comment.

Comment thread .github/workflows/test-quarantine.md Outdated
Use explicit author_association values (OWNER, MEMBER, COLLABORATOR,
CONTRIBUTOR) instead of vague 'repository member or contributor'
wording. CONTRIBUTOR is needed because github-actions[bot] (which
runs the quarantine workflow) has that association value.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@wtgodbe wtgodbe merged commit 478d526 into main Apr 12, 2026
10 checks passed
@wtgodbe wtgodbe deleted the wtgodbe/QuarImprove412 branch April 12, 2026 17:02
@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