From f71fcfd8d85071fe627357ede0827a597fea75fc Mon Sep 17 00:00:00 2001 From: Misha Milovidov <42074547+mishamilovidov@users.noreply.github.com> Date: Fri, 1 Nov 2024 11:58:06 -0700 Subject: [PATCH 01/19] ci: test new ghars on ethos ccc in dev --- .github/workflows/e2e-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index 7165ef7423..ab9f4e9b7a 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -21,7 +21,7 @@ jobs: container: image: cypress/browsers:node-20.14.0-chrome-126.0.6478.114-1-ff-127.0.1-edge-126.0.2592.61-1 options: --user root - runs-on: self-hosted + runs-on: developer-website-arc-dev-runners-aat steps: - name: Checkout uses: actions/checkout@v4 From 34479eb735b1d9ef299596f0b67667f9353ceb57 Mon Sep 17 00:00:00 2001 From: Misha Milovidov <42074547+mishamilovidov@users.noreply.github.com> Date: Fri, 1 Nov 2024 13:45:23 -0700 Subject: [PATCH 02/19] ci: pull cypress image from corp artfy --- .github/workflows/e2e-tests.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index ab9f4e9b7a..7619f2c0b3 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -19,7 +19,13 @@ on: jobs: smoke_tests: container: - image: cypress/browsers:node-20.14.0-chrome-126.0.6478.114-1-ff-127.0.1-edge-126.0.2592.61-1 + credentials: + username: dcartfy + # This secret was added as a repository action secret manually. The + # secret will eventually be managed via Terraform in a `glb/github/glb` + # configuration in Developer Website's infrastructure repository. + password: ${{ secrets.ADOBE_ARTIFACTORY_CORP_API_KEY_DCARTFY }} + image: docker-hub-remote.dr.corp.adobe.com/cypress/browsers:node-20.14.0-chrome-126.0.6478.114-1-ff-127.0.1-edge-126.0.2592.61-1 options: --user root runs-on: developer-website-arc-dev-runners-aat steps: From 9db9e1621ba968c0e2b7a2f7f927cc45885ac3f0 Mon Sep 17 00:00:00 2001 From: Misha Milovidov <42074547+mishamilovidov@users.noreply.github.com> Date: Fri, 1 Nov 2024 14:22:10 -0700 Subject: [PATCH 03/19] chore: trigger e2e-tests.yml gha wf From 1a072b5ee7a062251d63f1dedf92fcf4d33b916f Mon Sep 17 00:00:00 2001 From: Misha Milovidov <42074547+mishamilovidov@users.noreply.github.com> Date: Fri, 1 Nov 2024 14:50:06 -0700 Subject: [PATCH 04/19] chore: trigger e2e-tests.yml gha wf From 01859e8a059397c37ee62f847f5fcab9d8127248 Mon Sep 17 00:00:00 2001 From: Misha Milovidov <42074547+mishamilovidov@users.noreply.github.com> Date: Fri, 1 Nov 2024 15:04:09 -0700 Subject: [PATCH 05/19] chore: trigger e2e-tests.yml gha wf From aaa029e47f56bdae67b0c6c427f0e0a4a976e8d6 Mon Sep 17 00:00:00 2001 From: Misha Milovidov <42074547+mishamilovidov@users.noreply.github.com> Date: Fri, 1 Nov 2024 15:28:23 -0700 Subject: [PATCH 06/19] chore: trigger e2e-tests.yml gha wf From 12ccb0c60d66edd7ad59295a0a577874c5126585 Mon Sep 17 00:00:00 2001 From: Misha Milovidov <42074547+mishamilovidov@users.noreply.github.com> Date: Fri, 1 Nov 2024 15:35:21 -0700 Subject: [PATCH 07/19] chore: trigger e2e-tests.yml gha wf From ec39aac13bf5e61ed5f769cbfb8270ea56a9d291 Mon Sep 17 00:00:00 2001 From: Misha Milovidov <42074547+mishamilovidov@users.noreply.github.com> Date: Fri, 1 Nov 2024 15:42:27 -0700 Subject: [PATCH 08/19] ci: try allocating more memory in node --- .github/workflows/e2e-tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index 7619f2c0b3..233bd001ed 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -52,3 +52,4 @@ jobs: cypress/e2e/get-credentials.cy.js env: NODE_TLS_REJECT_UNAUTHORIZED: '0' + NODE_OPTIONS: '--max-old-space-size=16384' From 80ed4ff605b6b456825031998813dc1a2cbaad9a Mon Sep 17 00:00:00 2001 From: Misha Milovidov <42074547+mishamilovidov@users.noreply.github.com> Date: Fri, 1 Nov 2024 16:05:43 -0700 Subject: [PATCH 09/19] chore: trigger e2e-tests.yml gha wf From 6be1055180da41f78622ff0b0f5e430d084db6ae Mon Sep 17 00:00:00 2001 From: Misha Milovidov <42074547+mishamilovidov@users.noreply.github.com> Date: Fri, 1 Nov 2024 16:14:32 -0700 Subject: [PATCH 10/19] chore: trigger e2e-tests.yml gha wf From 2fc5b5cbc4fe293f078122fb7f8aa27c7c24f03d Mon Sep 17 00:00:00 2001 From: Misha Milovidov <42074547+mishamilovidov@users.noreply.github.com> Date: Fri, 1 Nov 2024 16:24:35 -0700 Subject: [PATCH 11/19] ci: test running cypress without custom container --- .github/workflows/e2e-tests.yml | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index 233bd001ed..7e2126aab9 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -18,19 +18,24 @@ on: - "cypress/**" jobs: smoke_tests: - container: - credentials: - username: dcartfy - # This secret was added as a repository action secret manually. The - # secret will eventually be managed via Terraform in a `glb/github/glb` - # configuration in Developer Website's infrastructure repository. - password: ${{ secrets.ADOBE_ARTIFACTORY_CORP_API_KEY_DCARTFY }} - image: docker-hub-remote.dr.corp.adobe.com/cypress/browsers:node-20.14.0-chrome-126.0.6478.114-1-ff-127.0.1-edge-126.0.2592.61-1 - options: --user root + # container: + # credentials: + # username: dcartfy + # # This secret was added as a repository action secret manually. The + # # secret will eventually be managed via Terraform in a `glb/github/glb` + # # configuration in Developer Website's infrastructure repository. + # password: ${{ secrets.ADOBE_ARTIFACTORY_CORP_API_KEY_DCARTFY }} + # image: docker-hub-remote.dr.corp.adobe.com/cypress/browsers:node-20.14.0-chrome-126.0.6478.114-1-ff-127.0.1-edge-126.0.2592.61-1 + # options: --user root runs-on: developer-website-arc-dev-runners-aat steps: - name: Checkout uses: actions/checkout@v4 + + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: 16 - name: 'Create env file' run: | @@ -50,6 +55,7 @@ jobs: spec: | cypress/e2e/smoke.cy.js cypress/e2e/get-credentials.cy.js + tag: node-16 env: NODE_TLS_REJECT_UNAUTHORIZED: '0' NODE_OPTIONS: '--max-old-space-size=16384' From 0d986a0a9f9d51017006bc10de7cf2cd4704e1a9 Mon Sep 17 00:00:00 2001 From: Misha Milovidov <42074547+mishamilovidov@users.noreply.github.com> Date: Fri, 1 Nov 2024 16:30:56 -0700 Subject: [PATCH 12/19] ci: add npm i yarn step --- .github/workflows/e2e-tests.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index 7e2126aab9..b9b5f861c2 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -36,6 +36,9 @@ jobs: uses: actions/setup-node@v4 with: node-version: 16 + + - name: Setup Yarn + run: npm install --global yarn@1.22.22 - name: 'Create env file' run: | From 44130d7908b9f92d2cff147ab998208838b2bafe Mon Sep 17 00:00:00 2001 From: Misha Milovidov <42074547+mishamilovidov@users.noreply.github.com> Date: Fri, 1 Nov 2024 16:46:00 -0700 Subject: [PATCH 13/19] ci: try running in container after cnp update --- .github/workflows/e2e-tests.yml | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index b9b5f861c2..de7b14fabd 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -18,27 +18,27 @@ on: - "cypress/**" jobs: smoke_tests: - # container: - # credentials: - # username: dcartfy - # # This secret was added as a repository action secret manually. The - # # secret will eventually be managed via Terraform in a `glb/github/glb` - # # configuration in Developer Website's infrastructure repository. - # password: ${{ secrets.ADOBE_ARTIFACTORY_CORP_API_KEY_DCARTFY }} - # image: docker-hub-remote.dr.corp.adobe.com/cypress/browsers:node-20.14.0-chrome-126.0.6478.114-1-ff-127.0.1-edge-126.0.2592.61-1 - # options: --user root + container: + credentials: + username: dcartfy + # This secret was added as a repository action secret manually. The + # secret will eventually be managed via Terraform in a `glb/github/glb` + # configuration in Developer Website's infrastructure repository. + password: ${{ secrets.ADOBE_ARTIFACTORY_CORP_API_KEY_DCARTFY }} + image: docker-hub-remote.dr.corp.adobe.com/cypress/browsers:node-20.14.0-chrome-126.0.6478.114-1-ff-127.0.1-edge-126.0.2592.61-1 + options: --user root runs-on: developer-website-arc-dev-runners-aat steps: - name: Checkout uses: actions/checkout@v4 - - name: Setup Node - uses: actions/setup-node@v4 - with: - node-version: 16 + # - name: Setup Node + # uses: actions/setup-node@v4 + # with: + # node-version: 16 - - name: Setup Yarn - run: npm install --global yarn@1.22.22 + # - name: Setup Yarn + # run: npm install --global yarn@1.22.22 - name: 'Create env file' run: | @@ -58,7 +58,7 @@ jobs: spec: | cypress/e2e/smoke.cy.js cypress/e2e/get-credentials.cy.js - tag: node-16 + # tag: node-16 env: NODE_TLS_REJECT_UNAUTHORIZED: '0' NODE_OPTIONS: '--max-old-space-size=16384' From d3c1fca47d7545697ec550a903e292911a8320e6 Mon Sep 17 00:00:00 2001 From: Misha Milovidov <42074547+mishamilovidov@users.noreply.github.com> Date: Fri, 1 Nov 2024 16:48:02 -0700 Subject: [PATCH 14/19] ci: try running cypress containers as user 101 --- .github/workflows/e2e-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index de7b14fabd..ff410d7c8f 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -26,7 +26,7 @@ jobs: # configuration in Developer Website's infrastructure repository. password: ${{ secrets.ADOBE_ARTIFACTORY_CORP_API_KEY_DCARTFY }} image: docker-hub-remote.dr.corp.adobe.com/cypress/browsers:node-20.14.0-chrome-126.0.6478.114-1-ff-127.0.1-edge-126.0.2592.61-1 - options: --user root + options: --user 1001 runs-on: developer-website-arc-dev-runners-aat steps: - name: Checkout From 78608eca2ef7af4f3b8a67b1792f8dfe002f2f8a Mon Sep 17 00:00:00 2001 From: Misha Milovidov <42074547+mishamilovidov@users.noreply.github.com> Date: Fri, 1 Nov 2024 16:51:10 -0700 Subject: [PATCH 15/19] ci: run yarn script in debug mode --- .github/workflows/e2e-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index ff410d7c8f..32383b3317 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -50,7 +50,7 @@ jobs: - name: Run Tests uses: cypress-io/github-action@v5 with: - start: yarn dev:https:ci + start: DEBUG=true yarn dev:https:ci wait-on: 'https://localhost.corp.adobe.com:9000' wait-on-timeout: 150 browser: chrome From 24de31f08f90029ca9e6dd271b73763589530e2b Mon Sep 17 00:00:00 2001 From: Misha Milovidov <42074547+mishamilovidov@users.noreply.github.com> Date: Fri, 1 Nov 2024 16:54:22 -0700 Subject: [PATCH 16/19] ci: try setting debug verbosity via script def --- .github/workflows/e2e-tests.yml | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index 32383b3317..ff410d7c8f 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -50,7 +50,7 @@ jobs: - name: Run Tests uses: cypress-io/github-action@v5 with: - start: DEBUG=true yarn dev:https:ci + start: yarn dev:https:ci wait-on: 'https://localhost.corp.adobe.com:9000' wait-on-timeout: 150 browser: chrome diff --git a/package.json b/package.json index d212516af1..e65622e808 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "dev:clean": "yarn workspace example clean && yarn workspace example develop", "dev:https": "yarn workspace example develop:https", "dev:https:local": "yarn workspace example gatsby develop --https --host local.corp.adobe.com", - "dev:https:ci": "yarn workspace example develop --https --host localhost.corp.adobe.com --port 9000 --key-file ./certs/key.key --cert-file ./certs/cert.crt", + "dev:https:ci": "yarn workspace example develop --https --host localhost.corp.adobe.com --port 9000 --key-file ./certs/key.key --cert-file ./certs/cert.crt --verbose", "dev:schema": "yarn workspace example develop:schema", "build": "yarn workspace example build", "build:incremental": "GATSBY_EXPERIMENTAL_PAGE_BUILD_ON_DATA_CHANGES=true yarn workspace example build --log-pages", From df2f4a32935d584a17d94eda045f8b50376f5ab4 Mon Sep 17 00:00:00 2001 From: Misha Milovidov <42074547+mishamilovidov@users.noreply.github.com> Date: Thu, 7 Nov 2024 16:39:22 -0800 Subject: [PATCH 17/19] chore: add sleep step for troubleshooting --- .github/workflows/e2e-tests.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index ff410d7c8f..a5bc694c5c 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -27,16 +27,16 @@ jobs: password: ${{ secrets.ADOBE_ARTIFACTORY_CORP_API_KEY_DCARTFY }} image: docker-hub-remote.dr.corp.adobe.com/cypress/browsers:node-20.14.0-chrome-126.0.6478.114-1-ff-127.0.1-edge-126.0.2592.61-1 options: --user 1001 - runs-on: developer-website-arc-dev-runners-aat + runs-on: developer-website-arc-dev-runners-aat steps: - name: Checkout uses: actions/checkout@v4 - + # - name: Setup Node # uses: actions/setup-node@v4 # with: # node-version: 16 - + # - name: Setup Yarn # run: npm install --global yarn@1.22.22 @@ -62,3 +62,6 @@ jobs: env: NODE_TLS_REJECT_UNAUTHORIZED: '0' NODE_OPTIONS: '--max-old-space-size=16384' + + - name: Pause workflow for investigation + run: sleep 300 From ea36b6ecec22ff6ee785367f3d152d3b93cd09ac Mon Sep 17 00:00:00 2001 From: Misha Milovidov <42074547+mishamilovidov@users.noreply.github.com> Date: Thu, 7 Nov 2024 16:43:07 -0800 Subject: [PATCH 18/19] ci: add always conditional --- .github/workflows/e2e-tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index a5bc694c5c..8d63185745 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -64,4 +64,5 @@ jobs: NODE_OPTIONS: '--max-old-space-size=16384' - name: Pause workflow for investigation + if: ${{ always() }} run: sleep 300 From 84bfce1f4ca6008f3a460dacfd3a5e67d9d3ec1f Mon Sep 17 00:00:00 2001 From: Misha Milovidov <42074547+mishamilovidov@users.noreply.github.com> Date: Thu, 7 Nov 2024 16:47:35 -0800 Subject: [PATCH 19/19] ci: pause wf before running tests to investigate --- .github/workflows/e2e-tests.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index 8d63185745..268ac7bfdb 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -47,6 +47,10 @@ jobs: echo GATSBY_IMS_CONFIG='{"client_id": "stage_adobe_io", "scope": "AdobeID,openid,unified_dev_portal,read_organizations,additional_info.projectedProductContext,additional_info.roles,gnav,read_pc.dma_bullseye,creative_sdk,adobeio_api,service_principals.read,service_principals.write,read_client_secret", "environment": "stg1"}' >> ./example/.env cat ./example/.env + - name: Pause workflow for investigation + if: ${{ always() }} + run: sleep 600 + - name: Run Tests uses: cypress-io/github-action@v5 with: @@ -62,7 +66,3 @@ jobs: env: NODE_TLS_REJECT_UNAUTHORIZED: '0' NODE_OPTIONS: '--max-old-space-size=16384' - - - name: Pause workflow for investigation - if: ${{ always() }} - run: sleep 300