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

Migrate from boost::optional to std::optional in EventSetup system #24586

Merged
merged 5 commits into from
Sep 25, 2018

Conversation

knoepfel
Copy link
Contributor

This PR does include some whitespace changes which are due to using C++17's nested namespace declarations.

Includes whitespace changes due to using nested namespace
declarations, which are supported as of C++17.
@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @knoepfel (Kyle Knoepfel) for master.

It involves the following packages:

DQM/DTMonitorClient
DQM/EcalPreshowerMonitorModule
DQM/HcalCommon
DQM/RPCMonitorClient
DQM/SiPixelMonitorClient
DQM/SiStripMonitorClient
DQM/SiStripMonitorDigi
DQM/TrackingMonitorClient
DQMServices/Components
FWCore/Framework
FWCore/Modules
L1TriggerConfig/RCTConfigProducers
PhysicsTools/CondLiteIO

@smuzaffar, @andrius-k, @Dr15Jones, @kmaeshima, @schneiml, @monttj, @nsmith-, @rekovic, @cmsbuild, @jfernan2, @thomreis, @gpetruc, @arizzi can you please review it and eventually sign? Thanks.
@acimmino, @barvic, @DryRun, @hdelanno, @makortel, @mtosi, @wddgit, @argiro, @Martin-Grunewald, @fioriNTU, @deguio, @jandrea, @idebruyn, @threus, @venturia 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

@andrius-k
Copy link

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 18, 2018

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/30491/console Started: 2018/09/18 19:54

@@ -11,7 +11,7 @@ void DQMDaqInfo::beginLuminosityBlock(const edm::LuminosityBlock& lumiBlock, con

edm::eventsetup::EventSetupRecordKey recordKey(edm::eventsetup::EventSetupRecordKey::TypeTag::findType("RunInfoRcd"));

if( nullptr != iSetup.find( recordKey ) ) {
if( std::nullopt != iSetup.find( recordKey ) ) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this also be changed to use tryToGet?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes...I missed that one. Will change.

@@ -2,7 +2,7 @@
//
// Package: Framework
// Class : ESProducer
//
//
Copy link
Contributor

Choose a reason for hiding this comment

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

It looks like you only changed spaces here? Can this be reverted back?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yikes, yes that's true. Will revert.

ToT & iTo) {
iTo = std::move(iFrom);
}
namespace edm::eventsetup {
Copy link
Contributor

Choose a reason for hiding this comment

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

Was this just a change from 3 spaces to 2 ? If so, please revert.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Namespace collapsing was the change.


struct Label {
Label() = default;
Label(std::string_view const iString) : default_{iString} {}
Copy link
Contributor

Choose a reason for hiding this comment

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

Was string_view the only change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That and the namespace collapsing.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think the switch to std::string_view is causing the compilation problem in HcalHardcodeGeometryEP.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, just confirmed that. Will revert.

@@ -4,7 +4,7 @@
//
// Package: Framework
// Class : DummyProvider
//
//
Copy link
Contributor

Choose a reason for hiding this comment

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

Were only cosmetic changes done to this file?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes

};
}
}
namespace edm::eventsetup::test {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this only cosmetic changes?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes

@@ -28,114 +28,113 @@

// forward declarations
namespace edm {
Copy link
Contributor

Choose a reason for hiding this comment

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

Are the only changes the spacing and the collapsed namespace? If so, please revert.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, will revert.

@@ -4,7 +4,7 @@
//
// Package: Framework
// Class : ESProducer
//
Copy link
Contributor

Choose a reason for hiding this comment

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

Were there any functional changes to this file?

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 think the answer is no. I'll be more careful next time.

@@ -63,7 +63,7 @@ void L1RCTChannelMaskTester::analyze(const edm::Event& iEvent,
edm::eventsetup::EventSetupRecordKey::TypeTag::findType(
"L1RCTNoisyChannelMaskRcd"));

if (evSetup.find(recordKey) == nullptr) {
if (evSetup.find(recordKey) == std::nullopt) {
//record not found
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Missed this one, too--should be tryToGet.

@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

Pull request #24586 was updated. @smuzaffar, @andrius-k, @Dr15Jones, @kmaeshima, @schneiml, @monttj, @nsmith-, @rekovic, @cmsbuild, @jfernan2, @thomreis, @ggovi, @gpetruc, @arizzi can you please check and sign again.

@andrius-k
Copy link

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 19, 2018

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/30509/console Started: 2018/09/19 16:34

@cmsbuild
Copy link
Contributor

@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-24586/30509/summary.html

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 32
  • DQMHistoTests: Total histograms compared: 3146746
  • DQMHistoTests: Total failures: 77
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3146472
  • DQMHistoTests: Total skipped: 197
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 31 files compared)
  • Checked 133 log files, 14 edm output root files, 32 DQM output files

@andrius-k
Copy link

+1

@Dr15Jones
Copy link
Contributor

+1
The histogram failures are all from L1TEMU/L1TStage2CaloLayer2/L1TdeStage2CaloLayer2 which I believe has a history of false positives.

@Dr15Jones
Copy link
Contributor

@monttj @arizzi @gpetruc @ggovi @rekovic @thomreis @nsmith-
please review and sign

@thomreis
Copy link
Contributor

+1

@ggovi
Copy link
Contributor

ggovi commented Sep 25, 2018

+1

@fabiocos
Copy link
Contributor

+1

@fabiocos
Copy link
Contributor

merge

@cmsbuild cmsbuild merged commit 5617275 into cms-sw:master Sep 25, 2018
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

7 participants