Skip to content

Force use of RNTuple in RelVal workflows #47718

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

Merged
merged 10 commits into from
Apr 15, 2025

Conversation

Dr15Jones
Copy link
Contributor

@Dr15Jones Dr15Jones commented Mar 27, 2025

PR description:

  • added obsolete/optional parameters to make RNTuple modules be able to accept the same parameters as their equivalent Pool modules.
  • Fixed some issues with reading information from the files.
  • Fixed ProcessHistory handling
  • Made necessary changes to components called by runTheMatrix.py to accommodate the use of RNTuple.

PR validation:

Did runTheMatrix.py for workflows 1.0, 7.0 and 11834.99.

resolves cms-sw/framework-team#1315, cms-sw/framework-team#1314

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @Dr15Jones for CMSSW_15_1_RNTUPLE_X.

It involves the following packages:

  • Configuration/Applications (operations)
  • Configuration/PyReleaseValidation (upgrade, pdmv)
  • FWIO/RNTuple (core)

@AdrianoDee, @Dr15Jones, @Moanwar, @antoniovilela, @cmsbuild, @davidlange6, @DickyChant, @fabiocos, @makortel, @mandrenguyen, @miquork, @rappoccio, @smuzaffar, @srimanob, @subirsarkar can you please review it and eventually sign? Thanks.
@Martin-Grunewald, @fabiocos, @makortel, @missirol, @slomeo 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

cmsbuild commented Mar 27, 2025

cms-bot internal usage

@Dr15Jones
Copy link
Contributor Author

please test

@@ -209,6 +209,9 @@ def readMatrix(self, fileNameIn, useInput=None, refRel=None, fromScratch=None):
wfName = wfInfo[0]
stepList = wfInfo[1]
stepOverrides=wfInfo.overrides
#force use of RNTuple
stepOverrides['--rntuple_out']=''
Copy link
Contributor

Choose a reason for hiding this comment

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

@smuzaffar We want to pass the --rntuple_out to runTheMatrix.py for the IB and PR tests of the RNTUPLE_X IB. Is it more convenient to do it in the runTheMatrix code (in the RNTUPLE_X branch) as here, or via the cms-bot?

Copy link
Contributor Author

@Dr15Jones Dr15Jones Mar 27, 2025

Choose a reason for hiding this comment

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

For this PR, that is not needed as the above line adds --rntuple_out to ALL workflows. In fact, I didn't add an option to runTheMatrix.py to use such a command line option.

Copy link
Contributor

@smuzaffar smuzaffar Mar 27, 2025

Choose a reason for hiding this comment

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

@makortel , it will be easier if we do it via runTheMatrix itself. This way it will be enabled for IB and PR tests. May be add it conditionally e.g if 'RNTUPLE_X' in os.environ['CMSSW_VERSION'] then add it?

Copy link
Contributor

Choose a reason for hiding this comment

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

May be add it conditionally e.g if 'RNTUPLE_X' in os.environ['CMSSW_VERSION'] then add it?

Some kind of conditional will be needed if this logic would enter the master branch (or "eventually" and "when"). This PR targets the RNTUPLE_X branch, so technically unconditional would be ok. Generally I'd like to keep the runTheMatrix and cmsDriver code as close as possible between master and RNTUPLE_X.

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 agree that keeping them close is important. That is why that change is in its own commit.

@cmsbuild
Copy link
Contributor

-1

Failed Tests: UnitTests RelVals
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-2d6247/45253/summary.html
COMMIT: 29bc7f7
CMSSW: CMSSW_15_1_RNTUPLE_X_2025-03-26-2300/el8_amd64_gcc12
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/47718/45253/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-2d6247/45253/git-recent-commits.json
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-2d6247/45253/git-merge-result

Unit Tests

I found 1 errors in the following unit tests:

---> test TestConfigurationApplicationsConfigBuilder had ERRORS

RelVals

----- Begin Fatal Exception 27-Mar-2025 21:18:39 CET-----------------------
An exception of category 'FileOpenError' occurred while
   [0] Constructing the EventProcessor
   [1] Constructing input source of type PoolSource
   [2] Calling RootInputFileSequence::initTheFile()
   [3] Calling StorageFactory::open()
   [4] Calling File::sysopen()
