-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Throw an exception if esConsumes() is called outside EDModule constructors #32270
Throw an exception if esConsumes() is called outside EDModule constructors #32270
Conversation
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-32270/20054
|
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 |
@Dr15Jones please review |
The tests are being triggered in jenkins.
|
+1 |
Comparison job queued. |
Comparison is ready Comparison Summary:
|
Vast majority of the differences are in DD4Hep workflows. The remaining ones are related to messages. |
+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:
#32093 (comment) reported an assertion failure inside framework code. Closer inspection revealed that the user code was calling
esConsumes()
outside of the constructor (orregisterLateConsumes()
). It would be more helpful for users to get a clear exception message (like in EDconsumes()
case) instead of an assertion failure. This PR adds such an exception foresConsumes()
.PR validation:
Framework unit tests run.