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

Update FWCore/ParameterSet headers #31429

Merged
merged 2 commits into from Sep 11, 2020

Conversation

Dr15Jones
Copy link
Contributor

PR description:

  • Moved ParameterSet headers to src if not needed for API
  • replaced getFixedSizedArray.h with generic mechanism to get arbitrary types via call to ParameterSet::get(Untracked)Parameter

PR validation:

Code compiles.

The underlying type is still an std::vector but it gets converted
during the call to get(Untracked)Parameter.
@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-31429/18293

  • This PR adds an extra 60KB to repository

@cmsbuild
Copy link
Contributor

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

It involves the following packages:

FWCore/Integration
FWCore/ParameterSet

@makortel, @smuzaffar, @cmsbuild, @Dr15Jones can you please review it and eventually sign? Thanks.
@makortel, @wddgit this is something you requested to watch as well.
@silviodonato, @dpiparo, @qliphy 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 Sep 10, 2020

The tests are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

+1
Tested at: c13ed23
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-3df28a/9251/summary.html
CMSSW: CMSSW_11_2_X_2020-09-10-1100
SCRAM_ARCH: slc7_amd64_gcc820

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-3df28a/9251/git-log-recent-commits
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-3df28a/9251/git-merge-result

@cmsbuild
Copy link
Contributor

Comparison job queued.

// ESInputTag

template <>
ESInputTag ParameterSet::getParameter<ESInputTag>(char const* name) const;
Copy link
Contributor

Choose a reason for hiding this comment

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

This is beyond this PR, but I want to wonder out loud the usefulness of the (char const* name) overloads given that under the hood a std::string gets constructed anyway

Entry const& ParameterSet::retrieve(char const* name) const { return retrieve(std::string(name)); }

Should we (later) look into replacing both std::string const& and char const* overloads with a single std::string_view?

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 would like to explore that. I think one reason for both std::string and char const* is how templated functions fall within the overload function set. I'm guessing in the past we needed both else automatic conversion was not happening.

Copy link
Contributor

Choose a reason for hiding this comment

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

It has been a long time and I might not be remembering this correctly, but I believe the reason we added both interfaces was that use of the char const* interface was causing the conversion to string to be inlined in many many places during the build, which was not efficient. I am remembering what other people said. This is not something I tested myself.

@cmsbuild
Copy link
Contributor

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

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 35
  • DQMHistoTests: Total histograms compared: 2620284
  • DQMHistoTests: Total failures: 1
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2620261
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 34 files compared)
  • Checked 149 log files, 22 edm output root files, 35 DQM output files

@makortel
Copy link
Contributor

+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. @silviodonato, @dpiparo, @qliphy (and backports should be raised in the release meeting by the corresponding L2)

@qliphy
Copy link
Contributor

qliphy commented Sep 11, 2020

+1

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