Something went wrong. Try again.
Mirror — see github.com/blacksky-algorithms/blacksky.community
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587---name: Nightly Maestro E2E
on: schedule: - cron: "0 4 * * *" workflow_dispatch:
permissions: contents: read
concurrency: group: nightly-maestro-e2e-${{ github.ref }} cancel-in-progress: false
env: CI: "1" MAESTRO_VERSION: "2.10.0" MAESTRO_DRIVER_STARTUP_TIMEOUT: "180000" MAESTRO_CLI_NO_ANALYTICS: "1" MAESTRO_CLI_ANALYSIS_NOTIFICATION_DISABLED: "true" MAESTRO_DISABLE_UPDATE_CHECK: "1"
jobs: ios: name: iOS Maestro E2E if: github.repository == 'bluesky-social/social-app' runs-on: xcode-27-xlarge timeout-minutes: 120 steps: - name: ⬇️ Checkout uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false
- name: 🛠️ Select Xcode 27.1 uses: maxim-lobanov/setup-xcode@ed7a3b1fda3918c0306d1b724322adc0b8cc0a90 # v1.7.0 with: xcode-version: "27.1"
- name: 🧰 Prepare E2E configuration run: | mkdir -p artifacts/ios echo "Installing dependencies" > artifacts/ios/phase.txt cp .env.example .env # Expo loads standard env filenames, so map the E2E overrides to development. cp .env.e2e .env.development cp google-services.json.example google-services.json
- name: 🔧 Set up Expo project uses: $/.github/actions/setup-expo-project with: expo-token: ${{ secrets.EXPO_TOKEN }} eas-version: '25.3.0'
- name: ☕️ Set up Java 17 uses: actions/setup-java@de7274f081f381c8f8158605e0321c36c376e2e6 # v6.0.1 with: distribution: temurin java-version: "17"
- name: 📦 Install dev-env dependencies run: pnpm --dir dev-env install --frozen-lockfile 2>&1 | tee artifacts/ios/dependencies.log
- name: 🔤 Compile translations uses: $/.github/actions/compile-i18n
- name: 📥 Install Maestro 2.10.0 run: | echo "Installing Maestro" > artifacts/ios/phase.txt curl -fsSL -o "$RUNNER_TEMP/maestro.zip" \ "https://github.com/mobile-dev-inc/Maestro/releases/download/cli-${MAESTRO_VERSION}/maestro.zip" echo "29b675e10cc12080e445e9bfb2e2b4e4dfb9c0f2e30d5884120d258b5e1cd991 $RUNNER_TEMP/maestro.zip" \ | shasum -a 256 --check unzip -q "$RUNNER_TEMP/maestro.zip" -d "$RUNNER_TEMP" echo "$RUNNER_TEMP/maestro/bin" >> "$GITHUB_PATH" "$RUNNER_TEMP/maestro/bin/maestro" --version | tee artifacts/ios/maestro-version.log test "$("$RUNNER_TEMP/maestro/bin/maestro" --version)" = "$MAESTRO_VERSION"
- name: 📱 Boot one iOS simulator run: | echo "Booting iOS simulator" > artifacts/ios/phase.txt device_name="iPhone 17" runtime_name="iOS 27.0"
runtime_id=$(xcrun simctl list runtimes available --json | jq -r \ --arg name "$runtime_name" \ '[.runtimes[] | select(.name == $name and .isAvailable != false)] | first | .identifier // empty') if [ -z "$runtime_id" ]; then echo "The $runtime_name simulator runtime is not installed. Available iOS runtimes:" >&2 xcrun simctl list runtimes available --json | jq -r \ '.runtimes[] | select(.name | startswith("iOS")) | "- \(.name)"' >&2 exit 1 fi
device_type_id=$(xcrun simctl list devicetypes --json | jq -r \ --arg name "$device_name" \ '[.devicetypes[] | select(.name == $name)] | first | .identifier // empty') if [ -z "$device_type_id" ]; then echo "The $device_name simulator device type is not installed" >&2 exit 1 fi
udid=$(xcrun simctl list devices available --json | jq -r \ --arg runtime "$runtime_id" \ --arg name "$device_name" \ '[.devices[$runtime][]? | select(.name == $name)] | first | .udid // empty') if [ -z "$udid" ]; then udid=$(xcrun simctl create "$device_name" "$device_type_id" "$runtime_id") fi
echo "IOS_UDID=$udid" >> "$GITHUB_ENV" xcrun simctl shutdown all || true xcrun simctl boot "$udid" xcrun simctl bootstatus "$udid" -b # Turn off password AutoFill so iOS doesn't offer a strong password on # the signup form: its panel swallows the text Maestro types. xcrun simctl spawn "$udid" defaults write com.apple.WebUI AutoFillPasswords -int 0 echo "Using $device_name on $runtime_name ($udid)"
- name: 🏷️ Mark iOS development client build phase run: echo "Building the iOS development client" > artifacts/ios/phase.txt
- name: 🏗️ Build iOS development client uses: $/.github/actions/eas-local-build with: platform: ios profile: e2e output: ${{ runner.temp }}/nightly-e2e-ios.tar.gz log-path: artifacts/ios/build.log
- name: 📲 Install iOS development client run: | build_contents="$RUNNER_TEMP/nightly-e2e-ios-build" mkdir -p "$build_contents" tar -xzf "$RUNNER_TEMP/nightly-e2e-ios.tar.gz" -C "$build_contents" app_path=$(find "$build_contents" -type d -name '*.app' -print -quit) if [ -z "$app_path" ]; then echo "The local EAS build did not contain an iOS simulator app" >&2 exit 1 fi xcrun simctl install "$IOS_UDID" "$app_path" 2>&1 | tee -a artifacts/ios/build.log
- name: 🧪 Run iOS Maestro suite run: .github/scripts/run-nightly-e2e.sh ios "$IOS_UDID"
- name: 🧹 Clean up iOS services and simulator if: always() run: .github/scripts/cleanup-nightly-e2e.sh ios "${IOS_UDID:-}"
- name: 🚀 Upload iOS E2E artifacts if: always() uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: nightly-e2e-ios-${{ github.run_id }} path: artifacts/ios if-no-files-found: warn retention-days: 7
android: name: Android Maestro E2E if: github.repository == 'bluesky-social/social-app' # Linux-x64-32core is a repository-managed runner label. runs-on: Linux-x64-32core timeout-minutes: 120 steps: # Temporary until fixed runner images roll out: # https://github.com/actions/runner-images/issues/15018 - name: Update Ubuntu CA certificates run: | sudo apt-get update -qq sudo apt-get install --only-upgrade --no-install-recommends -y ca-certificates
- name: ⬇️ Checkout uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false
- name: 🧰 Prepare E2E configuration run: | mkdir -p artifacts/android echo "Installing dependencies" > artifacts/android/phase.txt cp .env.example .env # Expo loads standard env filenames, so map the E2E overrides to development. cp .env.e2e .env.development cp google-services.json.example google-services.json
- name: 🔧 Set up Expo project uses: $/.github/actions/setup-expo-project with: expo-token: ${{ secrets.EXPO_TOKEN }} eas-version: '25.3.0'
- name: ☕️ Set up Java 17 uses: actions/setup-java@de7274f081f381c8f8158605e0321c36c376e2e6 # v6.0.1 with: distribution: temurin java-version: "17"
- name: 📦 Install dev-env dependencies run: pnpm --dir dev-env install --frozen-lockfile 2>&1 | tee artifacts/android/dependencies.log
- name: 🔤 Compile translations uses: $/.github/actions/compile-i18n
- name: 📥 Install Maestro 2.10.0 run: | echo "Installing Maestro" > artifacts/android/phase.txt curl -fsSL -o "$RUNNER_TEMP/maestro.zip" \ "https://github.com/mobile-dev-inc/Maestro/releases/download/cli-${MAESTRO_VERSION}/maestro.zip" echo "29b675e10cc12080e445e9bfb2e2b4e4dfb9c0f2e30d5884120d258b5e1cd991 $RUNNER_TEMP/maestro.zip" \ | shasum -a 256 --check unzip -q "$RUNNER_TEMP/maestro.zip" -d "$RUNNER_TEMP" echo "$RUNNER_TEMP/maestro/bin" >> "$GITHUB_PATH" "$RUNNER_TEMP/maestro/bin/maestro" --version | tee artifacts/android/maestro-version.log test "$("$RUNNER_TEMP/maestro/bin/maestro" --version)" = "$MAESTRO_VERSION"
- name: 📱 Install and boot one Android emulator run: | echo "Booting Android emulator" > artifacts/android/phase.txt android_sdk="${ANDROID_SDK_ROOT:-${ANDROID_HOME:-/usr/local/lib/android/sdk}}" sdkmanager_bin="$android_sdk/cmdline-tools/latest/bin/sdkmanager" avdmanager_bin="$android_sdk/cmdline-tools/latest/bin/avdmanager" # API 35 emulator images have known stability problems in headless CI # (see flutter/flutter#153445); the qemu process died deterministically # on the first native stack-screen push with the API 35 image. system_image="system-images;android-34;google_apis;x86_64"
if [ ! -x "$sdkmanager_bin" ] || [ ! -x "$avdmanager_bin" ]; then echo "Android command-line tools were not found under $android_sdk" >&2 find "$android_sdk/cmdline-tools" -maxdepth 3 -type f \( \ -name sdkmanager -o -name avdmanager \ \) -print >&2 || true exit 1 fi
export ANDROID_HOME="$android_sdk" export ANDROID_SDK_ROOT="$android_sdk" export PATH="$android_sdk/platform-tools:$android_sdk/emulator:$PATH" echo "ANDROID_HOME=$android_sdk" >> "$GITHUB_ENV" echo "ANDROID_SDK_ROOT=$android_sdk" >> "$GITHUB_ENV" echo "$android_sdk/platform-tools" >> "$GITHUB_PATH" echo "$android_sdk/emulator" >> "$GITHUB_PATH" echo "Using Android SDK at $android_sdk"
yes | "$sdkmanager_bin" --sdk_root="$android_sdk" --licenses >/dev/null || true "$sdkmanager_bin" --sdk_root="$android_sdk" \ "platform-tools" "emulator" "$system_image"
export ANDROID_AVD_HOME="$RUNNER_TEMP/.android/avd" mkdir -p "$ANDROID_AVD_HOME" echo "ANDROID_AVD_HOME=$ANDROID_AVD_HOME" >> "$GITHUB_ENV" echo no | "$avdmanager_bin" create avd \ --force \ --name nightly-e2e \ --package "$system_image" \ --device pixel_6
# Reduce resolution to lighten the SwiftShader software-rendering # workload, and raise RAM/cores/heap so the debug RN app has headroom. # The default 2560MB RAM led to silent qemu crashes mid-flow. printf 'hw.lcd.width=720\nhw.lcd.height=1600\nhw.lcd.density=280\nhw.ramSize=6144\nhw.cpu.ncore=4\nvm.heapSize=512\n' \ >> "$ANDROID_AVD_HOME/nightly-e2e.avd/config.ini"
if [ -e /dev/kvm ] && [ ! -w /dev/kvm ]; then sudo chmod 666 /dev/kvm fi
# Disable the emulator's Vulkan feature so graphics goes through the # plain GLES SwiftShader translator. gfxstream Vulkan via SwiftShader # Subzero crashed qemu silently at a deterministic rendering step; # GLES-only is sufficient since the guest renders with skiagl. # # Run the launch in a background subshell so the emulator's exit # status is recorded when it dies (it is otherwise backgrounded and # its death is invisible). Write the emulator's real PID - not the # subshell's - to emulator.pid, since cleanup-nightly-e2e.sh kills the # PID from that file directly; killing the subshell would not kill the # emulator child. ( # wait returns the emulator's non-zero status on crash; set -e would # abort the subshell before the status is logged. set +e "$android_sdk/emulator/emulator" @nightly-e2e \ -port 5554 \ -no-window \ -gpu swiftshader_indirect \ -feature -Vulkan \ -no-snapshot \ -noaudio \ -no-boot-anim \ -camera-back none \ > artifacts/android/emulator.log 2>&1 & emulator_pid=$! echo "$emulator_pid" > artifacts/android/emulator.pid wait "$emulator_pid" echo "Emulator exited with status $?" >> artifacts/android/emulator.log ) &
adb -s emulator-5554 wait-for-device booted=false for _ in $(seq 1 120); do if [ "$(adb -s emulator-5554 shell getprop sys.boot_completed 2>/dev/null | tr -d '\r')" = "1" ]; then booted=true break fi sleep 5 done if [ "$booted" != "true" ]; then echo "Android emulator did not finish booting" >&2 exit 1 fi
adb -s emulator-5554 shell settings put global window_animation_scale 0 adb -s emulator-5554 shell settings put global transition_animation_scale 0 adb -s emulator-5554 shell settings put global animator_duration_scale 0
- name: 🏷️ Mark Android development client build phase run: echo "Building the Android development client" > artifacts/android/phase.txt
- name: 🏗️ Build Android development client uses: $/.github/actions/eas-local-build with: platform: android profile: e2e output: ${{ runner.temp }}/nightly-e2e-android.apk log-path: artifacts/android/build.log
- name: 📲 Install Android development client run: | adb -s emulator-5554 install -r "$RUNNER_TEMP/nightly-e2e-android.apk" \ 2>&1 | tee -a artifacts/android/build.log
- name: 🧪 Run Android Maestro suite run: .github/scripts/run-nightly-e2e.sh android emulator-5554
- name: 🩺 Capture emulator crash diagnostics if: always() run: | { echo "=== Emulator process status ===" pgrep -fa "emulator.*nightly-e2e" || echo "Emulator process not found" echo "=== Emulator exit status ===" grep "Emulator exited" artifacts/android/emulator.log || echo "No emulator exit status recorded" echo "=== OOM killer check (kernel) ===" oom_lines=$(sudo dmesg 2>/dev/null | grep -iE "oom|killed process|out of memory" | tail -20) echo "${oom_lines:-No kernel OOM evidence found (or dmesg unavailable)}" echo "=== systemd-oomd check ===" oomd_lines=$(journalctl -u systemd-oomd --no-pager 2>/dev/null | tail -20) echo "${oomd_lines:-No systemd-oomd journal entries (or journalctl unavailable)}" echo "=== journal kernel tail ===" journalctl -k --no-pager 2>/dev/null | tail -30 || echo "journalctl -k unavailable" echo "=== Emulator crash database ===" ls -la /tmp/android-runner/emu-crash-*.db 2>/dev/null || echo "No crash database found" } > artifacts/android/emulator-diagnostics.log 2>&1
- name: 🧹 Clean up Android services and emulator if: always() run: .github/scripts/cleanup-nightly-e2e.sh android emulator-5554
- name: 🚀 Upload Android E2E artifacts if: always() uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: nightly-e2e-android-${{ github.run_id }} path: artifacts/android if-no-files-found: warn retention-days: 7
report: name: Report E2E failures needs: [ios, android] if: ${{ always() && github.repository == 'bluesky-social/social-app' }} runs-on: ubuntu-latest permissions: actions: read contents: read steps: # Temporary until fixed runner images roll out: # https://github.com/actions/runner-images/issues/15018 - name: Update Ubuntu CA certificates run: | sudo apt-get update -qq sudo apt-get install --only-upgrade --no-install-recommends -y ca-certificates
- name: ⬇️ Checkout uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false
- name: ⬇️ Download iOS artifacts continue-on-error: true uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 with: name: nightly-e2e-ios-${{ github.run_id }} path: downloaded-artifacts/ios
- name: ⬇️ Download Android artifacts continue-on-error: true uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 with: name: nightly-e2e-android-${{ github.run_id }} path: downloaded-artifacts/android
- name: 🔗 Resolve artifact links env: GH_TOKEN: ${{ github.token }} run: | run_url="${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}#artifacts" jq -n --arg run "$run_url" '{ios: $run, android: $run}' > artifact-links.json if gh api "repos/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}/artifacts?per_page=100" \ > artifact-response.json; then jq --arg base "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}/artifacts" \ --arg run "$run_url" \ '{ ios: (.artifacts | map(select(.name | startswith("nightly-e2e-ios-"))) | first | if . then ($base + "/" + (.id | tostring)) else $run end), android: (.artifacts | map(select(.name | startswith("nightly-e2e-android-"))) | first | if . then ($base + "/" + (.id | tostring)) else $run end) }' artifact-response.json > artifact-links.json fi
- name: 🔧 Set up Node uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 with: node-version-file: package.json
- name: 📊 Summarize platform results id: summary env: IOS_STATUS: ${{ needs.ios.result }} ANDROID_STATUS: ${{ needs.android.result }} run: | node .github/scripts/summarize-maestro.mjs \ --ios-status "$IOS_STATUS" \ --android-status "$ANDROID_STATUS" \ --ios-root downloaded-artifacts/ios \ --android-root downloaded-artifacts/android \ --artifact-urls artifact-links.json \ --sha "$GITHUB_SHA" \ --run-url "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}" \ --commit-url "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/commit/${GITHUB_SHA}" \ > e2e-summary.json { echo "notify=$(jq -r .notify e2e-summary.json)" echo "failure_count=$(jq -r .failureCount e2e-summary.json)" echo "screenshot_count=$(jq -r .screenshotCount e2e-summary.json)" } >> "$GITHUB_OUTPUT" jq .uploadPayload e2e-summary.json > slack-screenshot-upload.json jq -r .githubSummary e2e-summary.json >> "$GITHUB_STEP_SUMMARY"
- name: 📦 Set up pnpm for Slack screenshot framing if: >- steps.summary.outputs.notify == 'true' && steps.summary.outputs.screenshot_count != '0' continue-on-error: true uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0
- name: 📦 Install Slack screenshot framing dependencies if: >- steps.summary.outputs.notify == 'true' && steps.summary.outputs.screenshot_count != '0' continue-on-error: true run: pnpm install --frozen-lockfile
- name: 🖼️ Frame failure screenshots for Slack cards id: frame_screenshots if: >- steps.summary.outputs.notify == 'true' && steps.summary.outputs.screenshot_count != '0' continue-on-error: true run: | node .github/scripts/frame-slack-screenshots.mjs \ slack-screenshot-upload.json \ slack-screenshot-upload-framed.json \ slack-screenshots
- name: 📝 Build Slack message if: steps.summary.outputs.notify == 'true' env: ANDROID_STATUS: ${{ needs.android.result }} IOS_STATUS: ${{ needs.ios.result }} SLACK_CHANNEL_ID: ${{ secrets.E2E_FAILURES_SLACK_CHANNEL_ID }} run: | node .github/scripts/summarize-maestro.mjs \ --ios-status "$IOS_STATUS" \ --android-status "$ANDROID_STATUS" \ --ios-root downloaded-artifacts/ios \ --android-root downloaded-artifacts/android \ --artifact-urls artifact-links.json \ --sha "$GITHUB_SHA" \ --run-url "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}" \ --commit-url "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/commit/${GITHUB_SHA}" \ > e2e-summary-for-slack.json jq --arg channel "$SLACK_CHANNEL_ID" \ '.payload + {channel: $channel, unfurl_links: false, unfurl_media: false}' \ e2e-summary-for-slack.json > slack-message.json
- name: 🔔 Notify Slack of E2E result id: notify_slack if: steps.summary.outputs.notify == 'true' uses: slackapi/slack-github-action@dcb1066f776dd043e64d0e8ba94ca15cc7e1875d # v4.0.0 with: method: chat.postMessage token: ${{ secrets.E2E_FAILURES_SLACK_BOT_TOKEN }} payload-file-path: slack-message.json errors: true
- name: 🧵 Prepare Slack thread payloads if: >- steps.summary.outputs.notify == 'true' && steps.summary.outputs.failure_count != '0' env: FRAMING_OUTCOME: ${{ steps.frame_screenshots.outcome }} SLACK_CHANNEL_ID: ${{ secrets.E2E_FAILURES_SLACK_CHANNEL_ID }} SLACK_THREAD_TS: ${{ steps.notify_slack.outputs.ts }} run: | upload_payload=slack-screenshot-upload.json if [ "$FRAMING_OUTCOME" = "success" ]; then upload_payload=slack-screenshot-upload-framed.json fi jq --arg channel "$SLACK_CHANNEL_ID" --arg thread_ts "$SLACK_THREAD_TS" \ '.threadPayload + {channel: $channel, thread_ts: $thread_ts, unfurl_links: false, unfurl_media: false}' \ e2e-summary-for-slack.json > slack-thread-details.json jq --arg channel_id "$SLACK_CHANNEL_ID" --arg thread_ts "$SLACK_THREAD_TS" \ '. + {channel_id: $channel_id, thread_ts: $thread_ts}' \ "$upload_payload" > slack-screenshot-upload-thread.json
- name: 🧾 Post all failure details to Slack thread if: >- steps.summary.outputs.notify == 'true' && steps.summary.outputs.failure_count != '0' uses: slackapi/slack-github-action@dcb1066f776dd043e64d0e8ba94ca15cc7e1875d # v4.0.0 with: method: chat.postMessage token: ${{ secrets.E2E_FAILURES_SLACK_BOT_TOKEN }} payload-file-path: slack-thread-details.json errors: true
- name: 🖼️ Upload failure screenshots to Slack thread id: upload_screenshots if: >- steps.summary.outputs.notify == 'true' && steps.summary.outputs.screenshot_count != '0' continue-on-error: true uses: slackapi/slack-github-action@dcb1066f776dd043e64d0e8ba94ca15cc7e1875d # v4.0.0 with: method: files.uploadV2 token: ${{ secrets.E2E_FAILURES_SLACK_BOT_TOKEN }} payload-file-path: slack-screenshot-upload-thread.json errors: true
- name: ⏳ Wait for Slack to process failure screenshots if: steps.upload_screenshots.outcome == 'success' run: sleep 5
- name: 📝 Build Slack message with screenshots if: steps.upload_screenshots.outcome == 'success' env: ANDROID_STATUS: ${{ needs.android.result }} IOS_STATUS: ${{ needs.ios.result }} SLACK_CHANNEL_ID: ${{ secrets.E2E_FAILURES_SLACK_CHANNEL_ID }} SLACK_THREAD_TS: ${{ steps.notify_slack.outputs.ts }} SLACK_UPLOAD_RESPONSE: ${{ steps.upload_screenshots.outputs.response }} run: | node .github/scripts/summarize-maestro.mjs \ --ios-status "$IOS_STATUS" \ --android-status "$ANDROID_STATUS" \ --ios-root downloaded-artifacts/ios \ --android-root downloaded-artifacts/android \ --artifact-urls artifact-links.json \ --sha "$GITHUB_SHA" \ --run-url "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}" \ --commit-url "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/commit/${GITHUB_SHA}" \ --slack-upload-response "$SLACK_UPLOAD_RESPONSE" \ > e2e-summary-with-slack-files.json jq --arg channel "$SLACK_CHANNEL_ID" --arg ts "$SLACK_THREAD_TS" \ '.payload + {channel: $channel, ts: $ts, unfurl_links: false, unfurl_media: false}' \ e2e-summary-with-slack-files.json > slack-message-update.json
- name: 🔄 Add screenshots to Slack message if: steps.upload_screenshots.outcome == 'success' uses: slackapi/slack-github-action@dcb1066f776dd043e64d0e8ba94ca15cc7e1875d # v4.0.0 with: method: chat.update token: ${{ secrets.E2E_FAILURES_SLACK_BOT_TOKEN }} payload-file-path: slack-message-update.json errors: true