discourse/.github
Alan Guo Xiang Tan 2a1952d9ba
DEV: Only retry and log flaky tests on the main branch (#24889)
Why this change?

Pull requests can introduce flaky tests into the mix and we do not want
to be hiing that during the pull request process. While this does mean
builds for PR will be less stable than the `main` branch without
retries, we do not foresee this to be a problem long term since the
monitoring of flaky tests on the `main` branch will mean that the number
of flaky tests will eventually be reduced.

What does this change do?

1. Introduce the `DISCOURSE_TURBO_RSPEC_RETRY_AND_LOG_FLAKY_TESTS` env
   variable which will initialize `TurboTest::Runner` with the `retry_and_log_flaky_tests`
   kwarg set to true when set.

2. Change the tests workflow run to set `DISCOURSE_TURBO_RSPEC_RETRY_AND_LOG_FLAKY_TESTS` only when
   the build type is `backend` or `system` and the `github.ref_name` is
   `main`.
2023-12-14 09:41:30 +08:00
..
workflows DEV: Only retry and log flaky tests on the main branch (#24889) 2023-12-14 09:41:30 +08:00
dependabot.yml DEV: Remove RAILS_MASTER flag from Gemfile (#24574) 2023-11-28 09:36:23 +00:00
labeler.yml DEV: Update actions/labeler to v5 (#24835) 2023-12-12 09:27:58 +08:00
pull_request_template.md DEV: Correct typos and spelling mistakes (#12812) 2021-05-21 11:43:47 +10:00