Teach `mach browsertime` to tell you to `mach browsertime --setup` if we're not already set up
Categories
(Firefox Build System :: General, enhancement, P3)
Tracking
(firefox74 fixed)
| Tracking | Status | |
|---|---|---|
| firefox74 | --- | fixed |
People
(Reporter: mstange, Assigned: tarek, Mentored)
References
(Blocks 1 open bug)
Details
(Keywords: good-first-bug)
Attachments
(2 files)
Steps to reproduce (not sure which ones of these are necessary to reproduce the issue):
- I'm on macOS and have a copy of
machsomewhere in my PATH. - In my mozilla-central source directory (at
/Users/mstange/code/mozilla/) I have a file called.mozconfig-optfor a Firefox desktop build which places the objdir for that build next to the source dir (not inside the source dir) - Inside the objdir (at
/Users/mstange/code/obj-m-opt/), I ranmach browsertimefor the first time ever. - I watched it install its things.
And then the script failed because it couldn't find the file tools/browsertime/node_modules/browsertime/bin/browsertime.js.
And indeed, in my source dir, there is no node_modules directory inside tools/browsertime/.
| Reporter | ||
Comment 1•6 years ago
|
||
| Reporter | ||
Updated•6 years ago
|
Comment 2•6 years ago
|
||
(In reply to Markus Stange [:mstange] from comment #0)
Steps to reproduce (not sure which ones of these are necessary to reproduce the issue):
- I'm on macOS and have a copy of
machsomewhere in my PATH.- In my mozilla-central source directory (at
/Users/mstange/code/mozilla/) I have a file called.mozconfig-optfor a Firefox desktop build which places the objdir for that build next to the source dir (not inside the source dir)- Inside the objdir (at
/Users/mstange/code/obj-m-opt/), I ranmach browsertimefor the first time ever.
It will install some Python packages, but not the NPM modules. Run mach browsertime --setup (topsrcdir or topobjdir, should not matter). Witness $topsrcdir/tools/browsertime/node_modules being populated.
I'm going to morph this into "teach mach browsertime to tell you to set up when it's obvious you haven't".
| Reporter | ||
Comment 3•6 years ago
•
|
||
Hah, I see! Yes, such a message would help, especially for people like me who apparently just run random commands without reading the instructions... I think I wasn't expecting to have to run a manual setup command because similar mach commands, such as mach talos-test, don't require a manual setup invocation either.
Updated•6 years ago
|
Updated•5 years ago
|
| Assignee | ||
Updated•5 years ago
|
| Assignee | ||
Comment 4•5 years ago
|
||
Teach mach browsertime to tell you to mach browsertime --setup if we're not already set up
| Assignee | ||
Comment 5•5 years ago
|
||
I am going to speed up the check by checking for the bt dir presence in the node modules, and spare the user an extra call to browsertime.js
Updated•5 years ago
|
Comment 7•5 years ago
|
||
| bugherder | ||
Description
•