-
Notifications
You must be signed in to change notification settings - Fork 107
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
[py2py3] Migration at level scr/python/A/B/C - slice 6 #10277
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
4a4c61d
to
7869412
Compare
This comment has been minimized.
This comment has been minimized.
7869412
to
d0ea719
Compare
Jenkins results:
|
@amaltaro Since this slice involved However, I noticed that the test nosetests test/python/WMCore_t/WMBS_t/Job_t.py:JobTest.testSaveTransaction is ok with mariadb but fails in oracle since at least 1.3.0. Is this to be expected? logsWith code testJobA = self.createTestJob()
... # (changes to testJobA)
testJobA.save()
testJobB = Job(id=testJobA["id"])
testJobB.loadData()
assert testJobA["mask"] == testJobB["mask"], \
"ERROR: Job mask did not load properly" # this assertion pass in both oracle and mariadb
... # (otherr changes to testJobA)
testJobA.save()
testJobC = Job(id=testJobA["id"])
testJobC.loadData()
print("testJobA: ", testJobA["mask"])
print("testJobC: ", testJobC["mask"])
assert testJobA["mask"] == testJobC["mask"], \
"ERROR: Job mask did not load properly" logs from mariadb setup (apart the
while, logs from oracle setup are
as if the second save does not behave. Do you need some more logs? |
@mapellidario about the testSaveTransaction unit test: So, I have no clue of what happens, but it seems to be somehow expected :-) |
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.
Changes look good Dario. Unless you have anything else to add here, I'll merge it tomorrow first thing in the morning.
Perfect! I consider this finished and ready to merge! Thanks! |
Fixes #10127
Status
In development
Related PRs
Description
Run futurize and some manual changes on the first batch of src/python/A/B/C.
Use of "native-string" strategy:
src/python/WMCore/JobSplitting/JobFactory.py
: nofrom bultins import str
heredivision:
src/python/WMCore/JobSplitting/ParentlessMergeBySize.py
: assuming thatIs it backward compatible (if not, which system it affects?)
It should be. (Any possible cause for errors will we reported here)
External dependencies / deployment changes
Requires python-future in both py2 and py3 environments.