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

31 Коммитов

Автор SHA1 Сообщение Дата
Ed Morley 519bf901ad Bug 1169944 - Use the New Relic wrapper when running scripts locally too
Previously if the `bin/` directory scripts were run in the Vagrant
environment, the processes run would not have been started via the
New Relic wrapper command, since the New Relic licence key is not set.

For greater consistency between Vagrant and production, the wrapper
command is now always used.

This works since `NEW_RELIC_DEVELOPER_MODE` is defined in the Vagrant
environment (thanks to a previous commit in the same bug), which
prevents the agent from trying to submit real data:
https://docs.newrelic.com/docs/agents/python-agent/installation-configuration/python-agent-configuration#developer_mode
2016-05-03 21:21:04 +01:00
James Graham b6f4533bd7 Bug 1255087 - Add detect_intermittents and autoclassify queues to celery worker files
This will not cause any additional tasks to actually run since
the code that adds messages to these queues is gated on the
AUTOCLASSIFY_JOBS setting.
2016-03-16 17:46:16 +00:00
Cameron Dawson f3c0258a13 Bug 1241583 - celery scripts include autoclassify tasks that shouldn't be currently running
These tasks should not be currently running on stage and prod.  They
will be activated in a later PR.

r=emorley@mozilla.com
2016-01-21 11:02:51 -08:00
William Lachance a8e663d61d Bug 1228154 - Generate new performance alerts as data is ingested 2015-12-02 13:20:17 -05:00
Ed Morley 620228cbf3 Bug 1196764 - Rename calculate_eta to calculate_durations
Since we're not calculating ETAs (the UI does that once it knows the
start time and expected duraction), we're calculating recent average
durations instead.
2015-11-30 11:36:18 +00:00
Alice Scarpa 5d9e430cac Bug 1194830: Add a runnable_job API endpoint
This creates a 'runnable_job' table in the database, as well as an API
endpoint at /api/project/{branch}/runnable_jobs listing all existing
buildbot jobs and their symbols. A new daily task 'fetch_allthethings' is
added to update the this table.
2015-11-14 13:56:06 -02:00
James Graham 7b6fa25402 Bug 1204942 - First cut at autoclassify / intermittent orange detection.
This adds an autoclassify command and a detect_intermittents command.
The former is designed to take an incoming job with an error summary
and look for existing results marked as intermittent that are a close
match for the new result. At present only one matcher is implemented;
this requires an exact match in terms of test name, result and error
message. Matching is also constrained to be based on single lines; it
is anticipated that future iterations may add support for matching on
groups of lines.

The detect_intermittents command is designed to take a group of jobs
running on the same push and with the same build job (i.e. same
testsuite, same chunk, etc.) and look for new intermittents to add to
the database. This currently only looks for test failures where there
is at least one green job and one non-green job.

There is currently no UI for seeing matches or for adding new
prototypical intermittents as match candidates. There is also no
integration with bugzilla; future development should add association
of frequent intermittents with bugs.
2015-09-21 22:47:19 +01:00
William Lachance 066f437ca5 Bug 1192976 - Refactor performance data + store in master db 2015-09-14 10:16:25 -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
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
Ed Morley 58cc851204 Bug 1146184 - Add virtualenv's bin to PATH rather than using activate
In order to rsync the virtualenv as part of deployment, we'll need to
use |virtualenv --relocatable|. However this does not update the
activate scripts (making them unusable), and the changes it makes in the
virtualenv bin directory require that the virtualenv's python is first
in the path:
https://virtualenv.pypa.io/en/latest/userguide.html#making-environments-relocatable

As such, we must make the Treeherder runner scripts add the virtualenv
bin to PATH instead of using the activate pattern.
2015-04-20 23:48:26 +01:00
Ed Morley a2d66a85d1 Bug 1146184 - Clean up the directory variables in runner scripts
The existing name "curr_dir" isn't overly clear - does it mean the
current working directory or the directory in which this script exists?
It should also be uppercase. I think the behaviour is clearer when
reworked like this :-)

There's a lot of other cleanup that could be done (eg reducing
duplication), but saving that for bug 1153971.
2015-04-20 23:48:26 +01:00
mdoglio 40b01c751d Bug 1122139 - Split common tasks to separate queues 2015-01-28 14:33:38 +00:00
Jonathan French dbb4d11e09 Bug 1090689 - Add MPL2.0 headers to the repo 2014-11-03 13:06:03 -05:00
mdoglio 5df6bd4212 Unplug the default celery worker from etl queues 2014-10-21 18:21:02 +01:00
mdoglio b9d40fb40a Bug 1016117 - update celery project layout and worker init script 2014-10-10 18:12:16 +01:00
mdoglio 844b6a8c9f Temporarily consume buildapi and pushlog queues from default
This is to support the use of separate queues for etl tasks until we
have dedicated machines on production
2014-10-06 23:40:46 +01:00
Jonathan Eads b2002c68c9 set log level to INFO 2014-06-20 14:33:17 -07:00
Mauro Doglio 518e281178 revert run_celery_worker 2014-06-19 18:27:40 +01:00
mdoglio b95cd5249b celery worker unique name 2014-06-18 19:59:46 +01:00
mdoglio feb3862db8 reduce the celery concurrency to 1 worker 2014-06-18 18:03:39 +01:00
mdoglio 1e468c7f14 set treeherder logger to write ERROR level logs to stderr
remove unused celerymon service
disable flash transport for socketio
2014-06-04 14:14:41 +02:00
uberj 968fa002ee bash needed more spaces 2014-06-02 07:55:42 -07:00
uberj f2f3b6cbd7 fix bash style issues 2014-06-02 07:55:42 -07:00
uberj cc5de0d423 add log file/dir creation logic for all processes
@mozjcrowe r?
2014-06-02 07:55:42 -07:00
Jonathan Eads 21bf167647 dynamically set python path 2014-05-30 10:29:34 -07:00
mdoglio de2d694f22 add newrelic support to the worker scripts 2014-05-20 16:57:13 +01:00
mdoglio d10506b710 fixup! fixup! remove db access from the parse_log task 2014-03-11 14:38:30 +00:00
mdoglio 0e53e70491 fix difference between supervisord v2 and v3 2014-01-07 21:28:48 +00:00
mdoglio 327ed28648 improve environment setup via puppet 2014-01-07 15:24:35 +00:00
mdoglio 3085581e2d add daemon scripts 2014-01-06 15:49:32 +00:00