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 unit tests for getPayloadData.py #34199
Conversation
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-34199/23421
|
A new Pull Request was created by @mmusich (Marco Musich) for master. It involves the following packages: CondCore/Utilities @ggovi, @cmsbuild can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
please test |
-1 Failed Tests: UnitTests Unit TestsI found errors in the following unit tests: ---> test testGetPayloadData had ERRORS Comparison SummarySummary:
|
a955dfb
to
1a1224a
Compare
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-34199/23426
|
1a1224a
to
ad89464
Compare
@cmsbuild please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-f5f44a/16193/summary.html Comparison SummarySummary:
|
@ggovi any (further) objection to this PR? |
+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 |
@mmusich There is a unit failure in most recent IB after this PR is merged. Can you have a check? Thanks! https://cmssdt.cern.ch/SDT/cgi-bin/logreader/slc7_amd64_gcc900/CMSSW_12_0_X_2021-06-25-2300/unitTestLogs/CondCore/Utilities#/181-181 |
@qliphy I cannot reproduce the issue: cmsrel CMSSW_12_0_X_2021-06-25-2300
cd CMSSW_12_0_X_2021-06-25-2300/src/
cmsenv
git cms-addpkg CondCore/Utilities
scram b -j 20
scram b runtests_testGetPayloadData
...
---> test testGetPayloadData succeeded
TestTime:80
^^^^ End Test testGetPayloadData ^^^^ isn't the package compiled before executing the unit test in the IB? |
@mmusich , in IB
could it be that the https://github.com/cms-sw/cmssw/blob/master/CondCore/CondDB/plugins/CondDBPyWrappers.cc#L11-L14 is looking in to only local edmplugin information? Note that for IB unit tests we just create a local dev area and run without re-compilation , so every thing should be picked up from release area. |
@smuzaffar so substantially my question about:
is no. |
I think problem is https://github.com/cms-sw/cmssw/blob/master/CondCore/Utilities/scripts/getPayloadData.py#L140 , it breaks on first release path. I think it should go through all the paths (specially if there are no plugins found ). As I wrote, for IBs, we just create an empty cmssw area, so the lib direcotry in that will be empty. Please also add |
ah thanks for #34257 :-) please also add CMSSW_FULL_RELEASE_BASE |
See #34512 |
PR description:
This is a follow-up to issue #34193.
Added a unit test to avoid having to find post-facto that the
getPayloadData
script employed by the CondDB Browser is broken.PR validation:
Tried to run the new uni test, which fails as reported at #34193 (comment).
The commands included in
CondCore/Utilities/test/test_getPayloadData.sh
were successfully executed inCMSSW_12_0_0_pre2
.if this PR is a backport please specify the original PR and why you need to backport that PR:
Not a backport, no backport needed.