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

Throw an exception if esConsumes() is called outside EDModule constructors #32270

Merged
merged 1 commit into from Nov 25, 2020

Conversation

makortel
Copy link
Contributor

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 (or registerLateConsumes()). It would be more helpful for users to get a clear exception message (like in ED consumes() case) instead of an assertion failure. This PR adds such an exception for esConsumes().

PR validation:

Framework unit tests run.

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-32270/20054

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @makortel (Matti Kortelainen) for master.

It involves the following packages:

FWCore/Framework
FWCore/Integration

@makortel, @smuzaffar, @cmsbuild, @Dr15Jones can you please review it and eventually sign? Thanks.
@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

@makortel
Copy link
Contributor Author

@cmsbuild, please test

@makortel
Copy link
Contributor Author

@Dr15Jones please review

@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 24, 2020

The tests are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

+1
Tested at: 4dd952a
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-85e1b8/11012/summary.html
CMSSW: CMSSW_11_2_X_2020-11-24-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-85e1b8/11012/summary.html

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 2332 differences found in the comparisons
  • DQMHistoTests: Total files compared: 37
  • DQMHistoTests: Total histograms compared: 2963516
  • DQMHistoTests: Total failures: 55092
  • DQMHistoTests: Total nulls: 1
  • DQMHistoTests: Total successes: 2908401
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.004 KiB( 36 files compared)
  • DQMHistoSizes: changed ( 312.0 ): 0.004 KiB MessageLogger/Warnings
  • Checked 158 log files, 34 edm output root files, 37 DQM output files

@makortel
Copy link
Contributor Author

  • Reco comparison results: 2332 differences found in the comparisons
  • DQMHistoTests: Total failures: 55092

Vast majority of the differences are in DD4Hep workflows. The remaining ones are related to messages.

@Dr15Jones
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)

@silviodonato
Copy link
Contributor

+1

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