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

More verbose error if plugin could not be loaded due to missing shared library #27908

Merged
merged 4 commits into from Sep 9, 2019
Merged

More verbose error if plugin could not be loaded due to missing shared library #27908

merged 4 commits into from Sep 9, 2019

Conversation

guitargeek
Copy link
Contributor

@guitargeek guitargeek commented Aug 31, 2019

PR description:

The error message that you get if you delete plugin that is in the realease in your work area, and then try to use that plugin, is not very informative. The way this is handled is by referring to "poisoned" libraries in the work area, which actually don't exist. So you get some error like this:

----- Begin Fatal Exception 04-Sep-2019 13:39:04 CEST-----------------------
An exception of category 'PluginLibraryLoadError' occurred while
   [0] Constructing the EventProcessor
Exception Message:
unable to load /scratch/rembser/cmssw/dev/CMSSW_11_0_X_2019-09-02-2300/lib/slc7_amd64_gcc700/poisoned/plugin-poisoned-RecoEgammaElectronIdentificationPlugins.so because /scratch/rembser/cmssw/dev/CMSSW_11_0_X_2019-09-02-2300/lib/slc7_amd64_gcc700/poisoned/plugin-poisoned-RecoEgammaElectronIdentificationPlugins.so: cannot open shared object file: No such file or directory
----- End Fatal Exception -------------------------------------------------

However, it would be great (in particular to catch mistakes in cleanup PRs) if the message told you the name of the plugin it tried to load in the first place. I propose to add this information as a context to the exception (thanks @Dr15Jones for the implementation idea). The error message would look like this then:

----- Begin Fatal Exception 04-Sep-2019 13:39:04 CEST-----------------------
An exception of category 'PluginLibraryLoadError' occurred while
   [0] Constructing the EventProcessor
   [1] While attempting to load plugin ElectronMVANtuplizer
Exception Message:
unable to load /scratch/rembser/cmssw/dev/CMSSW_11_0_X_2019-09-02-2300/lib/slc7_amd64_gcc700/poisoned/plugin-poisoned-RecoEgammaElectronIdentificationPlugins.so because /scratch/rembser/cmssw/dev/CMSSW_11_0_X_2019-09-02-2300/lib/slc7_amd64_gcc700/poisoned/plugin-poisoned-RecoEgammaElectronIdentificationPlugins.so: cannot open shared object file: No such file or directory
----- End Fatal Exception -------------------------------------------------

We talked a bit about this already a little bit in PR #27522 (in particular #27522 (comment)).

While investigating how to do that I "git grepped" for "SharedLibrary" and therefore found by chance many places where SharedLibrary.h is included but not used. We could also remove these as a little side effect of this PR.

PR validation:

CMSSW compiles, local matrix tests pass.

if this PR is a backport please specify the original PR:

No backport intended.

@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-27908/11713

  • This PR adds an extra 32KB to repository

Code check has found code style and quality issues which could be resolved by applying following patch(s)

@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-27908/11714

  • This PR adds an extra 32KB to repository

Code check has found code style and quality issues which could be resolved by applying following patch(s)

@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-27908/11715

  • This PR adds an extra 36KB to repository

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @guitargeek (Jonas Rembser) for master.

It involves the following packages:

CondCore/AlignmentPlugins
CondCore/CondDB
CondCore/RunInfoPlugins
CondCore/SiStripPlugins
CondCore/Utilities
FWCore/PluginManager

@ggovi, @smuzaffar, @cmsbuild, @Dr15Jones can you please review it and eventually sign? Thanks.
@makortel, @Martin-Grunewald, @mmusich, @wddgit, @VinInn this is something you requested to watch as well.
@davidlange6, @slava77, @fabiocos you are the release manager for this.

cms-bot commands are listed here

@smuzaffar
Copy link
Contributor

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 1, 2019

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-run-pr-tests/2294/console Started: 2019/09/01 22:25

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 4, 2019

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

@fabiocos
Copy link
Contributor

fabiocos commented Sep 4, 2019

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 4, 2019

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-run-pr-tests/2361/console Started: 2019/09/04 18:29

@Dr15Jones
Copy link
Contributor

+1

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 4, 2019

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 4, 2019

Comparison job queued.

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 4, 2019

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

Comparison Summary:

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

@fabiocos
Copy link
Contributor

fabiocos commented Sep 5, 2019

@ggovi the db part of this PR looks a technical cleaning, could you please have a look?

@ggovi
Copy link
Contributor

ggovi commented Sep 9, 2019

+1

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 9, 2019

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. @davidlange6, @slava77, @smuzaffar, @fabiocos (and backports should be raised in the release meeting by the corresponding L2)

@fabiocos
Copy link
Contributor

fabiocos commented Sep 9, 2019

+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

6 participants