From 3024e1325c84b760424b555a39f3aa490e158bb8 Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Wed, 29 Nov 2023 13:53:55 +0800 Subject: [PATCH] feat: use ipv4 by default to fix CI flow (#960) (#967) * feat: use ipv4 by default to fix CI flow Signed-off-by: SuZhou-Joe * feat: remove duplicate NODE_OPTIONS Signed-off-by: SuZhou-Joe * fix: hang test cases Signed-off-by: SuZhou-Joe * fix: typo Signed-off-by: SuZhou-Joe * Revert "fix: hang test cases" This reverts commit b7caeb72c59fd577154870cadea0652bbcf6d3b1. Signed-off-by: SuZhou-Joe * fix: enable dev-shm to address hang test Signed-off-by: SuZhou-Joe * feat: add wait to fix hang Signed-off-by: SuZhou-Joe * feat: revert image version back to 2.308.0-1 Signed-off-by: SuZhou-Joe * feat: downgrade chrome version to v115 Signed-off-by: SuZhou-Joe * feat: revert chromuim downgrade logic Signed-off-by: SuZhou-Joe --------- Signed-off-by: SuZhou-Joe (cherry picked from commit c875187321b59a7aa89101516409aa1d73429883) Co-authored-by: SuZhou-Joe --- .github/workflows/cypress-workflow-vanilla-snapshot-based.yml | 2 ++ .github/workflows/lint_checker.yml | 2 ++ .github/workflows/release-e2e-workflow-template-windows.yml | 2 ++ .github/workflows/release-e2e-workflow-template.yml | 2 ++ .github/workflows/release-signoff-chrome.yml | 2 ++ .github/workflows/release-signoff-chromium-ad-only.yml | 2 ++ .github/workflows/release-signoff-chromium-ism-only.yml | 2 ++ .../workflows/release-signoff-chromium-tests-in-memory-0.yml | 2 ++ .../workflows/release-signoff-chromium-tests-in-memory-10.yml | 2 ++ .../workflows/release-signoff-chromium-tests-in-memory-20.yml | 2 ++ .../workflows/release-signoff-chromium-tests-in-memory-5.yml | 2 ++ .github/workflows/release-signoff-chromium.yml | 2 ++ .github/workflows/release-signoff-electron.yml | 2 ++ .github/workflows/release-signoff-firefox.yml | 2 ++ 14 files changed, 28 insertions(+) diff --git a/.github/workflows/cypress-workflow-vanilla-snapshot-based.yml b/.github/workflows/cypress-workflow-vanilla-snapshot-based.yml index d24593e7a..f8d4d1a74 100644 --- a/.github/workflows/cypress-workflow-vanilla-snapshot-based.yml +++ b/.github/workflows/cypress-workflow-vanilla-snapshot-based.yml @@ -17,6 +17,8 @@ jobs: CI: 1 # avoid warnings like "tput: No value for $TERM and no -T specified" TERM: xterm + # make Node run in ipv4 first so that cypress can detect 5601 port in CI environment + NODE_OPTIONS: '--max-old-space-size=6144 --dns-result-order=ipv4first' steps: - name: Set up JDK uses: actions/setup-java@v1 diff --git a/.github/workflows/lint_checker.yml b/.github/workflows/lint_checker.yml index 64a19ea38..c963d7a11 100644 --- a/.github/workflows/lint_checker.yml +++ b/.github/workflows/lint_checker.yml @@ -14,6 +14,8 @@ jobs: CI: 1 # avoid warnings like "tput: No value for $TERM and no -T specified" TERM: xterm + # make Node run in ipv4 first so that cypress can detect 5601 port in CI environment + NODE_OPTIONS: '--max-old-space-size=6144 --dns-result-order=ipv4first' steps: - name: Checkout cypress-test uses: actions/checkout@v2 diff --git a/.github/workflows/release-e2e-workflow-template-windows.yml b/.github/workflows/release-e2e-workflow-template-windows.yml index e7ff7a6ae..3f8553a84 100644 --- a/.github/workflows/release-e2e-workflow-template-windows.yml +++ b/.github/workflows/release-e2e-workflow-template-windows.yml @@ -20,6 +20,8 @@ jobs: CI: 1 # avoid warnings like "tput: No value for $TERM and no -T specified" TERM: xterm + # make Node run in ipv4 first so that cypress can detect 5601 port in CI environment + NODE_OPTIONS: '--max-old-space-size=6144 --dns-result-order=ipv4first' steps: - name: Set up JDK uses: actions/setup-java@v1 diff --git a/.github/workflows/release-e2e-workflow-template.yml b/.github/workflows/release-e2e-workflow-template.yml index 33ad16985..20fe3fa4d 100644 --- a/.github/workflows/release-e2e-workflow-template.yml +++ b/.github/workflows/release-e2e-workflow-template.yml @@ -23,6 +23,8 @@ jobs: CI: 1 # avoid warnings like "tput: No value for $TERM and no -T specified" TERM: xterm + # make Node run in ipv4 first so that cypress can detect 5601 port in CI environment + NODE_OPTIONS: '--max-old-space-size=6144 --dns-result-order=ipv4first' steps: - name: Set up JDK uses: actions/setup-java@v1 diff --git a/.github/workflows/release-signoff-chrome.yml b/.github/workflows/release-signoff-chrome.yml index dec0b5fd0..9dc47ddb4 100644 --- a/.github/workflows/release-signoff-chrome.yml +++ b/.github/workflows/release-signoff-chrome.yml @@ -11,6 +11,8 @@ jobs: CI: 1 # avoid warnings like "tput: No value for $TERM and no -T specified" TERM: xterm + # make Node run in ipv4 first so that cypress can detect 5601 port in CI environment + NODE_OPTIONS: '--max-old-space-size=6144 --dns-result-order=ipv4first' steps: - name: Checkout functional-test uses: actions/checkout@v2 diff --git a/.github/workflows/release-signoff-chromium-ad-only.yml b/.github/workflows/release-signoff-chromium-ad-only.yml index 14b9c8551..96cf1bc8e 100644 --- a/.github/workflows/release-signoff-chromium-ad-only.yml +++ b/.github/workflows/release-signoff-chromium-ad-only.yml @@ -11,6 +11,8 @@ jobs: CI: 1 # avoid warnings like "tput: No value for $TERM and no -T specified" TERM: xterm + # make Node run in ipv4 first so that cypress can detect 5601 port in CI environment + NODE_OPTIONS: '--max-old-space-size=6144 --dns-result-order=ipv4first' steps: - name: Checkout functional-test uses: actions/checkout@v2 diff --git a/.github/workflows/release-signoff-chromium-ism-only.yml b/.github/workflows/release-signoff-chromium-ism-only.yml index c920f7f01..08aa34055 100644 --- a/.github/workflows/release-signoff-chromium-ism-only.yml +++ b/.github/workflows/release-signoff-chromium-ism-only.yml @@ -11,6 +11,8 @@ jobs: CI: 1 # avoid warnings like "tput: No value for $TERM and no -T specified" TERM: xterm + # make Node run in ipv4 first so that cypress can detect 5601 port in CI environment + NODE_OPTIONS: '--max-old-space-size=6144 --dns-result-order=ipv4first' steps: - name: Checkout functional-test uses: actions/checkout@v2 diff --git a/.github/workflows/release-signoff-chromium-tests-in-memory-0.yml b/.github/workflows/release-signoff-chromium-tests-in-memory-0.yml index 8c9a7e416..8e4604747 100644 --- a/.github/workflows/release-signoff-chromium-tests-in-memory-0.yml +++ b/.github/workflows/release-signoff-chromium-tests-in-memory-0.yml @@ -11,6 +11,8 @@ jobs: CI: 1 # avoid warnings like "tput: No value for $TERM and no -T specified" TERM: xterm + # make Node run in ipv4 first so that cypress can detect 5601 port in CI environment + NODE_OPTIONS: '--max-old-space-size=6144 --dns-result-order=ipv4first' steps: - name: Checkout functional-test uses: actions/checkout@v2 diff --git a/.github/workflows/release-signoff-chromium-tests-in-memory-10.yml b/.github/workflows/release-signoff-chromium-tests-in-memory-10.yml index 17e82077f..599054bb4 100644 --- a/.github/workflows/release-signoff-chromium-tests-in-memory-10.yml +++ b/.github/workflows/release-signoff-chromium-tests-in-memory-10.yml @@ -11,6 +11,8 @@ jobs: CI: 1 # avoid warnings like "tput: No value for $TERM and no -T specified" TERM: xterm + # make Node run in ipv4 first so that cypress can detect 5601 port in CI environment + NODE_OPTIONS: '--max-old-space-size=6144 --dns-result-order=ipv4first' steps: - name: Checkout functional-test uses: actions/checkout@v2 diff --git a/.github/workflows/release-signoff-chromium-tests-in-memory-20.yml b/.github/workflows/release-signoff-chromium-tests-in-memory-20.yml index fbc92bbe8..3a32342cf 100644 --- a/.github/workflows/release-signoff-chromium-tests-in-memory-20.yml +++ b/.github/workflows/release-signoff-chromium-tests-in-memory-20.yml @@ -11,6 +11,8 @@ jobs: CI: 1 # avoid warnings like "tput: No value for $TERM and no -T specified" TERM: xterm + # make Node run in ipv4 first so that cypress can detect 5601 port in CI environment + NODE_OPTIONS: '--max-old-space-size=6144 --dns-result-order=ipv4first' steps: - name: Checkout functional-test uses: actions/checkout@v2 diff --git a/.github/workflows/release-signoff-chromium-tests-in-memory-5.yml b/.github/workflows/release-signoff-chromium-tests-in-memory-5.yml index b49d4e4f7..8b2b6faf7 100644 --- a/.github/workflows/release-signoff-chromium-tests-in-memory-5.yml +++ b/.github/workflows/release-signoff-chromium-tests-in-memory-5.yml @@ -11,6 +11,8 @@ jobs: CI: 1 # avoid warnings like "tput: No value for $TERM and no -T specified" TERM: xterm + # make Node run in ipv4 first so that cypress can detect 5601 port in CI environment + NODE_OPTIONS: '--max-old-space-size=6144 --dns-result-order=ipv4first' steps: - name: Checkout functional-test uses: actions/checkout@v2 diff --git a/.github/workflows/release-signoff-chromium.yml b/.github/workflows/release-signoff-chromium.yml index 6059c7f54..15015ef74 100644 --- a/.github/workflows/release-signoff-chromium.yml +++ b/.github/workflows/release-signoff-chromium.yml @@ -11,6 +11,8 @@ jobs: CI: 1 # avoid warnings like "tput: No value for $TERM and no -T specified" TERM: xterm + # make Node run in ipv4 first so that cypress can detect 5601 port in CI environment + NODE_OPTIONS: '--max-old-space-size=6144 --dns-result-order=ipv4first' steps: - name: Checkout functional-test uses: actions/checkout@v2 diff --git a/.github/workflows/release-signoff-electron.yml b/.github/workflows/release-signoff-electron.yml index 8d874748e..140c69b52 100644 --- a/.github/workflows/release-signoff-electron.yml +++ b/.github/workflows/release-signoff-electron.yml @@ -11,6 +11,8 @@ jobs: CI: 1 # avoid warnings like "tput: No value for $TERM and no -T specified" TERM: xterm + # make Node run in ipv4 first so that cypress can detect 5601 port in CI environment + NODE_OPTIONS: '--max-old-space-size=6144 --dns-result-order=ipv4first' steps: - name: Checkout functional-test uses: actions/checkout@v2 diff --git a/.github/workflows/release-signoff-firefox.yml b/.github/workflows/release-signoff-firefox.yml index a1e6b4a68..0f99fa5ed 100644 --- a/.github/workflows/release-signoff-firefox.yml +++ b/.github/workflows/release-signoff-firefox.yml @@ -11,6 +11,8 @@ jobs: CI: 1 # avoid warnings like "tput: No value for $TERM and no -T specified" TERM: xterm + # make Node run in ipv4 first so that cypress can detect 5601 port in CI environment + NODE_OPTIONS: '--max-old-space-size=6144 --dns-result-order=ipv4first' steps: - name: Checkout functional-test uses: actions/checkout@v2