New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve SwitchProducer error message for inconsistent output products #31414
Improve SwitchProducer error message for inconsistent output products #31414
Conversation
The code-checks are being triggered in jenkins. |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-31414/18281
|
A new Pull Request was created by @makortel (Matti Kortelainen) for master. It involves the following packages: FWCore/Framework @makortel, @smuzaffar, @cmsbuild, @Dr15Jones can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
@cmsbuild, please test |
The tests are being triggered in jenkins.
|
REQUIRE_THROWS(edm::test::TestProcessor(config1), | ||
Catch::Contains("with a product") && Catch::Contains("that is not produced by the chosen case")); | ||
REQUIRE_THROWS_WITH( | ||
edm::test::TestProcessor(config2), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one (and similar change below) actually fix a bug in the test as well. This test should have used config2
already before, but was not caught with the Catch::Contains
because the test mistakenly used REQUIRE_THROWS
instead of REQUIRE_THROWS_WITH
.
Thank, this will definitely come useful for building a combined CPU/GPU workflow for the Pixel, ECAL and HCAL workflows ! |
FWCore/Framework/src/Schedule.cc
Outdated
<< proc_pset.getParameter<edm::ParameterSet>(switchLabel) | ||
.getUntrackedParameter<std::string>("@chosen_case") | ||
<< ". If the intention is to produce only a subset of the products listed below, each case with " | ||
"more products needs to be replacated with an EDAlias to only the necessary products, and the " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
replacate -> replicate
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @wddgit! Although I probably meant "replaced".
+1 |
Comparison job queued. |
Comparison is ready Comparison Summary:
|
…consistency exception Also fix two mistakes in the unit test.
6860ce4
to
c4c0f52
Compare
The code-checks are being triggered in jenkins. |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-31414/18282
|
Pull request #31414 was updated. @makortel, @smuzaffar, @cmsbuild, @Dr15Jones can you please check and sign again. |
@cmsbuild, please test |
The tests are being triggered in jenkins.
|
+1 |
Comparison job queued. |
Comparison is ready Comparison Summary:
|
+1 |
This pull request is fully signed and it will be integrated in one of the next master IBs (tests are also fine). This pull request will now be reviewed by the release team before it's merged. @silviodonato, @dpiparo, @qliphy (and backports should be raised in the release meeting by the corresponding L2) |
+1 |
PR description:
This PR resolves (partially) #31230. The exception message includes now a suggestion to use EDAlias, and lists the products (friendly class name and product instance name) for all cases, along
PR validation:
Framework unit tests succeed