gecko-dev/taskcluster
Mike Hommey 3854c3f71d Bug 1341214 - Add a small API to handle taskcluster queue and index requests. r=dustin
Various modules under taskcluster are doing ad-hoc url formatting or
requests to taskcluster services. While we could use the taskcluster
client python module, it's kind of overkill for the simple requests done
here. So instead of vendoring that module, create a smaller one with
a limited set of functions we need.

This changes the behavior of the get_artifact function to return a
file-like object when the file is neither a json nor a yaml, but that
branch was never used (and was actually returning an unassigned
variable, so it was broken anyways).

At the same time, make the function that does HTTP requests more
error-resistant, using urllib3's Retry with a backoff factor.

Also add a function that retrieves the list of artifacts, that while
currently unused, will be used by `mach artifact` shortly.

--HG--
extra : rebase_source : d7ef633e8e5041dc8450f3ff2f3751c85f144cdc
2017-02-17 12:04:48 +09:00
..
actions Bug 1341727 - Removed invalid arguments in action callback template. r=dustin,wlach 2017-02-24 13:27:20 -08:00
ci Bug 1336559 - Add ability to depend on build artifacts to 'run_task' based tasks, r=dustin 2017-02-24 09:04:22 -05:00
docker Bug 1336155 - Update rust repack script for 1.15.0 stable. r=mshal 2017-02-02 11:02:41 -08:00
docs Bug 1336559 - Rename source-check kind to source-test, r=dustin 2017-02-02 16:16:06 -05:00
scripts Bug 1337827 - [one-click-loaner] Always set up mach environment when calling 'run-mozharness' (if possible) r=maja_zf 2017-02-10 12:07:44 -05:00
taskgraph Bug 1341214 - Add a small API to handle taskcluster queue and index requests. r=dustin 2017-02-17 12:04:48 +09:00
mach_commands.py Bug 1341214 - Add a small API to handle taskcluster queue and index requests. r=dustin 2017-02-17 12:04:48 +09:00
moz.build