Repository navigation
Add separate no-unquarantine-for-30-days label for unquarantine PRs - #68089
Merged
Merged
Conversation
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]>
Contributor
There was a problem hiding this comment.
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-dayslabel and plumb it through the “closed PRs + labeled PRs” pre-activation fetch asunquarantine_label_added_at. - Rename the existing suppression timestamp field to
quarantine_label_added_atto 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 usesno-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.
Addresses Copilot review feedback on PR dotnet#68089. Co-authored-by: Copilot <[email protected]>
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.
Follow-up to #68074. The
no-quarantine-for-30-dayslabel 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-dayslabel:no-quarantine-for-30-days(field renamedquarantine_label_added_at).no-unquarantine-for-30-dayslabel (unquarantine_label_added_at).Reviewed by two review agents (rubber-duck + code-review) to consensus; one stale comment referencing the old
labeled_prsvariable name was fixed as a result.