Skip to content

Fix Appium iOS startup on Xcode 27 - #320

Merged
piotr-iohk merged 1 commit into
mainfrom
codex/xcode-27-appium
Nov 23, 2026
Merged

piotr-iohk merged 1 commit into
mainfrom
codex/xcode-27-appium

Conversation

@piotr-iohk

@piotr-iohk piotr-iohk commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

Why

After macmini1 moved to Xcode 27.2, the pinned XCUITest driver (10.17.0) still tried to open Simulator.app at its old path. Xcode 27 uses Device Hub. The required iOS check on #1371 failed before any test ran. Failed iOS job

Change

Pin the optional appium-xcuitest-driver dependency to 12.20.0 and regenerate the lockfile. The new driver resolves Device Hub on Xcode 27. The lockfile resolves Appium 3.0.0 and UiAutomator2 5.0.0 alongside the upgraded iOS driver.

Validation

  • A temporary job cold-started the iPhone 17 on iOS 27.2 on macmini1 with Appium 3.0.0 and XCUITest 12.20.0, then opened a Settings session. The driver logged a permission warning when writing Device Hub preferences. Mac mini smoke test
  • Ran @send_1 locally with the #1371 Bitkit build on Xcode 27.2 and iPhone 17 on iOS 27.2 (24B8117). It passed, including both keyboard-dismissal assertions. Two earlier attempts timed out during first-run WebDriverAgent compilation. After prebuilding WebDriverAgent, the successful run took 6m 1s end to end.
  • A clean npm ci, Linux x64 lockfile resolution in dry-run mode, TypeScript checking, and linting the test and WDIO files passed. Repository-wide lint still reports errors in the Docker LNURL server files.

The same @send_1 test passed on macmini1 with this PR's exact lockfile, a fresh iPhone 17 on iOS 27.2, and the #1371 Bitkit build. Both keyboard checks passed. Compared with the Nov 20 green run, worker start to first camera permission was 79s vs 42s, and the Send test body was 122s vs 114s. The focused run took 4m 33s including simulator boot and teardown. Mac mini run · Nov 20 baseline

The focused iOS workflow change is bitkit-ios#1398. Its normal PR gate and the existing hosted staging and migration workflows are running with this branch.

@piotr-iohk
piotr-iohk requested review from a team, ovitrif and pwltr and removed request for a team November 23, 2026 15:47

@talosmachina talosmachina left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No findings. Pins the optional appium-xcuitest-driver to 12.20.0 (from ^10.14.4, resolved 10.17.0) and regenerates the lockfile so iOS sessions start on Xcode 27. Reviewed 07fd6e7, full tier (dependency manifest), static only.

What I checked, and 4 candidates I ruled out

Build: skipped, talos-pr-run could not read the author's permission on this repo and fails closed, so nothing from the branch was installed or run here.
Lockfile diffed as data (base main vs head, lockfileVersion 3 both): 110 version changes, 163 entries removed, 23 added. Every version change outside four optional @img/sharp-* / @emnapi/runtime entries sits under node_modules/appium-xcuitest-driver/. Top-level appium stays 3.0.0 and appium-uiautomator2-driver stays 5.0.0, so the Android path resolves the same packages. Every entry resolves from registry.npmjs.org with an integrity hash; no new required (non-optional, non-dev) package.
Engines: 12.20.0 declares node ^20.19.0 || ^22.12.0 || >=24.0.0, the same floor as 10.17.0, and the only workflow here that runs npm ci uses Node 22.
CI: no checks report on this branch.

Ruled out

  • Peer mismatch: 12.20.0 peers appium ^3.0.0-rc.2, satisfied by the pinned appium 3.0.0; the nested copy of appium the old driver carried is gone, so one Appium server loads both drivers.
  • New install script: @appium/coresim 1.13.1 is the only added package with one; its scripts/install.mjs exits 0 on any non-darwin platform and on macOS runs node-gyp-build, which loads the shipped darwin-arm64 prebuild (an Intel Mac would compile it). Linux installs compile nothing.
  • Duplicate root entry: appium-xcuitest-driver appearing under both dependencies and optionalDependencies of the lockfile root is how npm records an optional dependency, not a second declaration in package.json.
  • dev to devOptional flips: they follow from the optional driver now sharing Appium's tree with the dev-only appium; they change nothing for a plain npm ci.

Not verified here: that the 10 to 12 major jump keeps every capability wdio.conf.ts passes (wdaStartupRetries, processArguments, settings.animationCoolOffTimeout). The PR body reports a passing @send_1 run on Xcode 27.2, which exercises that config end to end; the full iOS gate on the app repo is the check that covers the rest.

Merge confidence: 4/5, a dependency manifest change with no CI on this repo and no build run here; the iOS gate on the app repo is the test that covers it.

@pwltr pwltr left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 07fd6e7. XCUITest 12.20.0 accepts the pinned Appium 3.0.0 server, and the reported Mac mini run covers startup and the focused Send flow on Xcode 27.2.

Low candidate: The bundled sharp entry at package-lock.json:11607 gives semver a nearer lockfile entry with no version, shadowing the driver's compatible 7.8.5. If the Ubuntu runner's npm replaces that entry while building the install tree, npm ci can reject the lockfile before migration wallet setup. The reported clean install and Linux dry run make this a runner-specific question. A clean install on the migration runner with its npm version recorded would settle it.

Review details

Quick review
Model: Claude Opus 5.5
Reasoning effort: high

General review
Model: GPT-6.2 Sol
Reasoning effort: high

Combined review
Model: GPT-6.2 Sol
Reasoning effort: high

@ovi-reviewer ovi-reviewer Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: ✅ Approve

Review: full diff, 2 files.

Findings: None.

QA for 07fd6e7:

Install the E2E lockfile on Linux ✅ A clean Linux ARM64 install loaded UiAutomator2 5.0.0 and Appium 3.0.0 reported ready.

The Ubuntu migration job also completed npm ci at this commit with Node 22.23.5 and npm 10.9.9, then passed the Android wallet setup cases. Ubuntu migration job

Start a fresh Bitkit session on Xcode 27.0 ✅ WebDriverAgent started on a fresh iOS 27.0 simulator and Appium advanced Bitkit from Continue to Get Started.

The startup log confirms that the driver resolved Device Hub and built WebDriverAgent before creating the headless session.

ios-startup-2x.2x.mp4

The exact-lockfile Send run on Xcode 27.2 already covered the Send flow and both keyboard-dismissal assertions. Xcode 27.2 Send run

Broader iOS coverage runs in the companion workflows. PR gate, staging, migration


Reviewed by gpt-6.2-sol-high

@piotr-iohk
piotr-iohk merged commit 17e0c7b into main Nov 23, 2026
1 check passed
@piotr-iohk
piotr-iohk deleted the codex/xcode-27-appium branch November 23, 2026 17:03
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.

3 participants