| 1 |
# Flaky Functional Tests |
| 2 |
|
| 3 |
This directory contains functional tests that are sensitive to timing, server |
| 4 |
load, etc. |
| 5 |
|
| 6 |
For more information on functional tests, see ../functional/README.md. |
| 7 |
|
| 8 |
## How To Run These Tests |
| 9 |
|
| 10 |
```console |
| 11 |
$ etc/bin/run-functional-tests tests/k |
| 12 |
|
| 13 |
# split the tests into 4 "chunks" and run the first chunk |
| 14 |
$ CHUNK='1/4' etc/bin/run-functional-tests tests/k |
| 15 |
``` |
| 16 |
|
| 17 |
## Why Are There Flaky Tests? |
| 18 |
|
| 19 |
A lot of the functional tests are highly timing dependent which can cause |
| 20 |
them to become flaky, especially on heavily loaded systems or slow |
| 21 |
file systems. |
| 22 |
|
| 23 |
We put especially sensitive functional tests into the `flakyfunctional` |
| 24 |
directory so that we can easily test them separately with fewer tests |
| 25 |
running in parallel to give them a chance of passing. |
| 26 |
|
| 27 |
## See Also |
| 28 |
|
| 29 |
* ../functional/README.md (which has more details on functional tests) |
| 30 |
* [cylc/cylc-flow#2894](https://github.com/cylc/cylc-flow/issues/2894). |