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

1643 Коммитов

Автор SHA1 Сообщение Дата
mdoglio 119407ad8e Bug 1097090 - jobs endpoint refactoring
Main changes:
- removed the full parameter on the jobs endpoint, since in both cases the data returned had similar shape/size but slightly different set of attributes.
- removed the exclusion_state parameter in favour of exclusion_profile. The latter allows to specify which profile to apply to the jobs; by default it will use the default profile and can be disabled using exclusion_profile=false
- the data is now returned as a flat list instead of a triple nested structure. As a result the jobs endpoint is now much faster to return data and it allows to easily do basic operations like filtering, sorting, and pagination. Also, it will allow to implement attribute selection with a minimal effort.
- removed the debug parameter in favour of a more explicit return_type (dict|list) that allows a consumer to specify the type of structure expected for the results (dict by default)
- the resultset endpoint doesn't return jobs anymore but only resultsets.
2015-01-30 11:27:05 +00:00
William Lachance 4064b07b70 Merge pull request #357 from wlach/1124723
Bug 1124723 - Cycle performance artifacts before jobs
2015-01-29 14:01:51 -05:00
Ed Morley a9188108ec Bug 1125585 - Update datasource to fab643e0d5
To pick up the new require_host_type config option:
https://github.com/jeads/datasource/pull/22

Also includes:
https://github.com/jeads/datasource/pull/17
2015-01-29 18:23:29 +00:00
Ed Morley a42a7d09ef Bug 1088216 - docs: make the installation instructions easier to follow
* Separates out the steps required for running the tests, from those for
  setting up a local instance.
* The running ingestion tasks step now explains what they are, that the
  API server must be running already, and how to ingest just a single
  revision for testing.
* The log parser compile step is moved inline, so it's harder to forget.
2015-01-29 14:32:50 +00:00
William Lachance 0492e2d8e3 Merge pull request #358 from wlach/1107546
Add apache2 alias from /ui/perf.html to /perf.html
2015-01-28 16:46:54 -05:00
William Lachance 81e0681c51 Bug 1107546 - Add apache2 alias from /ui/perf.html to /perf.html 2015-01-28 15:13:53 -05:00
William Lachance 2627427f83 Bug 1124723 - Cycle performance artifacts before jobs 2015-01-28 14:03:28 -05:00
mdoglio d248aa6544 Bug 1125615 - Apache shouldn't cache unavailable services 2015-01-28 18:17:11 +00:00
mdoglio 40b01c751d Bug 1122139 - Split common tasks to separate queues 2015-01-28 14:33:38 +00:00
Ed Morley 20dbcf8545 Merge pull request #353 from Seinlin/bug-1126137
Bug 1126137 - Add dolphin-512 to treeherder-service.
2015-01-28 02:40:08 +00:00
Kai-Zhen Li a4e4c78991 Bug 1126137 - Add dolphin-512 to treeherder-service. 2015-01-28 09:54:57 +08:00
Ed Morley cae85ae8c4 Bug 1124842 - Log the server response for Bugzilla/ES submission errors
Previously we only get the HTTPError code in the exception, without the
server response that gives more context. The latter would help explain
the 400s in bug 1114785.
2015-01-27 18:38:49 +00:00
William Lachance 93ae4541fe Merge pull request #355 from wlach/1124960
Handle case where we have no jobs yet in get_max_job_id
2015-01-27 13:00:22 -05:00
Ed Morley 45824d8507 Bug 1126356 - Add support for |manage.py ingest_push <project> tip|
The most recent push from a repository is given the tag 'tip' in
Mercurial. To save having to look up a specific revision to ingest when
testing, 'tip' can now be passed to ingest_push, and the revision that
'tip' currently maps to, will be used during push and jobs ingestion.
Previously, jobs ingestion would have used the non-existent SHA of 'tip'
when trying to associate jobs with pushes, resulting in no jobs being
imported from builds-{pending,running,4hr}.
2015-01-27 17:28:47 +00:00
William Lachance 0b94edf800 Bug 1124960 - Handle case where we have no jobs yet in get_max_job_id 2015-01-27 12:09:42 -05:00
mdoglio d88791068f Bug 1079270 - Use new restart command on deploy 2015-01-27 16:59:43 +00:00
Ed Morley de6a0557bc Bug 1059811 - Fix remaining pyflakes warnings 2015-01-27 15:21:07 +00:00
mdoglio fa485b94e2 Bug 1125856 - Use master db on data ingestion 2015-01-27 07:59:06 +00:00
Ed Morley 56fda41075 Bug 1124269 - Adjust delay before retrying failure classification tasks
With this change, the first retry is now after 1 minute, then the time
for each subsequent retry lengthens by a further minute each time.
2015-01-27 03:26:18 +00:00
Ed Morley a09c4053cb Bug 1124269 - Retry parse-log tasks sooner
Currently parse-log tasks retry after 10 minutes. With this change, the
first retry is now after 1 minute, then the time for each subsequent
retry lengthens by a further minute each time.
2015-01-27 03:26:18 +00:00
William Lachance 856cbf3b9e Merge pull request #352 from wlach/1117856
Bug 1117856 - Fix error in logging configuration
2015-01-26 17:13:38 -05:00
William Lachance 6a2fdd3472 Bug 1117856 - Fix error in logging configuration 2015-01-26 15:57:57 -05:00
William Lachance 1ae46a4cbd Bug 1124723 - Add performance_artifact to list of tables to perform expiry on 2015-01-26 14:04:31 -05:00
Ed Morley c8b1c70f30 Bug 1125464 - Set host_type for test_bugscache correctly 2015-01-24 21:38:37 +00:00
Ed Morley c96f3af904 Bug 1125464 - Fix key name for specifying master vs read-only DB host
The 'host' property is unrecognised (and ignored) by Datasource, causing
it to silently fall back to the default of 'master_host'. The property
we needed to have set is in fact called 'host_type'.

