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

371 Коммитов

Автор SHA1 Сообщение Дата
William Lachance 5335bf4163 Bug 1266062 - Move job note ingestion / queries to Django ORM 2016-07-04 11:43:26 -04:00
William Lachance c44c258295 Bug 1266062 - Move bug job map ingestion / queries to Django ORM 2016-07-04 11:43:26 -04:00
jgraham 52607c2a57 Bug 1268484 - Add elastic-search based matcher for test failure lines (#1488)
Add support for matching test failures where the test, subtest, status,
and expected status are all exact matches, but the message is not an
exact match. The matching uses ElasticSearch and is initially optimised
for cases where the messages differ only in numeric values since this is
a relatively common case.

This commit also adds ElasticSearch to the travis environment.
2016-06-29 11:25:38 +01:00
camd 7e26d12510 Bug 1275589 - Prune runnable jobs (#1587)
* Bug 1275589 - Prune runnable jobs

Prior to this fix, the list of runnable jobs would be pruned only when
the normal cycle-data process ran.  This is not fast enough, however.

Now, defunct buildernames are removed every time the runnable jobs are
updated.

* test fix

* fix
2016-06-14 14:57:09 -07:00
James Graham 9e4a8db518 Bug 1277936 - Fix indentation issue that made update_autoclassification_bug a no-op.
This wasn't a serious issue, it just meant that we would never infer a bug
number when a job was sheriffed using the non-autoclassification UI.
2016-06-06 11:54:45 +01:00
William Lachance de99ac5749 Bug 1277345 - Fix log exception during job ingestion
When a log already exists with different state during job ingestion with
a non-default status, we should not change it.
2016-06-01 15:53:03 -04: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 4d143c055f Bug 1272532 - Handle case where we get two different retry guids for a job
This is an obscure case (that we should probably handle better), but I
believe this patch should at least fix the new relic exception in the
common cases (specifically when we get the same retry with a different
guid in the same batch of jobs). This patch also adds a bunch of unit
tests to test ingesting batches of jobs containing retries. There are
many cases which still fail (which would probably never occur in real
life), but I'm going to put off fixing those for now -- see comments
in the unit tests for details.
2016-05-24 10:05:52 -04:00
William Lachance 9a594837bb Bug 1271723 - Cycle machine information that is no longer used 2016-05-13 16:40:02 -04:00
William Lachance 82221633b8 Bug 1270629 - Replace Job Info artifacts with a "jobdetail" endpoint
This is simpler and removes one more type of artifact from the per-project
databases.
2016-05-09 20:09:26 -04:00
William Lachance 5e8e6d12a3 Revert "Bug 1270629 - Replace Job Info artifacts with a "jobdetail" endpoint"
This reverts commit af9c208792.
2016-05-09 16:08:26 -04:00
William Lachance af9c208792 Bug 1270629 - Replace Job Info artifacts with a "jobdetail" endpoint
This is simpler and removes one more type of artifact from the per-project
databases.
2016-05-09 14:51:42 -04:00
William Lachance 444d5e0745 Bug 1270561 - Use intermediate jobs as lookup when ingesting artifacts 2016-05-05 14:47:28 -04:00
Cameron Dawson 706014481e Bug 1268676 - fix key errors on resultsets with 12 char revisions 2016-05-02 08:16:52 -07:00
autolander 62fab5684e Merge pull request #1429 from wlach/1268593
Bug 1268593 - Cycle job type / group / runnable job reference data
2016-04-29 10:05:04 -07:00
James Graham 496335e6c5 Bug 1265188 - Make sure to check for existing identical classification when trying to update the bug number.
When setting the bug number for a classified failure, first check for an
classified failure that already has that bug number, and if one exists,
update all references to the classified failure being changed to instead
point at the existing classification
2016-04-29 17:17:25 +01:00
William Lachance 414d68a806 Bug 1268593 - Cycle job type / group / runnable job reference data 2016-04-28 14:01:39 -04:00
William Lachance f744b91de1 Revert "Bug 1265037 - Temporarily disable creation of intermediate job entries"
This reverts commit 081d86bd7b.
2016-04-25 13:36:05 -04:00
William Lachance 081d86bd7b Bug 1265037 - Temporarily disable creation of intermediate job entries
We will wait to turn this on until the initial migration is complete to
ensure jobs are more-or-less in chronological order
2016-04-25 12:46:59 -04:00
William Lachance 104787282d Bug 1265037 - Create an intermediate jobs model/table
Not really useful in-and-of-itself, but should be helpful by acting
as a centralized place to relate and map job information from what
is stored in the main treeherder database to what's in the per-project
databases. Eventually, we can extend this into a full-fledged jobs model.
2016-04-25 12:46:59 -04:00
William Lachance 95add9207e Bug 1266398 - Remove unnecessary calls to jm.disconnect() from tests 2016-04-21 11:43:00 -04:00
James Graham 6d793616f9 Add data cycling for task_set_meta table.
This refactors deleting data stored in the treeherder db a little so that
there is a generic mechanism for chunked deletes of such data
2016-04-19 19:16:08 +01:00
Cameron Dawson 6ce43bf034 Bug 1177519 - Back end changes for autoclassification work 2016-04-19 19:16:07 +01:00
William Lachance 92f02ccc25 Bug 1231361 - Remove refdata model dependency from unit tests 2016-04-04 15:10:08 -04:00
William Lachance 15ba5b10b9 Bug 1231361 - Remove bugscache methods from refdata model
Instead, just use the ORM directly where needed.
2016-04-04 15:10:07 -04:00
Cameron Dawson 41522044fd Bug 1199291 - Create result set on the fly for jobs ingested where the RS does not exist yet 2016-03-23 16:56:52 -07: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 ecac73e26a Bug 1256485 - Don't load initial data in unit tests
It's almost entirely unnecessary (the few times we need base data
we can generate it ourselves) and can overwrite other test data
if we're not careful. Better just to remove it.
2016-03-16 14:47:39 -04:00
James Graham 326b918e35 Bug 1245080 - Remove failure lines with corresponding jobs
When jobs are cycled, also remove the failure_line rows for
those jobs, to limit data consumption of the failure_line
table.
2016-03-16 17:25:54 +00:00
William Lachance 161b3635aa Bug 1239185 - Remove use of reference data model in job ingestion 2016-03-14 15:17:43 -04:00
Cameron Dawson 26b156af5a Bug 1254673 - Stop posting new resultset info to pulse 2016-03-09 11:47:28 -08:00
Ed Morley 41526006c5 Bug 1248406 - Replace print statements with print()
For future Python 3 compatibility.

(Whilst for 100% Python 3 equivalence we should be using
`from __future__ import print_function`, it doesn't seem worth it.)
2016-02-15 14:54:46 +00:00
Ed Morley 9b5c96e6ad Bug 1144687 - Remove duplicate sample_data_generator.py file
It's unused and mostly a dupe of the file in `tests/`.
2016-01-22 17:58:20 +00:00
Ed Morley 8384eefc60 Bug 1196764 - Add a test for calculating and using average job durations
This test checks that the `calculate_duration` command correctly
populates the `job_duration` table both on an initial run and when new
jobs cause an existing average duration to change.

It also checks that once the task has been run, any subsequent ingestion
of jobs with matching signatures cause those jobs to have the correct
`running_eta` value when inserted into the `job` table.
2015-11-30 11:36:21 +00:00
Ed Morley c89fc00502 Bug 1196764 - Add the test_repository fixture to tests that store jobs
At the moment tests that store jobs can get away with not having the
test project listed in the repository table. However with later commits,
the new job_duration table will have a foreign key on the repository
table, which will break those tests unless they use the test_repository
fixture, which creates the repository record for them.
2015-11-30 11:36:19 +00:00
Tiramisu 1993 dae9395468 Bug 1193419 - No longer expire resultset and revision 2015-11-26 11:29:10 +00:00
Mauro Doglio 5930b4f4c1 Bug 1193836 - Use pytest-django to run tests
pytest-django doesn't setup a test database for every single test, but
only for those tests that actually require a db. Tests that require a db
need to either be marked with `@pytest.mark.django_db` or use a fixture
that has a dependency on `db` or `transactional_db`.
Using a non transactional db would make tests execution much faster, but
unfortunately it doesn't play well with the treeherder datasource
creation so I used a transactional_db.

pytest-django also allows you to specify a settings file to use for
tests in a pytest.ini file, which is nicer than monkeypatch the original
settings file in the pytest session start function 😃.
2015-10-27 11:19:13 +00:00
Cameron Dawson 53bc948f94 Bug 1079796 - store long and short revisions
We store both long and short, but only utilize the short (as before).  We
need to populate all the short and long revision records before we can
start using them.  So after this commit, we will begin backfilling the
old records that don't yet have those values populated.  Once they all
are, we can move to using the long_revision primarily in Bug 1199364.
2015-10-21 13:02:01 -07:00
Ed Morley 4196822599 Bug 1211715 - Remove the device table 2015-10-10 23:04:15 +01:00
Ed Morley a170d6c047 Bug 1212447 - Allow setting the data retention time via an env variable
By storing the duration as an int rather than a timedelta, we can set it
via the environment, rather than having to rely on local.py.

The variable has also been renamed to ease the transition and also make
its purpose clearer. Prod/Heroku use the default duration, and stage has
already had DATA_CYCLE_DAYS set to 45 in its environment, for parity
with the old stage local.py DATA_CYCLE_INTERVAL setting.
2015-10-08 12:13:19 +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 066f437ca5 Bug 1192976 - Refactor performance data + store in master db 2015-09-14 10:16:25 -04: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
Mauro Doglio 1ab14030ce Bug 1181879 - upgrade django to 1.8.4 2015-08-19 19:53:55 +01: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 27c024d22b Bug 1060765 - Move the error summary tests to tests/model/
Since the code they are testing was moved to the models directory, as
part of bug 1163182.
2015-08-11 17:04:47 +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
Ed Morley 21ca58c3d2 Bug 1185030 - Remove the contenttype field from the datasource table
Since it's redundant now that the objectstore has been removed.
2015-07-23 11:23:06 +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
William Lachance 61904aaffa Bug 1182282 - Handle submissions of duplicate performance data
It appears that on occasion we parse a log more than once, which
resulted in duplicate performance series going into the database.
Let's be resilient about this by not inserting duplicate jobs into the
database (we always attach a unique job id to every datapoint, so there's
no chance of accidentally removing entries which happen to have the same
performance numbers)
2015-07-13 13:32:26 -04:00
Ed Morley 2d087edaea Bug 1182455 - Remove support for different DB hosts per datasource
Having the ability to use different DB hosts for each project sounded
like a good idea, but in reality, we have no need for it.

This switches us to using the global read-write and read-only database
host names rather than the fields on the datasource table. As such, the
'host', 'read_only_host' and 'type' (eg 'mysql') fields can be removed.
The Django model had a unique_together on host+name, so we now need to
make 'name' (ie database name) a unique key on it's own.

In addition, this removes the 'creation_date' field, since we don't use
it anywhere, and we can just look at the commit history to see when a
repo was created. (I imagine it may have had more use if we actually had
started partitioning the databases uses the old 'dataset' count field).

In a future bug, I'll remove the redundant substitution of 'engine' for
'InnoDB' in the template schema, given that engine is now always InnoDB
in create_db().
2015-07-11 13:20:00 +01:00
Ed Morley 9371347bc2 Revert "Bug 1175432 - Use dj-database-url to simplify DB environment variables"
This reverts commit 3330b3c567.
2015-07-09 23:05:49 +01:00
Ed Morley c4c660f277 Bug 1182201 - Compress blobs in the performance_series table
Since they can be up to 800+ KB in size and whilst there are not many
rows in the table, if they are not compressed it bloats the binlogs.
2015-07-09 22:40:55 +01:00
Ed Morley 3330b3c567 Bug 1175432 - Use dj-database-url to simplify DB environment variables
dj-database-url extracts DB host, port, username, password and database
name from the env variable 'DATABASE_URL' (unless another env variable
name is specified). If the env variable is not defined, it falls back to
the default passed to dj_database_url.config().

This means for Heroku and similar we can replace the multiple DB env
variables with just one URL for default & one for read_only.

This also effectively makes the setting of the read only DB variable
mandatory for stage/production/heroku, since DEFAULT_DATABASE_URL won't
be valid for them - so prevents us inadvertently not using the read only
DB.

Before this is deployed, we'll need to update the stage/prod puppet
configs & Heroku settings to add the new environment variable.
2015-07-09 17:54:29 +01:00
Ed Morley 0f3d1b2bcf Bug 1179214 - Stop storing the list of files changed in a revision
Since we're not currently using it, and the schema we need will likely
be different if we were to start using it in the future.
2015-07-08 10:52:15 +01:00
Ed Morley 6b1e4f602b Bug 1178234 - Remove repository_version
Since it's unused, and hg.mozilla.org now has this information available
via its API.

Note: This commit depends on bug 1178719, to prevent issues during
deployment. Also, due to https://code.djangoproject.com/ticket/25036 a
migrate will need to be run interactively after deployment, to clean up
the old repositoryversion content type.
2015-06-30 14:16:47 +01:00
Ed Morley d2010a6215 Bug 1178232 - Remove support for multiple Datasources of the same type
The datasource table has a 'dataset' field, to allow for multiple
datasources of the same type (for partitioning; eg the "1" in
`mozilla-central_jobs_1`). However we have never used it, so let's just
remove it.
2015-06-30 14:10:07 +01:00
William Lachance 4a74b3704e Bug 1171707 - Fix locking when concurrently updating performance series
Before if two celery jobs were updating the same series, one would overwrite
the other because the locking code did not actually work (it just always
unconditonally got a new lock without checking if anything was using it).
This fixes that.
2015-06-29 15:03:44 -04:00
Cameron Dawson 358e90f685 Bug 1080760 - Auto-generate bug suggestions asynchronously
This introduces two new ways to generate ``Bug suggestions`` artifacts from
a ``text_log_summary`` artifact
1. POST a ``text_log_summary`` on the ``/artifact`` endpoint
2. POST a ``text_log_summary`` with a job on the ``/jobs`` endpoint.

Both of these cases will schedule an asynchronous task to generate the
``Bug suggestions`` artifact with ``celery``.

Artifact generation scenarios:

JobCollections
^^^^^^^^^^^^^^
Via the ``/jobs`` endpoint:

1. Submit a Log URL with no ``parse_status`` or ``parse_status`` set to "pending"
    * This will generate ``text_log_summary`` and ``Bug suggestions`` artifacts
    * Current *Buildbot* workflow

2. Submit a Log URL with ``parse_status`` set to "parsed" and a ``text_log_summary`` artifact
    * Will generate a ``Bug suggestions`` artifact only
    * Desired future state of *Task Cluster*

3. Submit a Log URL with ``parse_status`` of "parsed", with ``text_log_summary`` and ``Bug suggestions`` artifacts
    * Will generate nothing

ArtifactCollections
^^^^^^^^^^^^^^^^^^^
Via the ``/artifact`` endpoint:

1. Submit a ``text_log_summary`` artifact
    * Will generate a ``Bug suggestions`` artifact if it does not already exist for that job.

2. Submit ``text_log_summary`` and ``Bug suggestions`` artifacts
    * Will generate nothing
    * This is *Treeherder's* current internal log parser workflow
2015-05-20 16:28:32 -07:00
Cameron Dawson 44511e4518 Bug 1154470 - refactor artifact handling into its own model 2015-04-17 10:56:44 -07: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 05b3cebfa4 Bug 1059814 - Fix pep8/pyflakes E712, E713, E731, W503
Fixes:
tests/model/derived/test_jobs_model.py:343:23: E712 comparison to False should be 'if cond is False:' or 'if not cond:'
treeherder/__init__.py:11:1: E731 do not assign a lambda expression, use a def
treeherder/etl/buildapi.py:107:16: E713 test for membership should be 'not in'
treeherder/log_parser/utils.py:183:33: W503 line break before binary operator
treeherder/model/derived/base.py:73:12: E713 test for membership should be 'not in'
treeherder/model/derived/base.py:82:12: E713 test for membership should be 'not in'
treeherder/model/derived/jobs.py:1998:26: W503 line break before binary operator
2015-03-03 02:34:40 +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 e61738b5a9 Bug 1127940 - Remove the now unused get_bug_job_map_detail()
BugzillaBugRequest was the only consumer, so we can now remove it.
2015-02-05 01:48:54 +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 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
mdoglio f5aa1d3a9f Bug 1101040 - filter jobs by last_modified 2015-01-06 15:39:24 +00:00
mdoglio 06f62d21f6 Bug 1102228 - Improve the data cycling routine
Added several parameters to the cycle_data shell command: cycle-interval (in days),
chunk-size (in number of result sets), sleep-time (in seconds).
I made the cycle_data task a very thin wrapper around the shell command,
there is no more logic in it.
All the queries for data cycling are executed with the retry logic to
handle db deadlocks
2014-11-26 16:38:18 +00:00
mdoglio 0e19a402ca Bug 1102257 - Store the data cycle interval in the settings file 2014-11-21 15:38:32 +00:00
Ed Morley 05cf876d4a Bug 1078239 - Fix bug suggestions for recently modified, resolved bugs
We divide bug suggestions for a search term into 'open_recent' and
'all_others'. The former is supposed to be group #1 below, and the
latter groups 2-4, with the summation of the two groups corresponding
to every bug whose summary matches the search term.

1) Open + recently modified
2) Open + not recently modified
3) Resolved + recently modified
4) Resolved + not recently modified

