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

8726 Коммитов

Автор SHA1 Сообщение Дата
George Hickman 27cb0bc4d7
Move Pulse Publishing to Pulse Service (#3919)
The PulsePublisher class was built for extensibility, providing lots of hooks
for customisation.  However we only had one subclass in use since its
introduction: TreeherderPublisher.  This reduces the concrete class into a
single function which publishes the given message.  In doing so all
configurability has been removed, since it was unused.
2018-08-24 14:09:14 +01:00
George Hickman d6a1efa4f7 Make construction of the Pulse connection lazy
Wrapping in Django's `lazy` makes the call to build_connection lazy but
means we need to call the function when we use it.
2018-08-24 13:29:42 +01:00
pyup.io bot 718a2cd527 Update pytest-selenium to 1.14.0 (#3947)
And remove the now redundant filterwarnings entry, since that warning
has now been fixed.
2018-08-24 12:53:18 +01:00
pyup.io bot 1925c119d9 Update certifi from 2018.8.13 to 2018.8.24 (#3946) 2018-08-24 12:31:45 +01:00
George Hickman 425350fb2b Bug 1281821 - Convert Pulse push configuration into a list
We don't currently change the push ingestion sources in any of our envs
(prod, staging, prototype, test, dev) from their defaults.  This
hardcodes those unchanging values and documents where to change them
should an engineer need to.
2018-08-24 10:46:06 +01:00
Sarat Addepalli af7e94cfdb Bug 1468160 - Convert _.max to use native ES6 JS (#3858)
Two instances have been left using lodash for now, since `Math.max()`
does not preserve `Date()` objects unlike lodash. These cases have
been converted to use the tree-shaking compatible import form.
2018-08-24 09:38:16 +01:00
George Hickman 078133f906
Remove the pulse destinations configuration (#3931)
They don't provide much benefit as per:
https://github.com/mozilla/treeherder/pull/3863#discussion_r207983587
2018-08-23 18:55:33 +01:00
Cameron Dawson 60052faa19 Bug 1473777 - Fix error message if job is missing 2018-08-23 09:55:44 -07:00
pyup.io bot 9ce061cf06 Update furl from 1.2 to 1.2.1 (#3943) 2018-08-22 22:01:14 +01:00
Cameron Dawson a1dc384a9b Bug 1482536 - Convert Repository Model to ReactJS 2018-08-21 10:53:45 -07:00
Cameron Dawson 815901366f Bug 1482536 - Stop using deprecated ``urlBasePath`` 2018-08-21 10:53:45 -07:00
Cameron Dawson 5ed0ab98fa Bug 1482536 - Convert favicon to ReactJS 2018-08-21 10:53:45 -07:00
pyup.io bot 593d5e0a6a Update pytest-django to 3.4.2 (#3942)
A remove now unused dependency on pathlib, since pytest-django
has switched to pathlib2, which is already listed elsewhere in the
requirements file.
2018-08-21 09:20:04 +01:00
renovate[bot] e5d629e3ed Update dependency reactstrap to v6.4.0 (#3936) 2018-08-20 08:31:45 -07:00
Renovate Bot 9fae043b07 Lock file maintenance 2018-08-20 09:17:40 +01:00
pyup.io bot bfd321993e Update pytest-django to 3.4.1 (#3933)
And add new dependency on pathlib.
2018-08-19 21:43:14 +01:00
pyup.io bot 1639c43dff Update pycryptodome from 3.6.5 to 3.6.6 (#3935) 2018-08-19 17:15:00 +01:00
Renovate Bot f7aee77bdc Update dependency ajv to v6.5.3 2018-08-19 16:37:53 +01:00
pyup.io bot b3de044a91 Update sphinx from 1.7.6 to 1.7.7 (#3940) 2018-08-19 16:17:47 +01:00
pyup.io bot 116ac4d34b Update pytest from 3.7.1 to 3.7.2 (#3938) 2018-08-19 16:16:24 +01:00
Renovate Bot 8699ecc5d1 Update dependency enzyme to v3.4.4 2018-08-19 15:59:46 +01:00
renovate[bot] 2b908cede1 Update dependency taskcluster-client-web to v8 (#3642) 2018-08-16 14:45:46 -07:00
Ed Morley a99730b644
Revert "Default for Pulse Connection (#3921)" (#3932)
This reverts commit 96db2547cc, to
try and fix Pulse ingestion on `master`.
2018-08-16 17:35:27 +01:00
Renovate Bot e5e0a9faae Update Node.js to v10.9.0 2018-08-16 12:44:34 +01:00
Renovate Bot 8dbaf86a29 Update dependency jasmine-core to v3.2.1 2018-08-16 08:05:02 +01:00
renovate[bot] 4f7c38e46b Update dependency eslint-plugin-react to v7.11.1 (#3928) 2018-08-15 23:18:44 +02:00
renovate[bot] f618500213 Update angular1 monorepo to v1.7.3 (#3899) 2018-08-15 13:42:04 -07:00
Ed Morley d943a14acd
Renovate: Ignore @types/* packages (#3925)
To reduce the Renovate PR noise from them, since they only contain
TypeScript definitions, which we don't use.

(We only list them in our dependencies to prevent the missing
`peerDependencies` warnings due to `react2angular` listing them in
its `package.json`. Once we no longer use `react2angular` we can
remove them entirely.)
2018-08-15 21:56:03 +02:00
Ed Morley 3da4738649
Revert "Remove the pulse destinations configuration" (#3927)
This reverts commit 1728dd306c (#3884), due to:

```
Pulse warning: queue "queue/treeherder-staging/jobs" is overgrowing

Warning: your queue "queue/treeherder-staging/jobs" on exchange "could not be determined" is
overgrowing (4083 ready messages, 4083 total messages).
...
```
2018-08-15 21:00:00 +02:00
George Hickman 96db2547cc
Default for Pulse Connection (#3921)
Make Pulse Connection Lazy
2018-08-15 19:06:38 +01:00
George Hickman 1728dd306c Remove the pulse destinations configuration
They don't provide much benefit as per:
https://github.com/mozilla/treeherder/pull/3863#discussion_r207983587
2018-08-15 19:04:59 +01:00
Ed Morley 2418a694a0
Bug 1483301 - Raise the New Relic Python agent's shutdown_timeout (#3922)
So that the agent has longer to upload the final submission when
Heroku restarts gunicorn (eg daily restarts or deploys).

See:
https://docs.newrelic.com/docs/agents/python-agent/configuration/python-agent-configuration#shutdown-timeout
2018-08-15 11:35:14 +02:00
Ed Morley 1fc7f31b37
Update eslint-plugin-import to v2.14.0 (#3918)
And remove the Renovate exclusion, since unlike some of the other
ESLint dependencies that aren't compatible with Neutrino 4/ESLint 3,
this plugin is still compatible.
2018-08-14 16:59:05 +02:00
Ed Morley 48d0cba0c7 Bug 1483051 - Only process/output hashed files during collectstatic
By default Django/WhiteNoise outputs not only the hashed version of
static files (eg `app.db8f2edc0c8a.js`) but also the original file
(eg `app.js`), for backwards compatibility in case users hardcode
the original filename in their app.

However Treeherder doesn't do this, so we can skip the original files,
halving the number of files output - and thus halving the time spent
Brotli/gzip compressing them during collectstatic.
2018-08-14 14:19:31 +02:00
Ed Morley 2eb1cf2d31 Bug 1483051 - Use WhiteNoise 4's new native index file support
Index files are now natively supported so our custom implementation
can be removed. See:
http://whitenoise.evans.io/en/stable/django.html#index-files-django
2018-08-14 14:19:31 +02:00
Ed Morley 67d09d55d8 Bug 1483051 - Update to whitenoise 4
* Renames `is_immutable_file` to match changes to the parent class.
* Suppresses the new "missing static files directory" warning when
  running the tests (since it's expected in !production).
* Uses the new `extras_require` `[brotli]` entry to make WhiteNoise's
  dependency more obvious.

Changelog:
http://whitenoise.evans.io/en/stable/changelog.html#v4-0

Closes #3903.
2018-08-14 14:19:31 +02:00
George Hickman a795883740 Flatten Pulse source definitions to inline constants 2018-08-14 13:06:51 +01:00
pyup.io bot 8ee5bf23a4 Update pypom to 2.1.0 (#3914)
And remove the now fixed `filterwarnings` entry.
2018-08-14 13:57:41 +02:00
George Hickman 9d29a26309 Replace uses of some_queryset.all()[0] with some_queryset.first() 2018-08-14 09:25:24 +01:00
Cameron Dawson 7b0a1c400d
Bug 1465987 - BugFiler post-merge cleanup (#3913) 2018-08-13 15:40:33 -07:00
Cameron Dawson 920052fdff
Fix dates on NotificationsMenu (#3905)
The dates were all off because the toShortDateStr function
expects timestamps in seconds, but we were passing
milliseconds.  Just need to divide by 1000.
2018-08-13 15:40:04 -07:00
Cameron Dawson 76656421fb
Bug 1479832 - Fix repo urls having inappropriate params (#3906) 2018-08-13 15:39:30 -07:00
Sarah Clements 22042de6ce
Bug 1482833 - fix commenter celery task (#3915)
Change intermittents-commenter task soft and hard time limits to 2 hours
and change the time.sleep to 0.5 in print_or_submit_changes. Switch the
weekly task to submit comments Monday instead of Sunday (to avoid
issues arising from the PI bug closing task running Sunday nights).
2018-08-13 13:32:16 -07:00
pyup.io bot 512462ceb1 Update certifi from 2018.4.16 to 2018.8.13 (#3912) 2018-08-13 13:13:15 +02:00
Renovate Bot 7a977ed1b2 Lock file maintenance 2018-08-13 12:48:36 +02:00
pyup.io bot 062c6bb217 Update pycryptodome from 3.6.4 to 3.6.5 (#3910) 2018-08-13 12:47:42 +02:00
pyup.io bot abda398e80 Update elasticsearch from 6.3.0 to 6.3.1 (#3898) 2018-08-12 04:29:03 +02:00
pyup.io bot 1a77998f2b Update scandir from 1.8 to 1.9.0 (#3904) 2018-08-12 04:28:13 +02:00
pyup.io bot ac81dba055 Update selenium to 3.14.0 (#3872)
And add a `filterwarnings` entry for new selenium `DeprecationWarning`.
2018-08-12 04:25:58 +02:00
Renovate Bot d554a463c3 Update dependency enzyme-adapter-react-16 to v1.2.0 2018-08-12 03:46:07 +02:00