Trunk quarantine

From dxos/dxos · View interactive version

Trunk quarantine is an AI agent skill from the GitHub repository dxos/dxos. Use Trunk's CI Autopilot MCP server to investigate a failing CI run, find/diagnose a flaky test, and quarantine it. Use when a CI run is red and might be flaky, or when asked to quarantine/investigate a specific test.

How to use this skill

Skill file

Trunk flaky-test quarantining

CI already uploads test results to Trunk, which detects flaky tests

statistically and quarantines (auto-skips) them instead of letting them block

merges — no upload setup is needed. The trunk MCP server ("CI Autopilot") is

already configured for this repo; each user just needs a one-time

per-user authentication. See REPOSITORY_GUIDE.md

for the auth steps if trunk tools aren't available yet.

Investigating a failing CI run

Given a GitHub Actions workflow URL (e.g. from gh run view or a PR check),

call investigate-ci-failure with that workflowUrl. It:

failures.

that case fall back to raw CI logs (gh run view <id> --log-failed).

Prefer this over reading raw CI logs first when the repo has Trunk uploads

configured — it does the flaky-vs-real triage for you.

Quarantining a specific flaky test

Do this whenever you've identified a test as flaky (from investigate-ci-failure,

a user report, or repeated unrelated CI failures) and want it stopped from

blocking merges.

  1. Find the test case ID, if you don't already have one:

call search-test with a fuzzy testNameSearch and the repoName

(owner/repo).

  1. Get evidence it's actually flaky before quarantining — call

fix-flaky-test with the testCaseId:

(ID, markdown summary, rendered facts).

investigation if there's no recent one, or if the failure looks

different from what's on file.

instead of a test case ID.

  1. Quarantine it. No MCP tool performs this write — it's a dashboard-only

action, gated by the repo's Manual Quarantine Permissions (admins-only in

some repos). So:

test's Trunk dashboard page — surface it to the user.

yourself via a connected browser, do it) to open the test's details page

and click Quarantine → Always, add a required comment, and Save.

See REPOSITORY_GUIDE.md

for the exact dashboard steps (details-page and table-row variants, plus

how to un-quarantine).

dashboard action was completed — there's no way to verify or perform the

write through these tools.

Notes

authenticated user belongs to multiple Trunk orgs.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.