Exception Message:
Failed to open the file 'step3_inMINIAODSIM.root'
   Additional Info:
      [a] Input file file:step3_inMINIAODSIM.root could not be opened.
      [b] open() failed with system error 'No such file or directory' (error code 2)
----- End Fatal Exception -------------------------------------------------
----- Begin Fatal Exception 27-Mar-2025 21:05:30 CET-----------------------
An exception of category 'StdException' occurred while
   [0] while setting up field SimTrackToTPMap_simHitTPAssocProducer_simTrackToTP_RECO.
Exception Message:
A std::exception was thrown.
the type list for std::unordered_map must have exactly two elements (unchecked RResult access!) (unchecked RResult access!) (unchecked RResult access!)
At:
  ROOT::Experimental::RFieldBase::Create(const std::string&, const std::string&, const std::string&, bool)::<lambda(const std::string&)> [/data/cmsbld/jenkins/workspace/build-any-ib/w/BUILD/el8_amd64_gcc12/lcg/root/6.35.1-cc9e1c987ea2cc73181ea1f469f472c9/root-6.35.1/tree/ntuple/v7/src/RFieldBase.cxx:308]
  static ROOT::RResult<std::unique_ptr<ROOT::Experimental::RFieldBase> > ROOT::Experimental::RFieldBase::Create(const std::string&, const std::string&, const std::string&, bool) [/data/cmsbld/jenkins/workspace/build-any-ib/w/BUILD/el8_amd64_gcc12/lcg/root/6.35.1-cc9e1c987ea2cc73181ea1f469f472c9/root-6.35.1/tree/ntuple/v7/src/RFieldBase.cxx:483]
  static ROOT::RResult<std::unique_ptr<ROOT::Experimental::RFieldBase> > ROOT::Experimental::RFieldBase::Create(const std::string&, const std::string&) [/data/cmsbld/jenkins/workspace/build-any-ib/w/BUILD/el8_amd64_gcc12/lcg/root/6.35.1-cc9e1c987ea2cc73181ea1f469f472c9/root-6.35.1/tree/ntuple/v7/src/RFieldBase.cxx:271]
----- End Fatal Exception -------------------------------------------------
----- Begin Fatal Exception 27-Mar-2025 21:05:30 CET-----------------------
An exception of category 'StdException' occurred while
   [0] while setting up field SimTrackToTPMap_simHitTPAssocProducer_simTrackToTP_RECO.
Exception Message:
A std::exception was thrown.
the type list for std::unordered_map must have exactly two elements (unchecked RResult access!) (unchecked RResult access!) (unchecked RResult access!)
At:
  ROOT::Experimental::RFieldBase::Create(const std::string&, const std::string&, const std::string&, bool)::<lambda(const std::string&)> [/data/cmsbld/jenkins/workspace/build-any-ib/w/BUILD/el8_amd64_gcc12/lcg/root/6.35.1-cc9e1c987ea2cc73181ea1f469f472c9/root-6.35.1/tree/ntuple/v7/src/RFieldBase.cxx:308]
  static ROOT::RResult<std::unique_ptr<ROOT::Experimental::RFieldBase> > ROOT::Experimental::RFieldBase::Create(const std::string&, const std::string&, const std::string&, bool) [/data/cmsbld/jenkins/workspace/build-any-ib/w/BUILD/el8_amd64_gcc12/lcg/root/6.35.1-cc9e1c987ea2cc73181ea1f469f472c9/root-6.35.1/tree/ntuple/v7/src/RFieldBase.cxx:483]
  static ROOT::RResult<std::unique_ptr<ROOT::Experimental::RFieldBase> > ROOT::Experimental::RFieldBase::Create(const std::string&, const std::string&) [/data/cmsbld/jenkins/workspace/build-any-ib/w/BUILD/el8_amd64_gcc12/lcg/root/6.35.1-cc9e1c987ea2cc73181ea1f469f472c9/root-6.35.1/tree/ntuple/v7/src/RFieldBase.cxx:271]
----- End Fatal Exception -------------------------------------------------
Expand to see more relval errors ...

@makortel
Copy link
Contributor

@smuzaffar Could we actually enable the MaxMemoryPreload (--maxmem_profile argument to cmsDriver.py) for the PRs tested with the RNTUPLE_X IB?

@cmsbuild
Copy link
Contributor

