From 72291403ee2598686a6ff1e9f6a38e631f6516da Mon Sep 17 00:00:00 2001 From: Bryan Phelps Date: Mon, 14 Mar 2022 18:08:45 +0000 Subject: [PATCH 1/3] fix: Use restore-keys to fall back to latest cached nodes, if there is a miss --- .github/workflows/coder.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/coder.yaml b/.github/workflows/coder.yaml index d0afed5280026..de216cbae2a1a 100644 --- a/.github/workflows/coder.yaml +++ b/.github/workflows/coder.yaml @@ -61,6 +61,8 @@ jobs: **/node_modules .eslintcache key: js-${{ runner.os }}-test-${{ hashFiles('**/yarn.lock') }} + restore-keys: | + js-${{ runner.os }}- - name: Install node_modules run: ./scripts/yarn_install.sh @@ -108,6 +110,8 @@ jobs: **/node_modules .eslintcache key: js-${{ runner.os }}-test-${{ hashFiles('**/yarn.lock') }} + restore-keys: | + js-${{ runner.os }}- - name: Install node_modules run: ./scripts/yarn_install.sh @@ -250,6 +254,8 @@ jobs: **/node_modules .eslintcache key: js-${{ runner.os }}-test-${{ hashFiles('**/yarn.lock') }} + restore-keys: | + js-${{ runner.os }}- # Go is required for uploading the test results to datadog - uses: actions/setup-go@v2 @@ -312,6 +318,8 @@ jobs: **/node_modules .eslintcache key: js-${{ runner.os }}-test-${{ hashFiles('**/yarn.lock') }} + restore-keys: | + js-${{ runner.os }}- # Go is required for uploading the test results to datadog - uses: actions/setup-go@v2 From 335eb77eebe8fd74341ffa20ed39484ebfc42a39 Mon Sep 17 00:00:00 2001 From: Bryan Phelps Date: Mon, 14 Mar 2022 18:10:25 +0000 Subject: [PATCH 2/3] fix: Add .yarnrc file to extend timeout for large dependencies --- site/.yarnrc | 1 + 1 file changed, 1 insertion(+) create mode 100644 site/.yarnrc diff --git a/site/.yarnrc b/site/.yarnrc new file mode 100644 index 0000000000000..166d757c20779 --- /dev/null +++ b/site/.yarnrc @@ -0,0 +1 @@ +network-timeout 300000 \ No newline at end of file From 4c98ad58e2aec63cfea7071ae081f5e26be2a922 Mon Sep 17 00:00:00 2001 From: Bryan Date: Mon, 14 Mar 2022 11:40:25 -0700 Subject: [PATCH 3/3] Update site/.yarnrc Co-authored-by: G r e y --- site/.yarnrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/.yarnrc b/site/.yarnrc index 166d757c20779..d7d9c737a6f6b 100644 --- a/site/.yarnrc +++ b/site/.yarnrc @@ -1 +1 @@ -network-timeout 300000 \ No newline at end of file +network-timeout 300000