Граф коммитов

44 Коммитов

Автор SHA1 Сообщение Дата
Ed Morley a1c84ec768 Bug 1279213 - Make Treeherder use the new client server_url parameter
And use `SITE_URL` rather than requiring the separate environment
variables just for requests to Treeherder's own API. (Thereby reducing
the number of environment variables I have to toggle back and forth for
the Heroku migration).
2016-06-23 09:47:46 +01:00
KWierso 3926d546b5 Bug 1281516 - Correct the spelling of 'unknown' (#1612) r=emorley 2016-06-22 18:08:51 +01:00
Ed Morley b6677fd5c6 Bug 1276254 - Remove unnecessary usage of .read() when json decoding
By using `json.load()` instead of `json.loads()` we can pass the file
object directly, rather than having to `.read()` it first.
2016-05-27 18:24:38 +01:00
William Lachance 0e9d516f8a Bug 1273231 - Store job log url/name/parse information in central database 2016-05-25 13:58:44 -04:00
William Lachance 92f02ccc25 Bug 1231361 - Remove refdata model dependency from unit tests 2016-04-04 15:10:08 -04:00
Cameron Dawson 2a9dbefa49 Bug 1199364 - Use revsion instead of revision_hash for resultsets
New resultsets will still store a value in their ``revision_hash`` field, but it will
just be the same value as their ``long_revision`` field.

This will log an exception in New Relic when a new resultset or job is posted
to the API with only a ``revision_hash``and not a ``revision`` value.

This also switches to using the longer 40 char revisions along side the
12 char revisions.  But we leverage the longer ones for most actions.  The
short revisions are stored and used so that people and the UI can support
locating a resultset (or setting ranges) with short revisions.
2016-03-17 15:48:49 -07:00
William Lachance 161b3635aa Bug 1239185 - Remove use of reference data model in job ingestion 2016-03-14 15:17:43 -04:00
Ed Morley bb56cfc5de Bug 1144721 - Remove dead Python code found using vulture
https://pypi.python.org/pypi/vulture
2016-01-22 18:20:13 +00:00
Ed Morley 17b514d32e Bug 1212937 - Remove support for passing `auth` to the Python client
The `auth` parameter was intended to receive either a `TreeherderAuth`
instance (for OAuth credentials), or a `HawkAuth` instance. The former
no longer exists since OAuth support has been removed, and the latter is
not necessary, since the client now supports simply passing `client_id`
and `secret` to the `TreeherderClient` constructor, as a simpler way of
specifying the Hawk credentials. As such, the `auth` parameter is
superfluous and can be removed.
2015-12-16 18:17:58 +00:00
Mauro Doglio be64542d11 Bug 1209555 - switch etl requests to hawk
I added a create_credentials command to help setting up the initial
development environment. The puppet setup now creates a new user and set
it as the owner of the treeherder-etl credentials.
2015-10-08 13:11:54 +01:00
Ed Morley 027abb7057 Bug 1211253 - Remove the concept of a platform's VM status
It's calculated during ingestion, but not used and in fact not actually
stored anywhere.
2015-10-05 18:49:25 +01:00
Ed Morley 571c57af71 Bug 1192957 - Mass-update python import style using isort
To fix pre-existing deviations from the style that will be enforced on
Travis in the next commit.
2015-10-02 17:55:29 +01:00
Ed Morley ba39c25fa2 Bug 1202626 - Stop storing each revision's commit_timestamp
It's unused in the UI and doesn't add any value, since we're
normally much more interested in the push_timestamp.

This can land without causing errors, since the field is DEFAULT NULL,
so can be dropped at our leisure later.
2015-09-23 10:43:10 +01:00
William Lachance 7440089508 Bug 1198786 - Stop storing performance artifacts
They were never used for anything and take up a lot of space. They
also don't fit into the new performance model we're working on. We
can always bring back the useful bits later.
2015-08-28 10:49:50 -04:00
Ed Morley 90ba77e596 Bug 1192801 - Remove per-file MPL boilerplate since it's unnecessary
The MPL 2.0 terms state that as long as a LICENSE file is present, the
per-file header text is not required. See "Exhibit A" at the end of:
https://www.mozilla.org/MPL/2.0/
2015-08-18 23:32:11 +01:00
Ed Morley 1c00ccfcc7 Bug 1192661 - Clean up Python import order
Created using |isort -p tests -rc .| and a couple of manual tweaks.

The order is:
* futures
* std library
* third party packages
* local imports
* relative local imports
...with each group ordered with "import x" before "from x import y", and
then alphabetically.
2015-08-10 18:33:49 +01:00
Cameron Dawson 00cfe6643d Bug 1140349 - Remove the objectstore code
After the previous commit, the Objectstore is effectively "dead code".
So this commit removes all the dead code after anything left over in
the Objectstore has been drained and added to the DB.
2015-07-21 14:13:21 -07:00
Mauro Doglio b9881f937c Bug 1183575 - Create a requests auth backend for 2-legged oauth 2015-07-20 16:12:33 +02:00
Vaibhav Agrawal 096560caf5 Bug 1178474 - Have a common function for calling various endpoints. 2015-06-30 10:53:04 -07:00
William Lachance dc084310f6 Bug 1163674 - Update treeherder client to be more generic
* Create a generic TreeherderClient class
* Add a single method called `post_collection` which takes care of all
  details of validation, submitting stuff and raising errors
* Also add a new update_parse_status method, for updating status (replaces
  manual calls to post information on raw TreeherderRequest)
2015-05-19 17:32:22 -04:00
William Lachance 0e6e61fbbe Bug 1159831 - Make treeherder use in-tree copy of treeherder-client 2015-05-01 13:34:29 -04:00
Ed Morley 5e0f36ae91 Bug 1133482 - Always ensure files are closed after being open()ed 2015-03-03 17:13:34 +00:00
Ed Morley f5c0b53e0c Bug 1059814 - Whitespace pep8 fixes
Generated using:
autopep8 --in-place --recursive .

Before:
$ pep8 | wc -l
1686

After:
$ pep8 | wc -l
57

A later autopep8 run will be performed using --aggressive, which makes
non-whitespace changes too.
2015-02-15 14:52:31 +00:00
Ed Morley b0d1c0c168 Bug 1059811 - pyflakes: Remove unused imports 2015-01-16 12:33:32 +00:00
Jonathan French dbb4d11e09 Bug 1090689 - Add MPL2.0 headers to the repo 2014-11-03 13:06:03 -05:00
mdoglio 8e0c47068c add log parsing status handling 2014-07-03 15:58:04 +02:00
Jonathan Eads 1c340db7ed fixed tests 2014-06-13 14:05:16 -07:00
Jonathan Eads 4058c245f8 fixed tests 2014-06-13 13:56:49 -07:00
Jonathan Eads 5ee8880971 added explicit disconnect 2014-06-02 13:48:58 -07:00
mdoglio 5cc866fbf2 separate oauth credentials from OAuthLoaderMixin 2014-03-10 19:36:01 +01:00
Jonathan Eads 35d1a21c23 fixed tests 2014-02-03 17:13:13 -08:00
Jonathan Eads ae19cd9c65 added test for job_coalesced_to_guid storage 2013-12-11 18:39:58 -08:00
mdoglio 5eea00d5b8 add bugscache ingestion and bugs suggestions artifacts 2013-11-21 14:31:57 +00:00
Jonathan Eads 0d62682bd7 removed unused data structure 2013-11-08 08:55:27 -08:00
Jonathan Eads 99cc281f65 webapp/api tests pass 2013-11-05 17:45:06 -08:00
Jonathan Eads 14fd82707f all model tests pass 2013-11-04 12:40:46 -08:00
Jonathan Eads 5ef0f73327 adding handling for lists of data for all model methods 2013-10-25 17:17:01 -07:00
mdoglio dd38c4d747 add/fix a bunch of tests for the pushlog-related changes 2013-09-04 15:52:20 +01:00
Cameron Dawson bc51627d30 fixed test breakage 2013-08-16 15:07:54 -07:00
mdoglio 7971aac690 fix the job_type parsing strategy 2013-08-09 13:21:45 -07:00
Cameron Dawson 1bf5c376a3 before stripping subparsers. updated error parser, new test logs 2013-06-12 09:42:13 -07:00
Cameron Dawson 259521109d added datadiff module for diffing dicts. also new tinderboxprintline sub parser. 2013-06-10 16:44:49 -07:00
Cameron Dawson afc6633e5d jobartifactparser begun, with failing tests 2013-06-07 15:56:31 -07:00
Cameron Dawson c6d0347232 refactor shared code into test_utils file 2013-06-07 13:51:52 -04:00