Skip to content

Move provider API away from misusing product_query for outputs#602

Merged
knoepfel merged 8 commits into
Framework-R-D:mainfrom
beojan:provider-no-product-query
May 19, 2026
Merged

Move provider API away from misusing product_query for outputs#602
knoepfel merged 8 commits into
Framework-R-D:mainfrom
beojan:provider-no-product-query

Conversation

@beojan
Copy link
Copy Markdown
Contributor

@beojan beojan commented May 15, 2026

Replaces #501

@beojan beojan marked this pull request as ready for review May 18, 2026 22:54
@beojan beojan linked an issue May 19, 2026 that may be closed by this pull request
@codecov
Copy link
Copy Markdown

codecov Bot commented May 19, 2026

Codecov Report

❌ Patch coverage is 96.49123% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
phlex/core/product_query.cpp 71.42% 1 Missing and 1 partial ⚠️
@@            Coverage Diff             @@
##             main     #602      +/-   ##
==========================================
+ Coverage   82.16%   82.25%   +0.09%     
==========================================
  Files         157      157              
  Lines        5730     5760      +30     
  Branches      646      649       +3     
==========================================
+ Hits         4708     4738      +30     
+ Misses        808      807       -1     
- Partials      214      215       +1     
Flag Coverage Δ
scripts 76.12% <ø> (ø)
unittests 82.25% <96.49%> (+0.09%) ⬆️

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

Files with missing lines Coverage Δ
form/form_source.cpp 0.00% <ø> (ø)
phlex/core/edge_maker.cpp 77.27% <100.00%> (+1.08%) ⬆️
phlex/core/product_query.hpp 86.66% <ø> (ø)
phlex/core/provider_node.cpp 100.00% <100.00%> (+4.54%) ⬆️
phlex/core/provider_node.hpp 100.00% <ø> (ø)
phlex/core/registration_api.hpp 100.00% <100.00%> (ø)
plugins/python/src/modulewrap.cpp 80.34% <100.00%> (+0.34%) ⬆️
phlex/core/product_query.cpp 65.30% <71.42%> (+1.02%) ⬆️

... and 4 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 28e5882...29f325a. Read the comment docs.

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

@beojan beojan requested review from greenc-FNAL, knoepfel and wlav May 19, 2026 19:47
Copy link
Copy Markdown
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.

@beojan, this is looking quite good. I noticed that you've chosen the explicit experimental::algorithm_name::create("input") instead of just "input". I think we should be able to support both patterns. Probably involves an output_product(...) template that is constrained on std::constructible_from<> or std::is_convertible<> or ...?

My only other comment was in cleaning up the match(...) implementation, which you already addressed while I was assembling this review.

@beojan
Copy link
Copy Markdown
Contributor Author

beojan commented May 19, 2026

As it happens, we already have an implicit constructor from string literals to algorithm_name so we didn't need to explicitly call create.

@knoepfel knoepfel merged commit 2e90f07 into Framework-R-D:main May 19, 2026
39 checks passed
@beojan beojan deleted the provider-no-product-query branch May 19, 2026 22:19
greenc-FNAL added a commit that referenced this pull request May 20, 2026
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.

Fix provider API to not use product_query

2 participants