| # Copyright 2023 The Fuchsia Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| group("per_test_timeout_allowlist") { |
| # ________ _________ ________ ________ |
| # |\ ____\|\___ ___\\ __ \|\ __ \ |
| # \ \ \___|\|___ \ \_\ \ \|\ \ \ \|\ \ |
| # \ \_____ \ \ \ \ \ \ \\\ \ \ ____\ |
| # \|____|\ \ \ \ \ \ \ \\\ \ \ \___| |
| # ____\_\ \ \ \__\ \ \_______\ \__\ |
| # |\_________\ \|__| \|_______|\|__| |
| # \|_________| |
| # |
| # This is an allowlist of test targets that are allowed to set `timeout_secs` |
| # to override the infrastructure-enforced per-test timeout. |
| # |
| # You must receive an exception to override the infrastructure-imposed timeout |
| # for a test, because: |
| # |
| # 1. Slow tests are costly to run and cause higher presubmit latency for |
| # everyone. The first step when trying to get a slow test passing is to |
| # optimize the test. If it turns out to be difficult or impossible to get |
| # the test to run within the infrastructure-imposed timeout, justification |
| # is required for why the test is valuable enough to receive an exception |
| # to the infrastructure-imposed timeout. |
| # 2. The runtime of a given test may vary widely depending on the build |
| # configuration. For example, many tests run several times slower with |
| # coverage collection enabled. A hardcoded timeout will be either too short |
| # for slow build configurations, resulting in flaky timeouts, or too long |
| # for fast build configurations, resulting in time wasted waiting for the |
| # test to complete well beyond its expected runtime in case of a hang. |
| # |
| # Tests that run so slowly that they need an exception from the |
| # infrastructure-imposed timeout should consider other options, such as |
| # optimizing the test, splitting it into separate test executables, or running |
| # the test only in postsubmit on a builder that supports running slower tests. |
| visibility = [ |
| # TODO(olivernewman): Trim down this list. |
| "//src/connectivity/network/tests/integration:netstack-multicast-forwarding-integration-test-no-err-logs_test_netstack-multicast-forwarding-integration-test", |
| "//src/connectivity/network/tests/integration:netstack-multicast-forwarding-integration-test-with-err-logs_test_netstack-multicast-forwarding-integration-test", |
| "//src/starnix/tests/gvisor:*", |
| "//src/storage/lib/paver/test:paver-test_test_paver-test_component", |
| "//src/virtualization/tests:termina_container_tests_pkg_test_termina_container_tests_cmp", |
| |
| # TODO(https://issues.fuchsia.dev/318529127): Shard syscall tests so that |
| # we can remove the following line. |
| "//third_party/gvisor_syscall_tests:*", |
| ] |
| } |