From dcba7831d9b84794032a80c8e792520ae450ad9c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 11 Dec 2023 19:13:21 -0800 Subject: [PATCH] Remove babel-proposal plugins (#355) (#357) * removing babel proposal * updating remote integ test workflow * sleep until OSD starts based on api/status * increasing sleep time * extending request timeout --------- (cherry picked from commit c2f175b230f95f71f158d9ed9b79dcccbe7cda13) Signed-off-by: Sean Li Signed-off-by: github-actions[bot] Co-authored-by: github-actions[bot] --- .babelrc | 4 +--- .../workflows/remote-integ-tests-workflow.yml | 23 ++++++++----------- 2 files changed, 10 insertions(+), 17 deletions(-) diff --git a/.babelrc b/.babelrc index e26ee76e..d9073a59 100644 --- a/.babelrc +++ b/.babelrc @@ -11,8 +11,6 @@ ], "plugins": [ "@babel/plugin-transform-modules-commonjs", - ["@babel/plugin-transform-runtime", { "regenerator": true }], - "@babel/plugin-proposal-class-properties", - "@babel/plugin-proposal-object-rest-spread" + ["@babel/plugin-transform-runtime", { "regenerator": true }] ] } diff --git a/.github/workflows/remote-integ-tests-workflow.yml b/.github/workflows/remote-integ-tests-workflow.yml index e68bc68f..17ece4f8 100644 --- a/.github/workflows/remote-integ-tests-workflow.yml +++ b/.github/workflows/remote-integ-tests-workflow.yml @@ -101,23 +101,18 @@ jobs: with: path: OpenSearch-Dashboards/plugins/dashboards-search-relevance - - name: Get node and yarn versions - id: versions_step - run: | - echo "::set-output name=node_version::$(node -p "(require('./OpenSearch-Dashboards/package.json').engines.node).match(/[.0-9]+/)[0]")" - echo "::set-output name=yarn_version::$(node -p "(require('./OpenSearch-Dashboards/package.json').engines.yarn).match(/[.0-9]+/)[0]")" - - - name: Setup node - uses: actions/setup-node@v1 + - name: Setup Node + uses: actions/setup-node@v3 with: - node-version: ${{ steps.versions_step.outputs.node_version }} + node-version-file: './OpenSearch-Dashboards/.nvmrc' registry-url: 'https://registry.npmjs.org' - - name: Install correct yarn version for OpenSearch Dashboards + - name: Install Yarn + shell: bash run: | - npm uninstall -g yarn - echo "Installing yarn ${{ steps.versions_step.outputs.yarn_version }}" - npm i -g yarn@${{ steps.versions_step.outputs.yarn_version }} + YARN_VERSION=$(node -p "require('./OpenSearch-Dashboards/package.json').engines.yarn") + echo "Installing yarn@$YARN_VERSION" + npm i -g yarn@$YARN_VERSION - name: Bootstrap the plugin run: | @@ -127,7 +122,7 @@ jobs: - name: Run OpenSearch Dashboards server run: | cd OpenSearch-Dashboards - yarn start --no-base-path --no-watch --server.host="0.0.0.0" & + yarn start --no-base-path --no-watch --server.host="0.0.0.0" --opensearch.requestTimeout=120000 & shell: bash # Windows and Mac OS take a while to start, so we need a long sleep