ReferenceActions

Quarantine

List, create, update and deactivate quarantine rules that keep known flaky Playwright tests from failing a suite run, from the CLI, MCP or the dashboard.

Quarantine rules keep matching tests from failing a suite run while still running them and recording their results and traces. Use List rules to inspect active rules and their IDs, and fetch exact suite.id and test.id values from samples before creating or updating a rule.

List rules

List quarantine rules

Lists quarantine rules with their exact IDs, scope, reason, expiration, and status.

$ npx endform@latest quarantine list
$ npx endform@latest quarantine list --all
Parameters
--allboolean
Include expired and deactivated rules. Defaults to active rules only.
--organization-idstring
Organization ID. Inferred from your repository config or active login when omitted.

Output

Prints JSON with a rules array. Each rule includes id, active, suite, test, projectName, branch, reason, endsAt, and deactivation metadata.

{
  "rules": [
    {
      "id": "qr_01J...",
      "active": true,
      "suite": { "id": "suite_01J...", "repository": "org/app", "directory": "e2e" },
      "test": { "id": "test_01J...", "name": "completes booking", "fileName": "tests/checkout.spec.ts" },
      "projectName": "chromium",
      "branch": null,
      "reason": "Tracking in #412",
      "endsAt": "2026-12-01T12:00:00Z",
      "deactivatedAt": null
    }
  ]
}
Toolquarantine_list
Example promptWhich tests are quarantined in our suites right now?
Parameters
organizationIdstringrequired
Organization ID from organization_list. Hosted logins with a single organization do not see this argument.
includeInactiveboolean
Include expired and deactivated rules. Defaults to false.

Output

Returns { rules: QuarantineRule[] } with exact rule IDs to pass to quarantine_update and quarantine_deactivate.

  1. Open your organization's Quarantine page.

Create a rule

Create a quarantine rule

Quarantined tests still run and record results, but their failures no longer fail the suite run.

$ npx endform@latest quarantine create --suite-id suite_01J... --test-id test_01J... --reason 'Investigating checkout timeout' --ends-at 2026-12-01T12:00:00Z

Requires --suite-id and at least one scope flag (--test-id, --project, or --branch). Retrieve exact persisted suite.id and test.id values from endform samples test-runs.

Parameters
--suite-idstringrequired
Exact persisted suite.id from endform samples.
--test-idstring
Exact persisted test.id. Omit to match all tests in the suite.
--projectstring
Exact Playwright project name. Omit to match all projects.
--branchstring
Exact branch name. Omit to match all branches.
--reasonstring
Reason for quarantining the matching tests.
--ends-atstring
Future RFC3339 expiration timestamp. Omit for no expiration.
--organization-idstring
Organization ID. Inferred from your repository config or active login when omitted.

Output

Prints JSON { rule } describing the newly created rule.

Toolquarantine_create
Example promptQuarantine the checkout timeout test in the web suite until Friday with the reason 'Investigating checkout timeout'.

Requires suiteId and at least one of testId, projectName, or branch. An agent calls samples_query first to get exact persisted suite.id and test.id values.

Parameters
organizationIdstringrequired
Organization ID from organization_list. Hosted logins with a single organization do not see this argument.
suiteIdstringrequired
Exact persisted suite.id from samples_query.
testIdstring
Exact persisted test.id. Omit to match all tests in the suite.
projectNamestring
Exact Playwright project name. Omit to match all projects.
branchstring
Exact branch name. Omit to match all branches.
reasonstring
Optional reason for quarantining the matching tests.
endsAtstring
Future RFC3339 expiration timestamp. Omit for no expiration.

Output

Returns { rule } with the created rule's id and scope.

  1. Open your organization's Quarantine page.
  2. Select Add quarantine rule and choose a Suite.
  3. Fill in at least one of Test, Project, or Branch.
  4. Check the matching tests in the preview, then select Create rule.

Update a rule

Update a quarantine rule

Replaces all editable settings of an active quarantine rule while keeping its rule ID and suite.

