From 2b0dbea0ba3434ae54d72f5687b880b5358cc4b5 Mon Sep 17 00:00:00 2001 From: senthanal Date: Mon, 27 Jan 2025 13:49:46 +0100 Subject: [PATCH 01/30] debug through ssh --- .github/workflows/fe-e2e.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/fe-e2e.yml b/.github/workflows/fe-e2e.yml index 3106af15..3d37a8d1 100644 --- a/.github/workflows/fe-e2e.yml +++ b/.github/workflows/fe-e2e.yml @@ -29,6 +29,9 @@ jobs: ref: ${{ inputs.GHA_REF }} fetch-depth: 0 + - name: Setup tmate session + uses: mxschmitt/action-tmate@v3 + - uses: actions/setup-node@v3 with: node-version: 18.18.2 From 69e5e3e8983ae1097684cb83f2d40022f44d20d6 Mon Sep 17 00:00:00 2001 From: senthanal Date: Mon, 27 Jan 2025 18:10:21 +0100 Subject: [PATCH 02/30] debug through ssh for e2e --- .github/workflows/fe-e2e.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/fe-e2e.yml b/.github/workflows/fe-e2e.yml index 3d37a8d1..e25bd2b3 100644 --- a/.github/workflows/fe-e2e.yml +++ b/.github/workflows/fe-e2e.yml @@ -29,9 +29,6 @@ jobs: ref: ${{ inputs.GHA_REF }} fetch-depth: 0 - - name: Setup tmate session - uses: mxschmitt/action-tmate@v3 - - uses: actions/setup-node@v3 with: node-version: 18.18.2 @@ -45,6 +42,9 @@ jobs: - name: Install Cypress Binary run: npx cypress install + - name: Setup tmate session + uses: mxschmitt/action-tmate@v3 + - name: Affected Regression Tests uses: collaborationFactory/github-actions/.github/actions/run-many@master with: From 491b4241bccf804745285a7cd8c2ff70b4eac76f Mon Sep 17 00:00:00 2001 From: alekhya-cplace Date: Thu, 30 Jan 2025 13:51:26 +0100 Subject: [PATCH 03/30] making cypress not to install its own binary --- .github/workflows/fe-e2e.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/fe-e2e.yml b/.github/workflows/fe-e2e.yml index e25bd2b3..2ae641e3 100644 --- a/.github/workflows/fe-e2e.yml +++ b/.github/workflows/fe-e2e.yml @@ -40,7 +40,7 @@ jobs: key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }} - name: Install Cypress Binary - run: npx cypress install + run: CYPRESS_INSTALL_BINARY=0 npm cypress install - name: Setup tmate session uses: mxschmitt/action-tmate@v3 From 0b20ea8d445493fd2a36c61ce583b556d74e6418 Mon Sep 17 00:00:00 2001 From: alekhya-cplace Date: Thu, 30 Jan 2025 14:00:22 +0100 Subject: [PATCH 04/30] corrected typo --- .github/workflows/fe-e2e.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/fe-e2e.yml b/.github/workflows/fe-e2e.yml index 2ae641e3..fa171f99 100644 --- a/.github/workflows/fe-e2e.yml +++ b/.github/workflows/fe-e2e.yml @@ -40,7 +40,7 @@ jobs: key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }} - name: Install Cypress Binary - run: CYPRESS_INSTALL_BINARY=0 npm cypress install + run: CYPRESS_INSTALL_BINARY=0 npx cypress install - name: Setup tmate session uses: mxschmitt/action-tmate@v3 From a05c419c5f1839c2f668e336de0b1b425e3d09f8 Mon Sep 17 00:00:00 2001 From: alekhya-cplace Date: Thu, 30 Jan 2025 14:13:52 +0100 Subject: [PATCH 05/30] adding npx and npm for missing node modules issue --- .github/workflows/fe-e2e.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/fe-e2e.yml b/.github/workflows/fe-e2e.yml index fa171f99..28f754e1 100644 --- a/.github/workflows/fe-e2e.yml +++ b/.github/workflows/fe-e2e.yml @@ -39,8 +39,11 @@ jobs: path: '**/node_modules' key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }} - - name: Install Cypress Binary - run: CYPRESS_INSTALL_BINARY=0 npx cypress install + - name: Install Cypress Without Binary + run: CYPRESS_INSTALL_BINARY=0 npm install cypress --save-dev + + - name: Ensure Cypress Binary Exists + run: npx cypress install - name: Setup tmate session uses: mxschmitt/action-tmate@v3 From ffc3a45af9a0cc4ae151b6dd12785388c804ef8e Mon Sep 17 00:00:00 2001 From: alekhya-cplace Date: Thu, 30 Jan 2025 15:36:31 +0100 Subject: [PATCH 06/30] setting environmetal timezone --- .github/workflows/fe-e2e.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/fe-e2e.yml b/.github/workflows/fe-e2e.yml index 28f754e1..42a86896 100644 --- a/.github/workflows/fe-e2e.yml +++ b/.github/workflows/fe-e2e.yml @@ -24,6 +24,9 @@ jobs: env: jobCount: 4 steps: + - name: Set Timezone + run: export TZ=UTC + - uses: actions/checkout@v2 with: ref: ${{ inputs.GHA_REF }} @@ -32,6 +35,7 @@ jobs: - uses: actions/setup-node@v3 with: node-version: 18.18.2 + - name: Cache Node Modules id: npm-cache uses: actions/cache@v2 @@ -39,10 +43,7 @@ jobs: path: '**/node_modules' key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }} - - name: Install Cypress Without Binary - run: CYPRESS_INSTALL_BINARY=0 npm install cypress --save-dev - - - name: Ensure Cypress Binary Exists + - name: Install Cypress run: npx cypress install - name: Setup tmate session From de745b989c6a78008dd62c2bc06a07763299c0be Mon Sep 17 00:00:00 2001 From: alekhya-cplace Date: Thu, 30 Jan 2025 16:21:00 +0100 Subject: [PATCH 07/30] removing tmate --- .github/workflows/fe-e2e.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/fe-e2e.yml b/.github/workflows/fe-e2e.yml index 42a86896..2b91e156 100644 --- a/.github/workflows/fe-e2e.yml +++ b/.github/workflows/fe-e2e.yml @@ -46,9 +46,6 @@ jobs: - name: Install Cypress run: npx cypress install - - name: Setup tmate session - uses: mxschmitt/action-tmate@v3 - - name: Affected Regression Tests uses: collaborationFactory/github-actions/.github/actions/run-many@master with: From 02b5365888c42342630ac2c2a65c3c1a58922257 Mon Sep 17 00:00:00 2001 From: alekhya-cplace Date: Thu, 30 Jan 2025 16:50:50 +0100 Subject: [PATCH 08/30] adding tmate back --- .github/workflows/fe-e2e.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/fe-e2e.yml b/.github/workflows/fe-e2e.yml index 2b91e156..42a86896 100644 --- a/.github/workflows/fe-e2e.yml +++ b/.github/workflows/fe-e2e.yml @@ -46,6 +46,9 @@ jobs: - name: Install Cypress run: npx cypress install + - name: Setup tmate session + uses: mxschmitt/action-tmate@v3 + - name: Affected Regression Tests uses: collaborationFactory/github-actions/.github/actions/run-many@master with: From a7c2b603803631e5e9dd0c2db8ce5fe1db1a19ea Mon Sep 17 00:00:00 2001 From: alekhya-cplace Date: Thu, 30 Jan 2025 18:29:28 +0100 Subject: [PATCH 09/30] removing tmate --- .github/workflows/fe-e2e.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/fe-e2e.yml b/.github/workflows/fe-e2e.yml index 42a86896..2b91e156 100644 --- a/.github/workflows/fe-e2e.yml +++ b/.github/workflows/fe-e2e.yml @@ -46,9 +46,6 @@ jobs: - name: Install Cypress run: npx cypress install - - name: Setup tmate session - uses: mxschmitt/action-tmate@v3 - - name: Affected Regression Tests uses: collaborationFactory/github-actions/.github/actions/run-many@master with: From 1ce641c935a5de9cd9e5696f0a7832f0bd902c17 Mon Sep 17 00:00:00 2001 From: alekhya-cplace Date: Fri, 31 Jan 2025 09:25:56 +0100 Subject: [PATCH 10/30] trying updated cypress --- .github/workflows/fe-e2e.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/fe-e2e.yml b/.github/workflows/fe-e2e.yml index 2b91e156..e32707c1 100644 --- a/.github/workflows/fe-e2e.yml +++ b/.github/workflows/fe-e2e.yml @@ -44,7 +44,7 @@ jobs: key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }} - name: Install Cypress - run: npx cypress install + run: npx cypress install@13.3.2 - name: Affected Regression Tests uses: collaborationFactory/github-actions/.github/actions/run-many@master From c468cc1754b938f3acf84b884ee038ba3710386e Mon Sep 17 00:00:00 2001 From: alekhya-cplace Date: Fri, 31 Jan 2025 09:37:26 +0100 Subject: [PATCH 11/30] trying updated cypress --- .github/workflows/fe-e2e.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/fe-e2e.yml b/.github/workflows/fe-e2e.yml index e32707c1..ebd119e8 100644 --- a/.github/workflows/fe-e2e.yml +++ b/.github/workflows/fe-e2e.yml @@ -44,7 +44,7 @@ jobs: key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }} - name: Install Cypress - run: npx cypress install@13.3.2 + run: npx cypress@13.3.2 install - name: Affected Regression Tests uses: collaborationFactory/github-actions/.github/actions/run-many@master From 67f863fa4c09bea4f675a8b533bedab637e27845 Mon Sep 17 00:00:00 2001 From: alekhya-cplace Date: Fri, 31 Jan 2025 09:59:48 +0100 Subject: [PATCH 12/30] trying updated cypress --- .github/workflows/fe-e2e.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/fe-e2e.yml b/.github/workflows/fe-e2e.yml index ebd119e8..f5969517 100644 --- a/.github/workflows/fe-e2e.yml +++ b/.github/workflows/fe-e2e.yml @@ -42,6 +42,10 @@ jobs: with: path: '**/node_modules' key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-modules- + exclude: '/home/runner/.cache/Cypress' # Exclude Cypress cache + - name: Install Cypress run: npx cypress@13.3.2 install From 2d2cc25abd273e7b7ba779786643a5d5af84ab26 Mon Sep 17 00:00:00 2001 From: alekhya-cplace Date: Fri, 31 Jan 2025 10:16:10 +0100 Subject: [PATCH 13/30] reverting cypress update changes --- .github/workflows/fe-e2e.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/fe-e2e.yml b/.github/workflows/fe-e2e.yml index f5969517..434808ac 100644 --- a/.github/workflows/fe-e2e.yml +++ b/.github/workflows/fe-e2e.yml @@ -24,9 +24,6 @@ jobs: env: jobCount: 4 steps: - - name: Set Timezone - run: export TZ=UTC - - uses: actions/checkout@v2 with: ref: ${{ inputs.GHA_REF }} @@ -42,13 +39,12 @@ jobs: with: path: '**/node_modules' key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-modules- - exclude: '/home/runner/.cache/Cypress' # Exclude Cypress cache + - name: Install Cypress Binary + run: npx cypress install - - name: Install Cypress - run: npx cypress@13.3.2 install + - name: Setup tmate session + uses: mxschmitt/action-tmate@v3 - name: Affected Regression Tests uses: collaborationFactory/github-actions/.github/actions/run-many@master From 0afbfa47c04149f941997fc96e27ba89ba04617f Mon Sep 17 00:00:00 2001 From: alekhya-cplace Date: Fri, 31 Jan 2025 15:16:04 +0100 Subject: [PATCH 14/30] excluding cypress caching --- .github/workflows/fe-e2e.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/fe-e2e.yml b/.github/workflows/fe-e2e.yml index 434808ac..0ab6e276 100644 --- a/.github/workflows/fe-e2e.yml +++ b/.github/workflows/fe-e2e.yml @@ -39,8 +39,11 @@ jobs: with: path: '**/node_modules' key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-modules- + exclude: '/home/runner/.cache/Cypress' # Exclude Cypress cache - - name: Install Cypress Binary + - name: Install Cypress run: npx cypress install - name: Setup tmate session From c809270755bcf0dae5ea7e8830289ef30389ac32 Mon Sep 17 00:00:00 2001 From: alekhya-cplace Date: Fri, 31 Jan 2025 15:29:37 +0100 Subject: [PATCH 15/30] removing tmate --- .github/workflows/fe-e2e.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/fe-e2e.yml b/.github/workflows/fe-e2e.yml index 0ab6e276..fbb22949 100644 --- a/.github/workflows/fe-e2e.yml +++ b/.github/workflows/fe-e2e.yml @@ -46,9 +46,6 @@ jobs: - name: Install Cypress run: npx cypress install - - name: Setup tmate session - uses: mxschmitt/action-tmate@v3 - - name: Affected Regression Tests uses: collaborationFactory/github-actions/.github/actions/run-many@master with: From a65e383f69fa967ab358687c7d2a139fe85ec644 Mon Sep 17 00:00:00 2001 From: alekhya-cplace Date: Fri, 31 Jan 2025 15:57:24 +0100 Subject: [PATCH 16/30] excluding cypress caching --- .github/workflows/fe-e2e.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/fe-e2e.yml b/.github/workflows/fe-e2e.yml index fbb22949..cc2b69bc 100644 --- a/.github/workflows/fe-e2e.yml +++ b/.github/workflows/fe-e2e.yml @@ -41,7 +41,7 @@ jobs: key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }} restore-keys: | ${{ runner.os }}-modules- - exclude: '/home/runner/.cache/Cypress' # Exclude Cypress cache + exclude: '/home/runner/.cache/Cypress' # Exclude Cypress cache - name: Install Cypress run: npx cypress install From 018e594ddbb4699dcac216b3a7a733822fe3d607 Mon Sep 17 00:00:00 2001 From: Senthanal Sirpi Manohar Date: Sat, 1 Feb 2025 06:15:46 +0100 Subject: [PATCH 17/30] fix timezone to UTC --- .github/workflows/fe-e2e.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/fe-e2e.yml b/.github/workflows/fe-e2e.yml index cc2b69bc..aef7f0c9 100644 --- a/.github/workflows/fe-e2e.yml +++ b/.github/workflows/fe-e2e.yml @@ -23,6 +23,7 @@ jobs: jobIndex: [1, 2, 3, 4] env: jobCount: 4 + TZ: 'UTC' steps: - uses: actions/checkout@v2 with: @@ -46,6 +47,10 @@ jobs: - name: Install Cypress run: npx cypress install + - name: Setup timezone + run: | + sudo timedatectl set-timezone UTC + - name: Affected Regression Tests uses: collaborationFactory/github-actions/.github/actions/run-many@master with: From 6d586c589023cc8df6ecca570a25bf17df9191af Mon Sep 17 00:00:00 2001 From: Senthanal Sirpi Manohar Date: Sat, 1 Feb 2025 08:56:56 +0100 Subject: [PATCH 18/30] enable SSH debugging --- .github/workflows/fe-e2e.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/fe-e2e.yml b/.github/workflows/fe-e2e.yml index aef7f0c9..a1b47526 100644 --- a/.github/workflows/fe-e2e.yml +++ b/.github/workflows/fe-e2e.yml @@ -51,6 +51,9 @@ jobs: run: | sudo timedatectl set-timezone UTC + - name: Setup tmate session + uses: mxschmitt/action-tmate@v3 + - name: Affected Regression Tests uses: collaborationFactory/github-actions/.github/actions/run-many@master with: From 54da9b31d53282588bf4627035db32f6b6247917 Mon Sep 17 00:00:00 2001 From: Senthanal Sirpi Manohar Date: Sat, 1 Feb 2025 09:47:10 +0100 Subject: [PATCH 19/30] update checkout and cache to the latest versions --- .github/workflows/fe-e2e.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/fe-e2e.yml b/.github/workflows/fe-e2e.yml index a1b47526..03b45234 100644 --- a/.github/workflows/fe-e2e.yml +++ b/.github/workflows/fe-e2e.yml @@ -25,18 +25,18 @@ jobs: jobCount: 4 TZ: 'UTC' steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: ref: ${{ inputs.GHA_REF }} fetch-depth: 0 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: node-version: 18.18.2 - name: Cache Node Modules id: npm-cache - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: '**/node_modules' key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }} From a56a5af343f10afc7a966c64ba12a2484f7eb9bb Mon Sep 17 00:00:00 2001 From: Senthanal Sirpi Manohar Date: Sat, 1 Feb 2025 09:49:25 +0100 Subject: [PATCH 20/30] add git debug info for timestamp validations --- .github/workflows/fe-e2e.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/fe-e2e.yml b/.github/workflows/fe-e2e.yml index 03b45234..fb3884e9 100644 --- a/.github/workflows/fe-e2e.yml +++ b/.github/workflows/fe-e2e.yml @@ -23,7 +23,6 @@ jobs: jobIndex: [1, 2, 3, 4] env: jobCount: 4 - TZ: 'UTC' steps: - uses: actions/checkout@v4 with: @@ -42,14 +41,16 @@ jobs: key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }} restore-keys: | ${{ runner.os }}-modules- - exclude: '/home/runner/.cache/Cypress' # Exclude Cypress cache - name: Install Cypress run: npx cypress install - - name: Setup timezone + - name: Debug Git Info run: | - sudo timedatectl set-timezone UTC + echo "GHA_REF: ${{ inputs.GHA_REF }}" + echo "GHA_BASE: ${{ inputs.GHA_BASE }}" + git rev-parse HEAD + git log -1 - name: Setup tmate session uses: mxschmitt/action-tmate@v3 From 2c498f28767b90e11701830ccac888fc6a821dd6 Mon Sep 17 00:00:00 2001 From: Senthanal Sirpi Manohar Date: Sat, 1 Feb 2025 09:57:56 +0100 Subject: [PATCH 21/30] add git debug info for timestamp validations --- .github/workflows/fe-e2e.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/fe-e2e.yml b/.github/workflows/fe-e2e.yml index fb3884e9..e5261e8d 100644 --- a/.github/workflows/fe-e2e.yml +++ b/.github/workflows/fe-e2e.yml @@ -23,6 +23,7 @@ jobs: jobIndex: [1, 2, 3, 4] env: jobCount: 4 + steps: - uses: actions/checkout@v4 with: @@ -43,7 +44,9 @@ jobs: ${{ runner.os }}-modules- - name: Install Cypress - run: npx cypress install + run: | + npx cypress cache clear + npx cypress install --force - name: Debug Git Info run: | @@ -52,9 +55,6 @@ jobs: git rev-parse HEAD git log -1 - - name: Setup tmate session - uses: mxschmitt/action-tmate@v3 - - name: Affected Regression Tests uses: collaborationFactory/github-actions/.github/actions/run-many@master with: @@ -67,6 +67,14 @@ jobs: PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }} PERCY_PARTIAL_BUILD: 1 DEV_STORIES: true + NODE_OPTIONS: --max-old-space-size=4096 + DEBUG: cypress:* + TZ: 'UTC' + CYPRESS_FORCE_TIMEZONE: 'UTC' # Force Cypress to use UTC + CYPRESS_RETRIES: 2 # Add retries for flaky time-related failures + + - name: Setup tmate session + uses: mxschmitt/action-tmate@v3 - name: Upload E2E Videos uses: actions/upload-artifact@v4 From efcde40c3575a0d1c43b8c02fcf72f2b85f2f8dc Mon Sep 17 00:00:00 2001 From: Senthanal Sirpi Manohar Date: Sat, 1 Feb 2025 10:14:37 +0100 Subject: [PATCH 22/30] add git debug info for timestamp validations --- .github/workflows/fe-e2e.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/fe-e2e.yml b/.github/workflows/fe-e2e.yml index e5261e8d..4c9f8703 100644 --- a/.github/workflows/fe-e2e.yml +++ b/.github/workflows/fe-e2e.yml @@ -44,9 +44,16 @@ jobs: ${{ runner.os }}-modules- - name: Install Cypress - run: | + run: | + echo "Current Cypress cache:" + npx cypress cache path + npx cypress cache list + echo "Clearing Cypress cache..." npx cypress cache clear + echo "Installing Cypress..." npx cypress install --force + echo "Verifying Cypress installation..." + npx cypress verify - name: Debug Git Info run: | From bccfdf013b2b01c8dff3a834df70514605c29289 Mon Sep 17 00:00:00 2001 From: Senthanal Sirpi Manohar Date: Sat, 1 Feb 2025 10:18:54 +0100 Subject: [PATCH 23/30] add git debug info for timestamp validations --- .github/workflows/fe-e2e.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/fe-e2e.yml b/.github/workflows/fe-e2e.yml index 4c9f8703..66eb8dc9 100644 --- a/.github/workflows/fe-e2e.yml +++ b/.github/workflows/fe-e2e.yml @@ -51,7 +51,7 @@ jobs: echo "Clearing Cypress cache..." npx cypress cache clear echo "Installing Cypress..." - npx cypress install --force + npx cypress@12.17.3 install --force echo "Verifying Cypress installation..." npx cypress verify From 82126453b325ec40bd368b9bc57a3f81893ffa3d Mon Sep 17 00:00:00 2001 From: Senthanal Sirpi Manohar Date: Sat, 1 Feb 2025 12:58:24 +0100 Subject: [PATCH 24/30] removed cypress installation step --- .github/workflows/fe-e2e.yml | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/.github/workflows/fe-e2e.yml b/.github/workflows/fe-e2e.yml index 66eb8dc9..54278766 100644 --- a/.github/workflows/fe-e2e.yml +++ b/.github/workflows/fe-e2e.yml @@ -43,25 +43,6 @@ jobs: restore-keys: | ${{ runner.os }}-modules- - - name: Install Cypress - run: | - echo "Current Cypress cache:" - npx cypress cache path - npx cypress cache list - echo "Clearing Cypress cache..." - npx cypress cache clear - echo "Installing Cypress..." - npx cypress@12.17.3 install --force - echo "Verifying Cypress installation..." - npx cypress verify - - - name: Debug Git Info - run: | - echo "GHA_REF: ${{ inputs.GHA_REF }}" - echo "GHA_BASE: ${{ inputs.GHA_BASE }}" - git rev-parse HEAD - git log -1 - - name: Affected Regression Tests uses: collaborationFactory/github-actions/.github/actions/run-many@master with: From 93abffefe450e18e41d1c51cc4b803a9b0a48458 Mon Sep 17 00:00:00 2001 From: Senthanal Sirpi Manohar Date: Sat, 1 Feb 2025 13:18:04 +0100 Subject: [PATCH 25/30] verify cypress installation step --- .github/workflows/fe-e2e.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/fe-e2e.yml b/.github/workflows/fe-e2e.yml index 54278766..035dfb98 100644 --- a/.github/workflows/fe-e2e.yml +++ b/.github/workflows/fe-e2e.yml @@ -40,8 +40,15 @@ jobs: with: path: '**/node_modules' key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-modules- + + - name: Install Cypress + run: | + echo "Current Cypress cache:" + npx cypress cache path + npx cypress cache list + echo "Clearing Cypress cache..." + npx cypress cache clear + npx cypress verify - name: Affected Regression Tests uses: collaborationFactory/github-actions/.github/actions/run-many@master From 6e13bb31611a737fbae45e3b9c34e77c6f7555c0 Mon Sep 17 00:00:00 2001 From: Senthanal Sirpi Manohar Date: Sat, 1 Feb 2025 13:24:35 +0100 Subject: [PATCH 26/30] install cypress installation step --- .github/workflows/fe-e2e.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/fe-e2e.yml b/.github/workflows/fe-e2e.yml index 035dfb98..be98f854 100644 --- a/.github/workflows/fe-e2e.yml +++ b/.github/workflows/fe-e2e.yml @@ -48,6 +48,9 @@ jobs: npx cypress cache list echo "Clearing Cypress cache..." npx cypress cache clear + echo "Installing Cypress..." + npx cypress install --force + echo "Verifying Cypress installation..." npx cypress verify - name: Affected Regression Tests From 7ab7789b634d0fd6699132095c3de9089fd98942 Mon Sep 17 00:00:00 2001 From: Senthanal Sirpi Manohar Date: Sat, 1 Feb 2025 13:43:48 +0100 Subject: [PATCH 27/30] npm ci and tmate session --- .github/workflows/fe-e2e.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/fe-e2e.yml b/.github/workflows/fe-e2e.yml index be98f854..acd564d7 100644 --- a/.github/workflows/fe-e2e.yml +++ b/.github/workflows/fe-e2e.yml @@ -41,6 +41,10 @@ jobs: path: '**/node_modules' key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }} + - name: Install modules + if: steps.npm-cache.outputs.cache-hit != 'true' + run: npm ci + - name: Install Cypress run: | echo "Current Cypress cache:" @@ -48,11 +52,11 @@ jobs: npx cypress cache list echo "Clearing Cypress cache..." npx cypress cache clear - echo "Installing Cypress..." - npx cypress install --force - echo "Verifying Cypress installation..." npx cypress verify + - name: Setup tmate session + uses: mxschmitt/action-tmate@v3 + - name: Affected Regression Tests uses: collaborationFactory/github-actions/.github/actions/run-many@master with: @@ -71,9 +75,6 @@ jobs: CYPRESS_FORCE_TIMEZONE: 'UTC' # Force Cypress to use UTC CYPRESS_RETRIES: 2 # Add retries for flaky time-related failures - - name: Setup tmate session - uses: mxschmitt/action-tmate@v3 - - name: Upload E2E Videos uses: actions/upload-artifact@v4 with: From 712c1a46adb2a4c9145924798d01a1fd69b9315d Mon Sep 17 00:00:00 2001 From: Senthanal Sirpi Manohar Date: Sat, 1 Feb 2025 13:52:38 +0100 Subject: [PATCH 28/30] add npmrc --- .github/workflows/fe-e2e.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/fe-e2e.yml b/.github/workflows/fe-e2e.yml index acd564d7..0ba6caaa 100644 --- a/.github/workflows/fe-e2e.yml +++ b/.github/workflows/fe-e2e.yml @@ -41,6 +41,11 @@ jobs: path: '**/node_modules' key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }} + - name: Use .npmrc + uses: bduff9/use-npmrc@v1.1 + with: + dot-npmrc: ${{ secrets.DOT_NPMRC }} + - name: Install modules if: steps.npm-cache.outputs.cache-hit != 'true' run: npm ci From f769ab6267c56d70f1335101fe64d27073890af7 Mon Sep 17 00:00:00 2001 From: Senthanal Sirpi Manohar Date: Sat, 1 Feb 2025 14:02:03 +0100 Subject: [PATCH 29/30] remove npm ci and npmrc --- .github/workflows/fe-e2e.yml | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/.github/workflows/fe-e2e.yml b/.github/workflows/fe-e2e.yml index 0ba6caaa..e7fb0929 100644 --- a/.github/workflows/fe-e2e.yml +++ b/.github/workflows/fe-e2e.yml @@ -41,24 +41,6 @@ jobs: path: '**/node_modules' key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }} - - name: Use .npmrc - uses: bduff9/use-npmrc@v1.1 - with: - dot-npmrc: ${{ secrets.DOT_NPMRC }} - - - name: Install modules - if: steps.npm-cache.outputs.cache-hit != 'true' - run: npm ci - - - name: Install Cypress - run: | - echo "Current Cypress cache:" - npx cypress cache path - npx cypress cache list - echo "Clearing Cypress cache..." - npx cypress cache clear - npx cypress verify - - name: Setup tmate session uses: mxschmitt/action-tmate@v3 From 4ea87bc99f2afd6b8958353609528c7f3ecc5961 Mon Sep 17 00:00:00 2001 From: Senthanal Sirpi Manohar Date: Sat, 1 Feb 2025 14:51:24 +0100 Subject: [PATCH 30/30] add npm ci and npmrc --- .github/workflows/fe-e2e.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/fe-e2e.yml b/.github/workflows/fe-e2e.yml index e7fb0929..3eb4ba56 100644 --- a/.github/workflows/fe-e2e.yml +++ b/.github/workflows/fe-e2e.yml @@ -41,6 +41,15 @@ jobs: path: '**/node_modules' key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }} + - name: Use .npmrc + uses: bduff9/use-npmrc@v1.1 + with: + dot-npmrc: ${{ secrets.DOT_NPMRC }} + + - name: Install modules + if: steps.npm-cache.outputs.cache-hit != 'true' + run: npm ci + - name: Setup tmate session uses: mxschmitt/action-tmate@v3