Numtracker should provide a helpful error message when the instrument session is bad
まだ誰も着手していません。
評価
調査の方向性
まず、認証エラーが報告される前に、形式が正しくない、存在しない、または接頭辞が正しくないインストゥルメントセッション IDs がどのように処理されるかを追跡します。エラー処理を更新して、認識されないインストゥルメントセッションまたは visit が明確に特定されるようにし、影響を受ける task-run シナリオで汎用的な認証メッセージだけが出力されなくなったことを確認します。
索引モデルが issue の本文から書いたものです。
説明
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"
- 主要言語
- Rust
- スター
- 2
- フォーク
- 2
- 平均マージ
- 2日 21時間
- マージ済み PR(30日)
- 6
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
DiamondLightSource/numtracker のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 70/100
DiamondLightSource/numtracker#309 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
DiamondLightSource/numtracker#278 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 55/100
DiamondLightSource/numtracker#321 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 25/100
DiamondLightSource/numtracker#320 ·
-
RUSTSEC-2026-0348: Brotli certificate decompression can allocate up to 1 GiB before authenticationオープン
難易度 4/5 3〜5日 初心者へのやさしさ 44/100
DiamondLightSource/numtracker#319 ·
DiamondLightSource/numtracker の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
IngvarConsulting/unica#2006 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
limitlessprojects/Go-Hybrid#1377 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信
-
Docker host resolution missing default rootless Docker path対応中かも @500B が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
testcontainers/testcontainers-rs#1000 ·
メンテナーはふだん 3 日以内に返信
-
documentation
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
andyintheshell/perseid#73 ·
メンテナーはふだん 1 日以内に返信