$ npx endform@latest quarantine update qr_01J... --test-id test_01J... --project chromium --reason 'Extended while fixing race' --ends-at 2026-12-08T12:00:00Z

Replaces every editable setting on the rule. Omitted scope flags widen that dimension to match all values, and omitted --reason or --ends-at clears them. At least one of --test-id, --project, or --branch must be provided.

Parameters
RULE_IDstringrequired
Exact rule ID from endform quarantine list.
--test-idstring
Exact persisted test.id. Omit to match all tests in the suite.
--projectstring
Exact Playwright project name. Omit to match all projects.
--branchstring
Exact branch name. Omit to match all branches.
--reasonstring
Reason for the rule. Omit to clear.
--ends-atstring
Future RFC3339 expiration timestamp. Omit for no expiration.
--organization-idstring
Organization ID. Inferred from your repository config or active login when omitted.

Output

Prints JSON { rule } with the updated rule settings.

Toolquarantine_update
Example promptExtend the checkout quarantine rule's expiration by one week and keep it scoped to chromium.

Supply every editable field explicitly; pass null to clear a restriction, reason, or expiration. Inactive rules cannot be edited and the suite cannot change.

Parameters
organizationIdstringrequired
Organization ID from organization_list. Hosted logins with a single organization do not see this argument.
ruleIdstringrequired
Exact rule ID from quarantine_list.
testIdstring | nullrequired
Exact persisted test.id, or null to match all tests.
projectNamestring | nullrequired
Exact Playwright project name, or null to match all projects.
branchstring | nullrequired
Exact branch name, or null to match all branches.
reasonstring | nullrequired
Reason for quarantining, or null to clear it.
endsAtstring | nullrequired
Future RFC3339 expiration timestamp, or null for no expiration.

Output

Returns { rule } with the updated rule.

  1. Open your organization's Quarantine page.
  2. Open an active rule, adjust its scope, reason, or expiration, and save.

Deactivate a rule

Deactivate a quarantine rule

Deactivates a quarantine rule so future failures of matching tests fail the suite run again.

$ npx endform@latest quarantine deactivate qr_01J...
Parameters
RULE_IDstringrequired
Exact rule ID from endform quarantine list.
--organization-idstring
Organization ID. Inferred from your repository config or active login when omitted.

Output

Prints JSON { rule, changed }. Repeating deactivation on an already inactive rule succeeds with changed: false.

{
  "rule": { "id": "qr_01J...", "active": false, "deactivatedAt": "2026-11-27T16:15:00Z" },
  "changed": true
}
Toolquarantine_deactivate
Example promptDeactivate the quarantine rule for the checkout test now that the fix is merged.

Repeatable: calling this on an already inactive rule succeeds and reports changed: false.

Parameters
organizationIdstringrequired
Organization ID from organization_list. Hosted logins with a single organization do not see this argument.
ruleIdstringrequired
Exact rule ID from quarantine_list.

Output

Returns { rule, changed } where changed is false if the rule was already inactive.

  1. Open your organization's Quarantine page.
  2. Select Deactivate on the rule you want to turn off.

How a rule matches tests

  • Exact persisted IDs: suiteId and testId take persisted IDs returned by samples, not test titles, file paths, or Playwright worker IDs.
  • Required scope: Every rule is bound to one suiteId and must restrict at least one of testId, projectName, or branch. Omitting any of the other two dimensions matches all values on that dimension.
  • Combining dimensions: A test attempt matches a rule when every specified dimension matches (exact suite, plus exact test, project, and branch whenever set).
  • Expiration: Setting endsAt (--ends-at) to a future RFC3339 timestamp automatically expires the rule at that time. Omitting it creates a rule with no expiration.
  • Updating vs. deactivating: Updating replaces all editable settings on an active rule without changing its ID or suite; inactive rules cannot be updated. Deactivating is idempotent and preserves the rule in history (--all / includeInactive: true).

Last updated