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

1880 Коммитов

Автор SHA1 Сообщение Дата
Krishnashish Gogoi bc0b48b262 Bug 1139517 - Changes log name of buildbot logs from 'builds-4h' to 'buildbot_text'
This commit changes all the references to 'builds-4h' to 'buildbot_text'. Following
are the changed files along with the no. of occurences that have been changed in
each.

1. tests/etl/test_buildapi.py: 3 occurences
2. tests/sample_data/job_data.txt: 304 occurences
3. treeherder/etl/buildapi.py: 1 occurence
4. treeherder/model/sample_data/job_data.json.sample: 2 occurences

In treeherder/webapp/api/logslice.py, a conditional was removed. The todo above
it instructed it to be removed once this bug was addressed.

To make sure all tests run properly, three files were renamed. Only the portion
of the filename that said 'builds-4h' was changed to say 'buildbot_text'.
2015-04-23 06:18:19 +05:30
William Lachance 7424bb6c2a Merge pull request #478 from tojonmz/rtd-ingestion
Bug 1155868 - Update RTD that single ingestion is limited to builds4hr
2015-04-22 15:23:49 -04:00
Jonathan French bac9e98b35 Bug 1155868 - Update RTD that single ingestion is limited to builds4hr 2015-04-22 14:28:33 -04:00
Ed Morley 461e28b3fb Bug 1155160 - Remove the now unused vendor directory 2015-04-22 11:23:39 +01:00
Ed Morley eaf0c2a792 Bug 1155160 - Remove script for generating the vendor directory
We're no longer using the vendor directory & this script wasn't entirely
reliable anyway, so let's remove it. The virtualenv package can be
removed from dev.txt, since virtualenv is installed globally, and
nothing inside our virtualenv (which is where the packages in dev.txt
end up) needs a local installation of it.
2015-04-22 11:23:32 +01:00
Ed Morley 878262b358 Bug 1155160 - Remove the vendor directory from the Python path
All packages in the vendor directory are now installed in the virtualenv
site-packages, so there's no need to add the in-repo vendor directory to
the Python path.
2015-04-22 11:23:26 +01:00
Ed Morley 0e188d4d9b Bug 1155160 - Stop referring to compiled vs pure packages
This differentiation was only useful when explaining which packages
could be listed in which requirements file (since compiled packages
could not be added to checked-in.txt). Now that all packages are peep
installed, common.txt contains both pure and compiled packages.
2015-04-22 11:23:06 +01:00
Ed Morley 8cdc06ec26 Bug 1155160 - Remove duplicate entry for the 'requests' package
Previously, the requests package had to be listed in dev.txt even
though it was in the vendor directory, since it was used by conftest.py
before the vendor directory was added to the Python path. Now that the
packages in checked-in.txt have been moved to common.txt, 'requests' is
listed in two requirements files that are peep installed, so we can
remove the dupe.
2015-04-22 11:23:00 +01:00
Ed Morley a5295870a8 Bug 1155160 - Move packages in checked-in.txt to common.txt
Now that we're using virtualenvs and peep to manage packages in
production, there's no need to use an in-repo vendor directory. As
such, all packages that were in checked-in.txt have been moved to
common.txt, so they will now be peep installed during deployment/testing
and also during the provision of the Vagrant environment.
2015-04-22 11:22:37 +01:00
Jonathan French 02033761cc Bug 1156420 - Update vagrant troubleshooting during installation 2015-04-21 10:55:53 -04:00
William Lachance ae995bf6fa Bug 1155451 - Don't block on full log download before parse 2015-04-21 08:49:59 -04:00
William Lachance 2719eab213 Bug 1156746 - Bump the number of concurrent log processing workers 2015-04-21 08:48:55 -04:00
Ed Morley 72ca5826fe Bug 1146184 - Use virtualenv and peep for stage/prod package management
Prior to this change, on stage/production we didn't use virtualenvs
(unlike dev/the local Vagrant project) and instead pip installed
packages globally (when puppet ran periodically), using requirements
files that are not in the repo.

