Open Bug 1714690 Opened 3 years ago Updated 1 year ago

[meta] Remove usages of "six"

Categories

(Firefox Build System :: Mach Core, task, P3)

task

Tracking

(firefox104 affected)

104 Branch
Tracking Status
firefox104 --- affected

People

(Reporter: mhentges, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: good-first-bug, leave-open, meta)

Attachments

(3 files, 3 obsolete files)

Mach always runs with Python 3, so we should be able to remove six usages.

Future contributors 👋
Before jumping in to this ticket, see the list of six usages and decide on a specific section of code that you'd like to improve (e.g.: tools/tryselect). Then, leave a comment here or chat with a build member in the #build channel on Matrix, and we'll create a sub-bug that can be assigned to you. Looking forward to meeting you!

Keywords: good-first-bug
Priority: -- → P3
Blocks: goodbye-py2

this bug also can be converted into meta :)

Summary: Remove usages of "six" → [meta] Remove usages of "six"

Nice, thanks Shivam!
Note: this might be able to be automated with pyupgrade: https://github.com/asottile/pyupgrade

Removed six library, added str and bytes to values in Any()

Assignee: nobody → seanpedigo
Status: NEW → ASSIGNED

Hi, I've already written code to update toolkit/components/featuregates/gen_feature_definitions.py

This was a trivial change because I wanted to ensure that my first commit was small while I am still learning.

I'm not working right now, so while I have the time off I'd like to contribute a lot more here. Once I figure out what I need to do, or where I screwed up I think it would be pretty easy to knock most of this out pretty quickly. So please let me know where there are any mistakes, or anything that needs to be revised.

Thank you!

Depends on D136699

Depends on: 1751990

Hey, thanks for the patches!
A couple notes:

  1. Let's break up this work into separate sub-bugs, and associate patches with them accordingly. For example, for the first two patches you've provided here, I've created a bug for 'em here. You can do this by editing the commit message for your patches to refer to "Bug 1751990" instead, then re-moz-phab them to have them automatically update to point to the new bug.
    • In general, I'd recommend splitting this up by directory in python/* directory in testing/*, and otherwise by top-level directory.
  2. As part of this work, heads up in advance that code in third_party/python and testing/web-platform/tests/tools/third_party are third-party, and shouldn't be modified :)
  3. If you get the ERROR: Reformat python error in Phabricator, you can resolve that by running ./mach lint -l black --fix

Looking forward to working with you to have this six stuff cleaned up 😁

Depends on: 1752004
Attachment #9260420 - Attachment description: Bug 1714690 - Removed usages of six from components directory. r?mhentges → Bug 1714690 - Removed usages of six from /toolkit/components directory. r?mhentges

Depends on D136759

Attachment #9260420 - Attachment description: Bug 1714690 - Removed usages of six from /toolkit/components directory. r?mhentges → Bug 1714690 - Removed usages of six from components directory. r?mhentges
Attachment #9260891 - Attachment is obsolete: true

This good-first-bug hasn't had any activity for 2 months, it is automatically unassigned.
For more information, please visit auto_nag documentation.

Assignee: seanpedigo → nobody
Status: ASSIGNED → NEW

The Bugbug bot thinks this bug should belong to the 'Firefox Build System::Mach Core' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: General → Mach Core
Assignee: nobody → ahochheiden
Status: NEW → ASSIGNED
Attachment #9260420 - Attachment is obsolete: true
Pushed by ahochheiden@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/029e0b6bd2ad Remove usages of "six" from gen_features_definitions r=mhentges,nalexander
Pushed by ahochheiden@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8af3093ff121 Removed usages of six from components directory. r=firefox-build-system-reviewers,nalexander
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 104 Branch
Status: RESOLVED → REOPENED
Resolution: FIXED → ---

This good-first-bug hasn't had any activity for 2 months, it is automatically unassigned.
For more information, please visit auto_nag documentation.

Assignee: ahochheiden → nobody
Status: REOPENED → NEW

Hello I am new to contributing firefox nightly, I want to take one of the file in this issue as my first attempt
Can I get the chance?
Also I want to choose fix build/RunCbindgen.py

Hi Richard, go for it! I'll review any patch you submit.

Here's a link to help get you started: https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html#to-write-a-patch

Severity: -- → S3

(In reply to Alex Hochheiden [:ahochheiden] from comment #17)

Hi Richard, go for it! I'll review any patch you submit.

Here's a link to help get you started: https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html#to-write-a-patch

Hello I have a little question, after I get the source code and run it as the tutorial in https://firefox-source-docs.mozilla.org/setup/windows_build.html
I couldn't find the .git or .hg file in my directory
I asked people in https://chat.mozilla.org/#/room/#introduction:mozilla.org
Looks like I have to use git clone to clone the repo down
But the tutorial use wget

Do I need to git clone and re-build the whole project again?

Hochheiden [:ahochheiden]

Assignee: nobody → aj7499579
Status: NEW → ASSIGNED

Hochheiden [:ahochheiden]

Depends on D178515

(In reply to Alex Hochheiden [:ahochheiden] from comment #17)

Hi Richard, go for it! I'll review any patch you submit.

Here's a link to help get you started: https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html#to-write-a-patch

Hello Alex, I've submit my patches and asked for your code review.
I am not sure If I did send the code review to you or not, If you didn't receive it pls let me know and I'll try to correct it.

Attachment #9334961 - Attachment is obsolete: true

Alex Hochheiden [:ahochheiden]
I've submit a patch and pass the auto review bot test, I would be thankful if you can review it for me.

Flags: needinfo?(ahochheiden)

I was on vacation, but also did not get the notification. If you want to add me specifically as a reviewer you need to add r?ahochheiden, but adding r?#build is usually preferred anyway (that goes to all build system reviewers).

I agree with Glandium's review comment, take care of that and we can move forward.

Also, please update the summary stating what you're doing.

Flags: needinfo?(ahochheiden)
Attachment #9334960 - Attachment description: Bug 1714690 - Remove usages of "six" in build/RunCbindgen.py. r?Alex → Bug 1714690 - Remove usages of "six" in build/RunCbindgen.py. r?#build
Pushed by mh@glandium.org: https://hg.mozilla.org/integration/autoland/rev/fb52e6ee18c6 Remove usages of "six" in build/RunCbindgen.py. r=firefox-build-system-reviewers,glandium

This good-first-bug hasn't had any activity for 2 months, it is automatically unassigned.
For more information, please visit BugBot documentation.

Assignee: aj7499579 → nobody
Status: ASSIGNED → NEW
Depends on: 1848570
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: