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

If TClass::GetClass() fails in TypeWithDict::byName(), include the argument class name in the exception message #44564

Merged
merged 1 commit into from
Mar 28, 2024

Conversation

makortel
Copy link
Contributor

PR description:

I investigated a user problem where ROOT header auto-parsing failed because of it trying to write the cuda.pcm to CVMFS. Printing out the name helped to point the actual problem (*). I thought adding the name to the exception message would help such investigations next time.

(*) the code used edm::EDGetTokenT instead of device::EDGetToken in an Alpaka module, that then lead to our check of "all consumed data types must have a dictionary" to make ROOT to auto-parse the headers, because the consumed (but incorrect!) type indeed did not have a dictionary

PR validation:

Checked the exception message in the example job. The added information would have immediately pointed towards the culprit.

@makortel makortel changed the title If TClass::GetClass() fails in TypeWithDict::byName(), include the argument class name in the exception message If TClass::GetClass() fails in TypeWithDict::byName(), include the argument class name in the exception message Mar 27, 2024
@cmsbuild cmsbuild added this to the CMSSW_14_1_X milestone Mar 27, 2024
@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 27, 2024

cms-bot internal usage

@cmsbuild
Copy link
Contributor

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-44564/39714

  • This PR adds an extra 20KB to repository

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

…xception message

This should help in figuring out what class did not have a ROOT
dictionary defined.
@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-44564/39715

  • This PR adds an extra 16KB to repository

@cmsbuild
Copy link
Contributor

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

It involves the following packages:

  • FWCore/Reflection (core)

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

cms-bot commands are listed here

@makortel
Copy link
Contributor Author

@cmsbuild, please test

@makortel
Copy link
Contributor Author

@Dr15Jones Could you review?

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-8f9657/38474/summary.html
COMMIT: ec49f99
CMSSW: CMSSW_14_1_X_2024-03-27-1100/el8_amd64_gcc12
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/44564/38474/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

@makortel
Copy link
Contributor Author

@Dr15Jones
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. @rappoccio, @antoniovilela, @sextonkennedy (and backports should be raised in the release meeting by the corresponding L2)

@antoniovilela
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit 7865815 into cms-sw:master Mar 28, 2024
11 checks passed
@makortel makortel deleted the dictionaryException branch April 1, 2024 13:27
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.

4 participants