[Feature]: FakeDataProdModule should populate detector ID in fake frame headers
まだ誰も着手していません。
評価
調査の方向性
FakeDataProdConf と FakeDataProdModule::process_data_request() から始め、DAQEthHeader と DAQHeader のケースを、それぞれの検出器 ID の表現も含めて比較します。サポートされている header 型のフェイクデータを作成し、各フレームに設定された検出器 ID が含まれることを確認するとともに、"Unknown" に対するデフォルトの動作を維持します。
索引モデルが issue の本文から書いたものです。
説明
Description
Discovered when doing work for https://github.com/DUNE-DAQ/daqsystemtest/pull/304
FakeDataProdModule generates fake frame data by zero-initializing a byte buffer of the correct size, leaving all header fields — including the detector ID — as zero. Downstream frame processors validating the detector ID in the frame header would fail when they receive det_id = 0.
Note that two distinct frame header types need to be considered when implementing the fix:
- DAQEthHeader — used by Ethernet-based frames (DAPHNEEth, DAPHNEEthStream, WIBEth). Contains det_id of type DetID::Subdetector_t.
- DAQHeader — used by older/legacy frame types. Needs investigation to determine if the same issue applies and what the correct field/encoding is.
Potential impact radius
Medium
Reason for change
Without this fix, FakeDataProdModule cannot be used as a stand-in for real readout when testing frame types that validate the detector ID.
Suggested implementations
Add a det_id string attribute (using the DetID::subdetector_to_string convention, e.g. "HD_PDS") to FakeDataProdConf in appmodel, defaulting to "Unknown" to preserve existing behavior. In FakeDataProdModule::process_data_request(), after allocating the fake data buffer, iterate over frames and write the correct detector ID into each frame header, conditioned on the configured header type.
Testing suggestions
Create fake data and verify that the det_id is properly set.
Anything else?
This should likely come up as part of the data formats review. (See https://github.com/DUNE-DAQ/daq-deliverables/issues/215)
- 主要言語
- C++
- スター
- 3
- フォーク
- 5
- 平均マージ
- 2日 3時間
- マージ済み PR(30日)
- 2
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
DUNE-DAQ/dfmodules のほかの issue
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
-
miscellaneous deliverable
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
-
Make the DFO Protocol resilient再び着手できるかも @eflumerf が 194 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
-
Create and use deterministic TPG data file for integration tests再び着手できるかも @hristovaivana が 1011 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンenhancement
DUNE-DAQ/dfmodules の issue をすべて見る
似ている issue
-
[Bug] [Go] Ack returns nil when the server answers with a non-OK status対応中かも @leizhiyuan が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
apache/rocketmq-clients#1465 ·
メンテナーはふだん 2 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
cp-algorithms/cp-algorithms#1738 ·
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
KhronosGroup/Vulkan-Tutorial#534 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 2 日以内に返信
-
bug IO
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
MrNeRF/LichtFeld-Studio#3824 ·
メンテナーはふだん 1 日以内に返信