Repository navigation
feat(revyl): add @e2e-dev/revyl for mobile tests on Revyl devices - #1708
Conversation
There was a problem hiding this comment.
All reported issues were addressed across 28 files
Reply to a comment to ask cubic a question or push back. It learns from your replies.
View guided diff | Re-trigger cubic
There was a problem hiding this comment.
0 issues found across 2 files (changes from recent commits).
Requires human review: Auto-approval blocked by 2 unresolved issues from previous reviews.
Tip: Get a Slack DM when cubic finishes reviewing your PRs. Connect Slack
View guided diff | Re-trigger cubic
There was a problem hiding this comment.
0 issues found across 1 file (changes from recent commits).
Requires human review: Auto-approval blocked by 2 unresolved issues from previous reviews.
View guided diff | Re-trigger cubic
There was a problem hiding this comment.
0 issues found across 3 files (changes from recent commits).
Requires human review: Auto-approval blocked by 2 unresolved issues from previous reviews.
View guided diff | Re-trigger cubic
okwasniewski
left a comment
There was a problem hiding this comment.
[claude-opus-5-5] automated review on behalf of @okwasniewski
Thanks for this, and for the live Android + iOS runs. The package follows the testmu shape closely. Locally at 364fb50: build, typecheck, 21/21 unit tests, lint, dead-code, peer-range, changeset, plugin-sync and docs checks all pass, and the lockfile diff is minimal. Mutation testing killed 16 of 17 mutants.
Must fix
-
withoutModelName(provider.ts:79, :85-96) works around a missing primitive. Root cause:@e2e-dev/mobile/leasespreadsdeviceonto the worker'sclient(untyped). agent-device merges client config into every request, so it becomes a--deviceselector on every command, and the Revyl plugin names the deviceRevyl <platform> <id>. Please fix it at the source instead of filtering afterwards with a cast:- preferred:
@e2e-dev/mobile/leaseusesdevicefor allocation only and leaves it off the client (the lease scope already pins the device); updatelease.test.ts:109 - or: the
@agent-device/revylplugin reports the started device under the requested model, like the other providers.
Either way
withoutModelNameand its test (revyl.test.ts:90-93) go away. We'll confirm which route on our side. - preferred:
-
src/daemon.tsandtests/unit/daemon.test.tsare verbatim copies of testmu's, apart from the plugin name. Please move the plugin-home plumbing into@e2e-dev/mobile/leaseas a shared helper (e.g.agentDevicePlugin(import.meta.resolve('@agent-device/revyl'))returning{ assertVersion, prepareHome }) and migrate testmu onto it in the same change. -
The peer floor
@e2e-dev/mobile >=0.12.5(package.json:55) can't work: mobile 0.12.5 ships agent-device 0.21.35, and the plugin is pinned to 0.21.36 with an exact check, so every acquire fails. It needs to be>=0.12.6(or the release that ships the helper from 2). -
provider.ts:57 echoes a rejected
appin theINVALID_CONFIGmessage. Forhttps://user:pass@...or anhttppresigned URL, that prints credentials or signatures into logs. Drop the value from the message and update revyl.test.ts:135.
Should fix
- docs/integrations/revyl.mdx:103-106 describes internals (daemon per worker, version pin, lease IDs). Cut it. Instead add the limits the testmu and browserstack pages cover: what ends a device if the runner is killed, and whether the app can reach a server on the user's network.
- The ~4 s iOS first-read note and
assertionTimeout: 10_000in the docs and both skill copies: keep them only if this is inherent to Revyl, not a plugin bug. - The summary repeats the platform: "android Android 14" (provider.ts:76).
- AGENTS.md: the
@e2e-dev/mobile/leaseparagraph lists only testmu and browserstack. Add revyl. - revyl.svg is a single dark color. Check it renders on the dark docs theme (vendor-logo rule in the docs authoring guide).
cubic threads
- The blank
REVYL_API_URLthread is invalid: the plugin treats blank as unset. Reply and resolve. - The video thread is invalid as worded. The engine falls back to agent-device recording, and the plugin refuses with
UNSUPPORTED_CAPABILITY, which matches your docs. Reply and resolve.
Secrets are otherwise handled well: REVYL_API_KEY reaches only the daemon env, and the security.mdx row is accurate.
364fb50 to
1e87a44
Compare
|
[claude-opus-5-5] automated review on behalf of @okwasniewski Re-reviewed at 1e87a44 (merges cleanly onto main). All four must-fix asks are done:
The should-fix docs items are done too. Unit tests pass for mobile, testmu, browserstack and revyl (539/86/53/19), along with lint, dead-code, peer-ranges, changesets, plugins and docs checks. 7 of 8 mutants are killed. Optional:
Labeling Ready for Human Review. Accepting a new vendor package, setting up npm publishing for |
1e87a44 to
e5f61ce
Compare
Add a DeviceProvider for the mobile engine that leases Revyl's hosted iOS simulators and Android emulators through agent-device's @agent-device/revyl plugin, one device and isolated daemon per worker. The app installs from an https URL; REVYL_API_KEY authenticates. Docs page, logo, env and security reference rows, and the e2e skill setup note included.
The first screen read after app.open() on a Revyl iOS device usually takes about 4 seconds, close to the default 5-second expect deadline. The config example raises assertionTimeout to 10 s, and the setup skill mentions it.
… the lease client agentDevicePlugin(entry) in @e2e-dev/mobile/lease checks a provider plugin's version and registers it in a lease daemon's home, replacing the per-provider daemon.ts copies; testmu now uses it. A lease's device selector is used for allocation only: on the client, agent-device sent it as --device on every command, and the lease scope already picks the device.
Use the shared plugin helper and drop withoutModelName, pin @agent-device/revyl 0.21.37 with @e2e-dev/mobile >=0.12.8, keep a rejected app URL out of the error, and fix the summary's repeated platform. Docs drop the internals paragraph and the iOS timeout note, and list what ends an orphaned device and that the app cannot reach your network.
…gins load The plugin helper and the agent-device bin lookup now walk to the package manifest through one installedPackage(). Revyl and TestMu each keep a test that registers their real plugin through agentDevicePlugin and expects agent-device to list it as compatible. docs/mobile.mdx names revyl() and documents agentDevicePlugin; the fallow ignore that the old variable resolve needed is gone.
e5f61ce to
fcd5517
Compare
|
[claude-opus-5-5] comment on behalf of @okwasniewski @KayaanT, this is close to merge. I pushed to your branch, so please pull before you change anything:
CI is green at fcd5517. Could you re-check against real Revyl devices on this head?
Please post the output here, the same way you did for the first runs. |
|
Re-ran on fcd5517 (agent-device 0.21.38, iOS: taps work on 0.21.38. Android: ApiDemos 6.0.18 still passes. Idle timeout: the docs are correct. |
Adds
@e2e-dev/revyl, aDeviceProviderfor the mobile engine that runs tests on Revyl's hosted iOS simulators and Android emulators. Opened by Revyl, following the partner-integration thread.@agent-device/revylplugin (0.21.38, the engine's agent-device). Built on@e2e-dev/mobile/lease, same shape as@e2e-dev/testmu.app(anhttpsbuild URL Revyl installs at device start),device(catalog model), optionalosVersion. Unknown/invalid options and non-https apps fail config load withINVALID_CONFIG, without echoing the rejected URL; the target'sapp.appPathis refused.REVYL_API_KEY(optionalREVYL_API_URL), passed only to the daemon's env.--videofails withUNSUPPORTED_CAPABILITY. Documented under Limits.Shared changes in
@e2e-dev/mobile/lease, from review:agentDevicePlugin(import.meta.resolve('@agent-device/<name>'))returns{ assertVersion, prepareHome }, replacing the per-providerdaemon.tscopies.@e2e-dev/testmuis migrated onto it.deviceselector is used for allocation only and is no longer put on the worker's client, so agent-device does not send it as--deviceon every command. This replaces the Revyl-onlywithoutModelName.@e2e-dev/revyland@e2e-dev/testmunow peer on@e2e-dev/mobile >=0.12.8, the release that ships the helper.Docs:
docs/integrations/revyl.mdx, integrations index card and logo, environment and security reference rows, mobile page pointer, AGENTS.md, and the e2e skill setup note (both copies).revyl.svgis a near-black mark (#1C1732), so it needs the same dark-modefilter: invert(1)rule as Expo's and TestMu AI's in the site styles.Verified
Ran it locally: yes
pnpm checkpasses, and the tests for@e2e-dev/mobile(539),@e2e-dev/revyl(19),@e2e-dev/testmu(86) and@e2e-dev/browserstack(53) pass. Revyl and TestMu each register their real plugin throughagentDevicePluginand check agent-device lists it as compatible.Surface:
@e2e-dev/revyllinked into a standalone project, running against Revyl production devices. Android installs Appium's public ApiDemos 6.0.18 APK from its GitHub release.e2e run --target android tests/android.e2e.tsat the review fixes (asserts "Animation" is visible):iOS (
opens rentals and switches to the fleet tab) passed on agent-device 0.21.36. On 0.21.37 every tap failed withwindow-origin-unknown, because the Revyl plugin reported its iOS root frame asderived. callstack/agent-device#4514 fixed that in 0.21.38, which main's mobile now ships and this package pins. iOS has not been re-run on Revyl with 0.21.38 yet.--videoon Android, the documented limit: