When to Use It
- A test is intermittently failing but hasn’t been flagged by threshold or pass-on-retry monitors.
- You want to immediately quarantine a test while investigating.
- You’ve identified a flaky test through code review or local observation.
How It Works
Flagging a Test
- Navigate to the test detail page for the test you want to flag.
- Click the Flag as Flaky button in the header row, next to the status badge.
- In the popover that appears, optionally add a reason (up to 256 characters) explaining why you’re flagging it.
- Click Flag to confirm.
- The test is immediately marked as flaky, even if no automated monitor has detected it.
- An amber banner appears below the header showing who flagged it, when, and the reason (if provided).
- The flag is additive — if automated monitors later detect the test as flaky too, both signals coexist.
A manual flag does not override a broken status. Broken always takes precedence over flaky, so if an active monitor classifies the test as broken, the test shows as broken until that monitor resolves or is muted. While a test is broken, the Flag as Flaky button is disabled — if you believe the broken classification is incorrect, mute the monitor or update its configuration instead. You can still remove an existing flag while the test is broken.
Removing the Flag
- On the test detail page, find the amber “Manually flagged as flaky” banner.
- Click the Remove flag button on the right side of the banner.
- Confirm by clicking Remove flag in the popover.
- The test’s status reverts to whatever the automated monitors determine.
- If monitors are still detecting the test as flaky, it remains flaky. The flag removal only clears the manual override.