-
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
Make mass replace work with proxy types #30164
Conversation
Adding isCompatibleCMSType allows handling of proxy types in mass search functions involving InputTags
The code-checks are being triggered in jenkins. |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-30164/15965
|
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: 3768603 CMSSW: CMSSW_11_2_X_2020-06-09-1100 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: You can see the results of the tests here: I found follow errors while testing this PR Failed tests: UnitTests RelVals
I found errors in the following unit tests: ---> test runtestPhysicsToolsPatAlgos had ERRORS
When I ran the RelVals I found an error in the following workflows: runTheMatrix-results/140.53_RunHI2011+RunHI2011+RECOHID11+HARVESTDHI/step2_RunHI2011+RunHI2011+RECOHID11+HARVESTDHI.log140.56 step2 runTheMatrix-results/140.56_RunHI2018+RunHI2018+RECOHID18+HARVESTDHI18/step2_RunHI2018+RunHI2018+RECOHID18+HARVESTDHI18.log 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: |
Comparison not run due to runTheMatrix errors (RelVals and Igprof tests were also skipped) |
@@ -38,7 +38,7 @@ def doIt(self,pset,base): | |||
nrep = n; nrep.moduleLabel = self._paramReplace.moduleLabel | |||
if self._verbose:print("Replace %s.%s[%d] %s ==> %s " % (base, name, i, n, nrep)) | |||
value[i] = nrep | |||
elif isinstance(value, cms.InputTag): | |||
elif value.isCompatibleCMSType(cms.InputTag): | |||
if value == self._paramSearch: |
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 suspect that something like eqWproxy
from https://github.com/cms-sw/cmssw/pull/30071/files#diff-c2356aa3d79bc5ad0d7e89ea86cca856R12-R16 will be needed here, and apparently in the VInputTag case above
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.
this and value
is more elegant
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 (and backports should be raised in the release meeting by the corresponding L2) |
The tests are being triggered in jenkins. |
+1 |
merge |
+1 |
Comparison job queued. |
Comparison is ready Comparison Summary:
|
PR description:
Adding isCompatibleCMSType allows handling of proxy types in mass search functions involving InputTags
PR validation:
The unit tests pass.