However prior to this patch group #3 was not being returned at all, when
it should have been included in all_others.
2014-11-10 15:51:06 +00:00
Mauro Doglio 0d5b02daf5 Merge pull request #279 from tojonmz/add-headers
Bug 1090689 - Add MPL2.0 headers to the repo
2014-11-10 14:46:25 +00:00
Ed Morley 0d586fd2f1 Bug 1072377 - Add another test for truncated test name bug searches 2014-11-10 13:50:02 +00:00
Ed Morley 93e0c98999 Bug 1091643 - Add tests for SQL LIKE escaping of search_term
Test that we are treating the search term literally in the LIKE
statement, and so have correctly escaped any underscores, percent signs
or escape symbols.
2014-11-10 13:50:02 +00:00
Ed Morley b2ffa4d61f Bug 1091643 - Add test for truncated test name bug searches 2014-11-10 13:50:01 +00:00
Jonathan French dbb4d11e09 Bug 1090689 - Add MPL2.0 headers to the repo 2014-11-03 13:06:03 -05:00
Mauro Doglio 23ee49570d Merge pull request #268 from mozilla/mysql-retry
Mysql retry
2014-10-30 15:07:33 +00:00
Ed Morley d7f9350560 Bug 1091579 - Rename SEARCH_TERMS to BUG_SEARCHES 2014-10-30 13:07:07 +00:00
Ed Morley 0c8318eb51 Bug 1091579 - Remove the now redundant test_get_all_other_bugs_wrong_term() 2014-10-30 13:07:06 +00:00
Ed Morley 33e6ca8906 Bug 1091579 - test_get_all_other_bugs() should check the bug IDs
...rather than just whether the count of bugs is greater than zero.
2014-10-30 13:07:05 +00:00
Ed Morley 513d3d0c55 Bug 1091579 - Parametrize test_get_all_other_bugs() 2014-10-30 13:07:05 +00:00
Ed Morley 6cb45262e7 Bug 1091579 - Combine the tests for correct and incorrect search terms 2014-10-30 13:07:04 +00:00
Ed Morley 8b803b10f3 Bug 1091579 - test_get_open_recent_bug_right_term() should check the bug IDs found
...rather than just whether the count of bugs is greater than zero.
2014-10-30 13:07:04 +00:00
Ed Morley 110c5fe619 Bug 1091579 - Parametrize test_get_open_recent_bug_right_term() 2014-10-30 13:07:03 +00:00
Ed Morley c1faeda8a7 Bug 1091579 - Correct & reformat comments in test_refdata.py 2014-10-30 13:07:02 +00:00
Cameron Dawson 9d098e8ade bug 1089782 - fix retry limit and add test 2014-10-28 14:54:26 -07:00
camd d4bbb0475d Merge pull request #253 from mozilla/bug-1081600-investgate-job-group-update
Bug 1081600 - add a test to confirm the behaviour of job type/job group ...
2014-10-20 08:36:11 -07:00
mdoglio 70c85484cd Bug 1081600 - add a test to confirm the behaviour of job type/job group associations 2014-10-16 12:16:15 +01:00
Jonathan Eads ab1bd6a3c0 Bug 1080219 - Fix broken tests, add comments 2014-10-13 13:38:29 -07:00
mdoglio 8f9a686fde (bug 1072291) revert pushlog caching strategy
The pushlog cache now uses the top revision of the last push.
Also, increase the time limit to fetch the pushlog to 3 minutes
2014-09-25 21:02:40 +01:00
Jonathan Eads d7908793a5 Bug 1071577 - Cache revision hashes to reduce pushlog load 2014-09-24 15:46:33 -07:00
mdoglio a44c6c7cfb Bug 1048354 - send bug association to bugzilla 2014-09-10 12:07:13 -07:00
Jonathan Eads 1a97cfa944 modified detection of new result sets strategy 2014-08-26 14:05:17 -07:00
Jonathan Eads cd9f658d81 Added task/operations to report new result sets to pulse 2014-08-25 16:03:26 -07:00
mdoglio 06473c208e retrieve bug suggestions with an all words search 2014-08-07 15:37:07 +01:00
mdoglio b9262f367a fix delete_bugscache method in RefDataManager 2014-08-05 18:21:18 +01:00
mdoglio db64a83d82 (Bug 1032643) Tweak bug suggestions retrieval 2014-08-05 11:55:41 +01:00
Cameron Dawson 5f8a9d8c31 fixed tests 2014-06-26 17:08:42 -07:00
Cameron Dawson 6dfa699c88 fixed merge conflicts 2014-06-26 16:27:20 -07:00
Cameron Dawson 209a029592 fixing tests. rework on code slightly 2014-06-25 17:21:54 -07:00
Jonathan Eads 1987e6fcd7 removed bad talos perf tests 2014-06-23 17:38:36 -07:00
Jonathan Eads 26963edbba merged master 2014-06-18 14:01:32 -07: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
Cameron Dawson 82648e2a65 test updates 2014-06-12 18:26:46 -07:00
Jonathan Eads ed58b1cb90 re-structured performance data storage 2014-06-12 17:48:41 -07:00
Cameron Dawson 599e40df05 fixed bug and added test. 2014-06-12 17:42:37 -07:00
Jonathan Eads 8e3a96bf40 merged pnispel performance-schema 2014-06-12 11:31:02 -07:00
pnispel 8d271aba67 tests passing for jobs. updating to be reviewed before polish 2014-06-11 16:18:46 -07:00
vagrant 3b3bd855f6 pushing for jeads, will squash later 2014-06-11 00:03:21 +00:00
jeads a0d82137cc Merge pull request #161 from mozilla/tbpl-classification-proxy
send classification data to tbpl
2014-06-09 15:32:22 -07:00
pnispel 472a0658c5 pushing for jeads 2014-06-05 16:51:00 -07:00
Jonathan Eads 0042aec91a removed localhost 2014-06-05 14:40:36 -07:00
mdoglio 7b11ec408d send classification data to tbpl 2014-06-03 18:46:20 +02:00
Jonathan Eads 5ee8880971 added explicit disconnect 2014-06-02 13:48:58 -07:00
Jonathan Eads d313b86522 added disconnects 2014-06-01 20:00:52 -07:00
Jonathan Eads 342fecec9f add explicit disconnect 2014-05-30 15:25:15 -07:00
vagrant 773e8fbf8b made more changes 2014-05-14 04:34:01 +00:00
Jonathan Eads 970c362bce made lots of changes 2014-05-11 22:17:57 -07:00
Jonathan Eads a71e4b65af made changes 2014-05-07 09:27:33 -07:00
Jonathan Eads 7a8c1d90de added disconnect calls 2014-04-18 13:57:23 -07:00
Jonathan Eads 5394adfd25 removed deprecated comment 2014-04-16 17:52:57 -07:00
Jonathan Eads 9610ba8569 Merge branch 'master' of ssh://github.com/mozilla/treeherder-service into cycle-data 2014-04-16 17:51:32 -07:00
Jonathan Eads a227e0672a made changes 2014-04-16 17:48:35 -07:00
Jonathan Eads 040164c77f made changes 2014-04-16 15:06:30 -07:00
mdoglio e50244cc47 fix lexical typos 2014-04-16 18:09:52 +01:00
mdoglio e10b1a6d70 mimic tbpl logic for bugs suggestions 2014-04-16 13:40:14 +01:00
Jonathan Eads ff5486ee9c added data cycling 2014-04-14 13:33:52 -07:00
mdoglio 78d46f1505 add bug_job_map endpoints and model methods 2014-02-05 17:47:28 +00:00
Cameron Dawson f8f4aa3e32 fix tests 2014-01-31 11:36:33 -08:00
Cameron Dawson c6ec4cf7c5 fix for unexpected job state 2014-01-30 13:33:34 -08:00
Cameron Dawson 00df9bf6fc test fixes 2014-01-30 13:24:02 -08:00
jeads b6324455d0 Merge pull request #72 from mozilla/job-names
Job names
2013-11-22 11:28:20 -08:00
Jonathan Eads f384baa97c added handling for job/group names and symbols being None 2013-11-21 15:57:26 -08:00
Jonathan Eads add9af7626 added job_type test data 2013-11-21 15:05:09 -08:00
mdoglio 9227f1c7ed fix test sql path 2013-11-21 15:16:35 +00:00
mdoglio 5eea00d5b8 add bugscache ingestion and bugs suggestions artifacts 2013-11-21 14:31:57 +00:00
mdoglio c48ba29d06 merging updates 2013-11-21 14:29:19 +00:00
Jonathan Eads 6b1b70b335 Added unique key for name/symbol combination, updated all related model methods 2013-11-20 14:12:48 -08:00
Jonathan Eads afb7150493 added dynamic ingestion functionality for job and group symbols 2013-11-18 13:08:39 -08:00
mdoglio ab9a2e7268 optimized revisions lookups 2013-11-07 21:00:15 +00:00
mdoglio b1c5603313 other tests passing 2013-11-06 17:14:06 +00:00
mdoglio afdcdd884c a few more tests passing 2013-11-06 15:23:29 +00: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
Jonathan Eads a10b7d4810 updated buildbot regexes and repository list 2013-10-10 17:43:41 -07:00
mdoglio 8fc8199675 make the tests pass and conditional job state update 2013-09-16 15:58:03 +02:00
mdoglio 7053d617e9 make test_ingest_sample_data pass 2013-09-04 16:25:04 +01:00
mdoglio dd38c4d747 add/fix a bunch of tests for the pushlog-related changes 2013-09-04 15:52:20 +01:00
mdoglio 7971aac690 fix the job_type parsing strategy 2013-08-09 13:21:45 -07:00
Cameron Dawson 5555a69819 made the slow job stest an xfail 2013-08-01 12:53:23 -07:00
Cameron Dawson f6c9ade874 moved push_timestamp to result_set 2013-08-01 11:22:42 -07:00
mdoglio bf691b26d1 add init_datasources command 2013-07-16 15:20:50 +01:00
mdoglio 63fc3fe480 add mock_log_parser fixture for testing 2013-07-01 14:42:13 +02:00
mdoglio d517cefda8 Merge branch 'master' into log-parser-infrastructure 2013-06-25 12:51:06 +01:00
mdoglio 99f559c94d add mock parse_log task for testing 2013-06-25 12:39:49 +01:00
Mauro Doglio 9e9684c808 Merge pull request #34 from mozilla/jobsmodel-api
Jobsmodel api
2013-06-21 12:50:55 -07:00
mdoglio a7ad31a40b fix failing test in test_objectstore_model 2013-06-19 14:56:33 +02:00
Cameron Dawson f12a8d723e added jobs methods. partially done. tests not working yet. 2013-06-14 16:23:13 -07:00
Cameron Dawson c6d0347232 refactor shared code into test_utils file 2013-06-07 13:51:52 -04:00
Mauro Doglio 96ccadea28 Merge pull request #25 from mozilla/allow-objectstore-update
refactor objectstore to allow updates
2013-06-05 03:45:17 -07:00
mdoglio de7efd8c93 remove needing job_id to mark processed objects 2013-06-05 11:40:43 +01:00
Cameron Dawson 619f75b5ef changes to some test data and tests 2013-06-04 15:51:52 -07:00
mdoglio fc5e9f5d9e refactor objectstore to allow updates 2013-06-04 12:16:52 +01:00
Mauro Doglio e8709a01e0 Merge pull request #19 from mozilla/update-repository-version
Update repository version
2013-06-04 02:41:16 -07:00
mdoglio 78a0d9fbfe add initial_data fixture to a bunch of jobs-related tests 2013-05-08 20:30:02 +01:00
mdoglio 1d58a1339a merged master into update-repository-version 2013-05-07 16:24:33 +01:00
Cameron Dawson c0821db41f code cleanup and move sql from base to proc file 2013-05-03 12:05:21 -07:00
Cameron Dawson 4e4b97ef53 test code cleanup 2013-05-03 10:39:29 -07:00
Cameron Dawson ffb7e1b4cf Merge branch 'master' into job-test-data-verifier 2013-05-03 10:04:12 -07:00
mdoglio df1da439ba add test for update_repo_version command with filters 2013-05-02 11:59:56 +01:00
mdoglio b4ab064214 add tests for repository version methods on refdata 2013-05-01 22:29:27 +01:00
mdoglio af8ffb7676 add repository version methods to refdata 2013-05-01 22:27:22 +01:00
mdoglio efb9b8fd3d rename refdata.py to test_refdata.py so it can be collected by py.test 2013-05-01 10:35:28 +01:00
Cameron Dawson 23854070d4 fixed artifact log test 2013-04-30 15:59:19 -07:00
Cameron Dawson e8ba720a2f added test for bad value in blob 2013-04-30 14:18:22 -07:00
Cameron Dawson ce466a578d adding artifact test code and job model creation test code 2013-04-30 14:07:13 -07:00
mdoglio 5af6db0057 move default db values from sql methods to db schema 2013-04-29 14:03:18 +01:00
mdoglio bd4ea25d2a update branch with latest changes from master 2013-04-29 12:59:44 +01:00
mdoglio ffd3b19720 change option_collection_id to option_collection_hash 2013-04-29 12:56:08 +01:00
Cameron Dawson d3ce58f363 tests all passing with new data. 2013-04-26 17:43:15 -07:00
Cameron Dawson af74656926 fixes for jobs to job in blobs... heh... 2013-04-26 15:19:13 -07:00
Cameron Dawson be0fab3a38 fixes to handle single job is blobs 2013-04-26 15:14:29 -07:00
Cameron Dawson 356c2fab9a merge from jobs-derived-models 2013-04-26 14:48:03 -07:00
Cameron Dawson 25aee931be added revision_hash field to objectstore. 2013-04-26 14:10:10 -07:00
Cameron Dawson 5843d2beac checking of 'sources' in blob complete 2013-04-26 12:41:23 -07:00
Cameron Dawson 081d34dd84 fixed sample_data_generator to generate single job, rather than list of them per blob 2013-04-26 11:49:29 -07:00
Cameron Dawson 08b4c24833 made the long test only run if '--runslow' option is used 2013-04-26 11:18:18 -07:00
Cameron Dawson 8a097b4d22 new test proc to get source for job 2013-04-26 10:49:59 -07:00
Cameron Dawson 64132ee814 throttled unit tests to 250 sample items 2013-04-26 10:20:51 -07:00
Cameron Dawson 9530296084 throttled the job data to 250, adding source checker 2013-04-26 10:17:28 -07:00
Cameron Dawson c48edd19ef removed commented out test 2013-04-25 18:12:26 -07:00
Cameron Dawson ed7bddadb5 fixed test_claim_objects test to use sample data 2013-04-25 18:11:02 -07:00
Cameron Dawson 6e417c7831 removed bad function, merge from latest master 2013-04-25 17:41:24 -07:00
Cameron Dawson 8583deea38 now populating revisions, but not yet verifying that data. 2013-04-25 17:27:59 -07:00
vagrant 5810943ef5 schema changes to make . 125 chars instead of 25. also added field to revision table. 2013-04-25 22:16:06 +00:00