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

[GCC11] Fix warnings: loop variable binds to a temporary #35044

Merged
merged 8 commits into from Aug 28, 2021

Conversation

iarspider
Copy link
Contributor

Log file: https://cmssdt.cern.ch/SDT/cgi-bin/buildlogs/slc7_amd64_gcc11/CMSSW_12_1_X_2021-08-24-0900/JetMETCorrections/Modules

 .../JetMETCorrections/Modules/plugins/QGLikelihoodDBWriter.cc:115:23: warning: loop variable 'binVariable' of type 'const TString&' binds to a temporary constructed from type 'const char* const' [-Wrange-loop-construct]
   115 |   for (const TString& binVariable : {"eta", "pt", "rho"}) {
      |                       ^~~~~~~~~~~
.../JetMETCorrections/Modules/plugins/QGLikelihoodDBWriter.cc:115:23: note: use non-reference type 'const TString' to make the copy explicit or 'const char* const&' to prevent copying
 .../JetMETCorrections/Modules/plugins/QGLikelihoodDBWriter.cc:127:23: warning: loop variable 'type' of type 'const TString&' binds to a temporary constructed from type 'const char* const' [-Wrange-loop-construct]
   127 |   for (const TString& type : {"gluon", "quark"}) {
      |                       ^~~~
.../JetMETCorrections/Modules/plugins/QGLikelihoodDBWriter.cc:127:23: note: use non-reference type 'const TString' to make the copy explicit or 'const char* const&' to prevent copying
 .../JetMETCorrections/Modules/plugins/QGLikelihoodDBWriter.cc:129:25: warning: loop variable 'likelihoodVar' of type 'const TString&' binds to a temporary constructed from type 'const char* const' [-Wrange-loop-construct]
   129 |     for (const TString& likelihoodVar : {"mult", "ptD", "axis2"}) {
      |                         ^~~~~~~~~~~~~

@cmsbuild
Copy link
Contributor

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-35044/24907

  • This PR adds an extra 12KB to repository

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

@cmsbuild
Copy link
Contributor

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-35044/24908

  • This PR adds an extra 12KB to repository

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

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-35044/24909

  • This PR adds an extra 16KB to repository

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @iarspider for master.

It involves the following packages:

  • JetMETCorrections/Modules (reconstruction)

@jpata, @cmsbuild, @slava77 can you please review it and eventually sign? Thanks.
@rappoccio, @gouskos, @ahinzmann, @mmarionncern, @jdamgov, @jdolen, @nhanvtran, @gkasieczka, @clelange, @schoef, @mariadalfonso, @seemasharmafnal this is something you requested to watch as well.
@perrotta, @dpiparo, @qliphy you are the release manager for this.

cms-bot commands are listed here

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-35044/24914

  • This PR adds an extra 20KB to repository

@cmsbuild
Copy link
Contributor

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

@iarspider
Copy link
Contributor Author

please test for slc7_amd64_gcc11

@cmsbuild
Copy link
Contributor

-1

Failed Tests: UnitTests RelVals AddOn
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-2a41cd/18089/summary.html
COMMIT: 1369d30
CMSSW: CMSSW_12_1_X_2021-08-25-1100/slc7_amd64_gcc11
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/35044/18089/install.sh to create a dev area with all the needed externals and cmssw changes.

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:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-2a41cd/18089/git-recent-commits.json
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-2a41cd/18089/git-merge-result

CMS StaticAnalyzer warnings: There are 1 inherits from legacy modules warnings. See https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-2a41cd/18089/llvm-analysis/legacy-mod-sa.txt for details.
Found compilation warnings

Unit Tests

I found errors in the following unit tests:

---> test testRecoMETMETProducers had ERRORS

RelVals

----- Begin Fatal Exception 27-Aug-2021 19:47:32 CEST-----------------------
An exception of category 'PluginNotFound' occurred while
   [0] Constructing the EventProcessor
Exception Message:
Unable to find plugin 'TrackingRecHitProducer' in category 'CMS EDM Framework Module'. Please check spelling of name.
----- End Fatal Exception -------------------------------------------------
----- Begin Fatal Exception 27-Aug-2021 19:47:32 CEST-----------------------
An exception of category 'PluginNotFound' occurred while
   [0] Constructing the EventProcessor
Exception Message:
Unable to find plugin 'TrackingRecHitProducer' in category 'CMS EDM Framework Module'. Please check spelling of name.
----- End Fatal Exception -------------------------------------------------

AddOn Tests

----- Begin Fatal Exception 27-Aug-2021 19:49:40 CEST-----------------------
An exception of category 'PluginNotFound' occurred while
   [0] Constructing the EventProcessor
Exception Message:
Unable to find plugin 'TrackingRecHitProducer' in category 'CMS EDM Framework Module'. Please check spelling of name.
----- End Fatal Exception -------------------------------------------------
----- Begin Fatal Exception 27-Aug-2021 19:49:40 CEST-----------------------
An exception of category 'PluginNotFound' occurred while
   [0] Constructing the EventProcessor
Exception Message:
Unable to find plugin 'TrackingRecHitProducer' in category 'CMS EDM Framework Module'. Please check spelling of name.
----- End Fatal Exception -------------------------------------------------
----- Begin Fatal Exception 27-Aug-2021 19:49:41 CEST-----------------------
An exception of category 'PluginNotFound' occurred while
   [0] Constructing the EventProcessor
Exception Message:
Unable to find plugin 'TrackingRecHitProducer' in category 'CMS EDM Framework Module'. Please check spelling of name.
----- End Fatal Exception -------------------------------------------------

@slava77
Copy link
Contributor

slava77 commented Aug 27, 2021

Failed Tests: UnitTests RelVals AddOn

I guess this is acceptable considering that the test was for slc7_amd64_gcc11, which has some other build problems

@slava77
Copy link
Contributor

slava77 commented Aug 27, 2021

@cmsbuild please test

to check the regular build

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-2a41cd/18103/summary.html
COMMIT: 1369d30
CMSSW: CMSSW_12_1_X_2021-08-27-1100/slc7_amd64_gcc900
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/35044/18103/install.sh to create a dev area with all the needed externals and cmssw changes.

CMS StaticAnalyzer warnings: There are 1 inherits from legacy modules warnings. See https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-2a41cd/18103/llvm-analysis/legacy-mod-sa.txt for details.

Comparison Summary

Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 39
  • DQMHistoTests: Total histograms compared: 3000352
  • DQMHistoTests: Total failures: 0
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3000330
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 38 files compared)
  • Checked 165 log files, 37 edm output root files, 39 DQM output files
  • TriggerResults: no differences found

@slava77
Copy link
Contributor

slava77 commented Aug 27, 2021

+reconstruction

for #35044 1369d30

  • code changes are technical, in line with the PR description and the follow up review. Note, the modified producer code QGLikelihoodDBWriter.cc is not a part of the standard test workflows.
  • 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. @perrotta, @dpiparo, @qliphy (and backports should be raised in the release meeting by the corresponding L2)

@perrotta
Copy link
Contributor

+1

  • Similar updates as implemented for other previous fixes of that kind

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