> ## Documentation Index
> Fetch the complete documentation index at: https://docs.trunk.io/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/w76MKdCIplbmEDae/assets/changelog/flaky-tests-infrastructure-failure-protection-yql4qd.png?fit=max&auto=format&n=w76MKdCIplbmEDae&q=85&s=e46173506279ec5574c4d36215f479c2" 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
