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

Simplify setting EDPutTokenT via call to produces #34926

Merged
merged 3 commits into from Aug 21, 2021

Conversation

Dr15Jones
Copy link
Contributor

PR description:

Call to produces does not require specifying the data product type as it will be deduced via EDPutTokenT.
Also did some minor code modernization.

PR validation:

Code compiles.

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-34926/24734

  • This PR adds an extra 52KB to repository

@cmsbuild
Copy link
Contributor

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

It involves the following packages:

  • FWCore/Framework (core)
  • FWCore/Modules (core)
  • FWCore/Utilities (core)

@makortel, @smuzaffar, @cmsbuild, @Dr15Jones can you please review it and eventually sign? Thanks.
@makortel, @felicepantaleo, @wddgit this is something you requested to watch as well.
@perrotta, @dpiparo, @qliphy you are the release manager for this.

cms-bot commands are listed here

@makortel
Copy link
Contributor

@cmsbuild, please test

@cmsbuild
Copy link
Contributor

-1

Failed Tests: Build HeaderConsistency ClangBuild
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-8ff0b1/17847/summary.html
COMMIT: 07f14de
CMSSW: CMSSW_12_1_X_2021-08-17-1100/slc7_amd64_gcc900
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/34926/17847/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-8ff0b1/17847/git-recent-commits.json
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-8ff0b1/17847/git-merge-result

Build

I found compilation error when building:

                 from /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_12_1_X_2021-08-17-1100/src/FWCore/Framework/interface/Event.h:35,
                 from /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_12_1_X_2021-08-17-1100/src/DQMServices/Core/interface/DQMEDAnalyzer.h:21,
                 from /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_12_1_X_2021-08-17-1100/src/CalibPPS/AlignmentGlobal/plugins/PPSAlignmentWorker.cc:13:
/data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_12_1_X_2021-08-17-1100/src/FWCore/Utilities/interface/EDPutToken.h: In instantiation of 'constexpr edm::EDPutTokenT& edm::EDPutTokenT::operator=(ADAPTER&&) [with ADAPTER = edm::EDPutTokenT&; T = DQMToken]':
/data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_12_1_X_2021-08-17-1100/src/DQMServices/Core/interface/DQMEDAnalyzer.h:72:45:   required from here
/data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_12_1_X_2021-08-17-1100/src/FWCore/Utilities/interface/EDPutToken.h:88:45: error: 'class edm::EDPutTokenT' has no member named 'produces'
   88 |       EDPutTokenT temp(iAdapter.template produces());
      |                           ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
gmake: *** [tmp/slc7_amd64_gcc900/src/CalibPPS/AlignmentGlobal/plugins/CalibPPSAlignmentPlugins/PPSAlignmentWorker.cc.o] Error 1
>> Building  edm plugin tmp/slc7_amd64_gcc900/src/CalibPPS/AlignmentGlobal/plugins/CalibPPSAlignmentPlugins/libCalibPPSAlignmentPlugins.so
c++: error: tmp/slc7_amd64_gcc900/src/CalibPPS/AlignmentGlobal/plugins/CalibPPSAlignmentPlugins/PPSAlignmentWorker.cc.o: No such file or directory


Clang Build

I found compilation error while trying to compile with clang. Command used:

USER_CUDA_FLAGS='--expt-relaxed-constexpr' USER_CXXFLAGS='-Wno-register -fsyntax-only' scram build -k -j 32 COMPILER='llvm compile'

>> Compiling  /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_12_1_X_2021-08-17-1100/src/FWCore/Framework/test/stream_filter_t.cppunit.cc
>> Compiling  /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_12_1_X_2021-08-17-1100/src/FWCore/Framework/test/limited_producer_t.cppunit.cc
>> Compiling  /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_12_1_X_2021-08-17-1100/src/FWCore/Framework/test/limited_filter_t.cppunit.cc
>> Compiling  /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_12_1_X_2021-08-17-1100/src/FWCore/Framework/test/limited_outputmodule_t.cppunit.cc
>> Compiling  /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_12_1_X_2021-08-17-1100/src/FWCore/Framework/test/checkForModuleDependencyCorrectness_t.cppunit.cc
/data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_12_1_X_2021-08-17-1100/src/FWCore/Framework/test/maker2_t.cppunit.cc:30:41: error: no matching member function for call to 'produces'
TestMod::TestMod(ParameterSet const&) { produces(); }
                                        ^~~~~~~~~~~~~
/data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_12_1_X_2021-08-17-1100/src/FWCore/Framework/interface/ProducerBase.h:112:24: note: candidate template ignored: invalid explicitly-specified argument for template parameter 'Tr'
    [[nodiscard]] auto produces() noexcept {
                       ^


Call to produces does not require specifying the data product type as it will be deduced via EDPutTokenT.
@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-34926/24744

  • This PR adds an extra 52KB to repository

@cmsbuild
Copy link
Contributor

Pull request #34926 was updated. @makortel, @smuzaffar, @cmsbuild, @Dr15Jones can you please check and sign again.

@Dr15Jones
Copy link
Contributor Author

please test

}

private:
//only ConsumesCollector is allowed to make an instance of this class
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 be

Suggested change
//only ConsumesCollector is allowed to make an instance of this class
//only ProducesCollector is allowed to make an instance of this class

?

}

private:
//only ConsumesCollector is allowed to make an instance of this class
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
//only ConsumesCollector is allowed to make an instance of this class
//only ProducesCollector is allowed to make an instance of this class

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-34926/24800

  • This PR adds an extra 56KB to repository

@cmsbuild
Copy link
Contributor

Pull request #34926 was updated. @makortel, @smuzaffar, @cmsbuild, @Dr15Jones can you please check and sign again.

@Dr15Jones
Copy link
Contributor Author

please test

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-8ff0b1/17927/summary.html
COMMIT: 87e056e
CMSSW: CMSSW_12_1_X_2021-08-20-1100/slc7_amd64_gcc900
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/34926/17927/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • No significant changes to the logs found
  • Reco comparison results: 4 differences found in the comparisons
  • DQMHistoTests: Total files compared: 39
  • DQMHistoTests: Total histograms compared: 3000352
  • DQMHistoTests: Total failures: 5
  • DQMHistoTests: Total nulls: 1
  • DQMHistoTests: Total successes: 3000324
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: -0.004 KiB( 38 files compared)
  • DQMHistoSizes: changed ( 312.0 ): -0.004 KiB MessageLogger/Warnings
  • Checked 165 log files, 37 edm output root files, 39 DQM output files
  • TriggerResults: no differences found

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

@qliphy
Copy link
Contributor

qliphy commented Aug 21, 2021

+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

4 participants