From 2930fb2551895e3fd4b69c6e66ecaf8a081cab08 Mon Sep 17 00:00:00 2001 From: Simeon Widdis Date: Fri, 8 Sep 2023 10:40:48 -0700 Subject: [PATCH] Update caching (#965) Signed-off-by: Simeon Widdis --- ...-observability-test-and-build-workflow.yml | 21 +++++++------------ 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/.github/workflows/dashboards-observability-test-and-build-workflow.yml b/.github/workflows/dashboards-observability-test-and-build-workflow.yml index e9002ab811..eadd458944 100644 --- a/.github/workflows/dashboards-observability-test-and-build-workflow.yml +++ b/.github/workflows/dashboards-observability-test-and-build-workflow.yml @@ -53,20 +53,15 @@ jobs: with: path: OpenSearch-Dashboards/plugins/dashboards-observability - - name: Load Plugin Bootstrap cache - uses: actions/cache@v3 - with: - path: | - **/node_modules - **/target - key: ${{ runner.os }}-bootstrap-${{ hashFiles('OpenSearch-Dashboards/yarn.lock', 'OpenSearch-Dashboards/plugins/dashboards-observability/yarn.lock') }} - restore-keys: ${{ runner.os }}-bootstrap- - - name: Plugin Bootstrap - run: | - cd OpenSearch-Dashboards - yarn config set network-timeout 1000000 -g - yarn osd bootstrap || yarn osd bootstrap + uses: nick-fields/retry@v2 + with: + timeout_minutes: 20 + max_attempts: 2 + command: | + cd OpenSearch-Dashboards + yarn config set network-timeout 1000000 -g + yarn osd bootstrap - name: Test all dashboards-observability modules run: |