Skip to content

test(ios): retry transient simulator input failures - #2883

Open
quanruzhuoxiu wants to merge 3 commits into
mainfrom
fix/ios-simulator-smoke-input-race
Open

test(ios): retry transient simulator input failures#2883
quanruzhuoxiu wants to merge 3 commits into
mainfrom
fix/ios-simulator-smoke-input-race

Conversation

@quanruzhuoxiu

@quanruzhuoxiu quanruzhuoxiu commented Jul 28, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • reproduce the current iOS simulator smoke input race with an immutable workflow_dispatch run pinned to the original empty repro commit
  • retry only the deterministic Safari input step when WDA source shows the target field did not receive the expected value
  • keep the first attempt in typeOnly mode, retry observed value mismatches with idempotent replace mode, and submit only after the expected value is observed
  • write each input attempt source XML into diagnostics and update report assertions for the actual number of targeted input attempts
  • add unit coverage for first-attempt success, value-mismatch retry, immediate action/source failures, retry exhaustion, missing field handling, and invalid retry configuration

Validation

  • pnpm run lint
  • pnpm exec nx test @midscene/ios --skip-nx-cache
  • AI_TEST_TYPE=iOS MIDSCENE_IOS_SIMULATOR_SMOKE=0 pnpm exec nx test @midscene/ios --skip-nx-cache -- tests/ai/ios-simulator-smoke.test.ts --retry=0
  • pnpm exec nx test @midscene/ios --skip-nx-cache -- tests/unit-test/ios-simulator-input-retry.test.ts --retry=0

Remote validation

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 28, 2026

Copy link
Copy Markdown

Deploying midscene with  Cloudflare Pages  Cloudflare Pages

Latest commit: 2edf354
Status: ✅  Deploy successful!
Preview URL: https://c347dd00.midscene.pages.dev
Branch Preview URL: https://ci-ios-smoke-2883-10.midscene.pages.dev

View logs

@quanruzhuoxiu quanruzhuoxiu changed the title test(ios): reproduce simulator smoke input race test(ios): retry transient simulator input failures Jul 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant