Skip to content

Add separate no-unquarantine-for-30-days label for unquarantine PRs - #68089

Merged
wtgodbe merged 2 commits into
dotnet:mainfrom
wtgodbe:wtgodbe/add-unquarantine-label
Jul 29, 2026
Merged

wtgodbe merged 2 commits into
dotnet:mainfrom
wtgodbe:wtgodbe/add-unquarantine-label

Conversation

@wtgodbe

@wtgodbe wtgodbe commented Jul 29, 2026

Copy link
Copy Markdown
Member

Follow-up to #68074. The no-quarantine-for-30-days label was applied indiscriminately to both quarantine and unquarantine PRs, but only fed into the quarantine-side suppression logic — adding it to an unquarantine PR had no defined effect.

This adds a separate no-unquarantine-for-30-days label:

  • Quarantine/re-quarantine candidates (Part 1) continue to check no-quarantine-for-30-days (field renamed quarantine_label_added_at).
  • Unquarantine candidates (Part 2) now check the new no-unquarantine-for-30-days label (unquarantine_label_added_at).
  • Unquarantine PR body instructions now correctly reference the new label.

Reviewed by two review agents (rubber-duck + code-review) to consensus; one stale comment referencing the old labeled_prs variable name was fixed as a result.

Previously the single no-quarantine-for-30-days label was applied to
both quarantine and unquarantine PRs, but only fed into the
quarantine-side suppression logic. Unquarantine candidates now check
a new independent no-unquarantine-for-30-days label instead.

Co-authored-by: Copilot <[email protected]>
Copilot AI review requested due to automatic review settings July 29, 2026 16:02
@wtgodbe
wtgodbe requested a review from a team as a code owner July 29, 2026 16:02

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 refines the flaky test quarantine automation workflow by introducing a dedicated no-unquarantine-for-30-days label so that suppression intent is unambiguous and correctly applied to unquarantine PRs (separate from quarantine/re-quarantine suppression).

Changes:

  • Add a new no-unquarantine-for-30-days label and plumb it through the “closed PRs + labeled PRs” pre-activation fetch as unquarantine_label_added_at.
  • Rename the existing suppression timestamp field to quarantine_label_added_at to clarify it applies only to quarantine/re-quarantine candidates.
  • Update the workflow instructions/PR body guidance to reference the correct label for unquarantine PRs.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
.github/workflows/test-quarantine.md Adds the new label/field and updates the injected JSON schema + agent instructions to keep quarantine vs. unquarantine suppression separate.
.github/workflows/test-quarantine.lock.yml Regenerated compiled workflow reflecting the .md updates.
Comments suppressed due to low confidence (1)

.github/workflows/test-quarantine.md:1250

  • This sentence implies either suppression label should cause the test to be skipped, but later rules explicitly say the labels must not be cross-applied (quarantine uses no-quarantine-for-30-days; unquarantine uses no-unquarantine-for-30-days). Rewording here would prevent the earlier high-level instruction from contradicting the detailed mapping.
Also check for recently closed (not merged) `[test-quarantine]` PRs from the past 30 days that targeted the same test, and for any `[test-quarantine]` PR (open or closed) carrying the `no-quarantine-for-30-days` or `no-unquarantine-for-30-days` label — skip that test if either signal establishes a cutoff. See the "Important Rules" section for details.

Comment thread .github/workflows/test-quarantine.md Resolved
Addresses Copilot review feedback on PR dotnet#68089.

Co-authored-by: Copilot <[email protected]>

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

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

@wtgodbe
wtgodbe merged commit e106a87 into dotnet:main Jul 29, 2026
10 checks passed
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 11.0-rc1 milestone Jul 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants