From 5caba16d65a8a693b800d9ec9932309734aa3e41 Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Mon, 2 Oct 2023 16:28:33 -0700 Subject: [PATCH] [CI][Cypress] set NODE_OPTIONS and cluster disk allocation (#5172) (#5175) Set env variable of NODE_OPTIONS for OSD to reference on startup to ensure stable env. Disable threshold enabled for disk allocation Signed-off-by: Kawika Avilla (cherry picked from commit a77178f0190680115d35ab1b5bf67e5136f10a89) Signed-off-by: github-actions[bot] Co-authored-by: github-actions[bot] --- .github/workflows/cypress_workflow.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/cypress_workflow.yml b/.github/workflows/cypress_workflow.yml index d78999a7965f..be98b5e56d79 100644 --- a/.github/workflows/cypress_workflow.yml +++ b/.github/workflows/cypress_workflow.yml @@ -34,12 +34,13 @@ env: TEST_BRANCH: "${{ inputs.test_branch != '' && inputs.test_branch || github.base_ref }}" FTR_PATH: 'ftr' START_CMD: 'node ../scripts/opensearch_dashboards --dev --no-base-path --no-watch' - OPENSEARCH_SNAPSHOT_CMD: 'node ../scripts/opensearch snapshot' + OPENSEARCH_SNAPSHOT_CMD: 'node ../scripts/opensearch snapshot -E cluster.routing.allocation.disk.threshold_enabled=false' SPEC: ${{ inputs.specs != '' && inputs.specs || 'cypress/integration/core-opensearch-dashboards/opensearch-dashboards/**/*.js,' }} CYPRESS_BROWSER: 'chromium' CYPRESS_VISBUILDER_ENABLED: true CYPRESS_DATASOURCE_MANAGEMENT_ENABLED: false OSD_SNAPSHOT_SKIP_VERIFY_CHECKSUM: true + NODE_OPTIONS: '--max-old-space-size=6144 --dns-result-order=ipv4first' COMMENT_TAG: '[MANUAL CYPRESS TEST RUN RESULTS]' COMMENT_SUCCESS_MSG: ':white_check_mark: Cypress test run succeeded!' COMMENT_FAILURE_MSG: ':x: Cypress test run failed!' @@ -179,13 +180,15 @@ jobs: #### ${{ needs.cypress-tests.result == 'success' && env.COMMENT_SUCCESS_MSG || env.COMMENT_FAILURE_MSG }} #### Inputs: - Source repo: `${{ env.SOURCE_REPO }}` - Source branch: ``${{ env.SOURCE_BRANCH }}`` - Test repo: `${{ env.TEST_REPO }}` - Test branch: ``${{ env.TEST_BRANCH }}`` + ``` + Source repo: '${{ env.SOURCE_REPO }}' + Source branch: '${{ env.SOURCE_BRANCH }}' + Test repo: '${{ env.TEST_REPO }}' + Test branch: '${{ env.TEST_BRANCH }}' Test spec: - `${{ env.SPEC }}` + '${{ env.SPEC }}' + ``` #### Link to results: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}