Closed Bug 1468328 Opened 8 years ago Closed 8 years ago

Make lcov_rewriter.py and its dependencies Python 3 compatible for importing as module

Categories

(Testing :: Code Coverage, defect)

defect
Not set
normal

Tracking

(firefox62 fixed)

RESOLVED FIXED
mozilla62
Tracking Status
firefox62 --- fixed

People

(Reporter: assiya.khuzyakhmetova, Assigned: assiya.khuzyakhmetova)

References

Details

Attachments

(2 files, 1 obsolete file)

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0 Build ID: 20180517113820 Steps to reproduce: Downloaded the artifact from https://queue.taskcluster.net/v1/task/etuu0o82Tpy1L6yhaNhkWA/runs/0/artifacts/public/build/target.common.tests.zip, tried to import function from the lcov_rewriter.py module in Python 3.6 project. Actual results: Import Error saying that urlparse library is not found because it is renamed from Python 3.4 to be urllib.parse. Expected results: The function should have been imported.
Group: core-security-release
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment on attachment 8985361 [details] Bug 1468328 - Make import statement Python3 compatible. https://reviewboard.mozilla.org/r/250998/#review257406 Looks good, thanks! Just a minor nit for the commit message. ::: commit-message-0344a:1 (Diff revision 1) > +Bug 1468328 - Made import statement Python3 compatible. r=marco Can you change the commit message to: "Bug 1468328 - Make import statement Python 3 compatible. r=marco" (1 space between the bug number and "-" and the verb in the present tense)
Attachment #8985361 - Flags: review?(mcastelluccio) → review+
Attachment #8985361 - Attachment description: Bug 1468328 - Made import statement Python3 compatible. → Bug 1468328 - Make import statement Python3 compatible.
Pushed by mcastelluccio@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/dc997a4e045e Make import statement Python3 compatible. r=marco
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla62
Assignee: nobody → assiya.khuzyakhmetova
Comment on attachment 8985662 [details] Bug 1468328 - Make other codecoverage import statements Python3 compatible. https://reviewboard.mozilla.org/r/251198/#review257522 Are you sure these are the last instances? Does importing the module in Python 3 work now? ::: commit-message-77d19:1 (Diff revision 1) > +Bug 1468328 - Make import statements Python3 compatible. r=marco "Bug 1468328 - Make other codecoverage import statements Python3 compatible. r=marco"
Attachment #8985662 - Flags: review?(mcastelluccio) → review+
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Summary: Make lcov_rewriter.py Python 3 compatible for importing as module → Make lcov_rewriter.py and its dependencies Python 3 compatible for importing as module
(In reply to Marco Castelluccio [:marco] from comment #8) > Comment on attachment 8985662 [details] > Bug 1468328 - Make import statements Python3 compatible. > > https://reviewboard.mozilla.org/r/251198/#review257522 > > Are you sure these are the last instances? Does importing the module in > Python 3 work now? > > ::: commit-message-77d19:1 > (Diff revision 1) > > +Bug 1468328 - Make import statements Python3 compatible. r=marco > > "Bug 1468328 - Make other codecoverage import statements Python3 compatible. > r=marco" Yep, I was able to use it with these changes in Python 3.6 crawler.
Comment on attachment 8985662 [details] Bug 1468328 - Make other codecoverage import statements Python3 compatible. https://reviewboard.mozilla.org/r/251198/#review257526
Attachment #8985361 - Flags: checked-in+
We're sorry - something has gone wrong while rewriting or rebasing your commits. The commits being pushed no longer match what was requested. Please file a bug.
We're sorry - something has gone wrong while rewriting or rebasing your commits. The commits being pushed no longer match what was requested. Please file a bug.
Pushed by mcastelluccio@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/44827df784b2 Make other codecoverage import statements Python3 compatible. r=marco
Comment on attachment 8985662 [details] Bug 1468328 - Make other codecoverage import statements Python3 compatible. https://reviewboard.mozilla.org/r/251198/#review257584 ::: python/mozbuild/mozpack/chrome/manifest.py:11 (Diff revision 2) > > import re > import os > -from urlparse import urlparse > + > +try: > + import urlparse I hadn't noticed, but there's actually a problem here. You replaced `from urlparse import urlparse` with `import urlparse`.
Attachment #8985662 - Flags: review+ → review-
Backout by nerli@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/151566903ceb Backed out changeset 44827df784b2 for bustages on builds/worker/workspace/build/src/python/mozbuild/mozpack/chrome/manifest.py on a CLOSED TREE
Flags: needinfo?(mcastelluccio)
Comment on attachment 8985755 [details] Bug 1468328 - Make other codecoverage import statements Python3 compatible. https://reviewboard.mozilla.org/r/251288/#review257618 Looks good, but could you squash the last two commits together?
Attachment #8985755 - Flags: review?(mcastelluccio)
Attachment #8985662 - Attachment is obsolete: true
Comment on attachment 8985755 [details] Bug 1468328 - Make other codecoverage import statements Python3 compatible. https://reviewboard.mozilla.org/r/251288/#review257620
Attachment #8985755 - Flags: review?(mcastelluccio) → review+
Pushed by mcastelluccio@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/3ee42b865a76 Make other codecoverage import statements Python3 compatible. r=marco
Status: REOPENED → RESOLVED
Closed: 8 years ago8 years ago
Resolution: --- → FIXED
See Also: → 1474531
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: