Skip to content
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

EventSetupRecord::doGet uses prefetching #31775

Merged
merged 1 commit into from Oct 15, 2020

Conversation

Dr15Jones
Copy link
Contributor

PR description:

Changed EventSetupRecord::doGet to work with prefetching. This required the introduction of ESGetTokenGeneric and a new esConsumes method.
Added the EDConsumerBase::registerLateConsumes to be able to safely call esConsumes based on the contents of the EventSetup.

PR validation:

Code compiles and relevant framework unit tests pass.

@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.


//
// class decleration
//
namespace edm {
class EventSetupRecordDataGetter : public edm::stream::EDAnalyzer<> {
class EventSetupRecordDataGetter
: public edm::global::EDAnalyzer<edm::RunCache<std::nullptr_t>, edm::LuminosityBlockCache<std::nullptr_t>> {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As a bonus, I could make it a global module :).

@cmsbuild
Copy link
Contributor

-code-checks

ERROR: Build errors found during clang-tidy run.

FWCore/Utilities/interface/ESGetTokenGeneric.h:43:5: error: defaulted definition of move assignment operator is not constexpr [clang-diagnostic-error]
    constexpr ESGetTokenGeneric& operator=(ESGetTokenGeneric&&) noexcept = default;
    ^
FWCore/Utilities/interface/ESGetTokenGeneric.h:44:5: error: defaulted definition of copy assignment operator is not constexpr [clang-diagnostic-error]
    constexpr ESGetTokenGeneric& operator=(ESGetTokenGeneric const&) noexcept = default;
    ^
Suppressed 315 warnings (314 in non-user code, 1 with check filters).
--
FWCore/Utilities/interface/ESGetTokenGeneric.h:43:5: error: defaulted definition of move assignment operator is not constexpr [clang-diagnostic-error]
    constexpr ESGetTokenGeneric& operator=(ESGetTokenGeneric&&) noexcept = default;
    ^
FWCore/Utilities/interface/ESGetTokenGeneric.h:44:5: error: defaulted definition of copy assignment operator is not constexpr [clang-diagnostic-error]
    constexpr ESGetTokenGeneric& operator=(ESGetTokenGeneric const&) noexcept = default;
    ^
Suppressed 423 warnings (422 in non-user code, 1 with check filters).
--
FWCore/Utilities/interface/ESGetTokenGeneric.h:43:5: error: defaulted definition of move assignment operator is not constexpr [clang-diagnostic-error]
    constexpr ESGetTokenGeneric& operator=(ESGetTokenGeneric&&) noexcept = default;
    ^
FWCore/Utilities/interface/ESGetTokenGeneric.h:44:5: error: defaulted definition of copy assignment operator is not constexpr [clang-diagnostic-error]
    constexpr ESGetTokenGeneric& operator=(ESGetTokenGeneric const&) noexcept = default;
    ^
Suppressed 739 warnings (738 in non-user code, 1 with check filters).
--
FWCore/Utilities/interface/ESGetTokenGeneric.h:43:5: error: defaulted definition of move assignment operator is not constexpr [clang-diagnostic-error]
    constexpr ESGetTokenGeneric& operator=(ESGetTokenGeneric&&) noexcept = default;
    ^
FWCore/Utilities/interface/ESGetTokenGeneric.h:44:5: error: defaulted definition of copy assignment operator is not constexpr [clang-diagnostic-error]
    constexpr ESGetTokenGeneric& operator=(ESGetTokenGeneric const&) noexcept = default;
    ^
FWCore/Utilities/interface/ProcessBlockIndex.h:39:5: warning: deleted member function should be public [modernize-use-equals-delete]
--
gmake: *** [config/SCRAM/GMake/Makefile.coderules:128: code-checks] Error 2
gmake: *** [There are compilation/build errors. Please see the detail log above.] Error 2

@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-31775/19028

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @Dr15Jones (Chris Jones) for master.

It involves the following packages:

FWCore/Framework
FWCore/Modules
FWCore/Utilities

@makortel, @smuzaffar, @cmsbuild, @Dr15Jones can you please review it and eventually sign? Thanks.
@makortel, @felicepantaleo, @wddgit this is something you requested to watch as well.
@silviodonato, @dpiparo, @qliphy you are the release manager for this.

cms-bot commands are listed here

@Dr15Jones
Copy link
Contributor Author

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 13, 2020

The tests are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

-1

Tested at: d3dd43b

CMSSW: CMSSW_11_2_X_2020-10-13-1100
SCRAM_ARCH: slc7_amd64_gcc820
You can see the results of the tests here:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-b0f968/9922/summary.html

I found follow errors while testing this PR

Failed tests: Build

