TPS virtualenv should be self-contained environment

RESOLVED FIXED in mozilla8

Status

RESOLVED FIXED
7 years ago
17 days ago

People

(Reporter: philikon, Unassigned)

Tracking

unspecified
mozilla8

Details

Attachments

(1 attachment)

TPS in the core rocks and the setup script worked for me out of the box. I have some suggestions for a more developer-friendly setup, though:

a) It would be great if the install script picked a default location so that developers don't have to choose one. We could put it in the obj dir perhaps?

b) It would be great if the 'runtps' script were by default wired to execute the Firefox binary built locally. I know this is a bit tricky. Perhaps in (a) you specify your obj dir and then TPS install itself to that obj dir and also wires itself to that build.

c) It would be great if the 'config.json' file were copied to the 'virtualenv' and 'runtps' were hardwired to use that particular config, no matter which CWD its called from. Otherwise developers either all run TPS against the same account, or inevitably end up including changes to that file in one of their patches or commits. Neither is very desirable.
Thanks philikon for the suggestions.  I have something in mind to fix c).  

For a) and b), I wonder if you want something like --enable-tps in mozconfig, which would cause the make process to install TPS and setup the correct pointers to the local build, etc?  It seems kind of strange to write to the obj dir independently of make.

If I did that, I could also introduce a 'make tps' command which would activate the TPS virtualenv in the obj dir, execute it, and deactivate it, which is similar to how 'make mozmill' works currently.
Those seem like fine solutions to me, if the build people are ok with adding another build flag.
Created attachment 550482 [details] [diff] [review]
move config.json inside virtualenv

You can review this or not, at your preference.  This moves config.json into the virtualenv, and makes a few other changes that allow the runtps command to be invoked from anywhere.
Attachment #550482 - Flags: feedback?(philipp)
Comment on attachment 550482 [details] [diff] [review]
move config.json inside virtualenv

w00t! ship it.
Attachment #550482 - Flags: feedback?(philipp) → feedback+
Pushed to m-c:

  http://hg.mozilla.org/mozilla-central/rev/70994f9acb3a
Status: NEW → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla8
(Reporter)

Updated

7 years ago
Component: Firefox Sync: Backend → TPS
Product: Mozilla Services → Testing
QA Contact: sync-backend → tps

Updated

17 days ago
Product: Testing → Testing Graveyard
You need to log in before you can comment on or make changes to this bug.