-
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 17 #10329
Conversation
2978e95
to
5f40172
Compare
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.
0c962f9
to
795aec6
Compare
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.
except UnicodeEncodeError as ex: | ||
msg = "Failed to decode the job error details for job ID: %s." % self.getJobID() | ||
# if the `try` fails in py3, then the following line will also | ||
# fail in python3 and there is not much that we can do |
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.
Alan, we can remove this comment if you think it is irrelevant!
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.
Is it because it will fail to stringify errorDetails
in the error message?
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.
Yes! that is correct! But since you rightfully pointed out that we can have malformed input, maybe I should completely change the meaning of this try/catch. I am working on it!
1775832
to
3289e27
Compare
This comment has been minimized.
This comment has been minimized.
3289e27
to
e4bf70a
Compare
This comment has been minimized.
This comment has been minimized.
e4bf70a
to
704ed41
Compare
This comment has been minimized.
This comment has been minimized.
704ed41
to
b900c82
Compare
Jenkins results:
|
@amaltaro you are the one that should make the last call! I replaced |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Jenkins results:
|
Thanks Dario. Last 2 commits look good to me as well. Can you please squash them accordingly? Thanks |
54c7f7f
to
72e393d
Compare
Jenkins results:
|
Thanks Dario. |
Fixes #10141
Status
Ready
Related PRs
Description
Run futurize and some manual changes on the first batch of src/python/A/B/C.
"native string" approach
src/python/WMCore/FwkJobReport/Report.py
: imported str from builtins, but used only in a narrow case.addError
: refactored. See Another unicode encoding failure #8403 for previous worksrc/python/WMCore/WMRuntime/Scripts/SetupCMSSWPset.p
: there is only one line where this may be problematic:inputTypeAttrib.fileNames.append(str(fileLFN))
, but I do not think that there is any incentive to try to change it at this stage. tracked at [py2py3] test str/bytes use in WMCore (wildcard issue) #10323Is 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.