Closed Bug 1740566 Opened 4 years ago Closed 4 years ago

Use pathlib in the "python/mach" module

Categories

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

task

Tracking

(firefox97 fixed)

RESOLVED FIXED
97 Branch
Tracking Status
firefox97 --- fixed

People

(Reporter: mhentges, Assigned: ahochheiden)

References

(Blocks 1 open bug)

Details

Attachments

(3 files)

Replace string paths with pathlib objects in the mach module.
Note: to ensure the scope of this bug doesn't explode, don't yet refactor any objects that are included in the context object provided to Mach commands - ensure that it keeps the same API for now.

Priority: -- → P2
Assignee: nobody → ahochheiden
Status: NEW → ASSIGNED

mach/mach/virtualenv.py was not updated because Mitch is on the process of a
major refactor on it. It will get a Pathlib migration pass at a later time.

Attachment #9251941 - Attachment description: Bug 1740566 - Update string paths to Pathlib ojects in Mach module r?mhentges g?firefox-build-system-reviewers → WIP: Bug 1740566 - Update string paths to Pathlib objects in Mach module g?firefox-build-system-reviewers
Attachment #9251941 - Attachment description: WIP: Bug 1740566 - Update string paths to Pathlib objects in Mach module g?firefox-build-system-reviewers → Bug 1740566 - Update string paths to Pathlib objects in Mach module g?firefox-build-system-reviewers
Attachment #9251941 - Attachment description: Bug 1740566 - Update string paths to Pathlib objects in Mach module g?firefox-build-system-reviewers → WIP: Bug 1740566 - Update string paths to Pathlib objects in Mach module g?firefox-build-system-reviewers
Attachment #9251941 - Attachment description: WIP: Bug 1740566 - Update string paths to Pathlib objects in Mach module g?firefox-build-system-reviewers → Bug 1740566 - Update string paths to Pathlib objects in Mach module r?#build

Provide dummy empty string value in test.

Attachment #9254489 - Attachment description: WIP: Bug 1740566 - Remove unused class member → Bug 1740566 - Remove unused class member r?#build
Attachment #9254489 - Attachment description: Bug 1740566 - Remove unused class member r?#build → Bug 1740566 - Remove unused member from mach/config.py:ConfigSettings r?#build
Attachment #9254489 - Attachment description: Bug 1740566 - Remove unused member from mach/config.py:ConfigSettings r?#build → Bug 1740566 - Remove unused class member r?#build
Pushed by mhentges@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8f95096b3ddc Make cwd in mach/CommandContext not optional r=firefox-build-system-reviewers,mhentges https://hg.mozilla.org/integration/autoland/rev/a2cc045d0216 Update string paths to Pathlib objects in Mach module r=mhentges,firefox-build-system-reviewers https://hg.mozilla.org/integration/autoland/rev/cab9de0087ae Remove unused class member r=firefox-build-system-reviewers,mhentges

Backed out 3 changesets (Bug 1740566) for causing python test failures on test_site_compatibility.py.
Backout link
Push with failures
Failure Log

Flags: needinfo?(ahochheiden)
Pushed by nbeleuzu@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/325d612978da Make cwd in mach/CommandContext not optional r=firefox-build-system-reviewers,mhentges https://hg.mozilla.org/integration/autoland/rev/c30d30105938 Update string paths to Pathlib objects in Mach module r=mhentges,firefox-build-system-reviewers https://hg.mozilla.org/integration/autoland/rev/31c6bdb69540 Remove unused class member r=firefox-build-system-reviewers,mhentges
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 97 Branch
Flags: needinfo?(ahochheiden)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: