[DataFormats/PatCandidates] Rework statics in header file.#30499
[DataFormats/PatCandidates] Rework statics in header file.#30499cmsbuild merged 1 commit intocms-sw:masterfrom
Conversation
|
The code-checks are being triggered in jenkins. |
9f63a5b to
c20cf9b
Compare
|
The code-checks are being triggered in jenkins. |
|
-code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-30499/16688
Code check has found code style and quality issues which could be resolved by applying following patch(s)
|
c20cf9b to
96d5d1b
Compare
|
The code-checks are being triggered in jenkins. |
|
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-30499/16692
|
|
A new Pull Request was created by @vgvassilev (Vassil Vassilev) for master. It involves the following packages: DataFormats/PatCandidates @perrotta, @cmsbuild, @santocch, @slava77 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.
|
|
-1 Tested at: 96d5d1b CMSSW: CMSSW_11_2_X_2020-07-01-2300 The following merge commits were also included on top of IB + this PR after doing git cms-merge-topic:
You can see more details here: You can see the results of the tests here: I found follow errors while testing this PR Failed tests: Build ClangBuild
I found compilation error when building: In file included from /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_11_2_X_2020-07-01-2300/src/DataFormats/PatCandidates/interface/Lepton.h:22,
from /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_11_2_X_2020-07-01-2300/src/DataFormats/PatCandidates/interface/Muon.h:28,
from /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_11_2_X_2020-07-01-2300/src/PhysicsTools/PatAlgos/test/private/PATUserDataTestModule.cc:33:
/data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_11_2_X_2020-07-01-2300/src/DataFormats/PatCandidates/interface/PATObject.h: In instantiation of 'const string& pat::PATObject::userDataObjectType(const string&) const [with ObjectType = reco::Muon; std::__cxx11::string = std::__cxx11::basic_string]':
/data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_11_2_X_2020-07-01-2300/src/PhysicsTools/PatAlgos/test/private/PATUserDataTestModule.cc:144:77: required from here
/data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_11_2_X_2020-07-01-2300/src/DataFormats/PatCandidates/interface/PATObject.h:332:54: error: returning reference to temporary [-Werror=return-local-addr]
return (data != nullptr ? data->typeName() : "");
^
cc1plus: some warnings being treated as errors
gmake: *** [tmp/slc7_amd64_gcc820/src/PhysicsTools/PatAlgos/test/PhysicsToolsPatAlgos_testAnalyzers/private/PATUserDataTestModule.cc.o] Error 1
>> Building edm plugin tmp/slc7_amd64_gcc820/src/PhysicsTools/PatAlgos/test/PhysicsToolsPatAlgos_testAnalyzers/libPhysicsToolsPatAlgos_testAnalyzers.so
I found compilation warning while trying to compile with clang. Command used: See details on the summary page. The following merge commits were also included on top of IB + this PR after doing git cms-merge-topic:
You can see more details here: |
|
Comparison not run due to Build errors (RelVals and Igprof tests were also skipped) |
|
The code-checks are being triggered in jenkins. |
|
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-30499/16701
|
|
@cmsbuild please test |
|
The tests are being triggered in jenkins.
|
|
+1 The following merge commits were also included on top of IB + this PR after doing git cms-merge-topic:
You can see more details here: |
|
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 (and backports should be raised in the release meeting by the corresponding L2) |
|
+1 |
Static variables have internal linkage (http://eel.is/c++draft/basic.link#3.1) and if used in a header file cause ODR violation as every traslation unit will get a different definition of the same entity.
This should address a bug discovered with the CXXMODULE build.
cc: @davidlange6