Numtracker should provide a helpful error message when the instrument session is bad
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
- 65/100
Hướng nghiên cứu
Trước tiên, hãy truy vết cách các instrument session IDs có định dạng không chính xác, không tồn tại hoặc có tiền tố không chính xác được xử lý trước khi lỗi xác thực được báo cáo. Cập nhật việc xử lý lỗi để một instrument session hoặc visit không được nhận diện được xác định rõ ràng, đồng thời xác minh rằng các kịch bản task-run bị ảnh hưởng không còn chỉ tạo ra thông báo xác thực chung.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Currently, if an instrument session is typed incorrectly, a very unhelpful error message is given. A few scenarios were tried, including:
- An incorrectly formatted session id (
cm1234-1):RuntimeError: Numtracker error: [{'message': 'Authentication failed', 'locations': [{'line': 3, 'column': 5}], 'path': ['scan']}] - A correctly formatted but non-existent session id (
cm12345-1):RuntimeError: Numtracker error: [{'message': 'Authentication failed', 'locations': [{'line': 3, 'column': 5}], 'path': ['scan']}] - An correctly formatted but non-existant session id with the correct proposal number and session number, but incorrect prefix (
sm44191-3):- With no file-writing detector: A "successful" task run, with failure to write a nexus file -
{"timestamp":"2026-06-15T08:14:56.496","level":"ERROR","thread":"pool-1-thread-4","logger":"uk.ac.diamond.daq.services.BlueskyNexusFileWriterService","message":"Unable to find File for ScanID 3b700b88-21dd-420d-89e2-281c2ba28d93","context":"default","beamline":"b01-1","application_name":"Document to Nexus Converter"} - With a file writing detector: A "failed" task run, with the file-writing detector throwing an error -
<WatchableAsyncStatus, device: spectroscopy_detector, task: <coroutine object AsyncStatusBase.__init__.<locals>.wait_with_error_message at 0x7f8e7808d740>, errored: FileNotFoundError("Path /dls/b01-1/data/2026/sm44191-3/spool/ doesn't exist or not writable!")>
- With no file-writing detector: A "successful" task run, with failure to write a nexus file -
With respect to the first two errors, it would be good if some indication were given as to what was wrong - i.e. something along the lines of "Instrument session / visit was not recognised"
- Ngôn ngữ chính
- Rust
- Star
- 2
- Fork
- 2
- Merge trung bình
- 2 ngày 21 giờ
- Pull request đã merge (30 ngày)
- 6
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của DiamondLightSource/numtracker
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 70/100
DiamondLightSource/numtracker#309 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
DiamondLightSource/numtracker#278 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 55/100
DiamondLightSource/numtracker#321 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 25/100
DiamondLightSource/numtracker#320 ·
-
RUSTSEC-2026-0348: Brotli certificate decompression can allocate up to 1 GiB before authenticationĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 44/100
DiamondLightSource/numtracker#319 ·
Tất cả issue của DiamondLightSource/numtracker
Issue tương tự
-
bug needs triage P3
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
pbakaus/impeccable#1143 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Bundled uv is never updated and trusts the compromised eMudhra certificatesCó thể đã có người làm @FabienDanieau đã nhận hôm nay. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
foxglove/mcap#1907 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 1 ngày