-
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
Fix conddb dump functionality for tags and gts #38757
Conversation
@ggovi I'd like your feedback on this as I might be missing something here: it seems strange to me that nobody ever noticed this issue so far (altough I must admit I myself have only used the |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-38757/31077
|
A new Pull Request was created by @francescobrivio for master. It involves the following packages:
@cmsbuild, @ggovi, @tvami, @malbouis, @francescobrivio can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
Would you mind adding the newly functioning commands to the unit test? |
type bug-fix |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-38757/31112
|
@cmsbuild please test |
@cmsbuild please abort
|
21ce70e
to
948d599
Compare
@cmsbuild please test |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-38757/31113
|
Pull request #38757 was updated. @ggovi, @malbouis, @tvami, @francescobrivio can you please check and sign again. |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-3db343/26305/summary.html Comparison SummarySummary:
|
The unit test seems to be successful: |
The PR is good now, @ggovi please let us know what you think of this when you can. |
+db
|
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. @perrotta, @dpiparo, @qliphy, @rappoccio (and backports should be raised in the release meeting by the corresponding L2) |
+1 |
PR description:
In PR #20215 a new required argument (
destFile
) was added to thepayload2xml
function inCondCore/Utilities/python/cond2xml.py
and a new argument (--destfile
) was added toconddb dump
.In
conddb
there are 3 calls ofpayload2xml
: one for thepayload
type, one for thetag
type and one for thegt
type;but the default value of
destFile
was only passed to the payload-call and not to the other two, causing an error of type:This PR adds the default value also to the other two calls.
At the same time the command
conddb dump
for thegt
type was failing also with error:This is also resolved by fixing a correctly passing the GT name when invoking the
_exists
function in conddb.PR validation:
With these changes the following commands work properly:
conddb dump --type tag SiPixelQuality_byPCL_stuckTBM_v1
conddb dump --type gt 123X_mcRun1_design_v1
If this PR is a backport please specify the original PR and why you need to backport that PR. If this PR will be backported please specify to which release cycle the backport is meant for:
Not a backport, a backport to 12_4_X might be considered later on