Pull request #47718 was updated. @AdrianoDee, @Dr15Jones, @Moanwar, @antoniovilela, @cmsbuild, @davidlange6, @DickyChant, @fabiocos, @makortel, @mandrenguyen, @miquork, @rappoccio, @smuzaffar, @srimanob, @subirsarkar can you please check and sign again.

@Dr15Jones
Copy link
Contributor Author

please test

@cmsbuild
Copy link
Contributor

-1

Failed Tests: RelVals
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-2d6247/45276/summary.html
COMMIT: 341d82a
CMSSW: CMSSW_15_1_RNTUPLE_X_2025-03-27-2300/el8_amd64_gcc12
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/47718/45276/install.sh to create a dev area with all the needed externals and cmssw changes.

RelVals

----- Begin Fatal Exception 28-Mar-2025 22:06:08 CET-----------------------
An exception of category 'FileOpenError' occurred while
   [0] Constructing the EventProcessor
   [1] Constructing input source of type PoolSource
   [2] Calling RootInputFileSequence::initTheFile()
   [3] Calling StorageFactory::open()
   [4] Calling File::sysopen()
Exception Message:
Failed to open the file 'step3_inMINIAODSIM.root'
   Additional Info:
      [a] Input file file:step3_inMINIAODSIM.root could not be opened.
      [b] open() failed with system error 'No such file or directory' (error code 2)
----- End Fatal Exception -------------------------------------------------
----- Begin Fatal Exception 28-Mar-2025 21:59:53 CET-----------------------
An exception of category 'FileOpenError' occurred while
   [0] Constructing the EventProcessor
   [1] Constructing input source of type PoolSource
   [2] Calling RootInputFileSequence::initTheFile()
   [3] Calling StorageFactory::open()
   [4] Calling File::sysopen()
Exception Message:
Failed to open the file 'step3_inMINIAODSIM.root'
   Additional Info:
      [a] Input file file:step3_inMINIAODSIM.root could not be opened.
      [b] open() failed with system error 'No such file or directory' (error code 2)
----- End Fatal Exception -------------------------------------------------
  • 1000.01000.0_RunMinBias2011A/step3_RunMinBias2011A.log
Expand to see more relval errors ...

@smuzaffar
Copy link
Contributor

test parameters:

  • workflow_command_option = --maxmem_profile

@smuzaffar
Copy link
Contributor

please test

This information is now in classes_def.xml.
@cmsbuild
Copy link
Contributor

Pull request #47718 was updated. @AdrianoDee, @Dr15Jones, @Moanwar, @cmsbuild, @DickyChant, @makortel, @miquork, @smuzaffar, @srimanob, @subirsarkar 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-2d6247/45542/summary.html
COMMIT: ffce48b
CMSSW: CMSSW_15_1_RNTUPLE_X_2025-04-13-2300/el8_amd64_gcc12
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/47718/45542/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-2d6247/45542/git-recent-commits.json
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-2d6247/45542/git-merge-result

Comparison Summary

Summary:

  • You potentially removed 4935 lines from the logs
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 50
  • DQMHistoTests: Total histograms compared: 3915905
  • DQMHistoTests: Total failures: 683
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3915202
  • DQMHistoTests: Total skipped: 20
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: -3409.04 KiB( 49 files compared)
  • DQMHistoSizes: changed ( 1001.0 ): -3409.040 KiB AlCaReco/SiStripHitEfficiency
  • Checked 215 log files, 8 edm output root files, 50 DQM output files
  • TriggerResults: no differences found

@makortel
Copy link
Contributor

+core

Matrix test outputs showed .rntpl files.

@makortel
Copy link
Contributor

@cms-sw/pdmv-l2 @cms-sw/upgrade-l2 Please note this PR is for RNTUPLE_X branch, and therefore will not impact any other IB flavor.

@AdrianoDee
Copy link
Contributor

+pdmv

@Moanwar
Copy link
Contributor

Moanwar commented Apr 15, 2025

+Upgrade

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next CMSSW_15_1_RNTUPLE_X IBs (tests are also fine) and once validation in the development release cycle CMSSW_15_1_X is complete. This pull request will now be reviewed by the release team before it's merged. @rappoccio, @mandrenguyen, @antoniovilela, @sextonkennedy (and backports should be raised in the release meeting by the corresponding L2)

@mandrenguyen
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.

7 participants