Remove remaining "ensure_bytes()" and "ensure_unicode()" usages
Categories
(Firefox Build System :: Mach Core, task)
Tracking
(firefox92 fixed)
Tracking | Status | |
---|---|---|
firefox92 | --- | fixed |
People
(Reporter: mhentges, Unassigned)
References
Details
(Keywords: good-first-bug)
Attachments
(5 files)
We have a bunch of ensure_bytes()
and ensure_unicode()
usages that can be simplified to either:
- Always just use the value directly
- Always convert the value to
bytes
/str
This will simplify each instance from bytes|str
to either always bytes
or always str
.
Reporter | ||
Updated•3 years ago
|
Updated•3 years ago
|
Comment 1•3 years ago
|
||
Removed dependency of 'ensure_bytes()' from mozbuild/util.py and did inline the usage of 'ensure_bytes()' .
Pushed by mhentges@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/58a418d302fa Removed instances of 'ensure_bytes()' from js/src/builtin r=mhentges
Comment 3•3 years ago
|
||
bugherder |
Updated•3 years ago
|
Updated•3 years ago
|
Comment 4•3 years ago
|
||
Inlined the usage of 'ensure_bytes()' and removed dependency of 'ensure_bytes()' from util.py .
Updated•3 years ago
|
Pushed by mhentges@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/919c542f5b8b Removed instances of 'ensure_bytes()' from python/mozbuild/mozbuild r=mhentges
Comment 6•3 years ago
|
||
Inlined the usages of 'ensure_bytes()' and 'ensure_unicode()' .
Comment 7•3 years ago
|
||
Inlined the usage of 'ensure_bytes()' .
Comment 8•3 years ago
|
||
Backed out changeset 919c542f5b8b (Bug 1720951) for causing build bustages and py3 failures in test_jarmaker.py.
https://hg.mozilla.org/integration/autoland/rev/dc485cda7210d332a3fdae02577adb9b64b9a39d
Bustage:
https://treeherder.mozilla.org/jobs?repo=autoland&revision=919c542f5b8b88cb476e4886b0860bdfc8aa445e&selectedTaskRun=Pvgz_vYITs-_DT6BnPk8gA.0
Failure log:
https://treeherder.mozilla.org/logviewer?job_id=345761026&repo=autoland&lineNumber=74448
py3 failures:
https://treeherder.mozilla.org/jobs?repo=autoland&revision=919c542f5b8b88cb476e4886b0860bdfc8aa445e&selectedTaskRun=dtGdKAOUSH-thog3HBZDrQ.0
Failure log:
https://treeherder.mozilla.org/logviewer?job_id=345760999&repo=autoland&lineNumber=1126
Comment 9•3 years ago
|
||
Since the functions 'ensure_bytes()' and 'ensure_unicode()' were unused, hence removed.
Comment 10•3 years ago
|
||
Pushed by mhentges@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/22fcf5699b7c Removed unused 'ensure_bytes()' and 'ensure_unicode()' from runxpcshelltests.py r=mhentges
Comment 11•3 years ago
|
||
bugherder |
Updated•3 years ago
|
Comment 12•3 years ago
|
||
This good-first-bug hasn't had any activity for 2 months, it is automatically unassigned.
For more information, please visit auto_nag documentation.
Comment 13•3 years ago
|
||
I think this bug should be closed since a bunch of patches were landed by Surajeet Das. A new bug can be created for any remaining work.
Reporter | ||
Comment 14•3 years ago
|
||
The majority of the ensure_...()
functions were handled, so that's a good call. Thanks Mathew.
Updated•3 years ago
|
Updated•3 years ago
|
Description
•