Now during deployment, a virtualenv is created and then populated using
peep (which uses hashes to verify the contents of packages before pip
installing them). The virtualenv is then made relocatable (as best as it
can, the feature isn't perfect), the lib64 symlinks are made relative,
and then the virtualenv is rsynced to all nodes, along with the source.

The one main remaining limitation of --relocatable is that the bash
activate script will not work on the other nodes - however the wrapper
scripts under treeherder-service/bin/ add venv/bin/ to PATH so using the
activate script is unnecessary for them. This just leaves running
manage.py commands locally on a node, for we can use:
|../venv/bin/python manage.py foo|, an alias or else we can fix up the
activate scripts in a follow-up bug.
2015-04-20 23:48:27 +01: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
Ed Morley 8478629ef4 Bug 1056877 - Update links & puppet/Vagrant config for new repo name
The 'treeherder-service' repo has been renamed to 'treeherder', ready
for when the treeherder-ui repo is imported into it. This means the
Github URL, Travis URL and directory name when cloned changes. The Read
The Docs URL cannot be changed, so for now we will leave as-is, and in
the future (once service and UI docs combined) we will create a new
project on RTD with name "treeherder".

This updates doc links and puppet/Vagrant configs, but leaves the
stage/prod deploy script alone, since renaming the directories on our
infra is non-trivial. The dev instance will need some TLC since unlike
stage/prod, it does use the puppet scripts in the repo.
2015-04-20 22:00:04 +01:00
Cameron Dawson ed5a799302 Merge branch 'refactor-artifact-model' 2015-04-20 13:30:38 -07:00
Ed Morley d40ce31922 Bug 1156457 - Set the New Relic deploy user to "Chief"
So we don't use the default.
2015-04-20 21:13:31 +01:00
Ed Morley 2ab4bcdb47 Bug 1156448 - Switch to the new OrangeFactor-only ES cluster
OrangeFactor is moving to a new ES cluster, so we need to submit the
intermittent bug associations to the new endpoint instead.
2015-04-20 20:42:02 +01:00
Ed Morley 96470f8d19 Bug 1076737 - Correct New Relic deployment URL and attribute name
The current values were copied from another project's deploy script, but
they are not working - so let's use what the latest New Relic docs say
we should use.
2015-04-20 15:08:18 +01:00
Ed Morley 45cee6856e Bug 1076737 - Followup to fix exception whilst notifying New Relic 2015-04-20 14:49:16 +01:00
Mauro Doglio 8039330160 Bug 1076737 - notify newrelic on deployment 2015-04-20 13:39:24 +01:00
Ed Morley 25ffbd9190 Bug 1155647 - Don't generate log parser exceptions if the log URL 404s
If attempting to fetch the log from the provided URL results in a 404,
mark the parse_status as failed but do not generate an exception. Whilst
missing logs are not ideal, they are not an app error, nor something is
likely to change over time (vs say an HTTP 500 from ftp.mozilla.org).
2015-04-17 22:07:42 +01:00
Ed Morley 11be596d60 Bug 1155647 - Refactor out the POST to update_parse_status 2015-04-17 22:07:41 +01:00
Cameron Dawson 44511e4518 Bug 1154470 - refactor artifact handling into its own model 2015-04-17 10:56:44 -07:00
Ed Morley 5ee006eb01 Bug 1155293 - Update to peep v2.4
Copied verbatim from:
https://github.com/erikrose/peep/archive/2.4.zip

Changes:
https://github.com/erikrose/peep/compare/2.2...2.4
2015-04-17 17:38:40 +01:00
Ed Morley 738de334c6 Bug 1070470 - Correct "Required by" comment for fancy-tag
fancy-tag is only required by 'django-browserid', not also 'responses'.
2015-04-16 14:04:37 +01:00
Ed Morley 9a68acd173 Bug 1154471 - Remove newrelic-plugin-agent from requirements/prod.txt
Since it has to be installed globally & run as a daemon, and so we have
no use for it in the virtualenv.

Reverts 37ae564296 from bug 1070470.
2015-04-15 16:24:59 +01:00
Ed Morley 52d5c4fb89 Bug 1153966 - Remove unused MozillaPulse, carrot & amqplib requirements 2015-04-14 00:22:33 +01:00
Ed Morley 21bbb4554b Bug 1153966 - Drive-by comment fixes 2015-04-14 00:22:24 +01:00
Ed Morley b1f14bb458 Bug 1153966 - Remove unused Pulse consumer code
Unlike the Pulse publishing, the code for consuming data from Pulse is
unused, being a leftover from initial attempts to ingest buildbot data
via pulse, rather than builds-{4hr,running,pending}.js
2015-04-14 00:21:50 +01:00
Ed Morley 175a45a7a4 Bug 1152426 - Only add bugs modified in the last year to the bugscache
The API query will now be of form:
bugzilla.mozilla.org/rest/bug?include_fields=id,summary,status
&keywords=intermittent-failure&chfieldfrom=-1y
2015-04-13 18:58:13 +01:00
Ed Morley bddfcfed70 Bug 1153186 - s/TBPL_BUGS_TRANSFER_ENABLED/MIRROR_CLASSIFICATIONS/ 2015-04-13 18:55:35 +01:00
Ed Morley 87f6605de1 Bug 1153186 - Split up the high_priority task queue
...into 'classification_mirroring' and 'publish_to_pulse'. This gives
greater visibility into the relative queue sizes of each, allows us to
move one of them to another node, plus means we can pause consumption of
the classification_mirroring task for when the Elasticsearch indicies
are migrated in bug 1142538.
2015-04-13 18:55:34 +01:00
Ed Morley 10b6e1b54c Bug 1153186 - Rename the submit_star_comment & submit_bug_comment tasks
s/submit_star_comment/submit_elasticsearch_doc/
s/submit-star-comment/submit-elasticsearch-doc/
s/submit_bug_comment/submit_bugzilla_comment/
s/submit-bug-comment/submit-bugzilla-comment/
2015-04-13 18:55:33 +01:00
Ed Morley c8daf2d2d7 Bug 1153186 - Clean up Bugzilla/Elasticsearch/TBPL related comments 2015-04-13 18:55:33 +01:00
Ed Morley 0c12b0dd83 Bug 1153186 - Remove tbpl from test names 2015-04-13 18:55:32 +01:00
Ed Morley a3af89f2b8 Bug 1153186 - Rename OrangeFactorRequest BugzillaBugRequest
We're submitting to Elasticsearch (used by OrangeFactor), not directly
to OrangeFactor, so "Elasticsearch" is more appropriate. The use of
"Bug" in the name makes it sound like we're submitting a bug, which
we're not, we're submitting a bug comment (or ES doc) which contains a
number of different fields, in response to a classification entry made a
sheriff iff the classification included a bug number, which is slightly
different, and too nuanced to include in the name.

As such whilst not perfect, I think this is slightly clearer:
s/OrangeFactorRequest/ElasticsearchDocRequest/
and
s/BugzillaBugRequest/BugzillaCommentRequest/
2015-04-13 18:55:31 +01:00
Ed Morley 8c836a93fb Bug 1153186 - Use "classification_mirroring" in filenames instead of "tbpl"
These tasks no longer submit to TBPL, but to Bugzilla/Elasticsearch
directly, so this is a more appropriate name.
2015-04-13 18:55:30 +01:00
Ed Morley 0c9203555f Bug 1140882 - Remove gevent & greenlet from requirements
Since they are now unused.
2015-04-13 17:14:13 +01:00
Ed Morley e8ad64842d Bug 1140850 - Remove gevent celery worker script from the repo
Since it's unused & we're moving away from gevent.
2015-04-13 17:12:44 +01:00
Ed Morley 19d0b51d2a Bug 1140882 - Use prefork scheduling for pushlog workers
Use prefork scheduling instead of gevent scheduling, to avoid issues
we've had with gevent - both with zombie tasks & also incompatibilities
with Python 2.7.9.
2015-04-13 17:09:55 +01:00
Ed Morley 929431c8ce Bug 1153138 - Simplify regex for l10n repack jobs
Now that the job names have been made more consistent by bug 740142, we
can simplify our regex again :-)

