> ## Documentation Index
> Fetch the complete documentation index at: https://trunk-4cab4936-automation-firewatch-docs-sync.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Flaky Tests: Infrastructure Failure Protection

> When infrastructure issues like database outages, network problems, or CI runner failures cause a large number of tests to fail simultaneously, retrying those tests can trigger mass false flaky…

When infrastructure issues like database outages, network problems, or CI runner failures cause a
large number of tests to fail simultaneously, retrying those tests can trigger mass false flaky
detections. Infrastructure Failure Protection identifies these scenarios and excludes them from
flakiness detection.

<img src="https://mintcdn.com/trunk-4cab4936-automation-firewatch-docs-sync/bF34xrB5NUZaMQBn/assets/changelog/flaky-tests-infrastructure-failure-protection-yql4qd.png?fit=max&auto=format&n=bF34xrB5NUZaMQBn&q=85&s=5cd0f99e7f7472d818d81c084c4a2ac5" alt="" width="1708" height="712" data-path="assets/changelog/flaky-tests-infrastructure-failure-protection-yql4qd.png" />

By enabling this setting, you can set a threshold for filtering runs based on the percentage of
failed tests; if failures exceed 80%, those tests won't be processed for flaky test detection and
you'll see a new status in the Uploads tab indicating 'Upload Skipped Due to Infrastructure Error'.

[Read the Docs](/flaky-tests/detection/infrastructure-failure-protection) to learn more