As a result, we never use the read-only host!

An issue has been filed against Datasource for making this less silent:
https://github.com/jeads/datasource/issues/20
2015-01-24 19:30:18 +00:00
Ed Morley b04f542b12 Bug 1125464 - Remove now redundant check for read_only_host
read_only_host is now always defined (to the same value as host, if no
other was configured), so remove the redundant conditional.
2015-01-24 19:30:17 +00:00
Ed Morley 280c687159 Bug 1125464 - Always set read_only_host when creating job/OS Datasources
read_only_host was previously only ever set when using the
init_datasources script, and not via any other means.
2015-01-24 19:30:17 +00:00
Ed Morley 4ea041690c Bug 1125464 - Add read-only DB config to the reference data Datasource
Later commits will fix the typos in model/sql/reference.json, resulting
in Datasource expecting us to provide a 'read_host' key for queries that
can be performed on the read-only DB. However prior to this change, the
call to Datasource for reference data didn't actually provide this.
2015-01-24 17:51:26 +00:00
Ed Morley 9f025ae442 Bug 1125464 - Populate the Datasource read_only_host field correctly
On initial repo setup, we were previously setting the read_only_host
field in the Datasource table to the host value for the master, not the
read-only slave. Oops.
2015-01-24 17:39:42 +00:00
Ed Morley fbecbc36db Bug 1125464 - Clean up read-only database config params
Passes the fallback default values correctly, rather than as a string.
Also adds the read-only host to base.py, otherwise later commits would
fail tests when run locally or on Travis.
2015-01-24 17:37:50 +00:00
Mauro Doglio 956c84e3e2 Merge pull request #342 from mozilla/bug-1115904
Bug 1115904 - Add a widget showing a resultset status
2015-01-23 11:52:12 -05:00
mdoglio b1881b26a1 Bug 1115904 - Add a widget showing a resultset status 2015-01-22 17:38:05 -05:00
Ed Morley 539a5ef807 Bug 1124737 - Add support for 10.6-specific Talos other 2015-01-22 21:36:07 +00:00
Ed Morley 82162148d6 Correct example in log_parser/utils.py comment 2015-01-22 13:37:16 +00:00
Ed Morley 452af2e45a Bug 1121670 - Use search() instead of match() for search term leak regex
Since we were missing leak failure messages that were prefixed with the
process name, eg:
"... | leakcheck | tab process: 42114 bytes leaked (...)"

