Skip to content

Commit a91dc39

Browse files
committed
Add E2E test retry jobs for PRs to handle flakiness
On PRs, E2E tests (iOS/Android, RNTester/TemplateApp) now retry up to 2 additional times on failure. Each retry runs on a fresh runner to address environment-level flakiness. - Original E2E jobs use `continue-on-error` on PRs so failures don't block the workflow - Step-level outcome is captured as a job output to trigger retries - Retry jobs only run on `pull_request` events - On `main`, behavior is unchanged: `continue-on-error` is false and the existing `rerun-failed-jobs` mechanism handles retries - Added `overwrite: true` to artifact uploads in maestro composite actions so retry jobs don't fail on duplicate artifact names
1 parent e67dba1 commit a91dc39

3 files changed

Lines changed: 528 additions & 0 deletions

File tree

.github/actions/maestro-android/action.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ runs:
7777
if: always()
7878
with:
7979
name: e2e_android_${{ steps.normalize-app-id.outputs.app-id }}_report_${{ inputs.flavor }}_${{ inputs.emulator-arch }}_NewArch
80+
overwrite: true
8081
path: |
8182
report.xml
8283
screen.mp4
@@ -85,4 +86,5 @@ runs:
8586
uses: actions/upload-artifact@v6
8687
with:
8788
name: maestro-logs-android-${{ steps.normalize-app-id.outputs.app-id }}-${{ inputs.flavor }}-${{ inputs.emulator-arch }}-NewArch
89+
overwrite: true
8890
path: /tmp/MaestroLogs

.github/actions/maestro-ios/action.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ runs:
6969
uses: actions/upload-artifact@v6
7070
with:
7171
name: e2e_ios_${{ inputs.app-id }}_report_${{ inputs.flavor }}_NewArch
72+
overwrite: true
7273
path: |
7374
video_record_1.mov
7475
video_record_2.mov
@@ -81,4 +82,5 @@ runs:
8182
uses: actions/upload-artifact@v6
8283
with:
8384
name: maestro-logs-${{ inputs.app-id }}-${{ inputs.flavor }}-NewArch
85+
overwrite: true
8486
path: /tmp/MaestroLogs

0 commit comments

Comments
 (0)