Closed Bug 795769 Opened 9 years ago Closed 9 years ago

Mach command to perform bootstrap (mozboot integration)

Categories

(Firefox Build System :: Mach Core, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla19

People

(Reporter: gps, Assigned: gps)

Details

Attachments

(1 file, 2 obsolete files)

Attached 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)
Attached 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)
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+
https://hg.mozilla.org/mozilla-central/rev/c6ccd1d30c15
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla19
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.