Skip to content

Commit 72eea62

Browse files
authored
Ignore TestOrchestrator failures (#3151)
1 parent 4573e93 commit 72eea62

File tree

1 file changed

+23
-4
lines changed

1 file changed

+23
-4
lines changed

.github/workflows/integration-tests-ui.yml

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
# we copy the secret to the env variable in order to access it in the workflow
1818
env:
1919
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
20+
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
2021

2122
steps:
2223
- name: Git checkout
@@ -36,13 +37,31 @@ jobs:
3637
if: env.SAUCE_USERNAME != null
3738
run: make assembleUiTests
3839

39-
- name: Run Tests in SauceLab
40+
- name: Install SauceLabs CLI
4041
uses: saucelabs/saucectl-run-action@7fe025ef1fdc6f211add3751a6c7d8bba27ba9b1 # pin@v3
4142
env:
4243
GITHUB_TOKEN: ${{ github.token }}
4344
with:
44-
sauce-username: ${{ secrets.SAUCE_USERNAME }}
45-
sauce-access-key: ${{ secrets.SAUCE_ACCESS_KEY }}
46-
config-file: .sauce/sentry-uitest-android-ui.yml
45+
skip-run: true
4746
if: env.SAUCE_USERNAME != null
4847

48+
- name: Run Tests
49+
id: saucelabs
50+
env:
51+
GITHUB_TOKEN: ${{ github.token }}
52+
run: |
53+
exec &> >(tee -a "test_logs.txt")
54+
saucectl run -c .sauce/sentry-uitest-android-ui.yml
55+
if: env.SAUCE_USERNAME != null
56+
continue-on-error: true
57+
58+
- name: Verify Test Results
59+
run: |
60+
processCrashed=$(cat test_logs.txt | grep "Instrumentation run failed due to 'Process crashed.'" | wc -l)
61+
if [[ ${{ steps.saucelabs.outcome }} == 'success' ]]; then
62+
exit 0
63+
elif [[ "$processCrashed" -ne 0 ]]; then
64+
exit 0
65+
else
66+
exit 1
67+
fi

0 commit comments

Comments
 (0)