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

7326 Коммитов

Автор SHA1 Сообщение Дата
Armen Zambrano G 5ddd7bfad7 Bug 1395162 - Document how to change jobs priorities and remove expiration date 2017-08-30 13:57:23 -04:00
Aki Sasaki 8c50b4fff2 Bug 1393277 - Action tasks: Use --option=arg rather than --option arg (#2740)
We currently use `--option=arg` in the decision task [1], but
`--option arg` in treeherder actions. These are essentially equivalent.
In scriptworkers' chain of trust verification, we verify the
action or decision task's command is allowlisted. To do so, we ignore
options [2]. By specifying them as `--option=arg`, we're able to skip
verifying args as well as options.

We have plans to make this better, but until then, let's use
`--option=arg`.

[1] https://hg.mozilla.org/mozilla-central/file/ab2d700fda2b/.taskcluster.yml#l111
[2] 8437d4cd38/scriptworker/cot/verify.py (L903)
2017-08-30 18:55:16 +01:00
Alisha Aneja 8d466eeb40 Bug 1389536 - Fix Django 1.11 deprecation warnings for url and authenticate (#2730) 2017-08-30 00:01:44 +01:00
Yashvardhan Didwania 58c6b0b9c1 Bug 1389538 - Fix rest_framework.filters deprecation warnings (#2721)
This fixes:
```
rest_framework/filters.py:74: DeprecationWarning: The built in 'rest_framework.filters.DjangoFilterBackend' is deprecated. You should use 'django_filters.rest_framework.DjangoFilterBackend' instead.

rest_framework/filters.py:50: DeprecationWarning: The built in 'rest_framework.filters.FilterSet' is deprecated. You should use 'django_filters.rest_framework.FilterSet' instead.
```
2017-08-29 23:55:02 +01:00
camd 5cb083ee13 Bug 1215587 - Follow-up to transition over to new job.job_group (#2607) 2017-08-28 11:25:38 -07:00
pyup.io bot 967ec52ad5 Update taskcluster from 1.3.4 to 1.3.5 (#2736) 2017-08-28 17:06:09 +01:00
KWierso 09295f2d7f Bug 1393567 - update userguide.html (#2732) r=camd 2017-08-25 16:19:19 -07:00
Brian Stack e918b4e1b1 Bug 1391321 - Use taskcluster actions.json for all actions (#2718)
Bug 1391321 - Use taskcluster actions.json for all actions
2017-08-25 11:48:38 -07:00
William Lachance b99fa9ff30 Bug 1393762 - Stop incrementing cache key prefix in unit tests (#2734)
Just clear the cache instead. Much simpler.
2017-08-25 10:31:02 -04:00
Ed Morley a5772e2014 Bug 1388513 - Travis: Switch back to latest Firefox release
Since after bug 1390517 the timeouts are gone.
2017-08-24 11:09:53 +01:00
camd e3ed847578 Bug 1215587 - Add job_group field to jobs table (#2601)
This is to allow any job type to be able to belong to any
job group.  This will also mean that if someone accidentally
picked the wrong group for a job type, we don't need to
fix it in the DB for all new jobs.  They can fix their task
definition, and all new jobs will go to the new job group.

This includes a management command to migrate the old
data from job_type.job_group to the new field of job.job_group.

A follow-up PR will remove the old field and set the API to
read from the job.job_group field.
2017-08-23 11:36:30 -07:00
Shruti Jasoria e8fb2cefb5 Bug 1391658 - Enable `curly`, `object-curly-spacing`, `quote-props` and `key-spacing`rules as per airbnb recommendations (#2724)
Bug 1391658 - Enable `curly`, `object-curly-spacing`, `quote-props`, `key-spacing` rules as per airbnb recommendation
2017-08-23 10:43:53 -04:00
William Lachance 420df42b92 Minor capitalization fixes for perfherder replicate views/links (#2729)
* Replicate link should be "replicates" (not "replicate")
* Title for graphs should not be lowercase except for first word
2017-08-23 10:31:18 -04:00
pyup.io bot fb0f387dc5 Update django-extensions from 1.8.1 to 1.9.0 (#2727) 2017-08-23 09:47:10 +01:00
Ed Morley 81c19cf213 Bug 1392546 - Travis: Store /var/lib/mysql on a ramdisk
This reduces Python test runtime by another 30% on top of the previous
changes. Inspired by:
https://github.com/travis-ci/travis-ci/issues/3049#issuecomment-215084577
2017-08-23 09:39:22 +01:00
Ed Morley 14e43640fe Bug 1392546 - Travis/Vagrant: Set innodb_flush_log_at_trx_commit=0
By default MySQL#s InnoDB flushes to disk after every transaction to
reduce the chance of data loss in the case of a crash. During testing
and development this is not necessary and only serves to limit I/O
throughput. By switching to mode `0` (flushing every second), test
runtimes are reduced by 20-30%.

See:
https://dev.mysql.com/doc/refman/5.7/en/innodb-parameters.html#sysvar_innodb_flush_log_at_trx_commit
2017-08-23 09:39:22 +01:00
Ed Morley 049f29d845 Bug 1392546 - Travis/Vagrant: Disable MySQL slow query log
Since it's mostly pointless locally, given that the DB is rarely
large enough to cause a slow query and that it's unlikely that devs
check the logs anyway.
2017-08-23 09:39:22 +01:00
Ed Morley 7c5b26dac1 Bug 1392546 - Travis/Vagrant: Remove bind-address from mysql.cnf
Since as of bug 1362443 connections can still be made to the DB from
outside Vagrant even if `bind-address` is not overridden.
2017-08-23 09:39:22 +01:00
pyup.io bot 2265890573 Update djangorestframework from 3.6.3 to 3.6.4 (#2726) 2017-08-22 15:29:42 +01:00
Alisha Aneja 5cdc2170cc Bug 1223883 - Fix pytest warnings for test collection (#2717)
pytest treats objects starting with the string "Test" as tests, so an
underscore prefix has been added to prevent warnings of form:

```
WC1 .../test_detect_intermittents.py cannot collect test class 'TestFailureDetector' because it has a __init__ constructor
```
2017-08-22 15:10:58 +01:00
pyup.io bot dd2d499ec9 Update django-environ from 0.4.3 to 0.4.4 (#2723) 2017-08-21 12:53:21 +01:00
Omar Akkila d5debf3000 Bug 1390155 - Make test_alert_sumary_post() use test_user and test_sheriff pytest fixtures (#2720) 2017-08-18 16:28:45 -04:00
Yashvardhan Didwania f6ba8d07eb Bug 1337987 - Remove login backend auth code that finds a user by email, rather than username (#2699)
* remove login backend code that finds user by email
* Modified tests. Added test_ldap_user to conftests.py
2017-08-18 13:22:56 -07:00
Ed Morley a26144306d Bug 1390598 - Upgrade to nodejs 8
This speeds up yarn build by 22% and yarn test by 14%, which helps
with Heroku deploy times.

Changelog:
https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V7.md#7.10.1
https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V8.md#8.4.0
2017-08-18 11:34:31 +01:00
Jonathan French a5f0fadf29 Bug 1384955 - Add 'Edit and Retrigger' to job action menu 2017-08-17 16:05:47 -07:00
Cameron Dawson 045a895d9a Bug 1387147 - Return a 400 for JobDetail bad params instead of 500
If an invalid param value, such as ``job_id__id=‘’`` is passed in, we
will return a 400 response instead of a 500.
2017-08-17 14:58:34 -07:00
KWierso 6ddc4b6c9e Bug 1390724 - Bug filer: Strip xpcshell-e10s.ini from bug summaries (#2715) 2017-08-17 00:43:03 +01:00
Ed Morley 65abca3fba Bug 1390517 - Travis: Rebalance Python test job chunks
The split of test directories between each Python chunk has been
adjusted to more evenly balance runtime. The `tests/e2e` directory
has been moved from chunk B to chunk A, and the `tests/webapp/embed`
+ `tests/webapp/graphql` directories from chunk C to chunk A.

Short of moving tests in the `tests/webapp/api` directory around,
this is the best we can do for now. Hopefully bug 1348947 can
improve the situation in the future.
2017-08-16 00:54:51 +01:00
Ed Morley ea4440d817 Bug 1390517 - Travis: Reduce duplication in .travis.yml
All but one of the jobs is using `sudo: required`, so it makes more
sense to set it globally, and override on just that one job.
2017-08-16 00:54:51 +01:00
Ed Morley 64099faa72 Bug 1390517 - Travis: Switch to the edge (latest) Trusty image
Travis occasionally update the stable release Trusty image, however
not as often as would be ideal. The newer images now have recent
yarn pre-installed, meaning the manual install steps can be removed.
In addition, the `$HOME/bin` directory now exists by default in the
image.
2017-08-16 00:54:51 +01:00
Ed Morley e66210f691 Bug 1390517 - Travis: Make the selenium job cache node_modules too
Previously the selenium job was spending 20 seconds in `yarn install`.
2017-08-16 00:54:51 +01:00
Ed Morley ca8f46c23e Bug 1390517 - Travis: Switch the JS job to the GCE infrastructure
Whilst the sudo-less EC2 container builds have a faster boot time than
the fully virtualised GCE jobs (1s vs 20-30s), they have less CPU/RAM
available due to resource contention, so are slower than GCE for
longer running jobs.

Switching roughly halves the runtime of this job.
2017-08-16 00:54:51 +01:00
Ed Morley cc490c85ee Bug 1390517 - Travis: Remove sleep after starting xvfb
Since the yarn build takes so long that xvfb already has plenty of
time to start before the tests are run.
2017-08-16 00:54:51 +01:00
Ed Morley f76ae07b97 Bug 1390517 - Travis: Remove redundant upgrade of pip
Since the pre-installed version of pip has now been updated to 9.0.1
already.
2017-08-16 00:54:51 +01:00
Dustin J. Mitchell d7fc806d83 Bug 1383085 - handle actions with no schema
When an action has no schema, this hides the JSON payload field and
doesn't try to JSON.parse it.

Note that this still fails for schema = {}, since json-schema-defaults
returns `undefined` for that value.
2017-08-15 16:35:20 -07:00
Joel Maher 38015b74d9 Bug 1383789 - Support xperf jobs and move tp6 in stylo mode (#2713) 2017-08-15 23:15:09 +01:00
Rebecca Billings 0f2167ae1e Jenkins: Tests fix test_keyword locator (#2714) 2017-08-15 23:07:46 +01:00
Joel Maher cbfabd0405 Bug 1383789 - Add support for Talos-Stylo svg (#2711) 2017-08-15 20:54:25 +01:00
Rebecca Billings 8fdde56591 Jenkins: Fix test failure list index out of range (#2709) 2017-08-15 19:37:55 +01:00
Joel Maher aec4ef67d7 Bug 1383789 - Add support for more desktop Stylo Talos tests (#2708) 2017-08-15 19:36:52 +01:00
Ed Morley 1fee79052b Bug 1390573 - Vagrant: Remove .pyc files during provision
To prevent confusing pytest `ImportMismatchError` exceptions if the
paths hardcoded in pyc files (which are git-ignored) leftover from
the past, don't match the paths used now.
2017-08-15 18:54:04 +01:00
Ed Morley 729183f41f Bug 1390573 - Vagrant: Move the cleanup step earlier in provision
To reduce the risk that one of the commands we run is broken by things
that need cleaning up (eg pyc files). An unnecessary `|| true` has also
been removed from the `rm -f` moved command.
2017-08-15 18:54:04 +01:00
pyup.io bot d0562015ec Update pytest-html from 1.15.1 to 1.15.2 (#2705) 2017-08-15 15:43:53 +01:00
pyup.io bot 5444152818 Update idna from 2.5 to 2.6 (#2689) 2017-08-15 15:32:20 +01:00
pyup.io bot 2eabd4d1a7 Update requests from 2.18.3 to 2.18.4 (#2706) 2017-08-15 15:05:55 +01:00
Shruti Jasoria 8d36b160ce Bug 1329224 - Shorten perfherder graph links (#2521) 2017-08-14 14:52:17 -04:00
Ed Morley 2e1f1a2407 Bug 1390169 - Add support for linux64-qr talos
It's having to be added as a platform rather than a new job/group
name, since otherwise comparisons can't be made in Perfherder with
the existing tests.
2017-08-14 17:30:44 +01:00
Alisha Aneja 86dea95c67 Bug 1368991 - Fix JobsViewSet.list-AttributeError: list object has no attribute values_list (#2700) 2017-08-14 14:06:47 +01:00
Alisha Aneja be4a7e3d91 Bug 1326247 - Fix BaseException.message deprecation warnings (#2703) 2017-08-14 12:05:12 +01:00
Ed Morley c1f9434d52 Bug 1389756 - README: Update/fix badges (#2702)
* Switches the requires.io to pyup.io
* Uses the new form david-dm badge URL to fix deep linking
* Uses HTTPS for the read the docs badge
2017-08-12 14:32:25 +02:00