Skip to content
This repository was archived by the owner on Feb 24, 2025. It is now read-only.

Commit 4191990

Browse files
authored
Re-enable UI tests notifications (#3938)
<!-- Note: This checklist is a reminder of our shared engineering expectations. Feel free to change it, although assigning a GitHub reviewer and the items in bold are required. ⚠️ If you're an external contributor, please file an issue first before working on a PR, as we can't guarantee that we will accept your changes if they haven't been discussed ahead of time. Thanks! --> Task/Issue URL: https://app.asana.com/0/1204165176092271/1209189113204615 Tech Design URL: CC: **Description**: <!-- If at any point it isn't actively being worked on/ready for review/otherwise moving forward strongly consider closing it (or not opening it in the first place). If you decide not to close it, use Draft PR while work is still in progress or use `DO NOT MERGE` label to clarify the PRs state and comment with more information. --> We disabled notifications on failed nightly tests because they were unreliable. Now that the problem is solved, we should re-enable them. <!-- Before submitting a PR, please ensure you have tested the combinations you expect the reviewer to test, then delete configurations you *know* do not need explicit testing. Using a simulator where a physical device is unavailable is acceptable. --> **Definition of Done (Internal Only)**: * [x] Does this PR satisfy our [Definition of Done](https://app.asana.com/0/1202500774821704/1207634633537039/f)? **Copy Testing**: * [ ] Use of correct apostrophes in new copy, ie `’` rather than `'` **Orientation Testing**: * [ ] Portrait * [ ] Landscape **Device Testing**: * [ ] iPhone SE (1st Gen) * [ ] iPhone 8 * [ ] iPhone X * [ ] iPhone 14 Pro * [ ] iPad **OS Testing**: * [ ] iOS 15 * [ ] iOS 16 * [ ] iOS 17 **Theme Testing**: * [ ] Light theme * [ ] Dark theme --- ###### Internal references: [Software Engineering Expectations](https://app.asana.com/0/59792373528535/199064865822552) [Technical Design Template](https://app.asana.com/0/59792373528535/184709971311943)
1 parent c4b60ef commit 4191990

File tree

2 files changed

+27
-27
lines changed

2 files changed

+27
-27
lines changed

.github/workflows/ios-end-to-end.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -102,17 +102,17 @@ jobs:
102102
ios-version: 17
103103
fail-on-timeout: true
104104

105-
# notify-failure:
106-
# name: Notify on failure
107-
# if: ${{ always() && contains(join(needs.*.result, ','), 'failure') && github.ref_name == 'main' }}
108-
# needs: [build-end-to-end-tests, end-to-end-tests]
109-
# runs-on: ubuntu-latest
105+
notify-failure:
106+
name: Notify on failure
107+
if: ${{ always() && contains(join(needs.*.result, ','), 'failure') && github.ref_name == 'main' }}
108+
needs: [build-end-to-end-tests, end-to-end-tests]
109+
runs-on: ubuntu-latest
110110

111-
# steps:
112-
# - name: Create Asana task when workflow failed
113-
# run: |
114-
# curl -s "https://app.asana.com/api/1.0/tasks" \
115-
# --header "Accept: application/json" \
116-
# --header "Authorization: Bearer ${{ secrets.ASANA_ACCESS_TOKEN }}" \
117-
# --header "Content-Type: application/json" \
118-
# --data ' { "data": { "name": "GH Workflow Failure - End to end tests", "workspace": "${{ vars.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" } }'
111+
steps:
112+
- name: Create Asana task when workflow failed
113+
run: |
114+
curl -s "https://app.asana.com/api/1.0/tasks" \
115+
--header "Accept: application/json" \
116+
--header "Authorization: Bearer ${{ secrets.ASANA_ACCESS_TOKEN }}" \
117+
--header "Content-Type: application/json" \
118+
--data ' { "data": { "name": "GH Workflow Failure - End to end tests", "workspace": "${{ vars.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" } }'

.github/workflows/ios-sync-end-to-end.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -119,17 +119,17 @@ jobs:
119119
120120
121121

122-
# notify-failure:
123-
# name: Notify on failure
124-
# if: ${{ always() && contains(join(needs.*.result, ','), 'failure') && github.ref_name == 'main' }}
125-
# needs: [build-for-sync-end-to-end-tests, sync-end-to-end-tests]
126-
# runs-on: ubuntu-latest
127-
128-
# steps:
129-
# - name: Create Asana task when workflow failed
130-
# run: |
131-
# curl -s "https://app.asana.com/api/1.0/tasks" \
132-
# --header "Accept: application/json" \
133-
# --header "Authorization: Bearer ${{ secrets.ASANA_ACCESS_TOKEN }}" \
134-
# --header "Content-Type: application/json" \
135-
# --data ' { "data": { "name": "GH Workflow Failure - Sync End to end tests", "workspace": "${{ vars.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 }}" } }'
122+
notify-failure:
123+
name: Notify on failure
124+
if: ${{ always() && contains(join(needs.*.result, ','), 'failure') && github.ref_name == 'main' }}
125+
needs: [build-for-sync-end-to-end-tests, sync-end-to-end-tests]
126+
runs-on: ubuntu-latest
127+
128+
steps:
129+
- name: Create Asana task when workflow failed
130+
run: |
131+
curl -s "https://app.asana.com/api/1.0/tasks" \
132+
--header "Accept: application/json" \
133+
--header "Authorization: Bearer ${{ secrets.ASANA_ACCESS_TOKEN }}" \
134+
--header "Content-Type: application/json" \
135+
--data ' { "data": { "name": "GH Workflow Failure - Sync End to end tests", "workspace": "${{ vars.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 }}" } }'

0 commit comments

Comments
 (0)