This is a direct revert of the last three hunks in:
d7abe14635
...plus appropriate updates to the job names in the tests.
2015-04-13 16:55:53 +01:00
Jonathan Griffin 51d28c0b1d Merge pull request #458 from mozilla/mochitestpush
Bug 1153400 - Add symbol for mochitest-push, r=emorley
2015-04-11 08:44:16 -07:00
Jonathan Griffin 088e1bf5e4 Bug 1153400 - Add symbol for mochitest-push, r=emorley 2015-04-10 13:00:01 -07:00
Mauro Doglio 25b2cd935b Bug 1141551 - upgrade django version 1.7.7 2015-04-10 13:31:42 +01:00
Ed Morley cc0508b6f3 Bug 1152769 - Log parser: Make error & debug output strings more useful
In order to find the job in question, the project name is required in
addition to the job guid. We also now specify the URL for errors, to
save having to look up the job at all in many cases.
2015-04-09 16:24:07 +01:00
Cameron Dawson c51409d34e Bug 1150734 - add signature field to jobs in job list
This allows for more precise filtering with the ``job`` (buildername)
link in the detail panel.
2015-04-09 08:05:46 -07:00
Ed Morley 94a081e480 Bug 1152681 - Mark test_parse_mozlog_log as xfail to make Travis green
We've disabled json log parsing, so we need to temporarily mark the
corresponding test as expected fail.
2015-04-09 12:19:20 +01:00
Ed Morley 0ce8751281 Bug 1152681 - Temporarily disable the parse-json-log task
Since it is taking 80x longer than it did previously and is causing
backlogs in the standard log parsing tasks too.
2015-04-09 10:31:57 +01:00