Skip to content

chore: revert debug workflow to its correct state#581

Merged
cb-ekuersch merged 2 commits intomasterfrom
cb-ekuersch-patch-1
Apr 2, 2026
Merged

chore: revert debug workflow to its correct state#581
cb-ekuersch merged 2 commits intomasterfrom
cb-ekuersch-patch-1

Conversation

@cb-ekuersch
Copy link
Copy Markdown
Contributor

What changed? Why?

The mobile visreg workflow was accidentally left here when merging those changes in.

Root cause (required for bugfixes)

UI changes

iOS Old iOS New
old screenshot new screenshot
Android Old Android New
old screenshot new screenshot
Web Old Web New
old screenshot new screenshot

Testing

How has it been tested?

  • Unit tests
  • Interaction tests
  • Pseudo State tests
  • Manual - Web
  • Manual - Android (Emulator / Device)
  • Manual - iOS (Emulator / Device)

Testing instructions

Illustrations/Icons Checklist

Required if this PR changes files under packages/illustrations/** or packages/icons/**

  • verified visreg changes with Terran (include link to visreg run/approval)
  • all illustration/icons names have been reviewed by Dom and/or Terran

Change management

type=routine
risk=low
impact=sev5

automerge=false

@cb-heimdall
Copy link
Copy Markdown
Collaborator

cb-heimdall commented Apr 2, 2026

✅ Heimdall Review Status

Requirement Status More Info
Reviews 1/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 1
Global minimum 0
Max 1
1
1 if commit is unverified 0
Sum 1
CODEOWNERS ✅ See below

CODEOWNERS

Code Owner Status Calculation
ui-systems-eng-team 1/1
Denominator calculation
Additional CODEOWNERS Requirement
Show calculation
Sum 0
0
From CODEOWNERS 1
Sum 1

Comment on lines +25 to +32
test-local:
runs-on: [small, default-config]
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
with:
egress-policy: audit
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: 1
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}

- uses: ./.github/actions/setup

- name: Set Percy branch
run: |
BRANCH_INPUT="${{ inputs.branch }}"
if [[ -n "$BRANCH_INPUT" ]]; then
echo "PERCY_BRANCH=$BRANCH_INPUT" >> "$GITHUB_ENV"
elif [[ "${{ github.event_name }}" == "pull_request" ]]; then
echo "PERCY_BRANCH=${{ github.head_ref }}" >> "$GITHUB_ENV"
else
echo "PERCY_BRANCH=${{ github.ref_name }}" >> "$GITHUB_ENV"
fi

- name: Install Maestro
run: node packages/mobile-visreg/src/setup.mjs

- name: Add Maestro to PATH
run: echo "$HOME/.maestro/bin" >> $GITHUB_PATH

- name: Prepare iOS app (extract prebuild + patch JS bundle)
run: yarn nx run mobile-app:patch-bundle-ios

- name: Boot iOS simulator
run: |
xcrun simctl boot "iPhone 16" || true
xcrun simctl bootstatus booted

- name: Install app on simulator
run: xcrun simctl install booted apps/mobile-app/prebuilds/ios-release-hermes.app

- name: Capture screenshots
run: yarn nx run mobile-visreg:ios

- name: Upload to Percy
id: percy-upload
if: always()
run: |
OUTPUT=$(yarn nx run mobile-visreg:upload 2>&1)
EXIT_CODE=$?
echo "$OUTPUT"
PERCY_URL=$(echo "$OUTPUT" | grep -oE 'https://percy\.io[^[:space:]]+' | head -1)
echo "percy_url=$PERCY_URL" >> "$GITHUB_OUTPUT"
exit $EXIT_CODE
env:
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN_MOBILE }}
PERCY_BRANCH: ${{ env.PERCY_BRANCH }}
PERCY_PARALLEL_NONCE: ${{ github.run_id }}
PERCY_PARALLEL_TOTAL: 1

# android:
# name: Visreg Android
# runs-on: ubuntu-latest
# environment: production
# if: >
# github.event_name == 'push' ||
# github.event_name == 'workflow_dispatch' ||
# contains(github.event.pull_request.labels.*.name, 'visreg-mobile')
# steps:
# - name: Harden the runner (Audit all outbound calls)
# uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
# with:
# egress-policy: audit
# - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
# with:
# fetch-depth: 1
# ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}

# - uses: ./.github/actions/setup

# - name: Set Percy branch
# run: |
# BRANCH_INPUT="${{ inputs.branch }}"
# if [[ -n "$BRANCH_INPUT" ]]; then
# echo "PERCY_BRANCH=$BRANCH_INPUT" >> "$GITHUB_ENV"
# elif [[ "${{ github.event_name }}" == "pull_request" ]]; then
# echo "PERCY_BRANCH=${{ github.head_ref }}" >> "$GITHUB_ENV"
# else
# echo "PERCY_BRANCH=${{ github.ref_name }}" >> "$GITHUB_ENV"
# fi

# - name: Install Maestro
# run: node packages/mobile-visreg/src/setup.mjs

# - name: Add Maestro to PATH
# run: echo "$HOME/.maestro/bin" >> $GITHUB_PATH

# - name: Prepare Android app (extract prebuild + patch JS bundle)
# run: yarn nx run mobile-app:patch-bundle-android

# # Enable KVM hardware acceleration for the Android emulator.
# # Without this, the emulator runs in software emulation mode, which takes 6+ minutes to boot
# # and is significantly more flaky. Ubuntu GHA runners support KVM but it must be explicitly
# # unlocked via udev rules before use.
# # Ref: https://github.com/marketplace/actions/android-emulator-runner
# - name: Enable KVM
# run: |
# echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
# sudo udevadm control --reload-rules
# sudo udevadm trigger --name-match=kvm

# - name: Start Android emulator + run visreg
# uses: reactivecircus/android-emulator-runner@v2
# with:
# api-level: 30
# arch: x86_64
# profile: pixel_7_pro
# avd-name: cds_detox
# # -no-window -gpu swiftshader_indirect: headless software rendering (no display available in CI)
# # -no-boot-anim -noaudio -camera-back none: disable unused subsystems to speed up boot
# # -no-snapshot: disable snapshot load and save entirely (clean state every run)
# emulator-options: -no-snapshot -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
# disable-animations: true
# script: |
# # Enable Demo Mode to freeze status bar (avoids false Percy diffs)
# adb shell settings put global sysui_demo_allowed 1
# adb shell am broadcast -a com.android.systemui.demo -e command enter
# adb shell am broadcast -a com.android.systemui.demo -e command clock --es hhmm 1200
# adb shell am broadcast -a com.android.systemui.demo -e command battery --es level 100 --es plugged false
# adb shell am broadcast -a com.android.systemui.demo -e command network --es mobile show --es level 4 --es wifi show

# # sys.boot_completed=1 fires before all services are ready; wait for
# # the package manager specifically before attempting install.
# while ! adb shell pm list packages > /dev/null 2>&1; do echo "Waiting for package manager..."; sleep 1; done

# adb install -r apps/mobile-app/prebuilds/android-release-hermes/binary.apk

# # Copy Maestro debug artifacts after the run so they can be uploaded after the emulator shuts down
# yarn nx run mobile-visreg:android; cp -r ~/.maestro/tests /tmp/maestro-debug || true

# - name: Upload Maestro debug artifacts
# if: always()
# uses: actions/upload-artifact@v4
# with:
# name: maestro-debug-android
# path: /tmp/maestro-debug/
# if-no-files-found: ignore

# - name: Upload to Percy
# if: always()
# run: yarn nx run mobile-visreg:visreg-upload
# env:
# PERCY_TOKEN: ${{ secrets.PERCY_TOKEN_MOBILE }}
# PERCY_BRANCH: ${{ env.PERCY_BRANCH }}
# PERCY_PARALLEL_NONCE: ${{ github.run_id }}
# PERCY_PARALLEL_TOTAL: 2

# comment-pr:
# name: Comment Percy Link
# needs: [ios, android]
# if: always() && github.event_name == 'pull_request'
# runs-on: ubuntu-latest
# steps:
# - name: Post Percy link on PR
# env:
# GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# PERCY_URL: ${{ needs.ios.outputs.percy_url }}
# run: |
# BODY="${PERCY_URL:-Percy build URL unavailable}"
- uses: actions/checkout@v4

# gh pr comment ${{ github.event.pull_request.number }} \
# --repo ${{ github.repository }} \
# --body "$BODY" \
# --edit-last 2>/dev/null || \
# gh pr comment ${{ github.event.pull_request.number }} \
# --repo ${{ github.repository }} \
# --body "$BODY"
# Test the published action
# - name: New CDS Action
# uses: [fill this in on new branch]
hcopp
hcopp previously approved these changes Apr 2, 2026
@cb-heimdall
Copy link
Copy Markdown
Collaborator

Review Error for hcopp @ 2026-04-02 17:30:54 UTC
User failed mfa authentication, either user does not exist or public email is not set on your github profile. \ see go/mfa-help

@cb-ekuersch cb-ekuersch merged commit 9a32573 into master Apr 2, 2026
26 checks passed
@cb-ekuersch cb-ekuersch deleted the cb-ekuersch-patch-1 branch April 2, 2026 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants