From f1f02e4c60a9a1fb7168b1b7092299d6af628a7e Mon Sep 17 00:00:00 2001 From: Jack Wang <39379864+jackwcodes@users.noreply.github.com> Date: Mon, 2 Oct 2023 11:19:47 -0700 Subject: [PATCH] Add a placeholder timeout to GitHub Actions unit tests (#1897) --- .github/workflows/check_generated_pyi.yml | 1 + .github/workflows/integration_app_harness.yml | 1 + .github/workflows/integration_tests.yml | 1 + .github/workflows/integration_tests_wsl.yml | 1 + .github/workflows/pre-commit.yml | 1 + .github/workflows/reflex_init_in_docker_test.yml | 1 + .github/workflows/unit_tests.yml | 1 + 7 files changed, 7 insertions(+) diff --git a/.github/workflows/check_generated_pyi.yml b/.github/workflows/check_generated_pyi.yml index b9a360427a..39b988c5bb 100644 --- a/.github/workflows/check_generated_pyi.yml +++ b/.github/workflows/check_generated_pyi.yml @@ -15,6 +15,7 @@ on: jobs: check-generated-pyi-components: + timeout-minutes: 30 runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/integration_app_harness.yml b/.github/workflows/integration_app_harness.yml index 55a042bb8c..7aeb266c1e 100644 --- a/.github/workflows/integration_app_harness.yml +++ b/.github/workflows/integration_app_harness.yml @@ -15,6 +15,7 @@ permissions: jobs: integration-app-harness: + timeout-minutes: 30 strategy: matrix: state_manager: [ "redis", "memory" ] diff --git a/.github/workflows/integration_tests.yml b/.github/workflows/integration_tests.yml index 1849d95f97..ad14433004 100644 --- a/.github/workflows/integration_tests.yml +++ b/.github/workflows/integration_tests.yml @@ -28,6 +28,7 @@ env: jobs: example-counter: + timeout-minutes: 30 strategy: # Prioritize getting more information out of the workflow (even if something fails) fail-fast: false diff --git a/.github/workflows/integration_tests_wsl.yml b/.github/workflows/integration_tests_wsl.yml index b6366dc169..5e0ab377bd 100644 --- a/.github/workflows/integration_tests_wsl.yml +++ b/.github/workflows/integration_tests_wsl.yml @@ -18,6 +18,7 @@ env: jobs: example-counter-wsl: + timeout-minutes: 30 # 2019 is more stable with WSL in GH actions # https://github.com/actions/runner-images/issues/5151 # Confirmed through trial and error. 2022 has >80% failure rate (probably BSOD) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 32b813bdcd..a785299bd4 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -11,6 +11,7 @@ on: jobs: pre-commit: + timeout-minutes: 30 runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/reflex_init_in_docker_test.yml b/.github/workflows/reflex_init_in_docker_test.yml index a05d40ab3b..a60c278a9a 100644 --- a/.github/workflows/reflex_init_in_docker_test.yml +++ b/.github/workflows/reflex_init_in_docker_test.yml @@ -15,6 +15,7 @@ jobs: # TODO we can extend to various starting points (e.g. Ubuntu with node, without node, with unzip, without unzip, etc.) # Currently starting point is: Ubuntu + unzip, xz-utils, Python suite. No node. reflex-install-and-init: + timeout-minutes: 30 runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index 9945507fa7..ec93f9948a 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -19,6 +19,7 @@ defaults: jobs: unit-tests: + timeout-minutes: 30 strategy: fail-fast: false matrix: