Repository navigation
Require re-quarantine actions to always get their own dedicated PR - #67467
Merged
Merged
Conversation
The test-quarantine workflow bundled a new (Case A) quarantine together with a re-quarantine (Case B) in a single PR (e.g. dotnet#67459, which quarantined CanDelegateOutOfProcess alongside re-quarantining RestartAppShouldNotAffectOtherApps). Because the `re-quarantine` label is applied to the whole PR, and the unquarantine-exclusion check permanently bars every test whose [QuarantinedTest] attribute is added in a PR carrying that label, the newly-quarantined Case A test would never be auto-unquarantined. Tighten the prompt so re-quarantines always get a dedicated PR and the `re-quarantine` label is only ever applied to a PR whose every change is a Case B re-quarantine for a single issue. Prompt body is runtime-imported by test-quarantine.lock.yml, so no recompile of the lock file is required for this prose-only change. Co-authored-by: Copilot <[email protected]>
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the Test Quarantine agent workflow prompt to prevent mixing re-quarantine (Case B) actions with other quarantine/unquarantine changes in a single PR, avoiding unintended permanent exclusion of newly quarantined tests from future automated unquarantining.
Changes:
- Tightens the “related group” definition so grouped quarantines must share the same single tracking issue and the same case (all Case A or all Case B for the same issue).
- Adds an explicit rule that every re-quarantine (Case B) must be done in its own dedicated PR, and restricts use of the
re-quarantinelabel accordingly. - Reinforces the same constraint in the Case B execution instructions where the PR is created.
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.
Problem
The test-quarantine workflow can bundle a new quarantine (Case A) together with a re-quarantine (Case B) in a single PR. This happened in #67459, which quarantined
CanDelegateOutOfProcess(new) alongside re-quarantiningRestartAppShouldNotAffectOtherApps.Because the
re-quarantinelabel is applied to the entire PR, and the unquarantine-exclusion check permanently bars every test whose[QuarantinedTest]attribute is added in a PR carrying that label (or with "Re-quarantine" in the title), the newly-quarantined Case A test (CanDelegateOutOfProcess) would never be auto-unquarantined.Fix
Tighten the workflow prompt (
.github/workflows/test-quarantine.md) so that:re-quarantinelabel is only ever applied to a PR whose every change is a Case B re-quarantine reusing the same single issue.Notes
runtime-imported bytest-quarantine.lock.yml({{#runtime-import .github/workflows/test-quarantine.md}}), so no recompile of the lock file is required and none is included.