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

5181 Коммитов

Автор SHA1 Сообщение Дата
bors[bot] 037f4ca9df
Merge #2206
2206: Fix filter names and make them more consistent. r=uhlissuh a=mythmon

There are two problems that I found while working on a new filter object.

1. Some of the filters shared a type, which made them impossible to use. This was the main thing I wanted to fix.
2. Some of the types users `camelCase` naming, and others used `snake_case` naming. All of the "original" filter objects were camel case, so I standardized them all that way, and added a test.

Co-authored-by: Mike Cooper <mythmon@gmail.com>
2020-04-14 21:20:43 +00:00
Mike Cooper 550209aa93
Enforce camel case names, for consistency with older filters 2020-04-14 14:16:25 -07:00
Mike Cooper 790ee18cb8
Fix duplicated filter object type 2020-04-13 16:18:02 -07:00
Chris Hartjes 8449e45a69 Changes as recommended by mythmon 2020-04-13 11:44:20 -04:00
bors[bot] e2563e5fc6
Merge #2166
2166: Mark all packages with semver ranges, and update r=rehandalal a=mythmon

Since Poetry lets us specify compatible packages separate from the lock file, this means we can now specify that we are compatible with a range of packages, and then let semver updates happen through `poetry update` and (soon) dependabot. We get this without having to give up the determinstic builds we had before, since Poetry's lock file includes exact versions and files hashes.

Note that DRF does not follow strict semver, and introduced a breaking change between 3.10 and 3.11. This is fine, we can specify that we want version 3.10.x and not have to worry about the breaking changes until we are ready for them.

If CI passes, this is probably good to go.

