Skip to content

fix: use consistent/non-empty test collection names#506

Open
wdconinc wants to merge 1 commit into
JeffersonLab:masterfrom
wdconinc:test-collection-names
Open

fix: use consistent/non-empty test collection names#506
wdconinc wants to merge 1 commit into
JeffersonLab:masterfrom
wdconinc:test-collection-names

Conversation

@wdconinc
Copy link
Copy Markdown
Member

This PR makes sure that test 03 writes the same name that 05 requests, without empty strings.

Copilot AI review requested due to automatic review settings May 28, 2026 00:15
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Updates the tutorial example pipeline to use the "rechits" databundle name instead of relying on the prior "raw" name or the default/empty tag in tests.

Changes:

  • Switch CsvWriter to request calorimeter hits from the "rechits" databundle.
  • Update protocluster factory tests to insert hits under "rechits" instead of the default/empty tag.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.

File Description
src/examples/tutorial_with_lightweight_datamodel/05_csv_file_writer/CsvWriter.cc Changes requested databundle name for calorimeter hit collections to "rechits".
src/examples/tutorial_with_lightweight_datamodel/03_protocluster_factory/Protocluster_tests.cc Updates unit tests to insert hits into the "rechits" databundle explicitly.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


m_event_header_in.SetOptional(true);
m_calo_hit_collections_in.SetRequestedDatabundleNames({"raw"});
m_calo_hit_collections_in.SetRequestedDatabundleNames({"rechits"});
auto event = std::make_shared<JEvent>(&app);

event->Insert(make_two_cluster_hits(), "");
event->Insert(make_two_cluster_hits(), "rechits");
auto event = std::make_shared<JEvent>(&app);

event->Insert(make_two_cluster_hits(), "");
event->Insert(make_two_cluster_hits(), "rechits");
auto event = std::make_shared<JEvent>(&app);

event->Insert(make_two_cluster_hits(), "");
event->Insert(make_two_cluster_hits(), "rechits");
auto event = std::make_shared<JEvent>(&app);

event->Insert(make_two_cluster_hits(), "");
event->Insert(make_two_cluster_hits(), "rechits");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants