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

Added an edm::ValidHandle type #25682

Merged
merged 2 commits into from
Jan 18, 2019
Merged

Added an edm::ValidHandle type #25682

merged 2 commits into from
Jan 18, 2019

Conversation

Dr15Jones
Copy link
Contributor

A edm::ValidHandle<> is more efficient to use in different functions than a edm::Handle<> since the latter always checks to see if it is valid or not.

The new handle type is guaranteed to be valid so no additional checks are done internally when it is being used.
We switched to always using C++11 a long time ago.
@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@Dr15Jones
Copy link
Contributor Author

@guitargeek Here is the first change.

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-25682/8035

  • This PR adds an extra 20KB to repository

@cmsbuild
Copy link
Contributor

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

It involves the following packages:

DataFormats/Common

@cmsbuild, @smuzaffar, @Dr15Jones can you please review it and eventually sign? Thanks.
@makortel, @rovere, @wddgit 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 Jan 16, 2019

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/32648/console Started: 2019/01/16 19:11
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/32656/console Started: 2019/01/17 08:33

}
ValidHandle( const ValidHandle<T>& ) = default;
ValidHandle<T>& operator=(ValidHandle<T> const& rhs) = default;
~ValidHandle() = default;
Copy link
Contributor

Choose a reason for hiding this comment

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

What about moves? (actually simplest way, as we just reminded ourselves, would be to remove the destructor and copy constructor/assignment definitions and leave all 5 to be generated by the compiler)

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 didn't really want moves. The moves are no different from what a copy should do and I explicitly do NOT want a move of a ValidHandle to cause the handle to become invalid :).

Copy link
Contributor

Choose a reason for hiding this comment

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

What about explicitly defining the move operations deleted then (so that the intention is clear)?

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok, we discussed in length.

@Dr15Jones
Copy link
Contributor Author

@smuzaffar why didn't the build test report a problem?

@Dr15Jones
Copy link
Contributor Author

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Jan 17, 2019

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/32679/console Started: 2019/01/17 20:01

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

Comparison job queued.

@Dr15Jones
Copy link
Contributor Author

+1

@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. @davidlange6, @slava77, @smuzaffar, @fabiocos (and backports should be raised in the release meeting by the corresponding L2)

@cmsbuild
Copy link
Contributor

Comparison is ready
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-25682/32679/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: 212
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3097031
  • 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

@smuzaffar
Copy link
Contributor

@Dr15Jones , looks like bug in testing script. When unittests are timed out then it fails the whole job and does not report back. In this case unit tests were timed out after 7 hours [a]. I have updated the script to continue and report back the failure.

[a]

10:27:12 + echo CMS_PATH=/cvmfs/cms-ib.cern.ch/week0 timeout 25160 scram b -k -j 32 runtests
17:26:41 + ERR=1

@fabiocos
Copy link
Contributor

@Dr15Jones the changes are mostly in the L1T domain, I do not see a specific reason related to this PR for them, apart possible non reproducibility of that part of code, do you agree?

@Dr15Jones
Copy link
Contributor Author

My changed primarily added a new class not used anywhere in CMSSW. Therefore I'd say the changes from the test runs are irrelevant.

@fabiocos
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit 9789f0e into cms-sw:master Jan 18, 2019
@Dr15Jones Dr15Jones deleted the validHandle branch January 23, 2019 16:41
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

5 participants