Devices on one worker cannot be tagged by the network they can reach

Đang mở
#1,542 0 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ó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
36/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
backend

Hướng nghiên cứu

Start by tracing how enrolled devices and virtual device pools are represented, how leases match device properties, and where --physical and --class are handled. The issue does not name files or tests, so first map those entry points and read the related issues #1541 and #1181 for context. Done means operators can tag individual devices and pools, and a lease requiring a tag only matches devices carrying it.

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

Mô tả

request:new
The problem

The closed network and the open one are not always two machines. One Mac runs the emulators that can reach the bank network, and the real phones that cannot are enrolled on that same Mac. Those phones are the wrong place for a closed-network test even when they are plugged in, trusted and free.

A capability on the worker applies to every device that worker owns. --physical separates emulators from phones, which happens to match this farm today. It stops matching the day a phone is plugged into the closed-network machine, or an emulator is started on a machine outside it. --class is the form factor reported by the platform catalog (phone, tablet, watch, tv, and the rest), not a property the operator sets.

Who runs into this

The same farm, when both populations sit on one worker. An agent asks for an Android phone and can be given either an emulator that can run the closed-network test or a physical phone that cannot. The agent has no way to say which population it needs.

What you would like to happen

An enrolled device, and a virtual device pool, can carry tags the operator sets. A lease can require a tag and is granted only a device that has it. A device without the tag is not a match, even when its model, OS and class are. One worker can then serve both populations.

Anything else

The phones in this farm are outside the bank network. The emulators are the ones that can run inside it. On simlock 0.5.0 those phones are not separated from the emulators by anything except --physical.

Related, and not the same request:

  • #1541 asks for operator-defined capabilities on a whole worker. That does not split two populations on one machine.
  • #1181 asks for a worker that leases physical Android devices only and never boots an emulator. That is the opposite split, and it is still a switch for the whole worker.

Written by an agent.

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.