Skip to content

Conversation

@makortel
Copy link
Contributor

@makortel makortel commented Sep 27, 2023

PR description:

As far as I can (quickly) tell, these two uses of existsAs() are legitimate. The warnings were noticed in #42518 (comment) .

Resolves cms-sw/framework-team#681

PR validation:

None (edited on the web editor).

@cmsbuild
Copy link
Contributor

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-42889/37024

  • This PR adds an extra 16KB to repository

Code check has found code style and quality issues which could be resolved by applying following patch(s)

…ion.h

These two uses of existsAs() are legitimate
@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-42889/37025

  • This PR adds an extra 16KB to repository

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @makortel (Matti Kortelainen) for master.

It involves the following packages:

  • FWCore/ParameterSet (core)

@Dr15Jones, @smuzaffar, @makortel, @cmsbuild can you please review it and eventually sign? Thanks.
@missirol, @wddgit this is something you requested to watch as well.
@antoniovilela, @sextonkennedy, @rappoccio you are the release manager for this.

cms-bot commands are listed here

@makortel
Copy link
Contributor Author

@cmsbuild, please test

Let's see if this works

@makortel
Copy link
Contributor Author

@Dr15Jones Do you agree?

@Dr15Jones
Copy link
Contributor

yes

@cmsbuild
Copy link
Contributor

-1

Failed Tests: UnitTests
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-55493a/34942/summary.html
COMMIT: 0b23d79
CMSSW: CMSSW_13_3_X_2023-09-27-1100/el8_amd64_gcc11
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/42889/34942/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-55493a/34942/git-recent-commits.json
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-55493a/34942/git-merge-result

Unit Tests

I found 1 errors in the following unit tests:

---> test CondToolsLHCInfoNewPopConTest had ERRORS

Comparison Summary

Summary:

  • You potentially removed 9 lines from the logs
  • Reco comparison results: 12 differences found in the comparisons
  • DQMHistoTests: Total files compared: 50
  • DQMHistoTests: Total histograms compared: 3358320
  • DQMHistoTests: Total failures: 6
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3358292
  • 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

@makortel
Copy link
Contributor Author

Seems to do the job. The unit test fails also in the IBs

@makortel
Copy link
Contributor Author

+core

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next master IBs (but tests are reportedly failing). 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)

@srimanob
Copy link
Contributor

@cmsbuild please test with #42518

Just to see the result.

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-55493a/34960/summary.html
COMMIT: 0b23d79
CMSSW: CMSSW_13_3_X_2023-09-28-1100/el8_amd64_gcc11
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/42889/34960/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • You potentially removed 1 lines from the logs
  • ROOTFileChecks: Some differences in event products or their sizes found
  • Reco comparison results: 35 differences found in the comparisons
  • DQMHistoTests: Total files compared: 50
  • DQMHistoTests: Total histograms compared: 3358320
  • DQMHistoTests: Total failures: 133
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3358165
  • 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

@srimanob
Copy link
Contributor

Hi @makortel

Thanks very much for the PR. I still see warnings of existAs() from the last test that I trigger in the PR, PR test result. Do I miss something? Thx.

In file included from /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_13_3_X_2023-09-28-1100/src/RecoHGCal/TICL/plugins/TrackstersMergeProducer.cc:5:
/data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_13_3_X_2023-09-28-1100/src/FWCore/ParameterSet/interface/PluginDescription.h:193:27: warning: function edm::ParameterSet::existsAs<class std::basic_string<char>>(const std::basic_string<char, std::char_traits<char>, std::allocator<char> > &, _Bool) const is called in function edm::PluginDescription::exists_(const edm::ParameterSet &) const [cms.CodeRules.psetExistsChecker]
      CMS_SA_ALLOW return pset.existsAs<std::string>(typeLabel_, typeLabelIsTracked_);
                          ^    ~~~~~~~~
/data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_13_3_X_2023-09-28-1100/src/FWCore/ParameterSet/interface/PluginDescription.h:193:27: warning: function edm::ParameterSet::existsAs<class std::basic_string<char>>(const std::basic_string<char, std::char_traits<char>, std::allocator<char> > &, _Bool) const is called in function edm::PluginDescription<edmplugin::PluginFactory<ticl::LinkingAlgoBase *(const edm::ParameterSet &)>>::exists_(const edm::ParameterSet &) const [cms.CodeRules.psetExistsChecker]
      CMS_SA_ALLOW return pset.existsAs<std::string>(typeLabel_, typeLabelIsTracked_);
                          ^    ~~~~~~~~
/data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_13_3_X_2023-09-28-1100/src/FWCore/ParameterSet/interface/PluginDescription.h:203:26: warning: function edm::ParameterSet::existsAs<class std::basic_string<char>>(const std::basic_string<char, std::char_traits<char>, std::allocator<char> > &, _Bool) const is called in function edm::PluginDescription::findType(const edm::ParameterSet &) const [cms.CodeRules.psetExistsChecker]
        CMS_SA_ALLOW if (iPSet.existsAs<std::string>(typeLabel_) || defaultType_.empty()) {
                         ^     ~~~~~~~~
/data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_13_3_X_2023-09-28-1100/src/FWCore/ParameterSet/interface/PluginDescription.h:203:26: warning: function edm::ParameterSet::existsAs<class std::basic_string<char>>(const std::basic_string<char, std::char_traits<char>, std::allocator<char> > &, _Bool) const is called in function edm::PluginDescription<edmplugin::PluginFactory<ticl::LinkingAlgoBase *(const edm::ParameterSet &)>>::findType(const edm::ParameterSet &) const [cms.CodeRules.psetExistsChecker]
        CMS_SA_ALLOW if (iPSet.existsAs<std::string>(typeLabel_) || defaultType_.empty()) {

@makortel
Copy link
Contributor Author

I'm honestly puzzled why the warnings appear only in the tests with #42518?

@rappoccio
Copy link
Contributor

Ready to merge except we also need this one:

#42518

@makortel
Copy link
Contributor Author

This PR does not need #42518, @srimanob just wanted to test them together.

@srimanob
Copy link
Contributor

@cms-sw/orp-l2 please feel free to merge. I will follow up on remaining static log warning in the original PR. Thx.

@rappoccio
Copy link
Contributor

+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.

Silence static analyzer warning on existsAs() calls in PluginDescription.h

5 participants