Commit Graph

337 Commits

Author SHA1 Message Date
Chris Hill-Scott
2d3c1b2ead Freeze requirements 2018-10-29 16:40:29 +00:00
Chris Hill-Scott
14b8ca19db Freeze requirements 2018-10-29 16:06:46 +00:00
Katie Smith
4927da62fb Update notifications-utils to 30.5.6
This brings in the change to email validation which removes obscure white space from email addresses.
2018-10-29 10:21:04 +00:00
Tom Byers
e9afad80ed Bump utils to 3.5.5 2018-10-18 16:59:48 +01:00
Chris Hill-Scott
e36b946064 Bump utils to 30.5.3 2018-10-05 15:27:57 +01:00
Chris Hill-Scott
52cc41b8a8 Bump utils to 30.5.2 2018-10-05 13:32:11 +01:00
Leo Hemsted
efab189ae8 update jobs to take into account first class 2018-10-01 11:07:33 +01:00
Tom Byers
943a400c72 Bump utils to 30.3.1
Brings in stripping of the line separator
character from emails.

https://github.com/alphagov/notifications-utils/pull/531
2018-09-25 16:30:29 +01:00
Chris Hill-Scott
9e91e55d88 Freeze requirements 2018-09-25 12:21:13 +01:00
Chris Hill-Scott
073aaa0db7 Freeze requirements 2018-09-24 14:54:35 +01:00
Chris Hill-Scott
80d33b9855 Freeze requirements 2018-09-24 13:31:56 +01:00
Alexey Bezhan
86c2ec2af8 Stop gunicorn from terminating eventlet workers on timeout
According to gunicorn `timeout` docs, async workers shouldn't be
terminated after the request time exceeds the specified timeout
as long as the worker process is still communicating.

This makes sense for async workers since they generally don't
block other requests from processing.

This is the behaviour we've seen on notifications-api - requests
can sometimes take much longer than the default 30 second timeout
and still succeed.

For the admin app however gunicorn has been shutting down workers
after 30s with `[CRITICAL] WORKER TIMEOUT`. This results in a 502
response from the admin app. Most of these requests fail because
the underlying requests to the api is taking longer than 30 seconds,
however we haven't seen this in the logs originally since unlike
the admin app, api requests succeed (even though their response is
no longer needed).

This seems like a bug in newer versions of gunicorn, downgrading
it to the version that the api is currently using solves the problem
by allowing admin requests to take longer than 30 seconds.

(Tested by trying requests with a `time.sleep(30)` locally).

It's not clear what exactly the bug in gunicorn is, but this also
potentially unblocks eventlet workers and allows them to process
more than one request at a time.
2018-09-18 11:59:48 +01:00
pyup-bot
ad16448d5a Update notifications-python-client from 5.0.1 to 5.1.0 2018-09-12 10:25:44 +01:00
Athanasios Voutsadakis
8d32600716 Bump python client version to 5.0.1 2018-09-04 14:14:08 +01:00
Chris Hill-Scott
17f5098cb1 Update pyexcel to 0.5.9.1
0.5.9 seems to have disappeared and is causing tests to fail on Jenkins.

https://github.com/pyexcel/pyexcel/compare/v0.5.9...v0.5.9.1
2018-09-03 13:53:37 +01:00
Chris Hill-Scott
9d54a360fe Merge branch 'master' into pyup-update-pyexcel-io-0.5.9-to-0.5.9.1 2018-09-03 10:29:07 +01:00
Chris Hill-Scott
a5840e2173 Merge pull request #2278 from alphagov/pyup-update-pyexcel-xls-0.5.7-to-0.5.8
Update pyexcel-xls to 0.5.8
2018-09-03 10:23:07 +01:00
Chris Hill-Scott
c000fbc8ae Freeze requirements 2018-09-03 10:14:53 +01:00
Chris Hill-Scott
a13ea0f5f6 Freeze requirements 2018-09-03 10:13:51 +01:00
Chris Hill-Scott
4fc585201a Merge branch 'master' into pyup-update-pyexcel-0.5.8-to-0.5.9 2018-09-03 09:52:01 +01:00
Chris Hill-Scott
810de02307 Freeze requirements 2018-08-30 17:10:59 +01:00
Chris Hill-Scott
2686f4f0e2 Freeze requirements 2018-08-30 17:08:35 +01:00
Chris Hill-Scott
6c8345045f Merge pull request #2245 from alphagov/bump-utils-long-letters
Bump utils to show error message for long letters
2018-08-22 09:41:28 +01:00
Chris Hill-Scott
270a563fea Bump utils to show error message for long letters
Brings in:
- [ ] https://github.com/alphagov/notifications-utils/pull/518
2018-08-22 09:32:34 +01:00
Chris Hill-Scott
9e5ce87f58 Update eventlet from 0.22.1 to 0.24.1 2018-08-20 16:12:27 +01:00
Chris Hill-Scott
b8f41d5204 Merge pull request #2218 from alphagov/pyup-update-whitenoise-3.3.1-to-4.0
Update whitenoise to 4.0
2018-08-20 16:09:39 +01:00
Chris Hill-Scott
09aacbba0d Freeze requirements 2018-08-20 11:25:31 +01:00
Chris Hill-Scott
a62308b10f Freeze requirements 2018-08-20 10:29:30 +01:00
Katie Smith
cdd828da20 Bump utils to version 30.1.0
Bumped notifications-utils to bring in the new value for
`SMS_CHAR_COUNT_LIMIT`
2018-08-16 16:56:32 +01:00
Leo Hemsted
d2f5da317c bump utils
brings in changes to fix crash in GSM downgrading
2018-08-15 16:06:50 +01:00
Athanasios Voutsadakis
6786ff8fde Use the zipkin headers from utils version 30.0.0 2018-08-14 13:20:21 +01:00
Tom Byers
7669ffa8ef Bump notifications-utils to 29.3.6
Brings in:

