Release notes
What changed in each warden release, from the changesets that shipped it.
Every version of @delacour/warden (and @delacour/warden-e2e, which moves in lock-step). Run warden update to get the latest, see Updating & releasing.
0.9.0
Minor changes
- #154
warden builds import <App.app> --kind simulator-base [--hash <nativeFp>]: file a Release simulator.appbuilt by another CI job as the basewarden e2e/warden repackclone, so a fresh runner repacks its JS in seconds instead of building the native app again. The hash defaults to warden's own fingerprint of the project. The import refuses a device build, an.appwithout a slice for this Mac, another bundle id, a Debug or expo-dev-client build, and an executable that lost its mode bits; an embeddedmain.jsbundleis left out of the cached copy (strippedBundlein--json).--hashis now optional with--kind.warden app fingerprint [platform] --kind dev|simulator|release: print the native fingerprint that kind's build is cached under, plus its cache hash (hashesin--json,<fp>:basefor the simulator base).warden golden key | export <dir> | import <dir>(iOS): carry the golden image between machines through a CI cache.keyprints the golden's name (Xcode build, runtime build, device type and recipe),exportcopies the golden into<dir>/<name>/, andimportregisters each archive that matches this machine throughsimctl create, with no CoreSimulator restart. A stale, broken or missing archive is skipped with the reason and the golden is built on first claim as before.
- #153
- iOS e2e and
warden ui: when the simulator's accessibility bridge stops answering, asnapshotno longer times out after 10 s withE_TIMEOUT. The read moves to the host accessibility reader after 4 s, the next reads go straight there, and the bridge is asked again 20 s later. Seen on GitHub-hostedmacos-26runners (3 vCPU), where every spec faileddid not become visibleand the warm-up loggednot warm: snapshot failed: E_TIMEOUT. - iOS
app.launchwaits up to 10 s (was 3 s) for the helper to follow the new process before the first read; it still returns as soon as it does. Launch spans on a slow host no longer showrebind: "timeout"on every launch. - New
WARDEN_SIMD_BRIDGE_DEADLINE_MS(default 4000,0turns the deadline off) andWARDEN_SIMD_BRIDGE_COOLDOWN_S(default 20,0never skips the bridge) tune it. - The
driver.snapshotspan intrace.jsonlnow carriesbackendandfallbackwhen a read did not come from the bridge, so a CI run shows why.
- iOS e2e and
Patch changes
- #148 Simulated camera on iOS simulators: a video recording stopped before the encoder took its first frame (a short take, or any take on a busy host) no longer fails with "The operation could not be completed"; the recording holds the frame it started on.
- #152
warden app ensure --kind devnow warms the cachewarden devreads: one dev build per native fingerprint, keyed<fingerprint>:dev, shared bywarden dev,warden app ensure(with or without--kind dev),run|batch --app,warden ui openandwarden e2e --dev. Before,warden devmissed a buildapp ensure --kind devhad made and built its own copy.- A dev build cached by an earlier warden under the plain
<fingerprint>key (or found in a legacy cache dir) is reused as that build, and a device it is already installed on is not reinstalled: no rebuild after upgrading. - Applies when the project's own build is the dev build (Debug, default or identical
buildcommand, no variant, nofingerprint.include: "native+js", nokinds.dev.env); other projects keep their kind-less build as before.warden app ensurewith no--kindreportshash: "<fingerprint>:dev"andkind: "dev"in--jsonfor such projects.
0.8.0
Minor changes
- #145
- Simulated camera for iOS simulators and Android emulators: feed a png, jpg, heic, mp4 or mov into the app's real camera for preview, photo capture, video recording and QR / barcode scanning.
warden claim android --camera/warden dev android --camera: an emulator whose back and front cameras are fed from files.device.camera.set(path, { facing, loop }),clear(facing)andstatus()in specs: the path is relative to the spec file, the camera is taken off when the test ends, and the result says whether the feed applies on the app's next launch, its next camera open, or after the emulator rebooted. Missing or unsupported files fail withE_CAMERA_NOT_FOUND/E_CAMERA_MEDIA, an Android emulator without--camerawithE_CAMERA_DEVICE.- Suite
camera: { back?, front? }inwarden.config.ts(a path or{ path, loop }, relative to the config file): fed before each spec's firstapp.open(), and the suite's Android devices are claimed with--camera. warden ui camera set <path> [--facing back|front|both] [--no-loop],camera statusandcamera clear [--facing …]: drive the same camera by hand, undone when the lease is released.
- #133
- A failed device claim now says why with a code and its own exit code:
NO_DEVICE(5, every matching device leased at--max),QUEUE_TIMEOUT(6,--waitran out behind other claims),NO_CAPACITY(7, no room to boot, withcapacityReasonram-budget,cpu-budget,memory-pressureorhost-load),RUNTIME_MISSING(9),HEALTH_FAILED(10) andLEASE_LOST(11);REQUESTER_LIMIT(8) is reserved. Exit 1 stays the generic failure. warden claim,run,batchande2ewith--jsonprint{ok:false, command, error:{code, message, hint}}for these, andwarden ui --claimreturns the same codes in its envelope.- The human error line drops the code and adds a one-line hint naming the fix.
- A failed device claim now says why with a code and its own exit code:
- #149
warden dev restart-metro [--clear] [--udid <udid>] [--json]restarts a runningwarden devsession's Metro on the same leased port from another shell or an agent, keeping the device, leases, installed app and dev client.--clearresets Metro's cache; prints the new Metro URL (--json:{ udid, metroUrl, clear }).- The
warden devdashboard gainsMto restart Metro without clearing its cache (cstill restarts with--clear); a restart requested from the CLI shows in the same row and waits for any running restart, reinstall or simulator restart.
- #142
warden doctor --leases [--fix] [--json]checks the lease registry against the machine: a lease on a device that is gone, a booted warden sim nothing tracks, a stalepending:placeholder, a queue row with a dead pid, a recorded sim missing from disk, an ownership-marker mismatch, plus stale idempotency keys and orphaned reclaim retry state. Exit 0 when clean, 1 when drift remains;--fixdeletes only registry rows and never shuts down, erases or deletes a device.- Every iOS simulator warden creates now carries a
.warden-owned.jsonownership marker with this warden home's instance id. Shutdown on release, health-monitor reboots, reclaimerase/uninstall,warden sims prune,warden sims deleteand the ephemeral-sim sweep inwarden gcleave a sim whose marker names another warden instance alone; sims without a marker behave as before.
- #128
- iOS sims are ephemeral: once a warden sim shuts down (
warden release --shutdown, SessionEnd,warden gc, a passedwarden e2e) it is deleted, and the next claim clones a fresh one from the golden, so oldwarden-<profile>-Nsims no longer pile up. Quarantined (--bad), foreign and physical devices are kept. warden gc(and auto-gc, once per machine for sims an older warden left) deletes every shut-down, unleased warden sim;release --jsonandgc --jsonlist them underdeleted.warden release --bad --shutdownquarantines before the shutdown, so the bad sim is kept forwarden sim unquarantine.warden devkeeps its sim: it is shut down but never deleted, so installs and logins survive between sessions.WARDEN_EPHEMERAL_DEV=1makes it ephemeral too.WARDEN_EPHEMERAL=0(orWARDEN_GOLDEN=0) keeps the persistent pool.
- iOS sims are ephemeral: once a warden sim shuts down (
- #128
warden gc(and auto-gc) prunes stale goldens once a day: iOS golden sims and Android quick-boot snapshots an older Xcode runtime, golden recipe or system image left behind, GBs each. The current golden, an AVD with a running emulator and a profile whose key can't be read are kept, and a golden being built or cloned is skipped, never waited on.gc --jsonlists them undergoldens.WARDEN_GOLDEN_PRUNE=0turns it off;warden golden prunestill prunes by hand.
- #139
warden claim --idempotency-key <key>(orWARDEN_IDEMPOTENCY_KEY) makes a claim safe to repeat: the same owner repeating the key while the leases are alive gets the same lease JSON back instead of a new device. A different request under a live key fails with a usage error; the key is free again once the leases are released. - #137
WARDEN_WARM=1(off by default) keeps a learned warm pool:warden gcboots existing slim, idle warden devices up to the 24 h peak of concurrent leases per platform and profile, queue head's profile first. It acts only at memory pressurenormal, stays inside the capacity budget, and never creates, or touches foreign, golden, quarantined or physical devices.- Warm devices skip the 20 min idle shutdown, and a queued claim evicts them only after every other idle device.
warden capacityshows the warm pool (warm.enabled,warm.rowswith target, actual and peak per platform and profile in--json).- Background gc now runs every interval while
WARDEN_WARM=1.
- #136
- Every device lease now leaves a trail in an append-only event log:
requested,queued,granted(with the wait),released,expired,heartbeat_lost,evicted,quarantined,unquarantinedandshutdown. Each row is written in the same transaction as the change it records. - New
warden events [--since 1h] [--lease <id>] [--owner <owner>] [--follow] [--json]prints the history.--followpolls every second and, with--json, prints one event per line. - New
warden stats [--since 7d] [--json|--csv]reports claims, median and p95 wait, lease durations and peak concurrency per platform and profile. warden gcprunes events older than 7 days;WARDEN_EVENTS_DAYS=<n>changes the retention.
- Every device lease now leaves a trail in an append-only event log:
- #141
warden run,dev,batchande2enow watch the devices they lease: on each 30 s heartbeat a simulator must be Booted insimctland an emulator must answeradb get-statewithdevice. After two bad reads in a row the device is rebooted under the same lease (waits 5 s, 10 s, 20 s before attempts 1-3, one device at a time) andwarden eventslogsdevice_unhealthyanddevice_recovered.- When all three reboots fail the run stops with exit 11
LEASE_LOSTnaming the dead device. - Physical devices and devices warden did not create are never rebooted: they only log
device_unhealthyand warn on stderr, and the run goes on. WARDEN_HEALTH_MONITOR=0turns the monitor off.
- #135
- New opt-in
WARDEN_MAX_PER_OWNER=<n>(or per platform,ios=2,android=1) caps how many separate device claims one owner holds at a time; unset stays unlimited. A claim over the cap waits (shown asrequester-limitinwarden queue) while--waittime remains, then fails with exit 8REQUESTER_LIMIT, naming the owner's oldest lease and itswarden release <leaseId>. warden run,dev,batchande2ecount as one claim however many devices (--count, device legs, extra workers) they take, so the cap never splits a single command.- A malformed
WARDEN_MAX_PER_OWNER(lots,0,ios=) fails the claim with a usage line before anything is leased.
- New opt-in
- #138
- New opt-in
reclaim: erase | uninstall | none(defaultnone) ine2esuites,batchespresets and the top level ofwarden.config.ts, withWARDEN_RECLAIMas the fallback below config: when a run releases its devices, warden cleans them.eraseshuts a simulator down and runssimctl erase;uninstallremoves the user-installed apps. On Android,eraseuninstalls the third-party apps. - A
reclaiminglease holds the device while it is cleaned, so no claim takes it mid-way. Only warden-created simulators and emulators are reclaimed: foreign, golden and physical devices are skipped. - A failed reclaim quarantines the device with a
reclaim:reason andwarden gcretries it after 30 s, then 60 s (capped at 5 min), 3 tries in all. After that it stays quarantined untilwarden sim unquarantine <udid>.
- New opt-in
- #126
- Add
warden ui a11y audit|order|speak|announcements|spoken|focus: audit the screen (--rule,--ignore <rule[:identifier]>,--min-severity error|warning,--no-native,--text-size; exits 1 when an issue is at or above the severity), print the simulated reading order and the phrase for one element, read announcements and live-region changes (--since <cursor>), and read or move real TalkBack focus and speech on Android. - Add
warden ui a11y setflags--screen-reader,--reduce-transparency,--button-shapes,--differentiate-without-color,--on-off-labels,--high-contrast-textand--color-inversion(each also--no-…). A setting the platform has no mechanism for is reportedskipped; only skipped settings fail withE_UNSUPPORTED. - Add
snapshot --a11y(hint, custom actions,a11y-focused,not-important, live region per element),open --a11y,warden e2e --a11y, theWARDEN_A11Y=1env var, and thea11ysuite and top-level config key (rules,ignore,minSeverity, passed to specs asWARDEN_A11Y_AUDIT) that launch iOS apps with the injected accessibility library. - Add
device.a11yAudit(),device.screenReader.*(order,state,next,prev,activate,focused,spoken),device.announcements()andsnapshot({ a11y: true })to@delacour/warden-e2especs, with the matcherstoHaveAccessibleName,toHaveRole,toHaveHint,toAnnounce,toBeA11yFocused,toPassA11yAuditandtoHaveAnnounced. - iOS simulators now apply bold text, reduce motion, reduce transparency, button shapes, differentiate without colour and on/off labels live, and a simulated screen reader that makes
AccessibilityInfo.isScreenReaderEnabled()true. - Android emulators gain high contrast text, colour inversion and real TalkBack mode (
a11y set --screen-reader, needs a Google Play image andwarden-uiad); release puts the accessibility services back exactly as the device had them. With TalkBack on,pressandscrolluse accessibility actions. - Audits also run the platform's own engine: XCUITest
performAccessibilityAuditon iOS simulators and the Accessibility Test Framework on Android emulators. An engine that cannot run is reportedskippedinstead of failing the audit. - Android apps now see reduce motion off by default under warden;
reduceMotion: true(--reduce-motion) turns it on. - Android emulators are unlocked at boot, which fixes
START_CLASS_NOT_FOUNDwhen launching an app on a locked emulator.
- Add
- #134
warden queueandwarden queue --jsonshow areasonfor every waiting claim:behind-earlier,ram-budget,cpu-budget,memory-pressure,host-load,device-limit(every matching device leased at--max) orwaiting-for-device(no free ready physical device). The reason is stored on the queue row and rewritten every poll.- Claims polling for a device now appear in
warden queuewithout a position; they hold no boot slot and never delay other claims. - The "queued" and "waiting for" progress lines end with the reason in brackets.
warden capacityuses the same usage and budget check as claims, and--jsongainsblockedper platform ({ ios, android }: the resource booting one more device would run out of now, ornull, the same answer a claim gets).
Patch changes
- #126
warden e2e --devon Android points the dev client at warden's Metro on everyapp.open(), with the onboarding sheet and dev menu off, instead of launching it on its default url - #126
warden e2e/warden batchno longer fail a passing spec because another spec in the same shard failed or because a skipped spec had no result; only the spec with the failed test (or a spec the process never reached after a crash) fails.
0.7.0
Minor changes
-
- Add
warden ui biometrics [status|enroll|unenroll|match|fail]: simulated Face ID, Touch ID and Android fingerprint on warden-claimed simulators and emulators. Answers{ enrolled, modality }; a physical device or an Androidenroll/unenrollfails withE_UNSUPPORTED. - Add
device.biometrics.status(),enroll(),unenroll(),match()andfail()to@delacour/warden-e2especs (BiometricState,DeviceBiometricstypes). Androidenroll/unenrollthrowACTION_FAILED. - Add the
biometricsconfig key (top level,e2e.<suite>,batches.<preset>; defaultfalse) and the--biometricsflag onclaim,run,batchande2e. Devices get the profile<profile>+bio, with their own pool and golden snapshot. - Android
+biodevices start from a golden snapshot with a fingerprint already enrolled (screen-lock PIN1111);warden golden ensure --platform android --profile <profile>+biobuilds it ahead of the first claim. - iOS
+biosimulators are enrolled on every boot and again when a spec process starts, before the app is installed. - Android
+biogolden snapshots are saved past the lock screen with the screen kept on; a claim returns once adb, the package manager and the unlocked screen answer, unlocking with the PIN if needed, and an emulator that never gets ready is shut down instead of left locked. warden ui reload/eval/logsand the other devtools verbs find a dev client on a+biosimulator (Metro reports the+in its name as a space).
- Add
-
- Device conditions set on a lease (network, location, clock, …) are always undone when the lease is released or garbage-collected.
- Android emulators can be set offline (airplane mode, checked against the device's connectivity state) or shaped to the
edge,3g,4g,lte,wifi,slowandlossynetwork presets. - A per-lease network shaping proxy throttles bandwidth, adds latency, jitter and packet loss, and injects per-host faults (HTTP status, reset, delay, blackhole); it is stopped and its port freed when the lease is released.
- Simulated location: set a point, follow a route of waypoints (speed, interval), replay a GPX file, or run a built-in scenario (
city-run,city-bike,freeway) on iOS simulators and Android emulators. - Flaky networks: flap between online and offline on a schedule (with seeded jitter), or run a timeline of network and location changes; every change is recorded next to the test results.
- iOS simulator apps get network conditions per app: launched with a small injected library that sends their traffic through the lease's shaping proxy, so presets and offline switch live without touching the Mac's network or other simulators. A running app without it fails with
E_NETWORK_RELAUNCHunless the relaunch is opted into. - Spec API:
device.network.set/during/flap/fault/status/reset,device.location.set/route/scenario/clear,device.clock.set/advance/during/resetanddevice.timeline([...]);duringrestores the previous condition even when the callback throws. warden.config.tstakes aconditionskey (top level or pere2esuite) fornetwork,locationandclock; each spec starts from that baseline.- iOS: apps using
NSURLSession.sharedSessionare shaped too, and changing a host fault cuts connections already open to that host. - Mock clock: shift (
offset), set (fixed) or freeze (iOS) the wall clock an app sees; monotonic clocks are untouched. Android emulators set the device time; frozen time is iOS only. - Specs know their lease (
WARDEN_LEASE_ID): network and clock conditions work underwarden e2eon iOS, and every condition a spec sets is recorded, so a crashed spec process is still undone when the lease is released. warden ui networkis now a group:network logshows the request log (the oldwarden ui network [n]still works and points to it), andnetwork set <preset>,network flap,network fault,network status,network resetset conditions on the device.- New
warden ui location set|route|gpx|scenario|clear|statusandwarden ui clock set|advance|status|reset;warden ui statuslists the conditions active on the lease. - Releasing a lease also puts a still-running iOS app launched with network or clock conditions back online and on the real clock.
- More conditions: app permissions (
device.permissions.set,warden ui permission), timezone and locale, text size and contrast (device.a11y), battery level and charging (Android real, iOS status bar only), Android memory warnings and iOS push notifications. Each is undone when the lease is released. - Conditions left behind by a lease that expired or was deleted any other way (including by an older
warden) are undone before the device is claimed again, and bywarden gcfor unleased devices. - On iOS, a network or clock change that cannot tell whether the app is running now fails instead of being staged silently, and another injected app still running on the simulator no longer stands in for the app under test.
device.permissions.set/warden ui permissionon iOS retry asimctl privacycall that hangs on a simulator that just booted.
-
#118 Physical devices: lease, drive and test real Android phones and iPhones/iPads.
Claiming
warden claim --physicalleases a connected phone or tablet;--serial <serial...>(Android) and--udid <udid...>(iOS) name the devices and imply--physical. A plainwarden claimnever takes a physical device, even with--adopt.--physicalis rejected together with--count,--max,--slim,--headless,--runtimeand--adopt;--serial/--udidare rejected on the wrong platform. Leases andwarden claim --jsoncarry aphysicalfield.- A physical device is never booted, created, shut down, erased or slimmed:
warden release --shutdownandwarden gcleave it running, and it costs nothing in host capacity. - An iPhone or iPad is picked only when it is reachable: its tunnel is connected, it is wired, or
devicectl device info lockStateanswers within 5 s (20 s for a phone named with--udidorphysical.ids; probes run in parallel). An answer means reachable even when the phone is locked:warden devicesandwarden doctorshow it as locked. Devices that are listed as available but are offline (an iPad in a drawer) are shown with a reason and never auto-picked. An Android phone that isunauthorizedorofflineis never auto-picked either. - Naming an unusable device with
--udid/--serialfailsdevice_offlinewith the reason and what to do. physical: { allow: [...] }inwarden.config.tsandWARDEN_PHYSICAL_IDS(comma-separated, wins over the config) limit what an id-less--physicalclaim may pick. Naming a device with--udid/--serialstill works for any device. Awarden.configthat cannot be read fails the claim instead of ignoring the list.- An id-less
--physicalclaim with more than one usable phone (ready, reachable, unleased, on the allowlist) no longer picks silently, inwarden claim,warden ui --claim,warden e2e,warden runandwarden batch. In a terminal a picker lists name, model, OS version and transport (cancel =Aborted., exit 1); otherwise, or with--json, it failsambiguous_device(exit 2) witherror.details.candidatesand the hint to pass--udid/--serialor setWARDEN_PHYSICAL_IDS. The choice is made once before any lease, build or job; one candidate is still picked without asking. - A claim of a locked iPhone (
warden claim,run,batch,e2e,ui --claim) no longer stalls: before any lease warden prints<name> is locked: unlock it to continue (waiting up to 2m), pollslockStateevery 10 s with a progress line about every 30 s, and continues once the phone is unlocked. Still locked after 2 minutes, or with--no-wait, it failsdevice_locked(exit 2, hintunlock the phone, then retry;--jsonerror codedevice_locked). No lease is held while waiting. - A claim that polls for a device (a named phone that is offline, a pool that is fully leased) now prints
waiting for …andstill waiting …lines about every 30 s instead of staying silent until--waitruns out.
Android phones
warden uidrives Android phones:--serial <adb serial>(USB,ip:portor wireless-debugging serials) or--claim --physical. It exits 2 withdevice_unauthorized(accept the USB debugging prompt) ordevice_offline; the lease is kept.- A device with qemu properties set (
localhost:5555, Genymotion) is a foreign emulator, never a phone. - warden wakes the screen and dismisses a keyguard with no credential; a PIN, pattern or password lock fails
E_DEVICE_LOCKEDand warden never unlocks it. Rotation, dark mode and animation scales are saved before the first change and restored on close. uninstallandclear datarefuse any package warden did not install (E_REFUSED,physical_protected). Installing an APK checks its ABIs first and failsabi_mismatchwith a hint to use thedevorreleasekind;INSTALL_FAILED_UPDATE_INCOMPATIBLEsays to uninstall the differently-signed copy yourself.test.use({ systemAlerts })anddevice.alertclose the "Save password to Google Password Manager?" sheet with Back for bothacceptanddismiss; warden never presses Never or Continue.
iPhones and iPads
warden claim ios --physicaland--udid <udid>lease paired devices listed bydevicectl; a paired device with Developer Mode on and reachable is ready.warden ui --udid <iPhone udid>(or--claim --physical) starts an on-device XCUITest runner once, thensnapshot,press,fill,type,swipe,screenshot,openand the rest talk to the phone through it.- Single-finger input only:
pinch,rotate,gesture,press shakeandpress backfailE_UNSUPPORTED. On an iPhonescreen appearanceis read-only,screen rotategoes throughdevicectl, and a locked phone exits 2 withdevice_locked. ios: { teamId, runnerBundleId }inwarden.config.tsandWARDEN_IOS_TEAM_IDchoose the Apple team that signs the runner; without them warden uses the keychain'sApple Developmentteam when there is exactly one and failsios_team_ambiguouslisting the teams otherwise.- The runner is built with
xcodebuild build-for-testing -allowProvisioningUpdates, cached per team and Xcode build, and rebuilt for a new phone or when its provisioning profile ends within 24 hours. Failures carry a code and a hint (no_account,no_team,bundle_id_taken,device_locked,developer_mode_off,runner_untrusted,ui_automation_disabled,device_busy,ddi_unavailable,unsupported_os). fillandpresson an iPhone type one character at a time so a React Native field keeps every key, and Backspace, Enter, Tab and Space are typed on the software keyboard (a retry now clears the field).- The resident iPhone runner host records which runner build it serves; when the runner changes (a new warden, an edited runner source) the next
warden ui/warden e2ereplaces the host and printsrunner changed; restarting the iPhone runner host, so no manual restart is needed. A phone leased to another session keeps its host and failsdevice_busy(exit 2) instead.
Tests
warden e2e,warden runandwarden batchtake--physical,--serialand--udid;physical: true | { ids }on an e2e suite or device leg does the same, and the flags win. A physical run never reboots, hides, arranges, slims, golden-clones or shuts down a device, and a suitesetupcommand still runs.WARDEN_UDIDScarries the adb serial / CoreDevice UDID and each job of a phone getsWARDEN_DEVICE_KIND=physical.- A physical e2e run installs the
releasebuild kind by default (an explicit--kindor the suite'sapp.kindwins). On an iPhone,--app(or a suiteapp) builds the app for the device and installs it withdevicectl(see Device builds). - On an iPhone,
warden e2estarts the runner host before the specs and stops when it cannot (a locked phone exits 2 withdevice_lockedand an unlock hint, no spec runs,e2e-report.jsoncarrieserror); a lost runner connection restarts it once and reruns the test, and the phone is never rebooted. test(title, { requires: ["pinch" | "multiTouch"] }, body)skips a spec on a device whose driver lacks the capability (a physical iPhone has neither).
Device builds
warden app ensure ios --udid <iPhone> --kind release|dev,warden e2e --udid <iPhone>and--apponrun/batchbuild the app signed for the phone (xcodebuild -destination generic/platform=iOS -allowProvisioningUpdates, team fromWARDEN_IOS_TEAM_ID,ios.teamIdor the keychain) and install it withdevicectl device install app. The build is cached apart from simulator builds, keyed on the team; with no--kindan iPhone getsrelease.--kind simulatorand--variantare refused on an iPhone.projects[].ios.device.bundleIdentifierinwarden.config.tsreplaces the bundle id on a phone (and is the specs'WARDEN_BUNDLE_IDthere) when your app's id belongs to another Apple team.--install-mode reinstall|cleanon an iPhone uninstalls and reinstalls (app data cannot be wiped in place);--reset-keychainis refused. A phone that the app's provisioning profile does not list is registered automatically: warden builds once with-destination id=<udid>, rebuilds the cached device build and installs again (once per phone);device_not_in_profileis reported only if that does not help.
Output and diagnosis
warden deviceshas aKINDcolumn (virtualorphysical), shows why a physical device is unusable (unauthorized,offline,unpaired,developer mode off) with a hint, and takes--physicalto list only phones and tablets;--jsonrows carrykind,transportandhint.warden lstags physical leases.warden doctoraddsios-team,ios-devices,ios-runnerandandroid-devicesrows, only when a phone or a signing team exists.- The warden skill gains a physical-devices reference.
Patch changes
- #114 An Android app install is no longer skipped on a matching key alone: the emulator's installed
base.apkmust have the cached apk's sha256, so an emulator holding an older build of the same native build (an olderwarden repack, a restored snapshot) gets the current one without--install-mode reinstall. A truly identical build is still kept. - #114
device.alerton iOS answerstrueonly once the alert is gone: a press that lands while the sheet is still animating in (LocalAuthentication's "Face Not Recognized") is pressed again, and an alert that survives three presses throwsACTION_FAILEDinstead of reporting it answered. - #115
- iOS
fill,typeandwarden ui fill/warden ui typeno longer drop or reorder the first letters of the text in a controlled React Native input ("Hllo","Hllo, World 123!e"): the helper now waits 60 ms between the first key and the second, while the field re-renders on its first change WARDEN_SIMD_LEAD_MSsets that pause (0 turns it off)
- iOS
- #119
- Two
warden dev(or--app) runs on one checkout no longer both build the app: one local build runs per checkout and platform, the other waits (waiting for the app build…), then installs that build. A run that read its fingerprint while the other build was prebuilding now waits too, instead of building in the same tree and removing itsios/mid-build. - A waiting run shows the running build's output live in its own log, from the first line.
- A checkout that changed while waiting, with nothing cached for the new fingerprint, fails with
the <platform> checkout changed since it was fingerprinted (A → B); run again.
- Two
- #118
- Biometrics on a physical device are refused up front instead of being silently ignored:
--biometricswith--physical/--serial/--udidfails the claim (claim,run,batch,e2e,ui --claim), and ane2esuite that sets bothphysicalandbiometricsis refused whenwarden.config.tsloads. device.biometricsandwarden ui biometricsfail withE_UNSUPPORTEDon a physical iPhone, as they already did on an Android phone: a real Face ID / Touch ID sensor cannot be enrolled or matched. A session on a phone never tries to enroll.
- Biometrics on a physical device are refused up front instead of being silently ignored:
- #118
- Device conditions and settings (
warden ui network|location|clock|permission|timezone|locale|a11y|battery|memory-warning|push,device.network,device.location,device.clockand the other spec condition APIs) fail withE_UNSUPPORTEDon a physical iPhone or Android phone, before anything reaches the phone: warden never flips a phone's airplane mode, clock, timezone or font scale. - An
e2esuite that sets bothphysicalandconditionsis refused whenwarden.config.tsloads.
- Device conditions and settings (
0.6.0
Minor changes
- #111
fill(locator.fill,warden ui fill) types the text key by key by default again;via: "paste"/--via pastekeeps the one-Cmd+V paste on iOS as an opt-in. On Xcode 27 every simulator's pasteboard is synced with the Mac clipboard in both directions, so a paste put e2e values (emails, passwords) into the Mac clipboard and clipboard managers, and during a parallelwarden e2e/warden batchrun onto the other simulators' pasteboards, where another test could paste them.warden ui recordjournalsvia: "paste"when a fill was pasted and nothing when it was typed; the generated spec passes{ via: "paste" }only. Recordings withvia: "type"still load and generate a plainfill.
- #107
- Every command run with
--jsonnow prints one JSON document on stdout when it fails, too:{"ok":false,"command":"<command>","error":{"code":"usage"|"failed","message":"…"}}.usageis an unknown option or a missing argument,failedthe rest; the exit code and the red line on stderr are unchanged. Commands that already print their own failure document (warden ui,warden perf,warden release) keep it. warden dev logs --jsonfailures add"ok": falseand"command": "dev logs"besideerror.
- Every command run with
Patch changes
- #107
--jsonoutput larger than 64 KB is no longer cut off when the reader is slow to start (an agent,jqbehind another step): warden waits for stdout to flush before it exitswarden dev --jsonprints its{ udid, port, metroUrl, leaseIds, source }document on one line, so the first stdout line is the whole document as documentedwarden run --jsonprints its summary on one line and sends the child's stdout to stderr, so stdout holds only the JSON document
0.5.0
Minor changes
- #56
warden uion Android keeps one resident host per emulator, which holds the adb shell,warden-uiadand animations-off open between calls:snapshot -itakes about 90 ms (was 0.6-6 s) andpressabout 120 ms (was about 570 ms). The host starts on the first call and exits after 10 idle minutes, onwarden ui close, or when the device is released.warden ui statusshows it as the helper.WARDEN_ANDROID_HOST_IDLE_TIMEOUTsets the host's idle exit (2m-style).WARDEN_ANDROID_HOST=0drives the emulator in-process, as before. A host that cannot start falls back to in-process with a note on stderr.warden batchstops a resident host before it prepares its emulators.
- #109
- New
warden repack ios|android [--project <dir>] [--force] [--json]: bundles this worktree's JS into the cached simulator build in seconds (the native base is built once per native fingerprint) and prints the base hash,jsKey, artifact,reused/repacked, bundle time or the fallback reason. Exit 1 when Android images changed and no repack is possible. - Build kinds:
projects[].kinds.<dev|simulator|release>(build,env,jsInputs) andapp: { kind }in an e2e suite.simulatoris a Release build with no JS embedded plus a per-JS repack keyed by content, not branch;releaseembeds the JS;devis the Debug dev client. warden e2enow defaults to the repacked simulator build, repacked once before the devices install: a JS edit no longer rebuilds native. A suite'smetroblock applies only with--dev(or when the suite pinsapp.kind: "dev"/app.variant). Suites withapp.variantbehave as before.warden e2e --devruns the dev client on a Metro warden starts (the suite'smetroblock, or the defaults);--kind dev|simulator|releasepicks the build. They can't be combined with each other or with--variant.warden app ensure,run,batch(--app) andwarden ui opentake--kind;warden ui open --kind simulator|releaseinstalls that build, relaunches when it changed and launches without Metro. Defaults are unchanged without the flag.- A project's
fingerprint.include: "native+js"now warns once on stderr when a run asks for--kind devorsimulator, which key on the native fingerprint. warden builds lsshows each build's kind, base, jsKey, worktree, branch, size and age;--jsoncarries them.- The claim spinner of
warden e2e,batchandrun --appnow says what the app is really doing (building the ios app (fingerprint …), fetching the EAS build, repacking JS, waiting for another device's build) and only says installing once an install actually starts. - Android repacks sign with the project's
android/app/debug.keystorewhen present.
- New
- #103
warden devnow runs only what the agent loop needs (dev build, Metro, simulator, app): the perf HUD sampler and the CDP devtools broker are off by default.--hudand--devtoolsstart them with the session;--no-hudis still accepted.- New
warden dev enable <hud|perf|devtools|all>,warden dev disable …andwarden dev status [--udid] [--json]turn those extras on and off in a runningwarden devfrom another shell. - The dashboard's
hkey now starts and stops the HUD sampler instead of only hiding the box. - The mouse wheel no longer moves the task selection in the
warden devdashboard. warden uidevtools verbs on a session without a broker hintwarden dev enable devtools.
- #105
warden e2e: a passed gate now shuts down the sims / emulators warden created (and closes their windows) locally too, not only underCI. Set the suite'sshutdown: "idle"to keep them booted for the next run, or pass--no-shutdown.
Patch changes
- #102
warden e2especs on a dev client (WARDEN_METRO_URL) run with React Native's LogBox off: no warning/error toasts and no error inspector cover the app or take taps, fatals included, after every relaunch and JS reload too. Logs still reachconsole.jsonland Metro's terminal. - #110
warden e2ebundles asimulator/releaserun's JS with the suite'smetro.env, soEXPO_PUBLIC_*values such as a fake backend URL reach the repacked build (and its cache key) instead of.env*or the shell's values
0.4.0
Minor changes
- #94
warden builds rm <hash…>(aliasremove) removes cached builds by hash or a unique prefix (at least 6 characters), with their aliases, and forgets the install records at those hashes so the nextwarden dev/warden app ensurereinstalls on those devices.--platform,--dry-run,--yesand--json({ dryRun, removed, forgotInstalls }) are supported. It asks first in a terminal, and refuses a prefix that matches several builds or a build being fetched or built right now. - #89
warden dev: declining thewarden.config.tsoffer for an app read throughexpo confignow writes the config to the repo's overlay under~/.warden/projects/<repo>/instead of skipping it, so later starts (from any worktree or branch of the same repo) skip theexpo configcall without a file in the checkout. A monorepo app getsrootset to its path from the checkout. Awarden.config.tsin the repo always wins over the overlay one. - #88
warden devdraws a dashboard on an interactive terminal: task rows on the left (claim device, show simulator, dev build, metro, dev client, session), the selected row's live output on the right, and Metro's own terminal in the metro row.--no-tuiorWARDEN_TUI=0keeps the plain output;--json, pipes and CI are always plain.- The dashboard has two modes. List mode takes warden's keys;
Enterorion the metro row sends every key to Expo (a,i,w,j,r,m,o,?) untilEsc,Esc Escsends a literal Esc, andShift+PgUp/Shift+PgDnscroll Metro's history.?lists the keys. - Action keys in list mode:
rreload,dshow the simulator,oopen the dev client,sscreenshot,Rreinstall the dev build,xrestart the simulator (iOS),crestart Metro with--clear,lstream device logs,htoggle the HUD,qquit and release. - The perf keys drive
warden perfsessions from the dashboard:pstarts and stops a session,Precords every capture,masks for a mark label,freads frames (Android) andgshows the report. One session records per device, andRandxare refused while it does. - A perf HUD at the top right (terminals 100 columns or wider) shows CPU with a short history, memory (RSS on iOS, PSS on Android), fps and jank (Android), Metro's last bundle time and the recording clock.
--no-hudturns it off and--hud-interval <duration>sets the sampling interval (default1s, minimum200ms). - Each dashboard session writes
warden.log,metro.logandshots/under$WARDEN_HOME/dev/<leaseId>/;warden gcremoves a session directory once its lease is gone and its files are 24 hours old. perf metrics --watchon iOS costs ~1% of a core instead of ~16%: the app's pid is resolved once and each sample is one pid-scopedps.
- #91
warden devholds one devtools connection to the app for the whole session (the dashboard'sdevtoolsrow). It captures console lines, uncaught exceptions andfetchcalls from launch, andwarden uidevtools verbs read from it instead of opening their own connection. Without a dev session they connect directly as before.warden dev logsreads Metro's output, classified asbundle_start,bundle_done,bundle_failed,hmr,error,warnandinfo, with file, line and code frame for bundle and transform errors. It takes--since,--tail,--grep,--kind,--followand--json.- New
warden ui exceptions,warden ui routeandwarden ui devtools status|resume.warden ui logsandwarden ui networkgain--since,--level,--grep,--statusand--limit. - Exception and console stacks are symbolicated through Metro to source file and line, with Metro's code frame. Errors React Native reports through its exception handler count as exceptions.
warden ui logpoint add <file:line[:col]> '<expression>'logs a value every time a source line runs, without pausing the app or editing code.--hits <n>removes it after n hits. It comes withlogpoint list|rm|clear|hits. Logpoints are set again after a reload and end with the session. They need the Fusebox debugger.warden perf jsrecords through the dev session's connection whenwarden devruns. Other perf captures hand the connection back when they finish.warden perf jshotspots now map to source on React Native apps, which load their bundle asindex.bundle//&….- When Chrome DevTools takes the app on a Metro that allows one debugger, the session's connection waits instead of taking it back.
warden ui devtools resumereattaches. warden mcpis an MCP server on stdio. Its tools aredev_sessions,metro_logs,app_console,app_exceptions,app_network,app_eval,app_tree,app_route,app_reload,logpoint_add|hits|list|remove,profile_start|stop|statusanddevtools_status|resume.
- #88
warden dev(and every command that finds the project) works from a monorepo root without awarden.config.ts: when nothing is found upwards it looks below, in the package.jsonworkspaces(elseapps/*andpackages/*). One app there is used and named; with several,warden devasks which one, and a pipe gets the list and--project <dir>.warden devruns bare React Native apps. An app whose package.json depends onreact-nativebut notexpogets its bundle ids fromios/*.xcodeprojandandroid/app/build.gradle, Metro asreact-native starton the leased port,react-native build-ios/build-androidas the default local build, and is relaunched against Metro (-RCT_jsLocationon iOS, port 8081 reversed on Android). Noexpo-dev-clientis asked for.crestarts Metro with--reset-cache.- New
projects[].framework("expo"|"react-native") inwarden.config.tsoverrides the guess from package.json.
- #88
warden devresolves an app whose config is code (app.config.ts/.js/.mjs/.cjs) without a bundle id inapp.json: it runsexpo config --json --type publicin the app directory once and takes the bundle id, slug and scheme from the result, instead of stopping with "app.config.ts is dynamic".--bundle-idstill overrides it and awarden.config.tsskips the call. The same applies to every command that finds the project this way (warden app,warden e2e,warden run).warden devchecks the request and the app before it leases a device or opens the dashboard, and a failure there is one line with the fix on the terminal. With a person at the terminal each missing piece is offered: a package the dev-client run needs (expo-dev-client) is added and installed through the checkout's package manager (yarn/pnpm/bunx/npxexpo install, from the nearest lockfile), and an app read throughexpo configcan get awarden.config.tswith the resolved ids so later starts skip the call (run through the checkout's prettier when it has one). Without a terminal (--json, a pipe) the blocking issues are the error, each with its command.- The dashboard no longer swallows a failure: when the session never comes up, or Metro dies, warden's lines are printed to the terminal after the dashboard has closed, with the session log directory.
warden initnames the install command for the checkout's package manager instead of alwaysbunx expo install.
- #97
warden e2eandwarden ui record stopno longer need bun installed: warden runs the specs with the bun built into its own binary.WARDEN_BUNstill picks a different bun. - #85
- On iOS,
fillpastes the text with one Cmd+V instead of typing every character, about 400 ms whatever its length. Secure fields are pasted too. locator.fill(text, { via: "paste" | "type" })andwarden ui fill --via paste|typechoose how the text goes in;pasteis the default andtypekeeps the old key-by-key typing. Android always types.- A paste that cannot be confirmed on the simulator pasteboard is typed in the same attempt, and the retry after a failed read-back always types, so a field that mangles a paste (a mask, a
maxLength) still passes. warden ui recordwritesvia: "type"on a fill step that was typed, and the generated spec passes{ via: "type" }; existing recordings are unchanged.
- On iOS,
- #82
- Every iOS simulator warden creates boots already slim by default.
--slim/--no-slimonclaim,run,dev,batchande2e, configslim(top-level,e2e.<suite>.slim,batches.<name>.slim) astrue | false | { except, keep }, andWARDEN_SLIM=0choose per run, per suite or per machine. - The slim overrides are written to the simulator before its first boot, so clones come up slim with no per-daemon spawns. Once the sim is ready they are read back, and any drift is fixed live.
warden sim slim --except <categories>and--keep <labels>leave whole categories or singlecom.apple.*labels running.warden sim profileslists the categories.warden sim measure [udid|--booted]prints a booted simulator's real memory (summedphys_footprint) and its heaviest processes.warden devices --memadds the figure to the device list.warden capacitycounts a slim simulator at 1792 MB and a stock one at 4096 MB (measured, up from 2048), so admission matches what simulators really use.cost.ios.memMbandcost.ios.slimMemMboverride them.gamedandnanotimekitcompaniondare no longer disabled, and are re-enabled on a simulator an older warden already slimmed.- A plain
warden claimno longer restores a slimmed simulator.warden sim slim --restoredoes.
- Every iOS simulator warden creates boots already slim by default.
Patch changes
- #90
warden claim,warden runandwarden devsay what a claim is doing while it creates or boots a device (creating …,… booting,… waiting until it is ready), sowarden dev's claim row is no longer blank during a slow boot. A warm booted device is still claimed silently. - #99 Every simulator warden shuts down now has its viewer window closed, not only the one
warden devstops on a clean exit:warden release --shutdown, SessionEnd,warden batch,warden gc(stale leases and idle sims) and the capacity gate's idle shutdown. On Xcode 27 this stops Device Hub windows offering "Start" from piling up after awarden devsession whose terminal was closed. - #90
warden dev's dashboard streams the local build's own output (expo run:ios, xcodebuild, Gradle) into the dev build row while it runs, instead of showing nothing until the build ends. TheRreinstall action streams it into its row too. Plain output (--no-tui,--json, pipes, agents) is unchanged. - #94
warden dev,warden app ensureandwarden run --appno longer cache a dev build made from a stale git-ignoredios//android/dir. When the native fingerprint has changed since that dir was prebuilt (a new native dependency such asexpo-application), or warden does not know which fingerprint it was prebuilt for, the local build removes it first soexpo prebuildandpod installrun again. Before, the build skipped both and linked none of the new native modules, so the dev client crashed withCannot find native module '<X>'. A committed native dir, and a custombuildcommand that does not runexpo prebuild/expo run:*, are left as they are. - #93
warden claim/warden devno longer queue forever on macOS when the kernel reports memory pressurewarnwhile plenty of memory is free: a kernelwarnnow holds the boot queue only whenmemory_pressurealso shows under 25% free (criticalstill always holds).warden capacityshows the same reading.warden dev's dashboard shows the claim's progress under the claim row (queued [#1](https://github.com/delacournz/warden/issues/1) of 1 (high) — memory pressure warnand similar), instead of sitting on "preparing the ios dev build" with no output.
- #88
warden devboots a held simulator that is shut down (--udid,--lease, or the device lease an earlier session in the same shell left behind) and waits for it before installing, instead of opening Device Hub on a stopped sim and failing with "Unable to lookup in current state: Shutdown". It only boots a device under the session's own lease; a shut-down device that is not yours is an error naming it. - #98
warden devon iOS opens the Expo dev client without the dev menu's first-run onboarding sheet or the dev menu covering the app at launch. The dev menu stays reachable by shake, ⌃D or the floating button.- The warden skill says
warden dev iosopens without the sheet, and thatwarden ui open --relaunchcan still show it.
- #88
warden devshows the simulator it leased: once the device is held it brings the sim's window to the front, launching Device Hub (Xcode 27) or Simulator.app (Xcode ≤ 26) when no viewer is running, instead of leaving the window behind other apps or never opening one.--headlessskips it; a viewer that can't be opened is a warning, not a failure.warden devshuts the simulator it booted down when it ends (Metro exits, Ctrl-C, a kill), and closes its Device Hub / Simulator.app window, instead of leaving it running untilwarden gcwith a window behind. A sim that was already booted when leased, or one given with--udid/--lease, is left on.--no-shutdownkeeps dev's own sim booted.warden devandwarden runtreat the terminal going away (SIGHUP) like Ctrl-C: the child is stopped and the leases released.
- #81
- A
settleno longer counts as input for the stable-frame rule: an action right afterapp.open()or adevice.settle()that reported quiet trusts its one look instead of taking a second snapshot. - On iOS, an action whose look followed a tap or a key within 300 ms confirms that its element has stopped moving with one hit-test instead of a second whole-screen snapshot (not with
systemAlertsset, where the full look is what finds an alert).
- A
- #85
- iOS typing is about 2.6x faster: the default key pacing drops to 5 ms after a key, 20 ms hold and 50 ms before a repeated key, down from 30, 40 and 300 (about 38 ms per character instead of 99 on a local simulator).
WARDEN_SIMD_PACE_MS,WARDEN_SIMD_HOLD_MSandWARDEN_SIMD_REPEAT_GAP_MSand thepaceMs,holdMsandrepeatGapMsrequest fields still override the defaults.- The typing delays no longer go through the simulator library's timers, so a loaded host (a CI VM) stops stretching them into several times the requested pause.
- #83
- iOS
app.launch,app.terminateandapp.openUrl(every specapp.open,device.openLinkandwarden ui open) run inside the residentwarden-simdhelper instead of spawningxcrun simctlfor each call: the helper already holds CoreSimulator, which everysimctlprocess loaded again (about 0.13 CPU-s on the host per launch, roughly 40 % of warden's host CPU per bench rep). Launch arguments and environment reach the app as before,relaunch: falsekeeps a running instance, terminating an app that is not running is still a success, and thedriver.app.launchspan now carriesvia(simdorsimctl) and the app'spid. - A helper built before these ops answers once and the driver falls back to
simctlfor the rest of the session ([ios] this warden-simd predates the \launch` op …in the log; restart it withwarden ui close --udidor rebuild withbun run --cwd packages/e2e native:build). Install, uninstall,isRunningandclearDatastay onsimctl`.
- iOS
- #96 The warden agent skill (
warden skill install,warden install) matches the current CLI:warden builds,warden dev logs,warden mcptools,warden perfsubcommands,warden uidevtools verbs and the flags added since 0.3 are documented, and stale defaults and error codes are corrected. - #100
warden ui open <bundleId> --metro <url>on iOS launches the Expo dev client the waywarden devdoes: no dev menu onboarding sheet and no dev menu at launch. Your--argsfollow those flags.
0.3.1
Patch changes
- #74
bun run release <version>asks npm about every package before writing the version or building: a version already published for all of them is reported and skipped without touching the tree, and packages that already have it are listed as skipped up front.
0.3.0
Minor changes
- #72
warden ui record start|note|undo|use|status|cancel|stop(#63): everywarden uiaction and query is journalled under$WARDEN_HOME/ui/<udid>/, andstopwrites a typed@delacour/warden-e2espec (or an exported helper) directly, then runs it once on the leased device (--no-verifyskips). The journal is kept until a passingstopor acancel, so you canundo, fix andstopagain.record useruns an exported helper on the device, then records an import and a call to it.- Generated specs use durable selectors only (testID > role+label > text);
snapshot -imarks elements without one as[no-id]. Lints:coords_target,text_only_selector,ambiguous_selector,unverified_navigation,empty_recording. - Secrets typed through
WARDEN_UI_SECRET_<NAME>never land in the spec; testIDs are merged into an ids module;wait/is/getbecome auto-waiting expects;app.open({ wait: "quiet" }). - Recordings reuse the suite's shared
test.useoptions and emitlaunch: "none"when the recording or its helper opens the app itself. stopprints thespecs.<id>entries forwarden.config.tsfrom the routes seen on a dev client (helper routes merged); it never edits the config.
0.2.0
Minor changes
- #58
warden-simdlinks idb v1.7.7, whose typed bridge answers replace the generic frame decode: the helper's CPU per accessibility read drops by about three quarters (host 9.12 → 3.79 CPU-seconds per bench rep on EASmacos-largewith the equivalent patch), memory unchanged. A guest that stops answering now surfaces asE_TIMEOUTwith the seconds allowed.WARDEN_SIMD_TIMEOUT(a duration, e.g.60s) sets the per-request timeout of the helper clientwarden uiand the e2e runner connect with; the default stays 10 s.warden e2e/warden devhonour the coreeas: falseopt-out and never call eas-cli when it is set.- Golden settle probe works without a GUI launchd session (hosted workers, ssh).
Patch changes
- #69 iOS
typeTextwith characters the HID keyboard cannot type (café, emoji, CJK) pastes the right text again on Xcode 27.1: the simulator pasteboard is written throughdevicectl device pasteboard copy(falling back tosimctl pbcopy) and confirmed withpbpastebefore the paste keystroke.simctl pbcopyexits 0 there without changing the pasteboard, so the field used to receive whatever the Mac had copied last. An unconfirmed write is nowE_IOand nothing is pasted.
0.1.2
Patch changes
- #64 Releases now flow through a changesets "Version Packages" PR into
develop; merging it fast-forwardsmain, which deploys the docs and publishes the npm packages together.