CLI hangs if EPICS envvars are set

Đang mở
#1,397 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ó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
cli

Hướng nghiên cứu

From the project root, source tests/system_tests/.env and run uv run blueapi with the IOCs stopped to reproduce the delay. Trace how the CLI handles the EPICS environment variables and compare the behavior with issue #1147 and its mock signal. Done means the command exits promptly when no IOC is available.

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

Mô tả

bug c: cli

If blueapi is used while the epics environment variables are set but the IOCs are not running (so nothing connects), the command hangs for ~30s before exiting.

From the root of the project

$ source tests/system_tests/.env
$ uv run blueapi
CAC: Unable to connect because "Connection refused"
Please invoke subcommand!
CAC TCP socket shutdown ERROR was Transport endpoint is not connected
$ 

The command does exit eventually but takes ~30s.

The variables set by the env file are

export EPICS_CA_NAME_SERVERS=127.0.0.1:9064
export EPICS_PVA_NAME_SERVERS=127.0.0.1:9075
export EPICS_CA_ADDR_LIST=127.0.0.1:9064

This feels like it's another occurrence of #1147 but not fixed by the mock signal created last time

Ngôn ngữ chính
Python
Star
14
Fork
14
Merge trung bình
2 ngày 23 giờ
Pull request đã merge (30 ngày)
27

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

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

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 DiamondLightSource/blueapi

Tất cả issue của DiamondLightSource/blueapi

Issue tương tự

Thêm issue về Python

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.