Closed Bug 1207662 Opened 11 years ago Closed 11 years ago

allow to download b2g-device private builds from taskcluster

Categories

(Testing :: mozregression, defect)

defect
Not set
normal

Tracking

(firefox44 affected)

RESOLVED FIXED
Tracking Status
firefox44 --- affected

People

(Reporter: parkouss, Assigned: parkouss)

References

Details

Attachments

(1 file, 1 external file)

Downloading the build files would be great to users, so they won't have to go on taskcluster url and download the build manually. Also it will allow to reuse builds that are in the persist folder. Note that we may have an issue with that for now, see bug 1207631. And we should be careful of the file name in the persist file, because for example we can download opt or debug builds, and we don't want to give the same name for those files. But maybe everything related to the persist folder should be handled in another bug, this might be a bit complex.
Hey Will, I just created a PR that you can test (since I don't have access to those builds): https://github.com/mozilla/mozregression/pull/316 So you should be able to try with: mozregression --app b2g-device --bad 2015-09-10 --good 2015-09-07 --taskcluster b2g.aries-opt --artifact-name aries.zip
Oups, forgot to check NI. :)
Flags: needinfo?(wlachance)
(In reply to Julien Pagès from comment #1) > Hey Will, I just created a PR that you can test (since I don't have access > to those builds): https://github.com/mozilla/mozregression/pull/316 > > So you should be able to try with: > > mozregression --app b2g-device --bad 2015-09-10 --good 2015-09-07 > --taskcluster b2g.aries-opt --artifact-name aries.zip Hmm, didn't get very far with this, see PR for more details.
Flags: needinfo?(wlachance)
Erf sorry, some bad git manipulation probably. :( Should be good now, I updated the PR.
Attached file Error traceback —
Here's the error traceback when I try to run parkouss's PR.
Well, I can't reproduce even if I remove the response.raise_for_status() in download_manager.py. But I don't have valid credentials for taskcluster (I can't since I am a contributor, no @mozilla.com address) and I tried with fake stuff so maybe it is the reason. :jonasfj, can you help us here ? Maybe you know why that could happen: https://github.com/taskcluster/taskcluster-client.py/blob/master/taskcluster/client.py#L202 Also look at the attachment above. If I can do anything to help, please ask!
Flags: needinfo?(jopsen)
I'm PTO this week, but jhford is the maintainer and listed in "git blame" :) Note: I really think we should fix this. It looks to me as if we've basically hardcoded in some intermittent failures into the automation tools (or maybe I'm missing something). Filed bug 1208227.
Flags: needinfo?(jhford)
Depends on: 1208828
Fixed should be merged into taskcluster-client.py, not sure if it's released yet.
Flags: needinfo?(jopsen)
(In reply to Jonas Finnemann Jensen (:jonasfj) from comment #8) > Fixed should be merged into taskcluster-client.py, not sure if it's released > yet. Thanks Jonas!
(In reply to Julien Pagès (:parkouss) from comment #9) > (In reply to Jonas Finnemann Jensen (:jonasfj) from comment #8) > > Fixed should be merged into taskcluster-client.py, not sure if it's released > > yet. > > Thanks Jonas! It is now released, version 0.0.27
Status: NEW → RESOLVED
Closed: 11 years ago
Flags: needinfo?(jhford)
Resolution: --- → FIXED
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Eh, thanks John. :)
I am unable to make this work: mozregression --app b2g-device --bad 2015-09-10 --good 2015-09-07 --taskcluster b2g.aries-opt --artifact-name aries.zip Using good rev b93dd434b3cdc248c114f9289c37b2fb92fb6229 for date 2015-09-07 Using bad rev c4bf8c0c204434c0c83d10caf3e19eeab60a5fd4 for date 2015-09-10 0:01.45 LOG: MainThread main INFO Getting inbound builds between b93dd434b3cdc248c114f9289c37b2fb92fb6229 and c4bf8c0c204434c0c83d10caf3e19eeab60a5fd4 0:09.11 LOG: MainThread download INFO Downloading build from: https://queue.taskcluster.net/v1/task/IOUy-rYmTGCI6MkdLJ0ebw/runs/0/artifacts/private/build/aries.zip?bewit=eUhMQm4zR2FUWS1TWWhUbkt3M1gtUVwxNDQzODE1MjgzXGgxbGtaMWFmZXBxTUdSMDVwd2JnMEpVMGcrNmxhMyt4R2ltbCtvUmszUXM9XGUzMD0 ===== Downloaded 100% ===== 0:09.67 LOG: MainThread ERROR 401 Client Error: Unauthorized 0:09.67 LOG: Dummy-5 Bisector INFO Last good revision: b93dd434b3cdc248c114f9289c37b2fb92fb6229 0:09.67 LOG: Dummy-5 Bisector INFO First bad revision: c4bf8c0c204434c0c83d10caf3e19eeab60a5fd4 0:09.67 LOG: Dummy-5 Bisector INFO Pushlog: https://hg.mozilla.org/integration/b2g-inbound/pushloghtml?fromchange=b93dd434b3cdc248c114f9289c37b2fb92fb6229&tochange=c4bf8c0c204434c0c83d10caf3e19eeab60a5fd4 0:09.67 LOG: Dummy-5 main INFO To resume, run: 0:09.67 LOG: Dummy-5 main INFO /home/jmaher/mozilla/mozregression/bin/mozregression --app b2g-device --taskcluster b2g.aries-opt --artifact-name aries.zip --good-rev=b93dd434b3cdc248c114f9289c37b2fb92fb6229 --bad-rev=c4bf8c0c204434c0c83d10caf3e19eeab60a5fd4 (mozregression)jmaher@jmaher-ThinkPad-X230:~/mozilla/mozregression$ I did https://auth.taskcluster.net/?, signed in and got temporary credentials- then added them to my mozregression.cfg file. I assume I got random data, not real credentials.
Oh, ok, thanks for giving this a try Joel! Looks like getting valid credentials for private artifacts is not working the way I think. :( Naoki, do you mind testing it ? I believe you have real valid credentials here. The branch to test comes from https://github.com/mozilla/mozregression/pull/316, and you should be fine trying with the command > mozregression --app b2g-device --bad 2015-09-10 --good 2015-09-07 --taskcluster b2g.aries-opt --artifact-name aries.zip You can run it once, it will fail and ask you to put credentials in the config file - then fill that file and run the command again, hopefully builds are going to be downloaded. :)
Flags: needinfo?(nhirata.bugzilla)
The temporary credentials issue of Taskcluster Python client could refer to Bug 1097780.
Also to note, could we be able to point to a json file that contains : { "clientId": "<some clientId string>", "accessToken": "<some accessToken string>" } so then we can run something like: mozregression --app b2g-device --bad 2015-09-10 --good 2015-09-07 --taskcluster b2g.aries-opt --artifact-name aries.zip --credential ~/taskcluster_street_creds.json please?
Flags: needinfo?(nhirata.bugzilla)
(In reply to Naoki Hirata :nhirata (please use needinfo instead of cc) from comment #15) > Also to note, could we be able to point to a json file that contains : > > { > "clientId": "<some clientId string>", > "accessToken": "<some accessToken string>" > } > > so then we can run something like: > > mozregression --app b2g-device --bad 2015-09-10 --good 2015-09-07 > --taskcluster b2g.aries-opt --artifact-name aries.zip --credential > ~/taskcluster_street_creds.json > > please? No need for that. Mozregression has its own config file, located in ~/.mozilla/mozregression/mozregression.cfg. I already implemented something for this bug (on my fork, so "git clone https://github.com/parkouss/mozregression && git checkout download-b2g-device" to get the right branch). You will be prompted to fill the credentials in the file the first time you run something like: > mozregression --app b2g-device --bad 2015-09-10 --good 2015-09-07 --taskcluster b2g.aries-opt --artifact-name aries.zip That being said, if you want to reuse a credential file, we could do that later by specifying a key in mozregresion config file pointing to the file credentials.
Ok so I have rebased the work here on top of master. So you can apply the following patch: https://github.com/parkouss/mozregression/commit/c2d867ebd43c04a9f0b7637816119bec17791efb.patch on top of master And then you should be able to: > # bisect emulator with some build options (do not require taskcluster credentials) > mozregression --app b2g-emulator -g 2015-10-01 -b 2015-10-02 --build-type kk,debug > # list available build options per device > mozregression --list-build-types > # bisect b2g-aries (REQUIRES taskcluster credentials) > mozregression --app b2g-aries -g 2015-10-01 -b 2015-10-02 > # note that you will be prompted the first time to fill your credentials in the config file. So, I'm waiting for someone that have valid taskcluster credentials to try b2g-aries (or b2g-flame, no matter) because I don't have valid credentials to test this out. It should download a file, that's basically all that needs to be tested here. Thanks!
I tried this out, and after putting my clientId & accessToken in mozregression.cfg, it automatically downloaded aries.zip from private/build. Hooray! FYI, in BuildSlaves.py (where we store these credentials for buildbot), the naming looks like this: taskcluster_clientId = 'blah' taskcluster_accessToken = 'blah' rather than: taskcluster-clientid = 'blah' taskcluster-accesstoken = 'blah' Just a heads up - it probably makes more sense to be internally consistent with other variables in mozregression rather than buildbot files. Anyway, this is awesome! Are there plans to tie this in with the automated flash tool? I forget what it was called, but :nhirata linked to it in another bug...
Thanks a lot :mshal for trying this and for your feedback! I think I would prefer to keep the names (taskcluster-clientid, taskcluster-accesstoken) because it is consistent with our naming convention in the config file. Well, no plan yet for the automated flash tool, but that would definitely be something I would like to see! There is a couple of things that needs to be handled also, like being able to download gaia (more generally making mozregression really useful to find regressions with the b2g devices process). I need to understand this more first though.
I'm going to add a few unit tests later.
Assignee: nobody → j.parkouss
Status: REOPENED → ASSIGNED
Attachment #8678282 - Flags: review?(wlachance)
Comment on attachment 8678282 [details] [review] download private builds Very exciting, please go ahead and land when you're ready.
Attachment #8678282 - Flags: review?(wlachance) → review+
Status: ASSIGNED → RESOLVED
Closed: 11 years ago → 11 years ago
Resolution: --- → FIXED
No longer blocks: 1227780
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: