Closed Bug 1189354 Opened 9 years ago Closed 9 years ago

Provide a way to give TaskCluster builds to Bitbar

Categories

(Firefox OS Graveyard :: Gaia::UI Tests, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jlorenzo, Assigned: jlorenzo)

References

Details

Attachments

(1 file)

At the moment, we need to give Bitbar a URL from where it downloads our builds. As the TaskCluster authentication differs from PVT builds, we'll have to change the way Bitbar gets our builds.

[1] https://github.com/mozilla/testdroid-marionette-plugin/blob/0d196182161c851c84fd6c99ee2caeb524806c70/src/main/java/jenkins/plugins/testdroid/DeviceSessionWrapper.java#L444
We'll likely have to port this logic[1] into the plugin.

[1] https://github.com/taskcluster/testdroid-proxy/blob/master/src/lib/auth.js#L5
Other solution, we can use taskcluster-util-python[1] to get the url and give it to Bitbar. 

Side note: for temporary credential, we can use[2]. Temp credentials are not supported by bitbar, because flame_zip_url shoud not be longer than 255 characters.

[1] https://github.com/askeing/taskcluster-util-python
[2] https://github.com/taskcluster/testdroid-proxy/blob/master/src/lib/auth.js#L5
The temporary credentials implementation in node is here https://github.com/gregarndt/testdroid-proxy/blob/certificate_support/src/lib/auth.js#L15

It has not been merged to testdroid-proxy because of the 255 character limit so no immediate need for it.
Blocks: 1219290
taskcluster-util-python already used signed urls to download artifacts. I extracted the function and made it available from the command line tool. I also changed the logging, in order to have no extra output when you use --signed-url-only.

In other words, Jenkins can run the command line, store the raw output and give it to Bitbar.

Testing done:
* ./taskcluster_download.py -u REGULAR OPTIONS TO DOWNLOAD BUILDS => OK, it returns only the URL
* ./taskcluster_download.py --signed-url-only REGULAR OPTIONS => OK, same thing
* ./taskcluster_download.py -v --signed-url-only REGULAR OPTIONS => OK, it prints out the debug details and then the signed url. No download is done.
Attachment #8680641 - Flags: review?(fyen)
Assignee: nobody → jlorenzo
Comment on attachment 8680641 [details] [review]
PR for taskcluster-util-python

need to remove tab.

LGTM :)
Attachment #8680641 - Flags: review?(fyen) → review+
Landed in master at https://github.com/askeing/taskcluster-util-python/commit/2221323502d62500a11eff149ce1cc0363f70f59
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: