discourse/.github/workflows
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
..
ember-version-enforcement.yml Build(deps): Bump actions/setup-node from 3 to 4 (#24594) 2023-11-28 10:57:28 +01:00
ember-version-lockfiles.yml DEV: Introduce feature-flag for Ember 5 upgrade 2023-11-27 16:40:22 +00:00
labeler.yml DEV: Update actions/labeler to v5 (#24835) 2023-12-12 09:27:58 +08:00
licenses.yml Build(deps): Bump actions/checkout from 3 to 4 (#23500) 2023-09-11 11:42:02 +02:00
linting.yml Build(deps): Bump actions/checkout from 3 to 4 (#23500) 2023-09-11 11:42:02 +02:00
migration-tests.yml DEV: Add GitHub Actions workflow for testing migrations 2023-10-13 16:03:55 +02:00
stale-pr-closer.yml Build(deps): Bump actions/stale from 8 to 9 (#24812) 2023-12-11 09:44:52 +01:00
tests.yml DEV: Only retry and log flaky tests on the main branch (#24889) 2023-12-14 09:41:30 +08:00