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

Avoid self assignments in SiStrip Key classes #22881

Merged
merged 1 commit into from Apr 9, 2018

Conversation

Dr15Jones
Copy link
Contributor

When testing for validity of the set values, the logic was changed
to avoid doing self assignments. This avoids a clang compiler warning.
The changes result in the exact same logic as the original code.

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 6, 2018

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 6, 2018

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 6, 2018

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

It involves the following packages:

DataFormats/SiStripCommon

@perrotta, @cmsbuild, @slava77 can you please review it and eventually sign? Thanks.
@echabert, @erikbutz, @makortel, @rovere, @VinInn, @OlivierBondu, @mmusich, @threus, @ebrondol 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

@Dr15Jones
Copy link
Contributor Author

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 6, 2018

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/27349/console Started: 2018/04/06 16:28

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 6, 2018

-1

Tested at: 6244927

The following merge commits were also included on top of IB + this PR after doing git cms-merge-topic:
34a355c
You can see more details here:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-22881/27349/git-log-recent-commits
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-22881/27349/git-merge-result

You can see the results of the tests here:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-22881/27349/summary.html

I found follow errors while testing this PR

Failed tests: Build

  • Build:

I found an error when building:

>> Compiling  /build/cmsbld/jenkins/workspace/ib-any-integration/CMSSW_10_2_X_2018-04-06-1100/src/DataFormats/SiStripCommon/src/SiStripConstants.cc 
Entering library rule at RecoEgamma/EgammaHLTProducers
Entering library rule at Utilities/StaticAnalyzers
Entering library rule at src/DataFormats/SiStripCommon/test
/build/cmsbld/jenkins/workspace/ib-any-integration/CMSSW_10_2_X_2018-04-06-1100/src/DataFormats/SiStripCommon/src/SiStripDetKey.cc: In member function 'virtual void SiStripDetKey::initFromValue()':
/build/cmsbld/jenkins/workspace/ib-any-integration/CMSSW_10_2_X_2018-04-06-1100/src/DataFormats/SiStripCommon/src/SiStripDetKey.cc:209:17: error: comparison is always true due to limited range of data type [-Werror=type-limits]
   if(partition_ >=0 and partition_ <=4) {
      ~~~~~~~~~~~^~~
cc1plus: some warnings being treated as errors
gmake: *** [tmp/slc6_amd64_gcc630/src/DataFormats/SiStripCommon/src/DataFormatsSiStripCommon/SiStripDetKey.cc.o] Error 1
>> Compiling edm plugin /build/cmsbld/jenkins/workspace/ib-any-integration/CMSSW_10_2_X_2018-04-06-1100/src/RecoEgamma/EgammaHLTProducers/src/EgammaHLTTimeCleanedRechitProducer.cc 


The following merge commits were also included on top of IB + this PR after doing git cms-merge-topic:
34a355c
You can see more details here:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-22881/27349/git-log-recent-commits
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-22881/27349/git-merge-result

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 6, 2018

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

When testing for validity of the set values, the logic was changed
to avoid doing self assignments. This avoids a clang compiler warning.
The changes result in the exact same logic as the original code.
@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 6, 2018

The code-checks are being triggered in jenkins.

@Dr15Jones
Copy link
Contributor Author

@gartung FYI

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 6, 2018

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 6, 2018

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

@Dr15Jones
Copy link
Contributor Author

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 6, 2018

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/27352/console Started: 2018/04/06 16:45

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 6, 2018

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 6, 2018

Comparison job queued.

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 6, 2018

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

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 29
  • DQMHistoTests: Total histograms compared: 2504254
  • DQMHistoTests: Total failures: 1
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2504077
  • DQMHistoTests: Total skipped: 176
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.850000000079 KiB( 22 files compared)
  • Checked 119 log files, 9 edm output root files, 29 DQM output files

@slava77
Copy link
Contributor

slava77 commented Apr 6, 2018

thanks for the cleanup.
This was earlier brought up by @davidlt around 3/7/16 and was acknowledged by the tracking DPG, but apparently was not high enough priority or forgotten.

@slava77
Copy link
Contributor

slava77 commented Apr 6, 2018

+1

for #22881 bb87927

  • technical changes
  • jenkins tests pass

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 6, 2018

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 Apr 9, 2018

+1

@cmsbuild cmsbuild merged commit 91f081a into cms-sw:master Apr 9, 2018
@Dr15Jones Dr15Jones deleted the clangFixSiStripCommon branch April 10, 2018 08:53
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