Co-authored-by: Mike Cooper <mythmon@gmail.com>
2020-04-06 19:09:46 +00:00
Mike Cooper 9b6a7f4953
Apply new Black formatting 2020-04-06 10:40:21 -07:00
Mike Cooper 7171903703
Mark all packages with semver ranges, and update
Except DRF which does not follow semver. It gets a x.y.* range
2020-04-06 10:40:07 -07:00
bors[bot] 878d71d2cd
Merge #2169
2169: Update python:3.7-slim Docker digest to 994806e r=mythmon a=renovate[bot]

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| python | final | digest | `370b132` -> `994806e` |


Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-04-06 17:33:53 +00:00
bors[bot] b8a2712853
Merge #2170
2170: Update dependency Django to v2.2.12 r=mythmon a=renovate[bot]

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [Django](https://www.djangoproject.com/) ([source](https://togithub.com/django/django), [changelog](https://togithub.com/django/django/tree/master/docs/releases)) | dependencies | patch | `2.2.10` -> `2.2.12` |


Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-04-06 17:30:30 +00:00
Renovate Bot b7f3daf17e
Update dependency Django to v2.2.12 2020-04-06 00:15:43 +00:00
Renovate Bot bb30b9b4ae
Update python:3.7-slim Docker digest to 994806e 2020-04-06 00:14:55 +00:00
Chris Hartjes 98c20aa2a8 Removed unused variable as per flake8 2020-04-02 16:06:19 -04:00
Chris Hartjes fc35b8611c Merge branch 'ch-contract-tests-in-container' of github.com:mozilla/normandy into ch-contract-tests-in-container 2020-04-02 16:02:12 -04:00
Chris Hartjes d41a0d54e7 API contract tests can now be run using two containers for use in CI. Updated CircleCI configuration with job that does this 2020-04-02 16:01:07 -04:00
Chris Hartjes 956f65af23 API contract tests can now be run using two containers for use in CI. Updated CircleCI configuration with job that does this 2020-04-02 15:56:44 -04:00
bors[bot] 4dd43b0e13
Merge #2160
2160: Switch to Poetry r=tiftran a=mythmon

Fixes #2159 

Co-authored-by: Mike Cooper <mythmon@gmail.com>
2020-04-01 19:12:19 +00:00
Mike Cooper 12df5ae672
Remove old requirements 2020-04-01 11:32:41 -07:00
Mike Cooper e5f01c24bb
Update docs and automation to use Poetry 2020-04-01 11:32:14 -07:00
Mike Cooper 01ac12f8c6
Remove leftover RTD configuration 2020-04-01 11:32:14 -07:00
Mike Cooper 64c785b13e
Add Poetry 2020-04-01 11:32:12 -07:00
bors[bot] 90456be21b
Merge #2164
2164: Add caching and a timeout to x5u fetching for signature verification r=sciurus a=mythmon

CC @sciurus 

Fixes #2161

Co-authored-by: Mike Cooper <mythmon@gmail.com>
Co-authored-by: Michael Cooper <mythmon@gmail.com>
2020-04-01 17:19:17 +00:00
Michael Cooper a9a47a0a0f
Fix switched cache TTLs
Co-Authored-By: Brian Pitts <brian@polibyte.com>
2020-04-01 10:05:09 -07:00
Mike Cooper 9bdd06a5b6
Cache network errors when validating signatures 2020-04-01 09:49:20 -07:00
bors[bot] 1f8f262e27
Merge #2132
2132: v3 API contract tests requiring authentication r=jaredlockhart a=chartjes

This PR contains v3 API contract tests that required authentication.

* documentation now updated to require Docker as a dependency to run the tests as this is how it would be done in CI
* tests create a superuser inside the `normandy_app` container for use by the v3 API tests
* v1 and v3 API tests now in their own directories
* updated requirements/constraints.txt and requirements/dev.txt for new dependencies

Given how authentication works in the application, I am unsure of a solution that allows these tests to be against non-Dockerized versions of Normandy.


Co-authored-by: Chris Hartjes <chartjes@grumpy-learning.com>
2020-03-31 21:30:48 +00:00
Mike Cooper e1c71b4bfe
Add caching and a timeout to x5u fetching for signature verification
Fixes #2161
2020-03-31 12:46:58 -07:00
bors[bot] 7b912b64c5
Merge #2136
2136: Add addon filter objects r=uhlissuh a=uhlissuh

fixes #2104 

So, splitting these into two filter objects came from Rehan, which I thought was a good idea. He mentioned seeing about having them share some code, because there is duplication here, and I kinda looked at that for a while and arrived at wondering if we will really gain much here trying to have these two share code? There's only two that are shaped like this right now. There isn't a clear thing I could pull out, maybe someone sees something. Perhaps that's an argument for making them one filter? 

Co-authored-by: Alissa Sobo <alissasobo@gmail.com>
2020-03-30 19:18:08 +00:00
Alissa Sobo 40db750f06 Update test names and add to by_type 2020-03-30 12:17:01 -07:00
Alissa Sobo 685a179fef Add BaseAddonFilter 2020-03-30 12:08:40 -07:00
Alissa Sobo 3f3cf68717 refactor with 'symbol' 2020-03-30 12:08:40 -07:00
Alissa Sobo 8196357227 Add addon filter objects 2020-03-30 12:08:40 -07:00
bors[bot] fc6d717aaf
Merge #2156
2156: Update dependency webpack to v4.42.1 r=mythmon a=renovate[bot]

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [webpack](https://togithub.com/webpack/webpack) | devDependencies | patch | [`4.42.0` -> `4.42.1`](https://renovatebot.com/diffs/npm/webpack/4.42.0/4.42.1) |


Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-03-30 18:37:29 +00:00
Renovate Bot 447fbe1d97
Update dependency webpack to v4.42.1 2020-03-30 00:14:16 +00:00
bors[bot] 9be74e27cf
Merge #2155
2155: Add docstring for build number filter object r=mythmon a=uhlissuh

Not sure how this happened, but there wasn't a docstring for this. It was in the `filters.rst` file though. I probably was looking at that file one day and noticed it wasn't listed, but neglected to realize that the doc string actually wasn't made for the filter. 

Co-authored-by: Alissa Sobo <alissasobo@gmail.com>
2020-03-26 20:25:38 +00:00
bors[bot] b9ed9d809f
Merge #2143
2143: Add negate filter object r=mythmon a=uhlissuh

fixes #2105 

Co-authored-by: Alissa Sobo <alissasobo@gmail.com>
2020-03-26 20:23:04 +00:00
Alissa Sobo 452c63c0bb Add docstring for build number filter object 2020-03-26 12:19:46 -07:00
Chris Hartjes 6addf11b93 Removed generating a fake user and fake username for the authentication header some tests need 2020-03-26 14:53:11 -04:00
Alissa Sobo c266a84674 Update docstring 2020-03-26 11:28:15 -07:00
Chris Hartjes 66cf863453 Merge remote-tracking branch 'origin' into ch-v3-api-tests-needing-auth 2020-03-26 14:18:49 -04:00
bors[bot] 2ed1751ced
Merge #2154
2154: Move SSL to container volume fixes #2150 r=tiftran a=jaredlockhart

Small change to the compose file so the SSL files stay in a volume, I don't think it should affect non docker workflows in any way.  And I updated the `make kill` command to a more ergonomic pattern I figured out in experimenter.  Both of these things should make it easier for the new API contract tests to run in circle.

Co-authored-by: Jared Lockhart <119884+jaredlockhart@users.noreply.github.com>
2020-03-26 17:50:18 +00:00
Chris Hartjes f844d65070 Add back in missing steps for preparing the DB and starting up the server 2020-03-26 10:34:01 -04:00
Chris Hartjes cddd8c238d Removed step that creates a container just for a test 2020-03-26 10:17:06 -04:00
Chris Hartjes 9670ab4453 Merge branch 'ch-v3-api-tests-needing-auth' of github.com:mozilla/normandy into ch-v3-api-tests-needing-auth 2020-03-26 10:11:47 -04:00
Chris Hartjes 00df637bc5 Added in new v3 API tests (to be hooked up in CI later).
Updated CircleCI job to run v1 API tests in their new location
2020-03-26 10:09:39 -04:00
Alissa Sobo 1c8bcfe8d0 Add negate filter object 2020-03-25 22:04:22 -07:00
Jared Lockhart 84fea95183 Move SSL to container volume fixes #2150 2020-03-25 19:21:22 -04:00
bors[bot] 1bc781b326
Merge #2153
2153: Simplify JS Infrastructure r=jaredlockhart a=mythmon

This PR removes a lot of JS tooling that we don't need anymore.

Before, we had 2705 NPM packages, totaling 211 MB. After, we have 1274 NPM packages, totaling 39 MB. Considering our Docker image is 1.09 GB, 172 MB is a nice amount to save.

Fixes #2149.

Co-authored-by: Mike Cooper <mythmon@gmail.com>
2020-03-25 23:02:49 +00:00
Mike Cooper 024f8eb099
Clean up resolutions 2020-03-25 15:31:51 -07:00
Mike Cooper c16de51420
Remove Babel 2020-03-25 15:31:47 -07:00
Mike Cooper 6e5a6fe37e
Remove ESLint 2020-03-25 15:31:14 -07:00
Mike Cooper 2149f48b49
Remove JS tests 2020-03-25 15:31:11 -07:00