  • Build:

I found compilation error when building:

>> Building LCG reflex dict from header file src/DataFormats/L1TMuon/src/classes.h
In file included from input_line_9:67:
In file included from /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_11_2_X_2020-10-13-1100/src/DataFormats/L1TMuon/interface/L1MuBMTrack.h:36:
In file included from /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_11_2_X_2020-10-13-1100/src/FWCore/Framework/interface/EventSetup.h:33:
In file included from /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_11_2_X_2020-10-13-1100/src/FWCore/Framework/interface/EventSetupRecord.h:48:
/data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_11_2_X_2020-10-13-1100/src/FWCore/Utilities/interface/ESGetTokenGeneric.h:37:15: error: exception specification of explicitly defaulted default constructor does not match the calculated one
    constexpr ESGetTokenGeneric() noexcept = default;
              ^
Error: rootcling: compilation failure (tmp/slc7_amd64_gcc820/src/DataFormats/L1TMuon/src/DataFormatsL1TMuon/a/DataFormatsL1TMuon_xr6d41ad8bbc_dictUmbrella.h)
gmake: *** [tmp/slc7_amd64_gcc820/src/DataFormats/L1TMuon/src/DataFormatsL1TMuon/a/DataFormatsL1TMuon_xr.cc] Error 1
>> Compiling LCG dictionary: tmp/slc7_amd64_gcc820/src/DataFormats/L1TMuon/src/DataFormatsL1TMuon/a/DataFormatsL1TMuon_xr.cc


@cmsbuild
Copy link
Contributor

Comparison not run due to Build errors (RelVals and Igprof tests were also skipped)

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-31775/19071

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 14, 2020

The tests are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

Pull request #31775 was updated. @makortel, @smuzaffar, @cmsbuild, @Dr15Jones can you please check and sign again.

@cmsbuild
Copy link
Contributor

Comparison is ready
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-b0f968/9947/summary.html

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 4 differences found in the comparisons
  • DQMHistoTests: Total files compared: 35
  • DQMHistoTests: Total histograms compared: 2543752
  • DQMHistoTests: Total failures: 7
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2543723
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 34 files compared)
  • Checked 149 log files, 22 edm output root files, 35 DQM output files

@cmsbuild
Copy link
Contributor

+1
Tested at: 1301a46
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-b0f968/9965/summary.html
CMSSW: CMSSW_11_2_X_2020-10-14-1100
SCRAM_ARCH: slc7_amd64_gcc820

@cmsbuild
Copy link
Contributor

Comparison job queued.

@cmsbuild
Copy link
Contributor

Comparison is ready
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-b0f968/9965/summary.html

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 35
  • DQMHistoTests: Total histograms compared: 2543752
  • DQMHistoTests: Total failures: 1
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2543729
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 34 files compared)
  • Checked 149 log files, 22 edm output root files, 35 DQM output files

@makortel
Copy link
Contributor

+1

@cmsbuild
Copy link
Contributor

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)

@qliphy
Copy link
Contributor

qliphy commented Oct 15, 2020

+1

@cmsbuild cmsbuild merged commit 8c8fe09 into cms-sw:master Oct 15, 2020
@Dr15Jones Dr15Jones deleted the prefetchRecord_doGet branch October 15, 2020 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants