agent-device test --maestro does not run through the agent-device proxy

オープン
#1,458 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
53/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
typescript
領域
mobile, testing

調査の方向性

Start by tracing the proxy paths for agent-device test --maestro and replay --maestro in the simlock codebase; the issue does not name files or tests. Compare how replay uploads flow files and runs on a leased device with how test creates its child session. Done means remote test uploads the flow and its subflows and runs on the session's leased device, or leases one itself.

索引モデルが issue の本文から書いたものです。

説明

bug:blocked upstream

Summary

agent-device test --maestro <flow> does not run through simlock's agent-device proxy from a remote client. open, install, snapshot, screenshot, and replay --maestro work through the same proxy.

Versions

  • simlock 0.6.0: gateway, plus one worker with capabilities.agent-device.enabled
  • agent-device 0.21.36 on the client and on the worker
  • Client and worker are two different Macs

Steps

export AGENT_DEVICE_DAEMON_AUTH_TOKEN=<agent token> AGENT_DEVICE_SESSION=e2e
agent-device connect proxy --daemon-base-url "$SIMLOCK_URL/v1/agent-device"
agent-device open --platform ios
agent-device install <app id> ./App.app
agent-device test ./flows/first-launch.yaml --maestro --platform ios

Result

  1. The worker reads the flow from the client's local path and fails with ENOENT. replay --maestro in the same session uploads the flow and its runFlow subflows.
  2. With the flow copied to the same path on the worker, the child session of test fails because the device is busy: the open session holds it.
  3. Without an open session, test fails with "run open first".

Expected

test --maestro uploads the flow files like replay does and runs them on the session's leased device, or leases one itself.

Impact

We run Maestro flows on simulators with test (reporters, retries, JUnit). On leased phones we can only use replay per flow, so phone e2e runs are off for now.

主要言語
TypeScript
スター
705
フォーク
40
平均マージ
12時間 9分
マージ済み PR(30日)
376

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

callstackincubator/simlock のほかの issue

callstackincubator/simlock の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。