-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Add ESInputTag to VPSet default added to cfi file #44344
Conversation
cms-bot internal usage |
-code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-44344/39377
Code check has found code style and quality issues which could be resolved by applying following patch(s)
|
bf22c54
to
c8b0d1a
Compare
please test |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-44344/39378
|
A new Pull Request was created by @Dr15Jones for master. It involves the following packages:
@makortel, @Dr15Jones, @smuzaffar can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
s_findTheRightFunction[edm::k_ESInputTag] = &fillDescriptionFromParameter<edm::ESInputTag>; | ||
s_findTheRightFunction[edm::k_VESInputTag] = &fillDescriptionFromParameter<std::vector<edm::ESInputTag>>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These were the two missing entries.
The rest should just be a direct replacement of the char with the same valued enum.
vl = cms.vint64(1), | ||
vt = cms.VInputTag('foo'), | ||
vui = cms.vuint32(1), | ||
vul = cms.vuint64(1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see string
, vstring
, FileInPath
, vbool
are "missing" from this list. Are they tested well-enough elsewhere, or would there be value in adding them here?
(in principle also inner PSet
and VPSet
are not there, but maybe they are tested already well-enough elsewhere?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't have a vbool
in the system. Seems FileInPath's can't be created without the file being there (there is a special test in this unit test working around that). I'll definitely add the string
and vstring
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have
cmssw/FWCore/ParameterSet/python/Types.py
Line 1049 in 5b9428b
class vbool(_ValidatingParameterListBase): |
It is not listed in https://twiki.cern.ch/twiki/bin/view/CMSPublic/SWGuideAboutPythonConfigFile#Parameters though
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was able to add all the presently available options to the test.
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-3a6a0d/37961/summary.html Comparison SummarySummary:
|
Also added unit test for cfi content of VPSet.
c8b0d1a
to
f3810bb
Compare
Pull request #44344 was updated. @smuzaffar, @makortel, @Dr15Jones can you please check and sign again. |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-3a6a0d/37970/summary.html Comparison SummarySummary:
|
+core |
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) |
+1 |
In the most recent relvals (CMSSW_14_1_X_2024-03-10-0000), there are many errors of the type:
It seems they originate from this PR which touches This PR changes:
to
in fillDescriptions-generated cfi files like the above. |
@Martin-Grunewald thanks for reporting the problem. I'll work on a fix today. |
Fixed by #44362 |
this is now merged |
It would be nice to understand why. |
This PR, I changed the 'empty' generated cfi version of FileInPath from |
Thanks. But why nothing showed up in PR tests? |
That I do not know but would like to find out. |
This PR touched only source files in In retrospect we maybe should have tested this PR with |
PR description:
Also added unit test for cfi content of VPSet.
PR validation:
Code compiles and new unit test passes.