-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Have PSet properly clone the allowAnyLabel_ option #32302
Conversation
When doing a clone of a PSet or a TypedParametrizable, if allowAnyLabel_ is being used, but sure to also clone the validator.
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-32302/20122
|
A new Pull Request was created by @Dr15Jones (Chris Jones) for master. It involves the following packages: FWCore/ParameterSet @makortel, @smuzaffar, @cmsbuild, @Dr15Jones can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
please test |
The tests are being triggered in jenkins.
|
-1 Tested at: 43d6307 CMSSW: CMSSW_11_3_X_2020-11-26-1100 I found follow errors while testing this PR Failed tests: HeaderConsistency RelVals
When I ran the RelVals I found an error in the following workflows: runTheMatrix-results/11624.911_TTbar_13+2021_DD4hep+TTbar_13TeV_TuneCUETP8M1_GenSim+Digi+Reco+HARVEST+ALCA/step1_TTbar_13+2021_DD4hep+TTbar_13TeV_TuneCUETP8M1_GenSim+Digi+Reco+HARVEST+ALCA.log |
Comparison not run due to runTheMatrix errors (RelVals and Igprof tests were also skipped) |
NOTE: the failing workflow is also failing in the IB. |
@@ -422,6 +422,8 @@ def clone(self, *args, **params): | |||
args.append(None) | |||
|
|||
_modifyParametersFromDict(myparams, params, self._Parameterizable__raiseBadSetAttr) | |||
if self._Parameterizable__validator is not None: | |||
myparams["allowAnyLabel_"] = self._Parameterizable__validator |
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.
What if the clone()
has clone(allowAnyLabel_ = cms...)
or clone(allowAnyLabel_ = None)
?
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.
What behavior would we want in that case? It seems kind of suspect to me :).
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-32302/20172
|
Pull request #32302 was updated. @makortel, @smuzaffar, @cmsbuild, @Dr15Jones can you please check and sign again. |
please test |
The tests are being triggered in jenkins.
|
+1 |
Comparison job queued. |
Comparison is ready Comparison Summary:
|
+1 |
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. @silviodonato, @dpiparo, @qliphy (and backports should be raised in the release meeting by the corresponding L2) |
+1 |
PR description:
When doing a clone of a PSet or a TypedParametrizable, if allowAnyLabel_ is being used, but sure to also clone the validator.
PR validation:
The unit tests embedded in Types.py was extended and passes.