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

Đang mở
#1,458 3 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
53/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
mobile, testing

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
TypeScript
Star
705
Fork
40
Merge trung bình
12 giờ 9 phút
Pull request đã merge (30 ngày)
376

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của callstackincubator/simlock

Tất cả issue của callstackincubator/simlock

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.