Using .search() is quicker than using .match() with '.*' prefixed to the
regex - see https://bugzilla.mozilla.org/show_bug.cgi?id=1076770#c1
2015-01-22 13:18:40 +00:00
Cameron Dawson 7b8205799a Merge branch 'limit-revision-ingestion' 2015-01-21 17:57:01 -08:00
Cameron Dawson b29e65537c Bug 1119028 - Only ingest last 21 revisions per resultset 2015-01-21 13:35:22 -08:00
Ed Morley 31acccb580 Bug 1063688 - Use raw string literals for regexes
Since it avoids backslash expressions from being mis-interpreted if they
happen to match an escape sequence (eg '\b', '\n', ...).
2015-01-21 21:07:00 +00:00
Cameron Dawson da4d0361a7 Bug 1124270 - fix parsing step dates without decimal
sometimes the dates in the buildbot steps are not quite the format we
expect.  Massage them to match so we don’t fail log parsing.
2015-01-21 10:57:57 -08:00
Ed Morley 96d5d42554 Bug 1067409 - Filter on repository active_status in more cases
We should only include active repositories when performing
init_datasources or calculating job etas.
2015-01-20 13:23:32 +00:00
Ed Morley c3ca042b86 Bug 1107523 - Add config file for pep8 and flake8 2015-01-20 13:21:42 +00:00
Ed Morley ef5d699a94 Bug 1123333 - Add missing platforms to PLATFORM_ORDER
Some recently added platforms were added to the ingestion regex and UI
mappings, but not PLATFORM_ORDER - and so are ordered incorrectly in the
API response, and thus Treeherder's UI.
2015-01-19 15:08:45 +00:00
Ed Morley 107a30e46d Bug 1114366 - Add celerybeat-schedule to .gitignore 2015-01-17 11:26:32 +00:00
Ed Morley 9350fc3368 Bug 1086663 - Make the TinderboxPrint regex less strict about whitespace
So that we don't miss "Built from revision X" and other TinderboxPrints.
2015-01-16 20:00:15 +00:00
Ed Morley 1b03238a5a Bug 1121483 - Submit classifications to Bugzilla/ES for non-buildbot jobs too 2015-01-16 14:02:33 +00:00
Ed Morley 33475f12d3 Bug 1085100 - Use start_time instead of classification time in bug comments
Previously classifying failures with a bug number would add a comment to
the bug that listed the datetime of classification. However this is
redundant, since it's virtually the same as the datetime of the bug
comment itself. Instead, it's more useful to list the job start time.

Only classifications for completed jobs are submitted to Bugzilla, so we
do not need to add handling for pending jobs, that do not have a start
time.
2015-01-16 12:38:26 +00:00
Ed Morley 6bf711fb4a Bug 1059811 - pyflakes: Remove unused variables 2015-01-16 12:33:32 +00:00
Ed Morley b0d1c0c168 Bug 1059811 - pyflakes: Remove unused imports 2015-01-16 12:33:32 +00:00
Ed Morley debe98d0da Bug 1121003 - Add support for 10.6-specific Talos tests 2015-01-16 00:23:13 +00:00
Ed Morley 86605a9358 Merge pull request #324 from chmanchester/mn_e10s
Bug 1121125 - Add marionette e10s tests to treeherder.
2015-01-14 17:17:40 +00:00