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

[cxxmodules] Workaround missing CLHEP modulemap for JetReco. #28943

Merged

Conversation

vgvassilev
Copy link
Contributor

In the same manner as in #28925 we force the definition of Hep3Vector to be read from the module that contains it rather than parsing it.

Part of #15248

cc: @davidlange6, @smuzaffar, @oshadura.

@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

vgvassilev added a commit to vgvassilev/cmsdist that referenced this pull request Feb 12, 2020
@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-28943/13751

  • This PR adds an extra 16KB to repository

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @vgvassilev (Vassil Vassilev) for master.

It involves the following packages:

DataFormats/JetReco

@perrotta, @cmsbuild, @slava77 can you please review it and eventually sign? Thanks.
@rappoccio, @ahinzmann, @rovere, @jdamgov, @jdolen, @nhanvtran, @gkasieczka, @clelange, @schoef, @mariadalfonso, @seemasharmafnal this is something you requested to watch as well.
@davidlange6, @silviodonato, @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 Feb 12, 2020

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-run-pr-tests/4632/console Started: 2020/02/12 23:39

In the same manner as in cms-sw#28925 we force the definition of
Hep3Vector to be read from the module that contains it rather than parsing it.
@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-28943/13752

  • This PR adds an extra 16KB to repository

@cmsbuild
Copy link
Contributor

Pull request #28943 was updated. @perrotta, @cmsbuild, @slava77 can you please check and sign again.

@davidlange6
Copy link
Contributor

davidlange6 commented Feb 12, 2020 via email

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 12, 2020

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-run-pr-tests/4634/console Started: 2020/02/13 01:07

@cmsbuild
Copy link
Contributor

+1
Tested at: 4f092ae
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-d7e78d/4632/summary.html
CMSSW: CMSSW_11_1_X_2020-02-12-1100
SCRAM_ARCH: slc7_amd64_gcc820

@cmsbuild
Copy link
Contributor

Comparison job queued.

@cmsbuild
Copy link
Contributor

+1
Tested at: bcfd273
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-d7e78d/4634/summary.html
CMSSW: CMSSW_11_1_X_2020-02-12-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-d7e78d/4634/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: 2694005
  • DQMHistoTests: Total failures: 1
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2693658
  • DQMHistoTests: Total skipped: 346
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 33 files compared)
  • Checked 147 log files, 16 edm output root files, 34 DQM output files

@cmsbuild
Copy link
Contributor

Comparison is ready
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-d7e78d/4632/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: 2694005
  • DQMHistoTests: Total failures: 1
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2693658
  • DQMHistoTests: Total skipped: 346
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 33 files compared)
  • Checked 147 log files, 16 edm output root files, 34 DQM output files

#if defined __has_feature
#if __has_feature(modules)
// Workaround the missing CLHEP.modulemap: CLHEP/Vector/ThreeVector.h:41:7: error: redefinition of 'Hep3Vector'
#include "DataFormats/JetReco/interface/PFClusterJetCollection.h"
Copy link
Contributor

Choose a reason for hiding this comment

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

similar to #28925 , I was expecting that DataFormats/JetReco/interface/PFClusterJetCollection.h (already mentioned below) is paired up with #include "CLHEP/Vector/ThreeVector.h"

Otherwise, what is the benefit of this conditional double-inclusion.
Can this include be here just unconditionally or (still unconditionally) twice, if double-mention is needed?

Copy link
Contributor Author

@vgvassilev vgvassilev Feb 13, 2020

Choose a reason for hiding this comment

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

Good questions.

I think PR #28925 may have been good enough with the single include without the ThreeVector.h. The include order matters because we do not yet have a module for CLHEP. This means that CLHEP headers will be contained in other modules while some includes (which include CLHEP headers) will parse.

Moving the include up activates the copy of the CLHEP headers from PFClusterJetCollection.h rather than reparsing and thus avoiding a bug in rootcling (clang).

PS: I would rather keep the duplicate include so that once we have the CLHEP module I will remove the workarounds altogether.

Copy link
Contributor

Choose a reason for hiding this comment

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

PS: I would rather keep the duplicate include so that once we have the CLHEP module I will remove the workarounds altogether.

did you mean to keep it unconditionally (change this PR), or stay with the conditional duplication?
Please clarify.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I meant to keep it conditional as it is now in the PR.

@slava77
Copy link
Contributor

slava77 commented Feb 13, 2020

+1

for #28943 bcfd273

  • technical, even though somewhat kludgy
  • jenkins tests pass

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

@silviodonato
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit 891e797 into cms-sw:master Feb 14, 2020
davidlange6 pushed a commit to davidlange6/cmsdist that referenced this pull request Feb 17, 2020
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.

6 participants