From 7e2d951fef1b639160ec10102496bd6c36349242 Mon Sep 17 00:00:00 2001 From: Jialiang Liang Date: Mon, 19 Feb 2024 16:46:03 -0800 Subject: [PATCH] [CI/CD] Add single version flag during bootstrap to fix version conflicts and update the snapshots (#1454) Signed-off-by: Ryan Liang Signed-off-by: Joshua Li Co-authored-by: Joshua Li --- ...s-observability-test-and-build-workflow.yml | 6 +++--- .../ftr-e2e-dashboards-observability-test.yml | 2 +- .../workflows/integration-tests-workflow.yml | 2 +- .github/workflows/lint.yml | 2 +- ...ailable_integration_card_view.test.tsx.snap | 18 ++++++++++++++++++ ...ilable_integration_table_view.test.tsx.snap | 18 ++++++++++++++++++ 6 files changed, 42 insertions(+), 6 deletions(-) diff --git a/.github/workflows/dashboards-observability-test-and-build-workflow.yml b/.github/workflows/dashboards-observability-test-and-build-workflow.yml index 5585bc229a..2317e9431e 100644 --- a/.github/workflows/dashboards-observability-test-and-build-workflow.yml +++ b/.github/workflows/dashboards-observability-test-and-build-workflow.yml @@ -49,7 +49,7 @@ jobs: cd ./OpenSearch-Dashboards/ su `id -un 1000` -c "source $NVM_DIR/nvm.sh && nvm use && node -v && yarn -v && yarn config set network-timeout 1000000 -g && - yarn osd bootstrap" + yarn osd bootstrap --single-version=loose" - name: Test all dashboards-observability modules run: | @@ -57,7 +57,7 @@ jobs: cd ./OpenSearch-Dashboards/ su `id -un 1000` -c "source $NVM_DIR/nvm.sh && nvm use && node -v && yarn -v && cd plugins/dashboards-observability && - yarn osd bootstrap && yarn test --coverage --maxWorkers=100%" + yarn osd bootstrap --single-version=loose && yarn test --coverage --maxWorkers=100%" - name: Upload coverage uses: codecov/codecov-action@v1 @@ -131,7 +131,7 @@ jobs: command: | cd OpenSearch-Dashboards yarn config set network-timeout 1000000 -g - yarn osd bootstrap + yarn osd bootstrap --single-version=loose - name: Test all dashboards-observability modules run: | diff --git a/.github/workflows/ftr-e2e-dashboards-observability-test.yml b/.github/workflows/ftr-e2e-dashboards-observability-test.yml index 2e8a133d01..29d93b150d 100644 --- a/.github/workflows/ftr-e2e-dashboards-observability-test.yml +++ b/.github/workflows/ftr-e2e-dashboards-observability-test.yml @@ -105,7 +105,7 @@ jobs: - name: Bootstrap the plugin run: | cd OpenSearch-Dashboards/plugins/dashboards-observability - yarn osd bootstrap + yarn osd bootstrap --single-version=loose - name: Run OpenSearch Dashboards server run: | diff --git a/.github/workflows/integration-tests-workflow.yml b/.github/workflows/integration-tests-workflow.yml index 53367154c9..ad103ffa3a 100644 --- a/.github/workflows/integration-tests-workflow.yml +++ b/.github/workflows/integration-tests-workflow.yml @@ -128,7 +128,7 @@ jobs: - name: Bootstrap the plugin run: | cd OpenSearch-Dashboards/plugins/dashboards-observability - yarn osd bootstrap + yarn osd bootstrap --single-version=loose - name: Run OpenSearch Dashboards server run: | diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 9d996b8b7f..c51b4de33a 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -46,7 +46,7 @@ jobs: - name: Bootstrap the plugin working-directory: OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }} - run: yarn osd bootstrap + run: yarn osd bootstrap --single-version=loose - name: Get list of changed files using GitHub Action uses: lots0logs/gh-action-get-changed-files@2.2.2 diff --git a/public/components/integrations/components/__tests__/__snapshots__/available_integration_card_view.test.tsx.snap b/public/components/integrations/components/__tests__/__snapshots__/available_integration_card_view.test.tsx.snap index 6f47d925a0..902d3f9d28 100644 --- a/public/components/integrations/components/__tests__/__snapshots__/available_integration_card_view.test.tsx.snap +++ b/public/components/integrations/components/__tests__/__snapshots__/available_integration_card_view.test.tsx.snap @@ -271,6 +271,7 @@ exports[`Available Integration Card View Test Renders nginx integration card vie className="euiButtonContent__icon" color="inherit" size="m" + title="list" type="list" > + + list + @@ -384,6 +393,7 @@ exports[`Available Integration Card View Test Renders nginx integration card vie className="euiButtonContent__icon" color="inherit" size="m" + title="grid" type="grid" > + + grid + diff --git a/public/components/integrations/components/__tests__/__snapshots__/available_integration_table_view.test.tsx.snap b/public/components/integrations/components/__tests__/__snapshots__/available_integration_table_view.test.tsx.snap index 5852280617..df6ce6851a 100644 --- a/public/components/integrations/components/__tests__/__snapshots__/available_integration_table_view.test.tsx.snap +++ b/public/components/integrations/components/__tests__/__snapshots__/available_integration_table_view.test.tsx.snap @@ -473,6 +473,7 @@ exports[`Available Integration Table View Test Renders nginx integration table v className="euiButtonContent__icon" color="inherit" size="m" + title="list" type="list" > + + list + @@ -586,6 +595,7 @@ exports[`Available Integration Table View Test Renders nginx integration table v className="euiButtonContent__icon" color="inherit" size="m" + title="grid" type="grid" > + + grid +