Skip to content

Conversation

@greenc-FNAL
Copy link
Contributor

@greenc-FNAL greenc-FNAL commented Nov 18, 2025

Fixes #120.

#120 reported that diagnostic output in tests was empty or malformed.

  1. The malformed output was due to product_store saving a string_view to a temporary string provided at construction time.

  2. The empty output had two different causes:

    1. The base() product store was not initialized with a name.
    2. At least one test (hierarchical_nodes) creates child product stores without providing a name.
  • Problem 1 is fixed by ensuring that strings are passed and saved rather than string_views.
  • Problem 2.1 is fixed by allowing the static member function product_store::base() to accept an optional base_name, which defaults to "Source" if not provided.
  • Problem 2.2 is fixed by passing a name ("levels_to_process") to the function calls creating child product stores.

There remains a question of whether product_store::make_child() should:

  1. Continue to allow for no name specification
  2. Require a name specification
  3. Provide a default

@greenc-FNAL greenc-FNAL requested a review from knoepfel November 18, 2025 16:36
@greenc-FNAL
Copy link
Contributor Author

@phlexbot format

@github-actions
Copy link
Contributor

Code-formatting changes pushed (commit 1629297)

@github-actions
Copy link
Contributor

No CMake formatting changes to make

Copy link
Member

@knoepfel knoepfel left a comment

Choose a reason for hiding this comment

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

Thanks, @greenc-FNAL, for the PR. Just a few comments below.

@greenc-FNAL greenc-FNAL force-pushed the bugfix/fix-source-name branch from 1629297 to 56a8cc0 Compare November 19, 2025 14:20
greenc-FNAL added a commit that referenced this pull request Nov 19, 2025
See #121 (comment)

Co-authored-by: Kyle Knoepfel <knoepfel@fnal.gov>
greenc-FNAL added a commit that referenced this pull request Nov 19, 2025
@greenc-FNAL
Copy link
Contributor Author

@phlexbot format

@github-actions
Copy link
Contributor

No CMake formatting changes to make

@github-actions
Copy link
Contributor

Code-formatting changes pushed (commit a6aa7fd)

greenc-FNAL added a commit that referenced this pull request Nov 19, 2025
@greenc-FNAL greenc-FNAL force-pushed the bugfix/fix-source-name branch from a6aa7fd to de920f3 Compare November 19, 2025 14:32
See #121 (comment)

Co-authored-by: Kyle Knoepfel <knoepfel@fnal.gov>

Committing clang-format changes
@greenc-FNAL greenc-FNAL force-pushed the bugfix/fix-source-name branch from de920f3 to e4babca Compare November 19, 2025 14:34
@codecov
Copy link

codecov bot commented Nov 19, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

@@            Coverage Diff             @@
##             main     #121      +/-   ##
==========================================
+ Coverage   80.22%   80.26%   +0.04%     
==========================================
  Files         115      115              
  Lines        1906     1910       +4     
  Branches      302      302              
==========================================
+ Hits         1529     1533       +4     
  Misses        247      247              
  Partials      130      130              
Flag Coverage Δ
unittests 80.26% <100.00%> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
phlex/core/declared_unfold.cpp 70.58% <100.00%> (ø)
phlex/core/declared_unfold.hpp 94.33% <ø> (ø)
phlex/model/product_store.cpp 100.00% <100.00%> (ø)
phlex/model/product_store.hpp 100.00% <ø> (ø)

... and 2 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f896b93...e4babca. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@greenc-FNAL
Copy link
Contributor Author

@phlexbot format

@github-actions
Copy link
Contributor

Code-formatting changes pushed (commit c30a3b9)

@github-actions
Copy link
Contributor

No CMake formatting changes to make

@knoepfel knoepfel merged commit 17a6721 into main Nov 19, 2025
@greenc-FNAL greenc-FNAL deleted the bugfix/fix-source-name branch November 19, 2025 16:37
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.

Creator name printed via spdlog is malformed

3 participants