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

Fix maybe-uninitialized warning in MeasurementTrackerImpl::addPhase2Det #42880

Merged
merged 2 commits into from
Oct 9, 2023

Conversation

iarspider
Copy link
Contributor

Closes #42625

PR description:

Fixes maybe-uninitialized warning in MeasurementTrackerImpl::addPhase2Det as suggested by @makortel in #42625 (comment) .

PR validation:

Local build

@iarspider
Copy link
Contributor Author

please test for CMSSW_13_3_CPP20_X

@cmsbuild
Copy link
Contributor

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-42880/37018

ERROR: Build errors found during clang-tidy run.

RecoTracker/MeasurementDet/plugins/TkPhase2OTMeasurementDet.cc:11:29: error: field 'theDetConditions' will be initialized after field 'index_' [clang-diagnostic-reorder-ctor]
    : MeasurementDet(gdet), theDetConditions(&conditions), index_(0) {
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~
                            index_(0)                      theDetConditions(&conditions)
--
gmake: *** [config/SCRAM/GMake/Makefile.coderules:129: code-checks] Error 2
gmake: *** [There are compilation/build errors. Please see the detail log above.] Error 2

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-42880/37019

  • 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:

  • RecoTracker/MeasurementDet (reconstruction)

@cmsbuild, @jfernan2, @mandrenguyen can you please review it and eventually sign? Thanks.
@VourMa, @felicepantaleo, @GiacomoSguazzoni, @JanFSchulte, @rovere, @VinInn, @missirol, @ebrondol, @gpetruc, @mmusich, @mtosi, @dgulhan this is something you requested to watch as well.
@rappoccio, @antoniovilela, @sextonkennedy you are the release manager for this.

cms-bot commands are listed here

@iarspider
Copy link
Contributor Author

please test for CMSSW_13_3_CPP20_X

@iarspider
Copy link
Contributor Author

please test

@iarspider
Copy link
Contributor Author

please test for CMSSW_13_3_CPP20_X

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-9007a4/34930/summary.html
COMMIT: 9a3b9f4
CMSSW: CMSSW_13_3_X_2023-09-26-2300/el8_amd64_gcc11
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/42880/34930/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • You potentially added 3 lines to the logs
  • Reco comparison results: 4 differences found in the comparisons
  • DQMHistoTests: Total files compared: 50
  • DQMHistoTests: Total histograms compared: 3358320
  • DQMHistoTests: Total failures: 3
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3358295
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 49 files compared)
  • Checked 214 log files, 167 edm output root files, 50 DQM output files
  • TriggerResults: no differences found

@iarspider
Copy link
Contributor Author

For CPP20, the failure also happens in IBs and doesn't seem to be related to this PR.

@cmsbuild
Copy link
Contributor

-1

Failed Tests: UnitTests
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-9007a4/34931/summary.html
COMMIT: 9a3b9f4
CMSSW: CMSSW_13_3_CPP20_X_2023-09-25-1100/el8_amd64_gcc12
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/42880/34931/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-9007a4/34931/git-recent-commits.json
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-9007a4/34931/git-merge-result

Unit Tests

I found 1 errors in the following unit tests:

---> test TestSiStripApproximateClusterCollection had ERRORS

Comparison Summary

Summary:

  • You potentially added 8388 lines to the logs
  • ROOTFileChecks: Some differences in event products or their sizes found
  • Reco comparison results: 18465 differences found in the comparisons
  • DQMHistoTests: Total files compared: 50
  • DQMHistoTests: Total histograms compared: 3358044
  • DQMHistoTests: Total failures: 57590
  • DQMHistoTests: Total nulls: 1801
  • DQMHistoTests: Total successes: 3298631
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 34.246 KiB( 49 files compared)
  • DQMHistoSizes: changed ( 11634.0,... ): 3.478 KiB Physics/NanoAODDQM
  • DQMHistoSizes: changed ( 13234.0,... ): 2.476 KiB Physics/NanoAODDQM
  • DQMHistoSizes: changed ( 4.53 ): -0.004 KiB JetMET/SUSYDQM
  • Checked 214 log files, 167 edm output root files, 50 DQM output files
  • TriggerResults: found differences in 1 / 48 workflows

@mandrenguyen
Copy link
Contributor

+1

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 7, 2023

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

@antoniovilela
Copy link
Contributor

+1

@antoniovilela
Copy link
Contributor

merge

@cmsbuild cmsbuild merged commit 96fb87f into cms-sw:master Oct 9, 2023
16 of 17 checks passed
@iarspider iarspider deleted the fix-42625 branch November 20, 2023 07:56
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.

[CPP20] maybe-uninitialized warning in MeasurementTrackerImpl::addPhase2Det
4 participants