-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Moving esConsumes statement from the analyze method into the constructor #37650
Conversation
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-37650/29448
|
A new Pull Request was created by @igv4321 (Igor Volobouev) for master. It involves the following packages:
@cmsbuild, @ggovi, @tvami, @malbouis, @francescobrivio can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
@@ -51,16 +51,16 @@ class BoostIODBReader : public edm::one::EDAnalyzer<> { | |||
void analyze(const edm::Event&, const edm::EventSetup&) override; | |||
|
|||
std::string outputFile_; | |||
edm::ESGetToken<DataType, RecordType> tok_; |
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.
edm::ESGetToken<DataType, RecordType> tok_; | |
const edm::ESGetToken<DataType, RecordType> tok_; |
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.
OK, changed as suggested.
Hi @igv4321 thanks for doing this change! |
@tvami I don't remember writing unit tests... Yes, please point out some example. |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-37650/29449
|
@igv4321 launches the test And then a next line could read the sqlite file being created by the |
@tvami Ok, thanks. Unit test added. |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-37650/29450
|
@cmsbuild , please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-d93e44/24117/summary.html Comparison Summary@slava77 comparisons for the following workflows were not done due to missing matrix map:
Summary:
|
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. @perrotta, @dpiparo, @qliphy (and backports should be raised in the release meeting by the corresponding L2) |
+1 |
@igv4321 there is a unit test failure in IB after this PR gets merged. Please have a check and fix it: https://cmssdt.cern.ch/SDT/cgi-bin/logreader/slc7_amd64_gcc10/CMSSW_12_4_X_2022-04-22-2300/unitTestLogs/CondTools/Hcal#/19-19 ---> test HFPhase1PMTParams_unittest had ERRORS |
I can't reproduce it, but looking at the log file, this problem could be due to an out-of-order execution of tests in the production environment. @tvami Is there some way to ensure that the <bin file="write_HFPhase1PMTParams.cc"> branch of CondTools/Hcal/test/BuildFile.xml (which actually builds the "write_HFPhase1PMTParams" executable) is completed before the <bin file="HFPhase1PMTParams_unittest.cc"> branch is run? |
The flag e.g.:
|
OK, thanks. The fix is provided in the PR #37666 |
Thanks @igv4321 for the fix. |
@tvami , for PR tests and local tests |
PR description:
Moving esConsumes statement from the "analyze" method into the constructor.
PR validation:
Checked that the database read/write sequence for HFPhase1PMTParams objects works as described in CondTools/Hcal/test/readme_HFPhase1PMTParams.txt
This code is not used by any workflows (calibration tables preparation only), so default matrix tests were not run.