Skip to content

Commit

Permalink
Remove babel-proposal plugins (#355)
Browse files Browse the repository at this point in the history
* removing babel proposal

Signed-off-by: Sean Li <lnse@amazon.com>

* updating remote integ test workflow

Signed-off-by: Sean Li <lnse@amazon.com>

* sleep until OSD starts based on api/status

Signed-off-by: Sean Li <lnse@amazon.com>

* increasing sleep time

Signed-off-by: Sean Li <lnse@amazon.com>

* extending request timeout

Signed-off-by: Sean Li <lnse@amazon.com>

---------

Signed-off-by: Sean Li <lnse@amazon.com>
  • Loading branch information
sejli authored Dec 12, 2023
1 parent 8f1422d commit c2f175b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 17 deletions.
4 changes: 1 addition & 3 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -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 }]
]
}
23 changes: 9 additions & 14 deletions .github/workflows/remote-integ-tests-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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
Expand Down

0 comments on commit c2f175b

Please sign in to comment.