From 6abbc1148eddf4ee345917768252f10e8922ee90 Mon Sep 17 00:00:00 2001 From: Lorenzo Mattei Date: Fri, 22 Nov 2024 15:15:17 +0100 Subject: [PATCH] Disable asana reporting on test failures (#3603) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Task/Issue URL: https://app.asana.com/0/0/1208804974015521/f Tech Design URL: CC: **Description**: We have experienced issues with e2e tests reliability due to CI instability for quite a long time now and we are at a point where we don't investigate failures anymore. Because of this, reporting test failures in Asana only adds noise for the maintenance DRI. This PR disables reporting, while we work to stabilise the tests. **Steps to test this PR**: 1. Verify CI is green. --- ###### Internal references: [Software Engineering Expectations](https://app.asana.com/0/59792373528535/199064865822552) [Technical Design Template](https://app.asana.com/0/59792373528535/184709971311943) --- .github/workflows/end-to-end.yml | 26 +++++++++++++------------- .github/workflows/sync-end-to-end.yml | 26 +++++++++++++------------- 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/.github/workflows/end-to-end.yml b/.github/workflows/end-to-end.yml index cd3cbe1299..20ed48ea18 100644 --- a/.github/workflows/end-to-end.yml +++ b/.github/workflows/end-to-end.yml @@ -95,17 +95,17 @@ jobs: run: | export PATH="$PATH":"$HOME/.maestro/bin"; maestro cloud --apiKey ${{ secrets.MAESTRO_CLOUD_API_KEY }} -e ONBOARDING_COMPLETED=true --fail-on-timeout=true --fail-on-cancellation=true --timeout=150 --ios-version=17 --include-tags=${{ matrix.test-tag }} DerivedData/Build/Products/Debug-iphonesimulator/DuckDuckGo.app .maestro/ - notify-failure: - name: Notify on failure - if: ${{ always() && contains(join(needs.*.result, ','), 'failure') && github.ref_name == 'main' }} - needs: [build-end-to-end-tests, end-to-end-tests] - runs-on: ubuntu-latest + # notify-failure: + # name: Notify on failure + # if: ${{ always() && contains(join(needs.*.result, ','), 'failure') && github.ref_name == 'main' }} + # needs: [build-end-to-end-tests, end-to-end-tests] + # runs-on: ubuntu-latest - steps: - - name: Create Asana task when workflow failed - run: | - curl -s "https://app.asana.com/api/1.0/tasks" \ - --header "Accept: application/json" \ - --header "Authorization: Bearer ${{ secrets.ASANA_ACCESS_TOKEN }}" \ - --header "Content-Type: application/json" \ - --data ' { "data": { "name": "GH Workflow Failure - End to end tests", "workspace": "${{ vars.GH_ASANA_WORKSPACE_ID }}", "projects": [ "${{ vars.GH_ASANA_IOS_APP_PROJECT_ID }}" ], "notes" : "The end to end workflow has failed. See https://github.com/duckduckgo/iOS/actions/runs/${{ github.run_id }}. For instructions on how to handle the failure(s), check https://app.asana.com/0/0/1206423571874502/f" } }' + # steps: + # - name: Create Asana task when workflow failed + # run: | + # curl -s "https://app.asana.com/api/1.0/tasks" \ + # --header "Accept: application/json" \ + # --header "Authorization: Bearer ${{ secrets.ASANA_ACCESS_TOKEN }}" \ + # --header "Content-Type: application/json" \ + # --data ' { "data": { "name": "GH Workflow Failure - End to end tests", "workspace": "${{ vars.GH_ASANA_WORKSPACE_ID }}", "projects": [ "${{ vars.GH_ASANA_IOS_APP_PROJECT_ID }}" ], "notes" : "The end to end workflow has failed. See https://github.com/duckduckgo/iOS/actions/runs/${{ github.run_id }}. For instructions on how to handle the failure(s), check https://app.asana.com/0/0/1206423571874502/f" } }' diff --git a/.github/workflows/sync-end-to-end.yml b/.github/workflows/sync-end-to-end.yml index c70dc3ef37..e96a5769ef 100644 --- a/.github/workflows/sync-end-to-end.yml +++ b/.github/workflows/sync-end-to-end.yml @@ -108,20 +108,20 @@ jobs: run: | git checkout .maestro/config.yaml - notify-failure: - name: Notify on failure - if: ${{ always() && contains(join(needs.*.result, ','), 'failure') && github.ref_name == 'main' }} - needs: [build-for-sync-end-to-end-tests, sync-end-to-end-tests] - runs-on: ubuntu-latest + # notify-failure: + # name: Notify on failure + # if: ${{ always() && contains(join(needs.*.result, ','), 'failure') && github.ref_name == 'main' }} + # needs: [build-for-sync-end-to-end-tests, sync-end-to-end-tests] + # runs-on: ubuntu-latest - steps: - - name: Create Asana task when workflow failed - run: | - curl -s "https://app.asana.com/api/1.0/tasks" \ - --header "Accept: application/json" \ - --header "Authorization: Bearer ${{ secrets.ASANA_ACCESS_TOKEN }}" \ - --header "Content-Type: application/json" \ - --data ' { "data": { "name": "GH Workflow Failure - Sync End to end tests", "workspace": "${{ vars.GH_ASANA_WORKSPACE_ID }}", "projects": [ "${{ vars.GH_ASANA_IOS_APP_PROJECT_ID }}" ], "notes" : "The end to end workflow has failed. See https://github.com/duckduckgo/iOS/actions/runs/${{ github.run_id }}" } }' + # steps: + # - name: Create Asana task when workflow failed + # run: | + # curl -s "https://app.asana.com/api/1.0/tasks" \ + # --header "Accept: application/json" \ + # --header "Authorization: Bearer ${{ secrets.ASANA_ACCESS_TOKEN }}" \ + # --header "Content-Type: application/json" \ + # --data ' { "data": { "name": "GH Workflow Failure - Sync End to end tests", "workspace": "${{ vars.GH_ASANA_WORKSPACE_ID }}", "projects": [ "${{ vars.GH_ASANA_IOS_APP_PROJECT_ID }}" ], "notes" : "The end to end workflow has failed. See https://github.com/duckduckgo/iOS/actions/runs/${{ github.run_id }}" } }'