From 3b35d298441fd84fe1ea8936b8baafd381278860 Mon Sep 17 00:00:00 2001 From: Lauren Tan Date: Mon, 29 Jul 2024 16:15:15 -0400 Subject: [PATCH] [ci] Override actions/cache default timeout actions/cache has a default timeout of 10 minutes. Occasionally the cache service download gets stuck and it waits this amount of time before proceeding like it was a cache miss. 10 minutes is way too long so let's shorten this to a minute. ghstack-source-id: b31619624c1736b9af0173b8db9d8408f7e978d5 Pull Request resolved: https://github.com/facebook/react/pull/30512 --- .github/workflows/compiler_playground.yml | 2 ++ .github/workflows/compiler_typescript.yml | 2 ++ .github/workflows/devtools_regression_tests.yml | 2 ++ .github/workflows/runtime_build_and_test.yml | 2 ++ .github/workflows/runtime_commit_artifacts.yml | 2 ++ .github/workflows/runtime_prereleases.yml | 2 ++ .github/workflows/shared_lint.yml | 2 ++ 7 files changed, 14 insertions(+) diff --git a/.github/workflows/compiler_playground.yml b/.github/workflows/compiler_playground.yml index eb48a9b210b22..3ae5c04f20ea0 100644 --- a/.github/workflows/compiler_playground.yml +++ b/.github/workflows/compiler_playground.yml @@ -10,6 +10,8 @@ on: env: TZ: /usr/share/zoneinfo/America/Los_Angeles + # https://github.com/actions/cache/blob/main/tips-and-workarounds.md#cache-segment-restore-timeout + SEGMENT_DOWNLOAD_TIMEOUT_MINS: 1 defaults: run: diff --git a/.github/workflows/compiler_typescript.yml b/.github/workflows/compiler_typescript.yml index 8576f66a10057..d81154ef7b6f7 100644 --- a/.github/workflows/compiler_typescript.yml +++ b/.github/workflows/compiler_typescript.yml @@ -10,6 +10,8 @@ on: env: TZ: /usr/share/zoneinfo/America/Los_Angeles + # https://github.com/actions/cache/blob/main/tips-and-workarounds.md#cache-segment-restore-timeout + SEGMENT_DOWNLOAD_TIMEOUT_MINS: 1 defaults: run: diff --git a/.github/workflows/devtools_regression_tests.yml b/.github/workflows/devtools_regression_tests.yml index dd1b62c00c310..1fd18d17275d7 100644 --- a/.github/workflows/devtools_regression_tests.yml +++ b/.github/workflows/devtools_regression_tests.yml @@ -10,6 +10,8 @@ on: env: TZ: /usr/share/zoneinfo/America/Los_Angeles + # https://github.com/actions/cache/blob/main/tips-and-workarounds.md#cache-segment-restore-timeout + SEGMENT_DOWNLOAD_TIMEOUT_MINS: 1 jobs: download_build: diff --git a/.github/workflows/runtime_build_and_test.yml b/.github/workflows/runtime_build_and_test.yml index 6fd2338e17225..7186e60f9b5ee 100644 --- a/.github/workflows/runtime_build_and_test.yml +++ b/.github/workflows/runtime_build_and_test.yml @@ -9,6 +9,8 @@ on: env: TZ: /usr/share/zoneinfo/America/Los_Angeles + # https://github.com/actions/cache/blob/main/tips-and-workarounds.md#cache-segment-restore-timeout + SEGMENT_DOWNLOAD_TIMEOUT_MINS: 1 jobs: # ----- FLOW ----- diff --git a/.github/workflows/runtime_commit_artifacts.yml b/.github/workflows/runtime_commit_artifacts.yml index d1038a7537fe2..2be0dbcbbd62a 100644 --- a/.github/workflows/runtime_commit_artifacts.yml +++ b/.github/workflows/runtime_commit_artifacts.yml @@ -9,6 +9,8 @@ on: env: TZ: /usr/share/zoneinfo/America/Los_Angeles + # https://github.com/actions/cache/blob/main/tips-and-workarounds.md#cache-segment-restore-timeout + SEGMENT_DOWNLOAD_TIMEOUT_MINS: 1 jobs: download_artifacts: diff --git a/.github/workflows/runtime_prereleases.yml b/.github/workflows/runtime_prereleases.yml index f2bc8aa1d7a7f..69d37a7d8216c 100644 --- a/.github/workflows/runtime_prereleases.yml +++ b/.github/workflows/runtime_prereleases.yml @@ -19,6 +19,8 @@ on: env: TZ: /usr/share/zoneinfo/America/Los_Angeles + # https://github.com/actions/cache/blob/main/tips-and-workarounds.md#cache-segment-restore-timeout + SEGMENT_DOWNLOAD_TIMEOUT_MINS: 1 GH_TOKEN: ${{ github.token }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.github/workflows/shared_lint.yml b/.github/workflows/shared_lint.yml index d395129620503..d9e4de858caea 100644 --- a/.github/workflows/shared_lint.yml +++ b/.github/workflows/shared_lint.yml @@ -7,6 +7,8 @@ on: env: TZ: /usr/share/zoneinfo/America/Los_Angeles + # https://github.com/actions/cache/blob/main/tips-and-workarounds.md#cache-segment-restore-timeout + SEGMENT_DOWNLOAD_TIMEOUT_MINS: 1 jobs: prettier: