Repository navigation
feat(revyl): export the lease session id and answer location on - #4772
Conversation
A test runner that calls Revyl's API beside the plugin, such as e2e recording a session's video, has to name the session the plugin started. The id is derived from the lease id; exporting revylSessionIdForLease from the package lets that runner use the same derivation instead of copying it. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Revyl starts every device with location services on (Settings > Location shows "Use location" on for a fresh Android emulator) and has no action that switches them off, so location on is already true. It now succeeds without a request instead of refusing, which lets a caller that switches location on before a fix, as e2e does on Android, set the fix. location off still refuses. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
A keep-alive read answered with Revyl's no-such-session kept beating for the rest of the process. It now clears its timer. The 403 worker-connection test also asserts the typed error, so a fixture or deadline failure no longer passes it. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ntation docs to the worker From the callstack#4725 review: a test now calls setSetting through the live binding, so the admitted settings operation is covered end to end, and the docs describe four-sided orientation as following the worker's precise-orientation report, as the code does, rather than the platform. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
Thanks for the PR. One change is needed: on Revyl iOS, interactor.ts:477 answers revyl.md:105 says Revyl starts every device with location services on, so Not blocking, take or leave: the new binding test in platform-runtime.test.ts:101 uses Two simpler shapes may fit better: could The Coverage job failed with a truncated log and no failing test or threshold line; a rerun should show whether it is a flake. Revyl iOS location defaults were not checked. There are no conflicts. Before merge, the |
On iOS, location on|off is the session app's location grant, which the plugin does not set, so it refuses there again instead of reporting success. Android keeps answering on without a request, now returning nothing as the local Android toggle does. The docs scope the sentence to Android and point iOS to settings permission grant location. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
Addressed in f91e857:
|
…o new module Exporting revylSessionIdForLease from the package entry pulled session-identity.ts into its eager closure, which the closure budget gate refuses. The derivation now lives in device.ts, which the entry already evaluates, with its tests in device.test.ts. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
Coverage failed on the eager-closure gate: exporting |
|
Thanks for the quick fixes. This PR is ready at 0fec5d4: the Android-only gate, the iOS |
Summary
Follow-ups to #4725 for e2e's Revyl provider, plus the review notes on #4725:
revylSessionIdForLeasefrom@agent-device/revyl. e2e records a Revyl session's video through Revyl's API beside the plugin, so it has to name the session the plugin started. It now imports the derivation instead of copying it (review on feat(revyl): install local builds on Revyl devices e2e-inc/e2e#1947)..fallowrc.jsonlists it as a public export, since nothing in this repository consumes it.settings location onsucceeds without a request. Revyl starts every device with location services on, and nothing in the plugin switches them off. On a fresh Pixel 7, Settings > Location shows "Use location" on. e2e switches location on before setting an Android fix, sodevice.setLocationon Revyl Android failed on that first step.location offstill refuses.worker-connectiontest asserts the typed error (feat(revyl): set device settings and keep idle sessions alive #4725 review):UNAUTHORIZEDwithproviderStatus403, so a fixture or deadline failure no longer passes it.setSettingon a live binding and checks that it reaches the interactor.revyl.mdsays all four sides come from a worker that reports precise orientation, as the code decides, not from the platform.Validation
snapshotthrough this plugin), which is what thelocation onanswer relies on.clearIntervalremoved;location onreturns{ enabled: true }with no worker request;location offstill refuses.pnpm check:quick,pnpm check:production-exports,pnpm check:fallowandpnpm check:doc-prosepass. The provider-revyl unit project passes, 177 tests.