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

Implement a GenericProduct and GenericCloner test module #46821

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

fwyzard
Copy link
Contributor

@fwyzard fwyzard commented Nov 28, 2024

PR description:

Implement additional framework functionality used by the MPI-based modules developed in #32632:

  • edm::GenericProduct can be used to produce any collection using its ROOT dictionary;
  • edmtest::GenericCloner can be used to clone the event products declared by its configuration, using their ROOT dictionaries.

Extend few core features:

  • edm::Wrapper<T> can be populated moving from an object using a type-erased void* and the object's std::type_info; edm::WrapperBase provides the moveFrom() public interface.

PR validation:

New unit test pass.

@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 28, 2024

cms-bot internal usage

@fwyzard
Copy link
Contributor Author

fwyzard commented Nov 28, 2024

please test

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-46821/42824

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @fwyzard for master.

It involves the following packages:

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

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

cms-bot commands are listed here

@cmsbuild
Copy link
Contributor

-1

Failed Tests: HeaderConsistency
Size: This PR adds an extra 12KB to repository
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-23eeae/43128/summary.html
COMMIT: 339cf8b
CMSSW: CMSSW_15_0_X_2024-11-27-2300/el8_amd64_gcc12
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/46821/43128/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

@fwyzard
Copy link
Contributor Author

fwyzard commented Nov 28, 2024

Rebased to include the fix from #46825 so the tests should now pass.

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-46821/42832

@cmsbuild
Copy link
Contributor

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

@fwyzard
Copy link
Contributor Author

fwyzard commented Nov 28, 2024

@Dr15Jones @makortel this is very preliminary, but id does seem to work.
Could you let me know what you think of this approach?

Some random questions:

  • should we consider some integration with edm::GenericHandle ?
  • does the way I used to build objects make sense ?
  • is there a way to get rid of the memcpy at GenericProduct.h
    , line 41
    ?

@fwyzard
Copy link
Contributor Author

fwyzard commented Nov 28, 2024

please test

@cmsbuild
Copy link
Contributor

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

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-46821/43868

@cmsbuild
Copy link
Contributor

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

Implement a generic product type that can be constructed based on the
object's ObjectWithDict and on the wrapper's TypeWithDict.
This EDProducer will clone all the event products declared by its
configuration, using their ROOT dictionaries.
@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-46821/43872

@cmsbuild
Copy link
Contributor

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

@fwyzard
Copy link
Contributor Author

fwyzard commented Feb 25, 2025

please test

🤷🏻‍♂️

@cmsbuild
Copy link
Contributor

+1

Size: This PR adds an extra 40KB to repository
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-23eeae/44665/summary.html
COMMIT: 8ed3144
CMSSW: CMSSW_15_1_X_2025-02-25-1200/el8_amd64_gcc12
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/46821/44665/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

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.

7 participants