Mach command to perform bootstrap (mozboot integration)

RESOLVED FIXED in mozilla19

Status

enhancement
RESOLVED FIXED
7 years ago
a year ago

People

(Reporter: gps, Assigned: gps)

Tracking

Trunk
mozilla19

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment, 2 obsolete attachments)

Assignee

Description

7 years ago
Posted patch Add bootstrap subcommand, v1 (obsolete) — Splinter Review
It would be handy if mach had a command that performed system bootstrap. That way, if someone runs into a build failure due to a missing system package, etc, he or she could just run |mach bootstrap| and it would ensure the system is in a happy place to build the tree.

The current patch just has mach call the existing mozboot bootstrapper. This is equivalent to running |python python/mozboot/bin/bootstrap.py| except it is more discoverable.

In the long term, I think we could overload this command to ensure that system packages like Mercurial and Git are configured properly. Perhaps sub-components of mach could register a "bootstrap" method that is invoked when bootstrap is performed. Then, anything wanting to provide one-time setup could be executed when users perform bootstrap. Mach could even be so helpful as to periodically run bootstrap to ensure your system is optimally configured. Ideas, ideas.
Attachment #666399 - Flags: review?(ted.mielczarek)
Assignee

Comment 1

7 years ago
Posted patch Add bootstrap subcommand, v2 (obsolete) — Splinter Review
I bitrotted myself in bug 794509. Now that we have automatic command discovery, this code can live in mozboot instead of in mach.
Assignee: nobody → gps
Attachment #666399 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #666399 - Flags: review?(ted.mielczarek)
Attachment #668567 - Flags: review?(ted.mielczarek)
Assignee

Comment 2

7 years ago
Removed bit rot from mach command module refactoring.
Attachment #668567 - Attachment is obsolete: true
Attachment #668567 - Flags: review?(ted.mielczarek)
Attachment #670191 - Flags: review?(ted.mielczarek)
Attachment #670191 - Flags: review?(ted) → review+
Assignee

Comment 3

7 years ago
https://hg.mozilla.org/mozilla-central/rev/c6ccd1d30c15
Status: ASSIGNED → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla19

Updated

a year ago
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.