[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: 95dee31bd90651dfb29925e64d9f9dc7417a95e7 Pull Request resolved: https://github.com/facebook/react/pull/30512
Lauren Tan committed
Jul 29, 2024 at 17:35 UTC
87b1a942ef9415e786a4f5757003a2a41129ae94
7 files changed
+14
.github/workflows/compiler_playground.yml
+2
@@ -10,6 +10,8 @@ on:
10
11
env:
12
TZ: /usr/share/zoneinfo/America/Los_Angeles
13
+ # https://github.com/actions/cache/blob/main/tips-and-workarounds.md#cache-segment-restore-timeout
14
+ SEGMENT_DOWNLOAD_TIMEOUT_MINS: 1
15
16
defaults:
17
run:
.github/workflows/compiler_typescript.yml
+2
@@ -10,6 +10,8 @@ on:
10
11
env:
12
TZ: /usr/share/zoneinfo/America/Los_Angeles
13
+ # https://github.com/actions/cache/blob/main/tips-and-workarounds.md#cache-segment-restore-timeout
14
+ SEGMENT_DOWNLOAD_TIMEOUT_MINS: 1
15
16
defaults:
17
run:
.github/workflows/devtools_regression_tests.yml
+2
@@ -10,6 +10,8 @@ on:
10
11
env:
12
TZ: /usr/share/zoneinfo/America/Los_Angeles
13
+ # https://github.com/actions/cache/blob/main/tips-and-workarounds.md#cache-segment-restore-timeout
14
+ SEGMENT_DOWNLOAD_TIMEOUT_MINS: 1
15
16
jobs:
17
download_build:
.github/workflows/runtime_build_and_test.yml
+2
@@ -9,6 +9,8 @@ on:
9
10
env:
11
TZ: /usr/share/zoneinfo/America/Los_Angeles
12
+ # https://github.com/actions/cache/blob/main/tips-and-workarounds.md#cache-segment-restore-timeout
13
+ SEGMENT_DOWNLOAD_TIMEOUT_MINS: 1
14
15
jobs:
16
# ----- FLOW -----
.github/workflows/runtime_commit_artifacts.yml
+2
@@ -9,6 +9,8 @@ on:
9
10
env:
11
TZ: /usr/share/zoneinfo/America/Los_Angeles
12
+ # https://github.com/actions/cache/blob/main/tips-and-workarounds.md#cache-segment-restore-timeout
13
+ SEGMENT_DOWNLOAD_TIMEOUT_MINS: 1
14
15
jobs:
16
download_artifacts:
.github/workflows/runtime_prereleases.yml
+2
@@ -19,6 +19,8 @@ on:
19
20
env:
21
TZ: /usr/share/zoneinfo/America/Los_Angeles
22
+ # https://github.com/actions/cache/blob/main/tips-and-workarounds.md#cache-segment-restore-timeout
23
+ SEGMENT_DOWNLOAD_TIMEOUT_MINS: 1
24
GH_TOKEN: ${{ github.token }}
25
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
26
.github/workflows/shared_lint.yml
+2
@@ -7,6 +7,8 @@ on:
7
8
env:
9
TZ: /usr/share/zoneinfo/America/Los_Angeles
10
+ # https://github.com/actions/cache/blob/main/tips-and-workarounds.md#cache-segment-restore-timeout
11
+ SEGMENT_DOWNLOAD_TIMEOUT_MINS: 1
12
13
jobs:
14
prettier: