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

Use fixed order vector instead of map in EventSetup #25896

Merged
merged 1 commit into from
Feb 9, 2019

Conversation

wddgit
Copy link
Contributor

@wddgit wddgit commented Feb 8, 2019

No description provided.

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 8, 2019

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 8, 2019

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-25896/8367

  • This PR adds an extra 44KB to repository

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 8, 2019

A new Pull Request was created by @wddgit (W. David Dagenhart) for master.

It involves the following packages:

FWCore/Framework

@cmsbuild, @smuzaffar, @Dr15Jones can you please review it and eventually sign? Thanks.
@makortel, @Martin-Grunewald 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

@wddgit
Copy link
Contributor Author

wddgit commented Feb 8, 2019

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 8, 2019

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/33060/console Started: 2019/02/08 20:21

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 9, 2019

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 9, 2019

Comparison job queued.

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 9, 2019

Comparison is ready
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-25896/33060/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: 3097440
  • DQMHistoTests: Total failures: 1
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3097242
  • 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

@Dr15Jones
Copy link
Contributor

+1

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 9, 2019

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)

recordMap_[iKey]= iRecord;
auto lb = std::lower_bound(keysBegin_, keysEnd_, iKey);
if (lb == keysEnd_ || iKey != *lb) {
throw cms::Exception("LogicError") << "EventSetupImpl::insert Could not find key\n"
Copy link
Contributor

Choose a reason for hiding this comment

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

this error message would be more helpful if it included:

  1. information about the key (name, ?)
  2. information about what was found instead (another key, or nothing)

Copy link
Contributor

Choose a reason for hiding this comment

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

I believe the exception can only happen if there is a messup in the framework code. As such, if it happens the framework group would have to diagnose the problem anyway.

Copy link
Contributor

Choose a reason for hiding this comment

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

Okay, if I ever encounter this in the future, I will just forward it to you...

std::shared_ptr<EventSetupRecordProvider>& EventSetupProvider::recordProvider(const EventSetupRecordKey& iKey) {
auto lb = std::lower_bound(recordKeys_.begin(), recordKeys_.end(), iKey);
if (lb == recordKeys_.end() || iKey != *lb) {
throw cms::Exception("LogicError") << "EventSetupProvider::recordProvider Could not find key\n"
Copy link
Contributor

Choose a reason for hiding this comment

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

see above comment

Copy link
Contributor

Choose a reason for hiding this comment

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

Same for this exception

@Dr15Jones
Copy link
Contributor

@kpedro88 I’m waiting on this change because I’m also working on these same files and need this change for my work.

@kpedro88
Copy link
Contributor

kpedro88 commented Feb 9, 2019

+1

@cmsbuild cmsbuild merged commit 6eccd50 into cms-sw:master Feb 9, 2019
@wddgit wddgit deleted the vectorInEventSetup branch May 10, 2019 17:57
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