From 0d5a726bd51956ea75f86b17bf53b95d006df061 Mon Sep 17 00:00:00 2001 From: moran-frontegg <127654580+moran-frontegg@users.noreply.github.com> Date: Thu, 20 Mar 2025 10:58:57 +0200 Subject: [PATCH 1/8] Update sdk-test-suite.yaml --- .github/workflows/sdk-test-suite.yaml | 39 +++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/.github/workflows/sdk-test-suite.yaml b/.github/workflows/sdk-test-suite.yaml index b332386..fae5103 100644 --- a/.github/workflows/sdk-test-suite.yaml +++ b/.github/workflows/sdk-test-suite.yaml @@ -132,6 +132,14 @@ jobs: role-to-assume: arn:aws:iam::527305576865:role/github-action-s3-role role-session-name: github-action-session aws-region: ${{ env.AWS_REGION }} + + - name : Configure Datadog Test Optimization + uses : datadog/test-visibility-github-action@v2 + with : + languages : js + api_key : ${{secrets.DD_API_KEY}} + site : datadoghq.com + - name: Run E2E Tests from E2E-system-tests repo uses: ./.github/actions/e2e-test with: @@ -166,6 +174,7 @@ jobs: environment: "staging" frontegg_client_id: ${{ secrets.FRONTEGG_STG_CLIENT_ID }} frontegg_secret: ${{ secrets.FRONTEGG_STG_SECRET }} + NODE_OPTIONS: '-r ${{env.DD_TRACE_PACKAGE}}' run-e2e-test-nextjs: name: "Run E2E tests ${{ inputs.client_framework }}@${{ inputs.client_framework_version || inputs.react_version }}" @@ -195,6 +204,14 @@ jobs: role-to-assume: arn:aws:iam::527305576865:role/github-action-s3-role role-session-name: github-action-session aws-region: ${{ env.AWS_REGION }} + + - name : Configure Datadog Test Optimization + uses : datadog/test-visibility-github-action@v2 + with : + languages : js + api_key : ${{secrets.DD_API_KEY}} + site : datadoghq.com + - name: Run E2E Tests from E2E-system-tests repo uses: ./.github/actions/e2e-test with: @@ -230,6 +247,8 @@ jobs: frontegg_client_id: ${{ secrets.FRONTEGG_STG_CLIENT_ID }} frontegg_secret: ${{ secrets.FRONTEGG_STG_SECRET }} nextjs_router: ${{ matrix.nextjs_router }} + NODE_OPTIONS: '-r ${{env.DD_TRACE_PACKAGE}}' + run-admin-box-test: name: "Run Admin Box tests ${{ inputs.client_framework || 'react' }}@${{ inputs.client_framework_version || inputs.react_version }}" @@ -255,6 +274,14 @@ jobs: role-to-assume: arn:aws:iam::527305576865:role/github-action-s3-role role-session-name: github-action-session aws-region: ${{ env.AWS_REGION }} + + - name : Configure Datadog Test Optimization + uses : datadog/test-visibility-github-action@v2 + with : + languages : js + api_key : ${{secrets.DD_API_KEY}} + site : datadoghq.com + - name: Run Admin Box Tests from E2E-system-tests repo uses: ./.github/actions/admin-box with: @@ -289,6 +316,8 @@ jobs: environment: "staging" frontegg_client_id: ${{ secrets.FRONTEGG_STG_CLIENT_ID }} frontegg_secret: ${{ secrets.FRONTEGG_STG_SECRET }} + NODE_OPTIONS: '-r ${{env.DD_TRACE_PACKAGE}}' + run-logins-test: name: "Run Login Box tests ${{ inputs.client_framework || 'react' }}@${{ inputs.client_framework_version || inputs.react_version }}" @@ -314,6 +343,14 @@ jobs: role-to-assume: arn:aws:iam::527305576865:role/github-action-s3-role role-session-name: github-action-session aws-region: ${{ env.AWS_REGION }} + + - name : Configure Datadog Test Optimization + uses : datadog/test-visibility-github-action@v2 + with : + languages : js + api_key : ${{secrets.DD_API_KEY}} + site : datadoghq.com + - name: Run Login Box Tests from E2E-system-tests repo uses: ./.github/actions/login-box with: @@ -348,6 +385,8 @@ jobs: environment: "staging" frontegg_client_id: ${{ secrets.FRONTEGG_STG_CLIENT_ID }} frontegg_secret: ${{ secrets.FRONTEGG_STG_SECRET }} + NODE_OPTIONS: '-r ${{env.DD_TRACE_PACKAGE}}' + update-trigger-status: name: Update trigger status From 201eddb102f57b340ebcf6fa2ab08720523acd01 Mon Sep 17 00:00:00 2001 From: moran-frontegg <127654580+moran-frontegg@users.noreply.github.com> Date: Tue, 1 Apr 2025 12:39:05 +0300 Subject: [PATCH 2/8] Update sdk-test-suite.yaml --- .github/workflows/sdk-test-suite.yaml | 28 ++------------------------- 1 file changed, 2 insertions(+), 26 deletions(-) diff --git a/.github/workflows/sdk-test-suite.yaml b/.github/workflows/sdk-test-suite.yaml index 2f586db..f560fc4 100644 --- a/.github/workflows/sdk-test-suite.yaml +++ b/.github/workflows/sdk-test-suite.yaml @@ -126,12 +126,6 @@ jobs: with: app_id: ${{ secrets.GH_FRONTEGG_BOT_APP_ID }} private_key: ${{ secrets.GH_FRONTEGG_BOT_APP_SECRET }} - - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v4 - with: - role-to-assume: arn:aws:iam::527305576865:role/github-action-s3-role - role-session-name: github-action-session - aws-region: ${{ env.AWS_REGION }} - name : Configure Datadog Test Optimization uses : datadog/test-visibility-github-action@v2 @@ -198,13 +192,7 @@ jobs: with: app_id: ${{ secrets.GH_FRONTEGG_BOT_APP_ID }} private_key: ${{ secrets.GH_FRONTEGG_BOT_APP_SECRET }} - - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v4 - with: - role-to-assume: arn:aws:iam::527305576865:role/github-action-s3-role - role-session-name: github-action-session - aws-region: ${{ env.AWS_REGION }} - + - name : Configure Datadog Test Optimization uses : datadog/test-visibility-github-action@v2 with : @@ -268,13 +256,7 @@ jobs: with: app_id: ${{ secrets.GH_FRONTEGG_BOT_APP_ID }} private_key: ${{ secrets.GH_FRONTEGG_BOT_APP_SECRET }} - - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v4 - with: - role-to-assume: arn:aws:iam::527305576865:role/github-action-s3-role - role-session-name: github-action-session - aws-region: ${{ env.AWS_REGION }} - + - name : Configure Datadog Test Optimization uses : datadog/test-visibility-github-action@v2 with : @@ -337,12 +319,6 @@ jobs: with: app_id: ${{ secrets.GH_FRONTEGG_BOT_APP_ID }} private_key: ${{ secrets.GH_FRONTEGG_BOT_APP_SECRET }} - - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v4 - with: - role-to-assume: arn:aws:iam::527305576865:role/github-action-s3-role - role-session-name: github-action-session - aws-region: ${{ env.AWS_REGION }} - name : Configure Datadog Test Optimization uses : datadog/test-visibility-github-action@v2 From cdacd99296fa2060ef95b0d078ab36b42fc02f27 Mon Sep 17 00:00:00 2001 From: moran-frontegg <127654580+moran-frontegg@users.noreply.github.com> Date: Tue, 1 Apr 2025 12:40:20 +0300 Subject: [PATCH 3/8] Update sdk-test-suite.yaml --- .github/workflows/sdk-test-suite.yaml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/sdk-test-suite.yaml b/.github/workflows/sdk-test-suite.yaml index f560fc4..09dc09f 100644 --- a/.github/workflows/sdk-test-suite.yaml +++ b/.github/workflows/sdk-test-suite.yaml @@ -69,10 +69,6 @@ on: description: 'Frontegg Bot Creds' required: true -env: - BUCKET_NAME: "frontegg-test-reports" - AWS_REGION: "us-east-1" - permissions: id-token: write contents: read From 362c904ca2bf373311aa089be19742b18787f931 Mon Sep 17 00:00:00 2001 From: moran-frontegg <127654580+moran-frontegg@users.noreply.github.com> Date: Tue, 1 Apr 2025 12:44:34 +0300 Subject: [PATCH 4/8] Update full-test-suite.yaml --- .github/workflows/full-test-suite.yaml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/full-test-suite.yaml b/.github/workflows/full-test-suite.yaml index 9724bf6..c29cdb1 100644 --- a/.github/workflows/full-test-suite.yaml +++ b/.github/workflows/full-test-suite.yaml @@ -68,9 +68,6 @@ on: DD_API_KEY: description: 'Datadog API Key' required: true -env: - BUCKET_NAME: "frontegg-test-reports" - AWS_REGION: "us-east-1" permissions: id-token: write From 9d8f51e4761807f876231e7fe24101dad5b82179 Mon Sep 17 00:00:00 2001 From: moran-frontegg <127654580+moran-frontegg@users.noreply.github.com> Date: Tue, 1 Apr 2025 12:45:32 +0300 Subject: [PATCH 5/8] Update dashboard-test-suite.yaml --- .github/workflows/dashboard-test-suite.yaml | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/.github/workflows/dashboard-test-suite.yaml b/.github/workflows/dashboard-test-suite.yaml index 8830d97..7d325e7 100644 --- a/.github/workflows/dashboard-test-suite.yaml +++ b/.github/workflows/dashboard-test-suite.yaml @@ -66,10 +66,6 @@ on: description: "Frontegg Bot Creds" required: true -env: - BUCKET_NAME: "frontegg-test-reports" - AWS_REGION: "us-east-1" - permissions: id-token: write contents: read @@ -140,13 +136,6 @@ jobs: with: app_id: ${{ secrets.GH_FRONTEGG_BOT_APP_ID }} private_key: ${{ secrets.GH_FRONTEGG_BOT_APP_SECRET }} - - - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@v4 - with: - role-to-assume: arn:aws:iam::527305576865:role/github-action-s3-role - role-session-name: github-action-session - aws-region: ${{ env.AWS_REGION }} - name: Run API Tests from E2E-system-tests repo uses: ./.github/actions/api-tests From 8ef6acb48dcad5473f310cfca6b0917c28dd9228 Mon Sep 17 00:00:00 2001 From: moran-frontegg <127654580+moran-frontegg@users.noreply.github.com> Date: Tue, 1 Apr 2025 12:50:48 +0300 Subject: [PATCH 6/8] Update dashboard-test-suite.yaml --- .github/workflows/dashboard-test-suite.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/dashboard-test-suite.yaml b/.github/workflows/dashboard-test-suite.yaml index 7d325e7..5c5a2df 100644 --- a/.github/workflows/dashboard-test-suite.yaml +++ b/.github/workflows/dashboard-test-suite.yaml @@ -136,6 +136,13 @@ jobs: with: app_id: ${{ secrets.GH_FRONTEGG_BOT_APP_ID }} private_key: ${{ secrets.GH_FRONTEGG_BOT_APP_SECRET }} + + - name : Configure Datadog Test Optimization + uses : datadog/test-visibility-github-action@v2 + with : + languages : js + api_key : ${{secrets.DD_API_KEY}} + site : datadoghq.com - name: Run API Tests from E2E-system-tests repo uses: ./.github/actions/api-tests From f10736e4054c5ecbcc251473f365b5bdc33c55a8 Mon Sep 17 00:00:00 2001 From: moran-frontegg <127654580+moran-frontegg@users.noreply.github.com> Date: Tue, 1 Apr 2025 12:51:39 +0300 Subject: [PATCH 7/8] Update dashboard-test-suite.yaml --- .github/workflows/dashboard-test-suite.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/dashboard-test-suite.yaml b/.github/workflows/dashboard-test-suite.yaml index 5c5a2df..981297f 100644 --- a/.github/workflows/dashboard-test-suite.yaml +++ b/.github/workflows/dashboard-test-suite.yaml @@ -161,6 +161,7 @@ jobs: AZURE_APP_SECRET: ${{ secrets.AZURE_APP_SECRET }} test_script: "yarn run test:e2e:regression:portal:hosted" # test_script: yarn run test:e2e:regression:portal:hosted --shard=${{ matrix.shard }}/${{ matrix.total }} + NODE_OPTIONS: '-r ${{env.DD_TRACE_PACKAGE}}' update-trigger-status: name: Update trigger status From 675a835975cf2da17be5cbef1e14083b697ef388 Mon Sep 17 00:00:00 2001 From: moran_ben_ami Date: Tue, 1 Apr 2025 13:29:28 +0300 Subject: [PATCH 8/8] adding tags --- .github/workflows/dashboard-test-suite.yaml | 1 + .github/workflows/sdk-test-suite.yaml | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/.github/workflows/dashboard-test-suite.yaml b/.github/workflows/dashboard-test-suite.yaml index 981297f..5b180d5 100644 --- a/.github/workflows/dashboard-test-suite.yaml +++ b/.github/workflows/dashboard-test-suite.yaml @@ -143,6 +143,7 @@ jobs: languages : js api_key : ${{secrets.DD_API_KEY}} site : datadoghq.com + tags: "triggering_repo:${{ github.repository }}, environment:venv" - name: Run API Tests from E2E-system-tests repo uses: ./.github/actions/api-tests diff --git a/.github/workflows/sdk-test-suite.yaml b/.github/workflows/sdk-test-suite.yaml index 09dc09f..1accb44 100644 --- a/.github/workflows/sdk-test-suite.yaml +++ b/.github/workflows/sdk-test-suite.yaml @@ -129,6 +129,7 @@ jobs: languages : js api_key : ${{secrets.DD_API_KEY}} site : datadoghq.com + tags: "triggering_repo:${{ github.repository }}, environment:staging" - name: Run E2E Tests from E2E-system-tests repo uses: ./.github/actions/e2e-test @@ -195,6 +196,7 @@ jobs: languages : js api_key : ${{secrets.DD_API_KEY}} site : datadoghq.com + tags: "triggering_repo:${{ github.repository }}, environment:staging" - name: Run E2E Tests from E2E-system-tests repo uses: ./.github/actions/e2e-test @@ -259,6 +261,7 @@ jobs: languages : js api_key : ${{secrets.DD_API_KEY}} site : datadoghq.com + tags: "triggering_repo:${{ github.repository }}, environment:staging" - name: Run Admin Box Tests from E2E-system-tests repo uses: ./.github/actions/admin-box @@ -322,6 +325,7 @@ jobs: languages : js api_key : ${{secrets.DD_API_KEY}} site : datadoghq.com + tags: "triggering_repo:${{ github.repository }}, environment:staging" - name: Run Login Box Tests from E2E-system-tests repo uses: ./.github/actions/login-box