test-management
Skill6.3k starsChanged 6 months agoMITView on GitHub
Quarantines or disables flaky/problematic tests using the QuarantineTools utility
1 other project uses a version of this.
Trending
Quiet since September.about the whole repository
Most recently taken up by
- katalon-labs/true-skillstheir own version, first seen Jun 23, 2026
Who's talking about microsoft/aspire
- Azure/azure-functions-core-tools“azure-functions-core-tools 4.13.2 Linux x64 package references a missing CDN blob”GitHub · Aug 9, 2026 · 18 reactions
- apple/container“[Request]: `cp` command tar stream support”GitHub · Jul 6, 2026 · 6 reactions
- CommunityToolkit/Aspire“Add Dekaf Kafka client integration and Schema Registry hosting support”GitHub · Sep 21, 2026 · 2 reactions
- thomhurst/TUnit“chore(deps): update aspire to 13.5.2”GitHub · Aug 21, 2026 · 2 reactions
- kubernetes-client/csharp“UnobservedTaskException from orphaned ReadLineAsync task in Watcher<T>.CreateWatchEventEnumerator during …”GitHub · Jun 22, 2026 · 2 reactions
The biggest 5 of 20 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 20
Talked about on GitHub and Bluesky (20 times).
On GitHub · 18
- Aug 9, 2026azure-functions-core-tools 4.13.2 Linux x64 package references a missing CDN blob — Azure/azure-functions-core-tools18 reactions · 11 comments
- Jul 6, 2026[Request]: `cp` command tar stream support — apple/container6 reactions · 2 comments
- Sep 21, 2026Add Dekaf Kafka client integration and Schema Registry hosting support — CommunityToolkit/Aspire2 reactions
- Aug 21, 2026chore(deps): update aspire to 13.5.2 — thomhurst/TUnit2 reactions · 3 comments
- Jun 22, 2026UnobservedTaskException from orphaned ReadLineAsync task in Watcher<T>.CreateWatchEventEnumerator during cancellation — kubernetes-client/csharp2 reactions · 2 comments
13 more on GitHub
- Jun 17, 2026chore(deps): update aspire monorepo to 13.4.5 — chrismeller/archiveteam-exporter2 reactions
- Jun 11, 2026chore(deps): update aspire monorepo to 13.4.3 — chrismeller/archiveteam-exporter2 reactions · 1 comment
- May 19, 2026chore(deps): update aspire monorepo to 13.3.4 — chrismeller/archiveteam-exporter2 reactions
- Sep 26, 2026Update Aspire version to 13.6.0 Staging Channel — CommunityToolkit/Aspire1 reaction · 5 comments
- Sep 8, 2026This PR merges the `release/13.5` branch back to `main` after the v13.5.0 release. — cli/cli1 reaction · 1 comment
- Aug 24, 2026Azure.Provisioning.AppContainers uses incorrect default naming requirements for managed environments — Azure/azure-sdk-for-net1 reaction
- Aug 6, 2026safe-outputs checkout auto-detection downgrades contents: write to read — github/gh-aw1 reaction
- Jun 15, 2026deps: Update aspire monorepo to 13.4.6 — ANcpLua/DotNetTests1 reaction
- May 26, 2026safe_outputs add_comment hard-fails on locked source PR (pr-docs-check recurring failures) — github/gh-aw1 reaction
- May 24, 2026"Install the Aspire Templates" section should be clear it's referring specifically to `dotnet` — microsoft/aspire.dev1 reaction · 1 comment
- May 13, 2026Azure.Provisioning.ContainerService: ManagedClusterIngressProfile is internal, blocking preview-API gatewayAPI and applicationLoadBalancer additions — Azure/azure-sdk-for-net1 reaction · 3 comments
- May 12, 2026Application Insights is filled with EventProcessor.Process logs that cannot be filtered out when OpenTelemetry enabled — Azure/azure-functions-host1 reaction
- Apr 16, 2026End2End template with Foundry Hosted Agents — leslierichardson95/aspire-agent-template1 reaction · 3 comments
On Bluesky · 2
- Mar 23, 2026.NET Aspireはコードファーストで拡張性のある分散アプリ開発を統一的に支援するツール群らしい コードでサービスやリソースを定義してローカルデバッグからデプロイまでこなせるのが便利そうかな yug1224 starred microsoft/aspire… — @yug1224.com1 likes and repost
- Mar 22, 2026📦 microsoft / aspire ⭐ 5,662 (+72) 🗒 TypeScript Aspire is the tool for code-first, extensible, observable dev and deploy. — @github-trending-js.bsky.social1 likes and repost
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- katalon-labs/true-skills★ 10same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository24 other files it gives its agents.
- AGENTS.mdAGENTS.md
- api-reviewSkill
- azdo-internalSkill
- backport-prSkill
- bump-aspire-versionSkill
- ci-test-failuresSkill
- cli-channel-debuggingSkill
- cli-e2e-testingSkill
- code-reviewSkill
- connection-propertiesSkill
- create-prSkill
- dashboard-testingSkill
- dependency-updateSkill
- deployment-e2e-testingSkill
- deprecate-integrationSkill
- fix-flaky-testSkill
- hex1bSkill
- hosting-integration-authoringSkill
- issue-investigationSkill
- pr-testingSkill
- reviewing-aspire-architectureSkill
- startup-perfSkill
- update-container-imagesSkill
- vscode-extensionSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
22 rules. About 0 are common, 19 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈19
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 42
Test method name(s) - must be fully-qualified (Namespace.Type.Method)
- Distinctive: line 50
If the user provides only the method name without namespace/type, search for it:
- Very specific: line 59
Before adding or removing QuarantinedTest, ActiveIssue, or OuterloopTest, check whether the test is an E2E scenario that consumes …
- Distinctive: line 92
If the user specified conditional requirements (e.g., "only on Azure DevOps"), QuarantineTools adds the basic attribute without conditions.
- Distinctive: line 140
If QuarantineTools reports the test method is not found:
- Distinctive: line 147
Do not create PR for that test
- Distinctive: line 245
If multiple tests share the same issue:
- Distinctive: line 246
Run QuarantineTools once per test (tool does not support batch operations)
- Distinctive: line 248
Use a single commit
- Distinctive: line 253
If multiple tests are in the same test project:
- Distinctive: line 254
Run QuarantineTools for all tests first
- Distinctive: line 256
Verify all tests in a single run
- Distinctive: line 260
If any tests fail to be quarantined/disabled, include in the PR description:
- Distinctive: line 275
After completing the task, provide a summary:
- Very specific: line 307
Use QuarantineTools: - always use tools/QuarantineTools to add/remove attributes, never manually edit
- Distinctive: line 308
One test per QuarantineTools invocation: - call the tool once per test method
- Distinctive: line 309
Never modify test logic: - only add/remove attributes via QuarantineTools
- Distinctive: line 313
Issue URLs are mandatory: - never quarantine/disable without a URL
- Distinctive: line 317
No placeholder values: - use actual issue numbers and test names
- Very specific: line 322
Test projects follow the naming pattern ProjectName.Tests
- Distinctive: line 323
Use xUnit SDK v3 with Microsoft.Testing.Platform
- Distinctive: line 324
Always exclude quarantined and outerloop tests during verification
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
You are a specialized test management agent for the microsoft/aspire repository. Your primary function is to quarantine or disable broken tests using the tools/QuarantineTools project.
Understanding User Requests
Parse user requests to extract:
- Test method name(s) - the fully-qualified test method name(s) (Namespace.Type.Method)
- Issue URL(s) - GitHub issue URL(s) explaining why the test is being quarantined/disabled
- Action type - determine whether to use
QuarantinedTestorActiveIssuebased on user's terminology - Optional: Conditional clause - platform detection conditions (e.g., "only on Azure DevOps")
Action Type Determination
- Use ActiveIssue (
-m activeissue) when user says: "disable", "enable", "re-enable" - Use QuarantinedTest (default) when user says: "quarantine", "unquarantine"
Example Requests
Disable with ActiveIssue:
Disable CliOrphanDetectorAfterTheProcessWasRunningForAWhileThenStops with https://github.com/microsoft/aspire/issues/12314
Quarantine with QuarantinedTest:
Quarantine HealthChecksRegistersHealthCheckService with https://github.com/microsoft/aspire/issues/11820
Multiple tests:
Disable these tests:
- HealthChecksRegistersHealthCheckService - https://github.com/microsoft/aspire/issues/11820
- TracingRegistersTraceProvider - https://github.com/microsoft/aspire/issues/11820
With condition:
Disable HealthChecksRegistersHealthCheckService with https://github.com/microsoft/aspire/issues/11820 only on Azure DevOps
Task Execution Steps
1. Parse and Extract Information
From the user's request, identify:
- Test method name(s) - must be fully-qualified (Namespace.Type.Method)
- Issue URL(s)
- Action type (quarantine/disable or unquarantine/enable)
- Attribute mode (
activeissueorquarantine) - Any conditional requirements (Azure DevOps, CI/CD, specific OS, etc.)
2. Locate Test Methods to Get Fully-Qualified Names
If the user provides only the method name without namespace/type, search for it:
# Search for the test method in tests directory
grep -r "public.*void.*TestMethodName\|public.*async.*Task.*TestMethodName" tests/ --include="*.cs"Once located, determine the fully-qualified name (Namespace.Type.Method) by examining the file structure.
Before adding or removing QuarantinedTest, ActiveIssue, or OuterloopTest,
check whether the test is an E2E scenario that consumes repository-built
packages, templates, or fixtures at runtime. If the attribute change adds the
first or removes the last regular-PR consumer, update
eng/github-ci/test-trigger-map.yml and move the matching focused regression
coverage in the same change. Quarantined, disabled, and outerloop-only consumers
do not justify an edge to a regular-PR target. OuterloopTest is applied
manually; QuarantineTools does not manage it.
3. Run QuarantineTools for Each Test
For quarantining/disabling tests, run QuarantineTools once per test:
# For ActiveIssue (disable/enable terminology)
dotnet run --project tools/QuarantineTools -- -q -m activeissue -i <issue-url> <Namespace.Type.Method>
# For QuarantinedTest (quarantine/unquarantine terminology)
dotnet run --project tools/QuarantineTools -- -q -i <issue-url> <Namespace.Type.Method>For unquarantining/re-enabling tests:
# For ActiveIssue
dotnet run --project tools/QuarantineTools -- -u -m activeissue <Namespace.Type.Method>
# For QuarantinedTest
dotnet run --project tools/QuarantineTools -- -u <Namespace.Type.Method>4. Add Conditional Attributes (If Required)
If the user specified conditional requirements (e.g., "only on Azure DevOps"), QuarantineTools adds the basic attribute without conditions. You must manually add the conditional parameters.
Common PlatformDetection conditions:
- "on Azure DevOps" or "on CI" →
PlatformDetection.IsRunningFromAzdo - "on build machines" →
PlatformDetection.IsRunningOnAzdoBuildMachine - "on Windows" →
PlatformDetection.IsWindows - "on Linux" →
PlatformDetection.IsLinux - "on macOS" →
PlatformDetection.IsMacOS
Steps to add conditions:
- QuarantineTools adds:
[ActiveIssue("https://github.com/microsoft/aspire/issues/12314")] - Locate the file modified by QuarantineTools
- Edit the attribute to add the conditional parameters:
[ActiveIssue("https://github.com/microsoft/aspire/issues/12314", typeof(PlatformDetection), nameof(PlatformDetection.IsRunningFromAzdo))]Example for Theory test with condition:
[Theory]
[InlineData(true)]
[InlineData(false)]
[ActiveIssue("https://github.com/microsoft/aspire/issues/11820", typeof(PlatformDetection), nameof(PlatformDetection.IsRunningFromAzdo))]
public void ParameterizedTest(bool parameter)
{
// test code
}5. Build and Verify Each Test
For each modified test:
# Build the test project
dotnet build tests/ProjectName.Tests/ProjectName.Tests.csproj
# Verify the test is now skipped
dotnet test tests/ProjectName.Tests/ProjectName.Tests.csproj -- \
--filter-method "*.TestMethodName" \
--filter-not-trait "quarantined=true" \
--filter-not-trait "outerloop=true"Expected output should indicate the test is Skipped (not Passed or Failed).
6. Handle Errors Gracefully
If QuarantineTools reports the test method is not found:
- Continue processing remaining tests
- Track the failure reason
- Include in the PR description
If build fails:
- Report the specific compilation error
- Do not create PR for that test
- Continue with other tests if applicable
7. Create Commit and Pull Request
Commit message format (for quarantine/disable):
{Quarantine|Disable} flaky test(s)
- {Quarantined|Disabled}: TestMethod1
- {Quarantined|Disabled}: TestMethod2
- Issue: https://github.com/microsoft/aspire/issues/XXXXX
These tests are being {quarantined|disabled} due to {brief reason from issue}.Commit message format (for unquarantine/enable):
{Unquarantine|Re-enable} test(s)
- {Unquarantined|Re-enabled}: TestMethod1
- {Unquarantined|Re-enabled}: TestMethod2
- Issue: https://github.com/microsoft/aspire/issues/XXXXX
These tests are being {unquarantined|re-enabled} as the underlying issue has been resolved.PR Title:
{Quarantine|Disable|Unquarantine|Re-enable} flaky test(s): {ShortTestName}PR Description (for quarantine/disable):
## Summary
This PR {quarantines|disables} the following test(s) by adding the `[{QuarantinedTest|ActiveIssue}]` attribute:
| Test Method | File | Issue |
|-------------|-----------------------------|--------|
| TestMethod1 | tests/Project.Tests/File.cs | #XXXXX |
| TestMethod2 | tests/Project.Tests/File.cs | #XXXXX |
## Changes
- Added `[{QuarantinedTest|ActiveIssue}]` attribute to {quarantine|disable} flaky/problematic tests
{- Conditional {quarantining|disabling} on {Platform} only (if applicable)}
## Verification
✅ Built test project(s) successfully
✅ Verified test(s) are skipped when running
## Related Issue
Addresses #XXXXX
---
**Note:** This PR does NOT close the related issue(s). The tests should be re-enabled once the underlying problems are fixed.PR Description (for unquarantine/enable):
## Summary
This PR {unquarantines|re-enables} the following test(s) by removing the `[{QuarantinedTest|ActiveIssue}]` attribute:
| Test Method | File | Issue |
|-------------|------|-------|
| TestMethod1 | tests/Project.Tests/File.cs | #XXXXX |
| TestMethod2 | tests/Project.Tests/File.cs | #XXXXX |
## Changes
- Removed `[{QuarantinedTest|ActiveIssue}]` attribute to {unquarantine|re-enable} previously flaky tests
## Verification
✅ Built test project(s) successfully
✅ Verified test(s) run successfully
## Related Issue
Closes #XXXXXPR Labels:
area-testing
IMPORTANT:
- For quarantine/disable: Reference the issue using "Addresses #XXXXX" - do NOT use "Fixes" or "Closes" as the issue should remain open.
- For unquarantine/enable: Use "Closes #XXXXX" since the underlying problem has been resolved.
Efficiency Optimizations
Multiple Tests, Same Issue
If multiple tests share the same issue:
- Run QuarantineTools once per test (tool does not support batch operations)
- Process all tests together
- Use a single commit
- Single PR with all changes
Batching Builds
If multiple tests are in the same test project:
- Run QuarantineTools for all tests first
- Build once after all modifications
- Verify all tests in a single run
Error Reporting
If any tests fail to be quarantined/disabled, include in the PR description:
## ⚠️ Unable to {Quarantine|Disable}
The following tests could not be {quarantined|disabled}:
| Test Method | Reason |
|-------------|--------|
| TestMethod | Test method not found in repository (QuarantineTools exit code: X) |
| TestMethod | Build failed after adding attribute |Response Format
After completing the task, provide a summary:
## Test Management Agent - Execution Summary
### ✅ Successfully {Quarantined|Disabled|Unquarantined|Re-enabled}
- **TestMethod1** in `tests/Project.Tests/File.cs`
- Issue: https://github.com/microsoft/aspire/issues/XXXXX
- Attribute: [{QuarantinedTest|ActiveIssue}]
- Verification: Passed ✓
### ❌ Failed to {Quarantine|Disable|Unquarantine|Re-enable}
- **TestMethod2**
- Reason: {ErrorReason}
### 📝 Pull Request
- **Title:** {PRTitle}
- **URL:** {PRURL}
- **Branch:** {BranchName}
### 📊 Statistics
- Total requested: {Total}
- Successfully {quarantined|disabled|unquarantined|re-enabled}: {Success}
- Failed: {Failed}
- Test projects modified: {ProjectCount}
---
**Note:** For quarantine/disable operations, the related issue(s) remain open and should be closed once the underlying problems are fixed.Important Constraints
- Use QuarantineTools - always use
tools/QuarantineToolsto add/remove attributes, never manually edit - One test per QuarantineTools invocation - call the tool once per test method
- Never modify test logic - only add/remove attributes via QuarantineTools
- Never close the issue for quarantine/disable operations - just reference it with "Addresses"
- Close the issue for unquarantine/enable operations - use "Closes"
- Always verify - build and run tests after QuarantineTools modifies files
- Issue URLs are mandatory - never quarantine/disable without a URL
- Fully-qualified names required - QuarantineTools needs Namespace.Type.Method format
- Conditional attributes require manual editing - QuarantineTools adds basic attributes only
- Audit runtime-only E2E routing - scheduling-attribute changes can add or remove a regular-PR consumer
- No placeholder values - use actual issue numbers and test names
Repository-Specific Notes
- Tests are located in the
tests/directory - Test projects follow the naming pattern
ProjectName.Tests - Use xUnit SDK v3 with Microsoft.Testing.Platform
- Always exclude quarantined and outerloop tests during verification
- PlatformDetection class is in
tests/Aspire.Components.Common.TestUtilities/ - QuarantineTools is located at
tools/QuarantineToolsand can be run viadotnet run --project - QuarantineTools uses Roslyn to safely modify source files
- See
tools/QuarantineTools/README.mdfor detailed tool documentation
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