https://github.com/alphagov/notifications-utils/pull/513

Only effects the email branding preview at
`/_email` so only used by platform admins.
2018-08-14 10:30:35 +01:00
Leo Hemsted
f279bbbd33 bump utils to fix slow notification rendering 2018-08-09 14:07:06 +01:00
Chris Hill-Scott
84b05ab29c make freeze-requirements 2018-08-03 16:13:41 +01:00
Chris Hill-Scott
0d2de75e84 Bump utils to 29.3.4
https://github.com/alphagov/notifications-utils/compare/29.3.2...bullet-for-bullet
2018-08-03 13:57:55 +01:00
Alexey Bezhan
5bae92c738 Make pyup ignore requirements.txt
We don't want pyup.io upgrading sub-dependencies listed in the
requirements.txt file since it does it whenever a new version is
available regardless of what our application dependencies require.
2018-07-30 16:43:44 +01:00
Alexey Bezhan
2f876243ae Pin all requirements in requirements.txt
The list of top-level dependencies is moved to requirements-app.txt,
which is used by `make freeze-requirements` to generate the full
list of requirements in requirements.txt.

(See alphagov/notifications-api#1938 for details.)
2018-07-30 16:43:03 +01:00
pyup-bot
65159ff23b Update notifications-python-client from 4.8.2 to 4.10.0 2018-07-24 15:43:37 +01:00
Chris Hill-Scott
534567a27b Fix mismatch version numbers
Forgot to update both…
2018-07-17 11:50:58 +01:00
Chris Hill-Scott
fbc7960ebe Bump utils to fix smart quotes in email addresses
Brings in:
- [ ] https://github.com/alphagov/notifications-utils/pull/500
2018-07-17 11:22:29 +01:00
Leo Hemsted
0566e89aee Pin wtforms==2.1
Tests fail with `wtforms==2.2.1`.  We're not sure of the reason but on
production this version is used and locally it's not, because we only
require flask-wtforms, which doesn't pin its requirements at all. We
should probably pin all requirements from jenkins onwards to prevent
this kind of thing happening again.
2018-07-05 17:44:23 +01:00
Chris Hill-Scott
34abfa0390 Bump utils to make letters screenreader-accessible
Brings in:
- [ ] https://github.com/alphagov/notifications-utils/pull/497
2018-07-02 13:54:56 +01:00
pyup-bot
fd3043b45a Update pytz from 2018.4 to 2018.5 2018-06-29 08:34:52 +01:00
Chris Hill-Scott
61e0e7e24e Merge pull request #2117 from alphagov/bump-utils-autolink-sms
Bump utils to link URLs in text message previews
2018-06-28 09:32:29 +01:00
Chris Hill-Scott
22bffe779d Bump utils to link URLs in text message previews 2018-06-28 09:18:17 +01:00
Chris Hill-Scott
81dc9a0092 Merge pull request #2063 from alphagov/pyup-update-flask-0.12.2-to-1.0.2
Update flask to 1.0.2
2018-06-18 13:51:14 +01:00
Chris Hill-Scott
4b37ca4021 Don’t duplicate columns in example spreadsheet
If a template has a placeholder like `((email address))` then the sample
spreadsheet and CSV file have the email column twice.

Trying to upload this spreadsheet will result in a ‘duplicate column’
error.

This commit fixes it so that the column will only appear once.
2018-06-08 13:28:02 +01:00
pyup-bot
386724a98b Update flask from 0.12.2 to 1.0.2 2018-05-30 14:01:18 +01:00
Katie Smith
58cc1604a7 Bump utils and sanitise header values
Updated notifications-utils. This brings in
- the renamed character sanitization classes
- the change to allow unicode in letter addresses (this lets us delete
a test that is no longer relevant)

Also replaced non-ascii characters in headers. This fixes a bug where
non-ascii characters in a CSV filename were causing errors since the
filename is also used in the header.
2018-05-25 10:34:47 +01:00
pyup-bot
a2d9cbfde8 Update pyexcel-xls from 0.5.6 to 0.5.7 2018-05-10 23:26:16 +01:00