Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Draft] Python 3.6 Upgrade / AMO Rebase #305

Draft
wants to merge 1,705 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1705 commits
Select commit Hold shift + click to select a range
db55ddf
Upgrade pytest to 4.2.0 now that pytest-django supports it
diox Feb 4, 2019
b151d86
Pontoon: Update French (fr) localization of AMO
Feb 4, 2019
24aa7a3
Extract version source asynchronously. (#10578)
EnTeQuAk Feb 4, 2019
1a21346
Pontoon: Update French (fr) localization of AMO
TheoChevalier Feb 4, 2019
00ee050
Pontoon: Update French (fr) localization of AMO
mozilla-pontoon Feb 4, 2019
9019c11
Pontoon: Update French (fr) localization of AMO
Feb 5, 2019
30f9b0a
Update boto3 from 1.9.86 to 1.9.87
pyup-bot Feb 5, 2019
1b947f0
Update sphinx from 1.8.3 to 1.8.4
pyup-bot Feb 5, 2019
5f830cc
Python 3 fixes for 'files' (#10589)
diox Feb 5, 2019
c20a6e6
Run git-extraction via primary db.
EnTeQuAk Feb 5, 2019
1368c93
Put 'main' test job back in python3 working section
diox Feb 5, 2019
ee76095
Fix missing languages in stats from product_details. (#10595)
EnTeQuAk Feb 5, 2019
ef16adc
Pontoon: Update Slovak (sk) localization of AMO
mozilla-pontoon Feb 5, 2019
1a4a6bb
Fix devhub tests for python3 (#10579)
eviljeff Feb 5, 2019
8671c4a
Pontoon: Update Portuguese (Portugal) (pt-PT) localization of AMO
rodrigommc Feb 6, 2019
18b8def
Fix RemovedInDjango21Warning: Add the renderer argument to the render…
diox Feb 5, 2019
7b22fd6
Fix flaky SearchTest.test_compat_override test (#10601)
diox Feb 6, 2019
51cf938
Remaining Python 3 fixes for lib/amo (except lib/git.py) (#10598)
diox Feb 6, 2019
264c7bd
Pontoon: Update Chinese (Taiwan) (zh-TW) localization of AMO
petercpg Feb 6, 2019
d5cf5c0
Fix lib/git related tests for python 3 compatibility. (#10610)
EnTeQuAk Feb 7, 2019
318011e
Update s3transfer from 0.1.13 to 0.2.0
pyup-bot Feb 7, 2019
cacf91b
Update python-dateutil from 2.7.5 to 2.8.0
pyup-bot Feb 7, 2019
78b3f4f
Update botocore from 1.12.86 to 1.12.89
pyup-bot Feb 7, 2019
30a6ee6
Update boto3 from 1.9.87 to 1.9.89
pyup-bot Feb 7, 2019
0f0f281
Update setuptools from 40.7.3 to 40.8.0
pyup-bot Feb 7, 2019
6774f2f
Update setuptools from 40.7.3 to 40.8.0
pyup-bot Feb 7, 2019
6db4ecf
Update billiard from 3.5.0.5 to 3.6.0.0
pyup-bot Feb 4, 2019
62f3661
Pin billiard to <3.6
EnTeQuAk Feb 6, 2019
6e1e2d0
most of the last few py3 test fails (#10613)
eviljeff Feb 7, 2019
1fe8908
update rdflib to 4.2.2 (#10609)
eviljeff Feb 7, 2019
8daab7a
Update flake8 to 3.7.5 (and add py3/py2 compat) (#10592)
pyup-bot Feb 7, 2019
b65eae6
Remove dump_apps cron job
Feb 7, 2019
b1f3352
Pontoon: Update Portuguese (Brazil) (pt-BR) localization of AMO
MarceloGhelman Feb 7, 2019
352e9e5
Pontoon: Update Portuguese (Brazil) (pt-BR) localization of AMO
MarceloGhelman Feb 7, 2019
ddf4710
Pontoon: Update Portuguese (Brazil) (pt-BR) localization of AMO
MarceloGhelman Feb 7, 2019
0cd918f
Pontoon: Update Portuguese (Brazil) (pt-BR) localization of AMO
MarceloGhelman Feb 7, 2019
f76fd4e
Pontoon: Update Portuguese (Brazil) (pt-BR) localization of AMO
MarceloGhelman Feb 7, 2019
5d8bc61
Pontoon: Update Japanese (ja) localization of AMO
dskmori Feb 8, 2019
18c46b5
Update botocore from 1.12.89 to 1.12.90
pyup-bot Feb 8, 2019
fe5939e
Update boto3 from 1.9.89 to 1.9.90
pyup-bot Feb 8, 2019
feee1f1
Update kombu from 4.2.2.post1 to 4.3.0
pyup-bot Feb 7, 2019
2c97439
Avoid clashes on .git folders during git-extraction. (#10632)
EnTeQuAk Feb 8, 2019
193f9a8
Fixes #10511: Added ugettext() around exceptions raised by API search…
Feb 8, 2019
d9fc406
Pontoon: Update Portuguese (Brazil) (pt-BR) localization of AMO
MarceloGhelman Feb 8, 2019
a17cb20
Pontoon: Update Portuguese (Brazil) (pt-BR) localization of AMO
MarceloGhelman Feb 8, 2019
b7395f1
Expose add-on and selected file data.
EnTeQuAk Feb 8, 2019
7d24765
Small cleanups
EnTeQuAk Feb 8, 2019
4a66e30
Pontoon: Update Portuguese (Brazil) (pt-BR) localization of AMO
MarceloGhelman Feb 8, 2019
7cfcddb
Skip 2 tests currently broken with Python 3
diox Feb 8, 2019
e4585ec
Simplify travis config now that all Python 3 jobs are mandatory
diox Feb 8, 2019
cae656a
Remove tox-travis and stop ignoring outcome of tox
diox Feb 8, 2019
2a28b43
Pontoon: Update Vietnamese (vi) localization of AMO
ZoeMeow1027 Feb 8, 2019
21ea88a
Pontoon: Update Portuguese (Brazil) (pt-BR) localization of AMO
Feb 8, 2019
783d831
Pontoon: Update Portuguese (Brazil) (pt-BR) localization of AMO
MarceloGhelman Feb 8, 2019
abc36b0
Update premailer from 3.2.0 to 3.3.0
pyup-bot Feb 8, 2019
bdec760
Add missing dependency for premailer
wagnerand Feb 8, 2019
96d73ed
Add newline
wagnerand Feb 9, 2019
c6b6f3e
Pontoon: Update Portuguese (Brazil) (pt-BR) localization of AMO
MarceloGhelman Feb 10, 2019
d2c386d
Pontoon: Update Portuguese (Brazil) (pt-BR) localization of AMO
MarceloGhelman Feb 10, 2019
703f683
Pontoon: Update Portuguese (Brazil) (pt-BR) localization of AMO
Feb 10, 2019
5c04afa
Pontoon: Update Romanian (ro) localization of AMO
sn-o-w Feb 10, 2019
2cbc9a0
Pontoon: Update Chinese (Taiwan) (zh-TW) localization of AMO
petercpg Feb 10, 2019
d533a6e
Pontoon: Update Slovenian (sl) localization of AMO
upwinxp Feb 10, 2019
e0cb27e
Pontoon: Update Portuguese (Brazil) (pt-BR) localization of AMO
MarceloGhelman Feb 10, 2019
4df61ab
Pontoon: Update Portuguese (Brazil) (pt-BR) localization of AMO
MarceloGhelman Feb 10, 2019
4bd7c16
Pontoon: Update Catalan (ca) localization of AMO
jordis Feb 10, 2019
7de8e4e
Pontoon: Update Spanish (es) localization of AMO
mathjazz Feb 10, 2019
1d4e965
Pontoon: Update Spanish (es) localization of AMO
avelper Feb 10, 2019
2e60461
Pontoon: Update Spanish (es) localization of AMO
avelper Feb 10, 2019
700a861
Pontoon: Update Spanish (es) localization of AMO
avelper Feb 10, 2019
6339631
Pontoon: Update Spanish (es) localization of AMO
avelper Feb 10, 2019
676ceb7
Pontoon: Update Kabyle (kab) localization of AMO
YazidIflis Feb 10, 2019
8f907fb
Update boto3 from 1.9.90 to 1.9.91 (#10646)
pyup-bot Feb 11, 2019
e5b866f
Update botocore from 1.12.90 to 1.12.91 (#10647)
pyup-bot Feb 11, 2019
2cdf1cf
Pontoon: Update French (fr) localization of AMO
Feb 11, 2019
33cbd6a
Update lxml from 4.3.0 to 4.3.1
pyup-bot Feb 9, 2019
feee637
Update pip from 19.0.1 to 19.0.2
pyup-bot Feb 9, 2019
e2d75e3
Update pip from 19.0.1 to 19.0.2
pyup-bot Feb 9, 2019
4934806
Update virtualenv from 16.3.0 to 16.4.0 (#10650)
pyup-bot Feb 11, 2019
cd97ab5
Fix broken es locale
diox Feb 11, 2019
13a5b07
Extracted l10n messages from 2019-02-11 at d1a1371768
addons-robot Feb 11, 2019
cc2e0f1
Pontoon: Update Hebrew (he) localization of AMO
ItielMaN Feb 11, 2019
42d0035
Pontoon: Update Sorbian, Upper (hsb) localization of AMO
milupo Feb 11, 2019
6c02aa6
Update foxpuppet from 1.0.2 to 1.0.3
pyup-bot Feb 11, 2019
e067686
Start mocking elasticsearch earlier, before loading django fixtures
diox Feb 11, 2019
3d1221b
Pontoon: Update Hebrew (he) localization of AMO
ItielMaN Feb 11, 2019
202cf86
Pontoon: Update Sorbian, Lower (dsb) localization of AMO
milupo Feb 11, 2019
3befe4e
Pontoon: Update Portuguese (Portugal) (pt-PT) localization of AMO
rodrigommc Feb 11, 2019
5f97b1f
Pontoon: Update German (de) localization of AMO
koehlermichael Feb 11, 2019
486f34b
Pontoon: Update Swedish (sv-SE) localization of AMO
Feb 11, 2019
d562abf
Pontoon: Update English (Canada) (en-CA) localization of AMO
kyoshino Feb 11, 2019
06923ea
Pontoon: Update Chinese (Taiwan) (zh-TW) localization of AMO
petercpg Feb 12, 2019
942376a
Pontoon: Update Chinese (China) (zh-CN) localization of AMO
Feb 12, 2019
8a095e8
Pontoon: Update Korean (ko) localization of AMO
lego37yoon Feb 12, 2019
15de688
replace l10n he with en-US because it's broken (#10665)
eviljeff Feb 12, 2019
c635e30
Pontoon: Update Dutch (nl) localization of AMO
markh-bz Feb 12, 2019
a2c54d5
switch local dev to python3
eviljeff Feb 8, 2019
6fafcb7
restore Dockerfile.python3 and revert Dockerfile changes
eviljeff Feb 8, 2019
2cd026c
Build py2 and py3 images on every commit
Feb 11, 2019
98da43e
Pontoon: Update Chinese (Taiwan) (zh-TW) localization of AMO
petercpg Feb 12, 2019
de0726c
Pontoon: Update Portuguese (Brazil) (pt-BR) localization of AMO
MarceloGhelman Feb 12, 2019
22cb224
address (mainly django) deprecation warnings (#10667)
eviljeff Feb 12, 2019
26a796e
Pontoon: Update Portuguese (Brazil) (pt-BR) localization of AMO
MarceloGhelman Feb 12, 2019
f3e2be6
Pontoon: Update Chinese (China) (zh-CN) localization of AMO
Feb 12, 2019
2f0f37d
Pontoon: Update Hungarian (hu) localization of AMO
Feb 12, 2019
54ccaf3
Fix broken zh_TW locale
diox Feb 12, 2019
528a46c
install uwsgi with pip to get python2/3 compatablity (#10673)
eviljeff Feb 12, 2019
f1409f6
Pontoon: Update French (fr) localization of AMO
mozilla-pontoon Feb 12, 2019
66d24df
Pontoon: Update French (fr) localization of AMO
Feb 12, 2019
091846d
Preserve original uwsgi path in Python 3 container image
Feb 12, 2019
c170bd8
Pontoon: Update Interlingua (ia) localization of AMO
Karm46 Feb 12, 2019
239956b
Pontoon: Update Portuguese (Brazil) (pt-BR) localization of AMO
MarceloGhelman Feb 13, 2019
34ce373
Pontoon: Update Portuguese (Brazil) (pt-BR) localization of AMO
MarceloGhelman Feb 13, 2019
33cd593
Pontoon: Update Portuguese (Brazil) (pt-BR) localization of AMO
MarceloGhelman Feb 13, 2019
1fd1d0a
Pontoon: Update Portuguese (Brazil) (pt-BR) localization of AMO
MarceloGhelman Feb 13, 2019
26c92f3
Update pytest-selenium from 1.15.1 to 1.16.0 (#10680)
pyup-bot Feb 13, 2019
f200169
Update boto3 from 1.9.91 to 1.9.93 (#10681)
pyup-bot Feb 13, 2019
f8bbcfd
Update botocore from 1.12.91 to 1.12.93 (#10682)
pyup-bot Feb 13, 2019
942e696
Avoid comparing bytes and str in Python 3 (#10672)
diox Feb 13, 2019
95a6175
Pontoon: Update Greek (el) localization of AMO
JimSp472000 Feb 13, 2019
6ae85dc
Pontoon: Update Greek (el) localization of AMO
JimSp472000 Feb 13, 2019
9a2957f
Pontoon: Update Portuguese (Brazil) (pt-BR) localization of AMO
MarceloGhelman Feb 13, 2019
5d13753
Fix codestyle and docs jobs (#10683)
diox Feb 13, 2019
c79e7eb
Update sphinx-rtd-theme from 0.4.2 to 0.4.3
pyup-bot Feb 12, 2019
757382b
Update more-itertools to 6.0.0 (#10664)
pyup-bot Feb 13, 2019
83f95e0
Update cffi from 1.11.5 to 1.12.0 (#10687)
pyup-bot Feb 13, 2019
c8d8644
Pontoon: Update Slovenian (sl) localization of AMO
upwinxp Feb 13, 2019
ba83358
Pontoon: Update French (fr) localization of AMO
YD-89 Feb 13, 2019
c02ab94
Pontoon: Update Portuguese (Portugal) (pt-PT) localization of AMO
rodrigommc Feb 14, 2019
0789f5b
Update wheel from 0.32.3 to 0.33.0
pyup-bot Feb 13, 2019
010efe2
Update pytest from 4.2.0 to 4.2.1
pyup-bot Feb 13, 2019
96e54b1
Pontoon: Update Dutch (nl) localization of AMO
TonnesM Feb 14, 2019
274858a
Ignore docs/_build again (in the global .gitignore this time)
diox Feb 13, 2019
117827e
address django2 feature removals (#10691)
eviljeff Feb 14, 2019
b213763
Pontoon: Update Czech (cs) localization of AMO
MikkCZ Feb 14, 2019
d293e3a
Pontoon: Update Vietnamese (vi) localization of AMO
ZoeMeow1027 Feb 14, 2019
02f335b
Pontoon: Update Vietnamese (vi) localization of AMO
ZoeMeow1027 Feb 14, 2019
85e1cfe
Pontoon: Update Vietnamese (vi) localization of AMO
ZoeMeow1027 Feb 14, 2019
f47716e
Pontoon: Update Portuguese (Brazil) (pt-BR) localization of AMO
MarceloGhelman Feb 14, 2019
031ddee
Pontoon: Update Portuguese (Brazil) (pt-BR) localization of AMO
MarceloGhelman Feb 14, 2019
9166ad2
Pontoon: Update Interlingua (ia) localization of AMO
Karm46 Feb 15, 2019
f773733
Pontoon: Update Interlingua (ia) localization of AMO
Karm46 Feb 15, 2019
4e54a76
drop version detail link (#10698)
eviljeff Feb 15, 2019
eb3e937
unpin django-waffle to get upgrade to 0.15.1 (#10701)
eviljeff Feb 15, 2019
ba2af81
django2.2 changes and deprecation removals (#10700)
eviljeff Feb 15, 2019
4d9fb82
Remove sdk based addons notifications code (#10568)
championshuttler Feb 15, 2019
9f1cf77
Expose version list for diffing, rework reviewers api to be more conc…
EnTeQuAk Feb 15, 2019
a56eb52
Always set algorithms when decoding JWT
diox Feb 15, 2019
d05db2f
Point My Collections to the collection homepage for frontend compat
diox Feb 14, 2019
2a1b8cd
Pontoon: Update Portuguese (Brazil) (pt-BR) localization of AMO
MarceloGhelman Feb 15, 2019
9a7eb81
Pontoon: Update Portuguese (Brazil) (pt-BR) localization of AMO
MarceloGhelman Feb 15, 2019
ca3134b
Pontoon: Update Russian (ru) localization of AMO
BychekRU Feb 16, 2019
2f63482
Pontoon: Update Italian (it) localization of AMO
Sav22999 Feb 17, 2019
17fbdd0
Pontoon: Update Italian (it) localization of AMO
Sav22999 Feb 17, 2019
9ce73e9
Pontoon: Update Romanian (ro) localization of AMO
Feb 18, 2019
00bec14
Update boto3 from 1.9.93 to 1.9.96 (#10706)
pyup-bot Feb 18, 2019
cd4f13c
Update botocore from 1.12.93 to 1.12.96 (#10707)
pyup-bot Feb 18, 2019
4150413
Update pytest-forked from 1.0.1 to 1.0.2 (#10710)
pyup-bot Feb 18, 2019
6f99d7f
Update newrelic from 4.12.0.113 to 4.14.0.115 (#10709)
pyup-bot Feb 18, 2019
786b1b9
Update pytest-instafail from 0.4.0 to 0.4.1 (#10711)
pyup-bot Feb 18, 2019
8c36949
Update cffi from 1.12.0 to 1.12.1 (#10712)
pyup-bot Feb 18, 2019
72af3a1
Update redis from 3.1.0 to 3.2.0 (#10714)
pyup-bot Feb 18, 2019
46768d2
Update psutil from 5.5.0 to 5.5.1 (#10713)
pyup-bot Feb 18, 2019
09c1d1c
move olympia logout page to devhub; remove login/register views (#10686)
eviljeff Feb 18, 2019
d8995b2
Pontoon: Update French (fr) localization of AMO
Feb 18, 2019
ad17014
replace django-cors-headers-multi with django-cors-headers (#10704)
eviljeff Feb 18, 2019
914da0f
Extracted l10n messages from 2019-02-18 at 8420fb2ee2
addons-robot Feb 18, 2019
16861a7
Pontoon: Update Georgian (ka) localization of AMO
AG12r Feb 18, 2019
b8208b1
Pontoon: Update Georgian (ka) localization of AMO
AG12r Feb 18, 2019
2f37439
Remove Legacy API (#10705)
EnTeQuAk Feb 19, 2019
bb9a8b0
Update flake8 from 3.7.5 to 3.7.6 (#10721)
pyup-bot Feb 19, 2019
4a6d1df
Update boto3 from 1.9.96 to 1.9.97 (#10722)
pyup-bot Feb 19, 2019
e324a76
Update botocore from 1.12.96 to 1.12.97 (#10723)
pyup-bot Feb 19, 2019
8099f6d
Update pytest from 4.2.1 to 4.3.0 (#10724)
pyup-bot Feb 19, 2019
12aa2b8
Raise an exception when we can't sign a file instead of returning None
diox Feb 14, 2019
cec3814
Mock sign_file/auto_sign_file in tests that go through signing but do…
diox Feb 14, 2019
b331b98
Don't try to sign search plugins - they are just a single xml file
diox Feb 14, 2019
ad4989e
Rollback AutoApprovalSummary creation on SigningError, log it separately
diox Feb 18, 2019
95b6b83
Don't skip adding compatibility apps because of manifest incompatibil…
EnTeQuAk Feb 18, 2019
4ef0058
Drop LWT editing (#10734)
eviljeff Feb 19, 2019
1f42b4d
Symlink uwsgi to its old path in python2 Dockerfile too
diox Feb 19, 2019
5e114fc
Update wheel from 0.33.0 to 0.33.1
pyup-bot Feb 19, 2019
0a5def4
Pontoon: Update Vietnamese (vi) localization of AMO
ZoeMeow1027 Feb 20, 2019
5fb46b1
Pontoon: Update Vietnamese (vi) localization of AMO
ZoeMeow1027 Feb 20, 2019
518986b
Update botocore from 1.12.97 to 1.12.98
pyup-bot Feb 19, 2019
483d294
Update boto3 from 1.9.97 to 1.9.98
pyup-bot Feb 19, 2019
11bd2c7
Update pyzmq from 17.1.2 to 18.0.0
pyup-bot Feb 19, 2019
5bccc7c
Refactor abuse API internals to make adding new fields easier
diox Feb 18, 2019
504a7ab
Augment the Abuse Report API with new fields
diox Feb 18, 2019
5b3a21c
Fix abuse API docs missing backticks
diox Feb 20, 2019
85756df
Add tests for utf8mb4 encoding (#10726)
EnTeQuAk Feb 20, 2019
806e0cc
Pontoon: Update Spanish (es) localization of AMO
avelper Feb 21, 2019
3839830
Pontoon: Update Spanish (es) localization of AMO
avelper Feb 21, 2019
52221d1
Pontoon: Update Albanian (sq) localization of AMO
ujdhesa Feb 21, 2019
e5a29d3
Update pip to 19.0.3 (#10739)
pyup-bot Feb 22, 2019
87be010
Pontoon: Update French (fr) localization of AMO
TheoChevalier Feb 22, 2019
60dbce2
Stop storing ip_address in abuse reports - lookup country via geoip i…
diox Feb 22, 2019
185140d
Ignore reviewer lock when auto-approving langpacks
diox Feb 22, 2019
1f4dc1b
Implement mimetype categorization for easier file-type / preview dete…
EnTeQuAk Feb 22, 2019
567155d
Pontoon: Update Punjabi (pa-IN) localization of AMO
soniasingla Feb 22, 2019
08bba67
Update boto3 from 1.9.98 to 1.9.100 (#10748)
pyup-bot Feb 22, 2019
d7bc019
Update virtualenv from 16.4.0 to 16.4.1 (#10756)
pyup-bot Feb 22, 2019
e9dd86e
Update botocore from 1.12.98 to 1.12.100 (#10749)
pyup-bot Feb 22, 2019
a340436
Update configparser from 3.7.1 to 3.7.2 (#10761)
pyup-bot Feb 22, 2019
4cc3cca
Pontoon: Update Portuguese (Portugal) (pt-PT) localization of AMO
rodrigommc Feb 23, 2019
c5aaab7
Pontoon: Update Interlingua (ia) localization of AMO
Karm46 Feb 24, 2019
7780bdf
Pontoon: Update Vietnamese (vi) localization of AMO
ZoeMeow1027 Feb 24, 2019
4611436
Remove disallow-legacy-submissions waffle-switch
championshuttler Feb 24, 2019
ebf955c
Update isort from 4.3.4 to 4.3.5
pyup-bot Feb 25, 2019
eb2246c
Update jmespath from 0.9.3 to 0.9.4
pyup-bot Feb 25, 2019
808d7bc
Update pluggy from 0.8.1 to 0.9.0
pyup-bot Feb 24, 2019
040cdff
Update pluggy from 0.8.1 to 0.9.0
pyup-bot Feb 24, 2019
a3e7654
Update markupsafe from 1.1.0 to 1.1.1
pyup-bot Feb 24, 2019
5f221e4
Update py from 1.7.0 to 1.8.0
pyup-bot Feb 23, 2019
f73c581
Update py from 1.7.0 to 1.8.0
pyup-bot Feb 23, 2019
a05201d
Update configparser from 3.7.2 to 3.7.3
pyup-bot Feb 23, 2019
81c62c8
Update django-extensions from 2.1.5 to 2.1.6
pyup-bot Feb 22, 2019
ecdc126
Update botocore from 1.12.100 to 1.12.101
pyup-bot Feb 22, 2019
1f2e0cf
Update boto3 from 1.9.100 to 1.9.101
pyup-bot Feb 22, 2019
a98dd74
Update django-multidb-router to 0.9 (#10762)
pyup-bot Feb 25, 2019
907669e
Use utf8mb4 for prod MySQL connections
Feb 25, 2019
25950d3
Enable django2.2 testing (#10752)
eviljeff Feb 25, 2019
433a91b
Update isort from 4.3.5 to 4.3.8 (#10783)
pyup-bot Feb 25, 2019
c74c77e
Pontoon: Update Czech (cs) localization of AMO
marblaz Feb 25, 2019
65ffe0d
Pontoon: Update Hindi (hi-IN) localization of AMO
miphilomath Feb 25, 2019
35d46b8
Update botocore from 1.12.101 to 1.12.102
pyup-bot Feb 25, 2019
0099962
Update boto3 from 1.9.101 to 1.9.102
pyup-bot Feb 25, 2019
7407102
Update flake8 from 3.7.6 to 3.7.7
pyup-bot Feb 25, 2019
7f2e296
Extracted l10n messages from 2019-02-26 at d022ebeaf9
addons-robot Feb 26, 2019
c2bff24
Pontoon: Update Chinese (Taiwan) (zh-TW) localization of AMO
petercpg Feb 26, 2019
0621b0e
Pontoon: Update Dutch (nl) localization of AMO
markh-bz Feb 26, 2019
7441dbd
Pontoon: Update Chinese (China) (zh-CN) localization of AMO
Feb 26, 2019
da49dd8
Pontoon: Update Sorbian, Upper (hsb) localization of AMO
milupo Feb 26, 2019
3222c5c
Pontoon: Update Portuguese (Brazil) (pt-BR) localization of AMO
MarceloGhelman Feb 26, 2019
5dcfc02
Tweak abuse reporting API fields to match existing API and PRD updates
diox Feb 22, 2019
5bd6580
Drop future, update django-extended-choices to 1.3.2
diox Feb 25, 2019
c6e6176
Missing u'' prefix for python 2
diox Feb 26, 2019
d21d27f
Update django-waffle to 0.15.1 (#10708)
pyup-bot Feb 26, 2019
abf2992
Fixes #10493: Text Aligned Properly in dev-hub
Feb 25, 2019
0b38117
Pontoon: Update Swedish (sv-SE) localization of AMO
Feb 26, 2019
f52217c
Pontoon: Update Hungarian (hu) localization of AMO
Feb 26, 2019
f4af25c
remove LWT reviewer tools (#10759)
eviljeff Feb 26, 2019
17f2f36
Pontoon: Update French (fr) localization of AMO
TheoChevalier Feb 26, 2019
7abcc70
Pontoon: Update English (Canada) (en-CA) localization of AMO
kyoshino Feb 26, 2019
60f5574
Pontoon: Update Hebrew (he) localization of AMO
ItielMaN Feb 26, 2019
c0060a7
Pontoon: Update Sorbian, Lower (dsb) localization of AMO
milupo Feb 26, 2019
73a883f
Pontoon: Update French (fr) localization of AMO
Feb 26, 2019
1dcc8bb
Initial rebase of AMO (tag:2019.02.28) to ATN master:
MelissaAutumn Aug 22, 2024
172bb9b
By default don't bypass auth, and ensure mysql docker persists data.
MelissaAutumn Aug 31, 2024
9e85106
Fix local dev
MelissaAutumn Aug 31, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
111 changes: 74 additions & 37 deletions circle.yml → .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
version: 2.0
version: 2.1

jobs:
build-deploy: # build for the master branch
machine: true
working_directory: ~/addons-server
commands:
build_and_push_container_image:
description: "Builds and pushes a Docker image"
parameters:
dockerfile:
type: string
default: "Dockerfile.python2.deploy"
image_tag:
type: string
default: "latest"
steps:
- checkout
- run: >
printf '{"commit":"%s","version":"%s","source":"https://github.com/%s/%s","build":"%s"}\n'
"$CIRCLE_SHA1"
Expand All @@ -18,31 +23,47 @@ jobs:
name: Build docker image and push to repo
command: |
docker version
docker build -t app:build -f Dockerfile.deploy .
docker tag app:build ${DOCKERHUB_REPO}:latest
docker login -u $DOCKERHUB_USER -p $DOCKERHUB_PASS
docker push ${DOCKERHUB_REPO}:latest
build-release: # build for releases (tags)
docker build -t app:build -f << parameters.dockerfile >> .
docker tag app:build "${DOCKERHUB_REPO}":<< parameters.image_tag >>
docker login -u "${DOCKERHUB_USER}" -p "${DOCKERHUB_PASS}"
docker push "${DOCKERHUB_REPO}":<< parameters.image_tag >>
jobs:
build-py2:
machine: true
working_directory: ~/addons-server
steps:
- checkout
- run: >
printf '{"commit":"%s","version":"%s","source":"https://github.com/%s/%s","build":"%s"}\n'
"$CIRCLE_SHA1"
"$CIRCLE_TAG"
"$CIRCLE_PROJECT_USERNAME"
"$CIRCLE_PROJECT_REPONAME"
"$CIRCLE_BUILD_URL"
> version.json
- run:
name: Build docker image and push to repo
command: |
docker version
docker build -t app:build -f Dockerfile.deploy .
docker tag app:build ${DOCKERHUB_REPO}:${CIRCLE_TAG}
docker login -u $DOCKERHUB_USER -p $DOCKERHUB_PASS
docker push ${DOCKERHUB_REPO}:${CIRCLE_TAG}
- build_and_push_container_image:
image_tag: latest
dockerfile: "Dockerfile.python2.deploy"

build-py3:
machine: true
working_directory: ~/addons-server
steps:
- checkout
- build_and_push_container_image:
image_tag: latest-py3
dockerfile: "Dockerfile.python3.deploy"

build-py2-tag:
machine: true
working_directory: ~/addons-server
steps:
- checkout
- build_and_push_container_image:
image_tag: "${CIRCLE_TAG}"
dockerfile: "Dockerfile.python2.deploy"

build-py3-tag:
machine: true
working_directory: ~/addons-server
steps:
- checkout
- build_and_push_container_image:
image_tag: "${CIRCLE_TAG}-py3"
dockerfile: "Dockerfile.python3.deploy"

integration_test:
working_directory: ~/addons-server
machine: true
Expand Down Expand Up @@ -77,6 +98,7 @@ jobs:
- uitest-cache-{{ checksum "requirements/prod_py2.txt" }}
- uitest-cache-{{ checksum "requirements/tests.txt" }}
- uitest-cache-{{ checksum "requirements/dev.txt" }}
- uitest-cache-{{ checksum "requirements/dev_without_hash.txt" }}
- uitest-cache-{{ checksum "requirements/uitests.txt" }}
- uitest-cache-
- run:
Expand All @@ -93,23 +115,24 @@ jobs:
command: |
set -x
sudo sysctl -w vm.max_map_count=262144
docker-compose pull --quiet
docker-compose up -d
docker-compose -f docker-compose.yml -f tests/ui/docker-compose.selenium.yml pull --quiet
docker-compose -f docker-compose.yml -f tests/ui/docker-compose.selenium.yml up -d
sleep 20
docker-compose ps
scripts/ui-test-hostname-setup.sh
# Make sure dependencies get updated in worker and web container
docker-compose exec worker make -f Makefile-docker update_deps
docker-compose exec worker make -f Makefile-docker update_deps update_assets
docker-compose restart worker
docker-compose exec web make -f Makefile-docker update_deps
docker-compose exec web make -f Makefile-docker update_deps update_assets
docker-compose restart web
# chown to change permissions of olympia.egg* and all folders/file
# This is done because cirlceci has permissions do not allow the user `circleci` to remove or add files create by the root, even if it is part of the root group.
sudo chown -R circleci:circleci .
# Delete any existing uitest users within restmail. TEMP FIX: https://github.com/mozilla/addons-server/issues/8980
wget --method=DELETE http://restmail.net/mail/uitest
# mod user in firefox container
docker-compose -f docker-compose.yml -f tests/ui/docker-compose.selenium.yml exec selenium-firefox sudo usermod -u 1001 seluser
# proper chown
sudo chown -R $USER .
# Start Test in Firefox docker container
docker-compose exec --user circleci selenium-firefox tox -e ui-tests
docker-compose -f docker-compose.yml -f tests/ui/docker-compose.selenium.yml exec selenium-firefox tox -e ui-tests
- store_artifacts:
path: ui-test.html
- save_cache:
Expand All @@ -128,6 +151,10 @@ jobs:
key: uitest-cache-{{ checksum "requirements/dev.txt" }}
paths:
- .tox
- save_cache:
key: uitest-cache-{{ checksum "requirements/dev_without_hash.txt" }}
paths:
- .tox
- save_cache:
key: uitest-cache-{{ checksum "requirements/uitests.txt" }}
paths:
Expand All @@ -141,11 +168,21 @@ workflows:
version: 2
build_test_deploy_release:
jobs:
- build-deploy:
- build-py2:
filters:
branches:
only: master
- build-py3:
filters:
branches:
only: master
- build-release:
- build-py2-tag:
filters:
tags:
only: /.*/
branches:
ignore: /.*/
- build-py3-tag:
filters:
tags:
only: /.*/
Expand Down
55 changes: 26 additions & 29 deletions .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,32 +18,29 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Start DB
run: |
docker run --add-host host.docker.internal:host-gateway --name mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=verysecurepw -e MYSQL_DATABASE=test_olympia -d mysql:8.0 --default-authentication-plugin=mysql_native_password
sleep 15
docker exec mysql mysql -P 3306 -u root -p"verysecurepw" -e "CREATE USER 'root'@'127.0.0.1' IDENTIFIED WITH mysql_native_password BY 'verysecurepw';"
docker exec mysql mysql -P 3306 -u root -p"verysecurepw" -e "GRANT ALL PRIVILEGES ON *.* TO 'root'@'127.0.0.1';"

- name: Start ES
run: docker run --add-host host.docker.internal:host-gateway --name es -p 9200:9200 -p 9300:9300 -e ES_NETWORK_HOST=0.0.0.0 -e discovery.type=single-node -d elasticsearch:5.6.12-alpine

- name: Run docker container
run: docker run --add-host host.docker.internal:host-gateway -it -d --name atn -e DATABASES_DEFAULT_URL=mysql://root:verysecurepw@host.docker.internal:3306/test_olympia -e ES_HOSTS=host.docker.internal:9200 -e ELASTICSEARCH_LOCATION=host.docker.internal:9200 -v $GITHUB_WORKSPACE/src:/data/olympia/src:rw thunderbirdops/addons-server bash

- name: Install deps
run: docker exec atn bash -c "make -f Makefile-docker update_deps"

- name: Patch Django
run: docker exec atn bash -c "sed -i 's/TX_ISOLATION = /transaction_isolation = /' /usr/local/lib/python2.7/site-packages/django/db/backends/mysql/base.py"

- name: Run tests
run: docker exec atn bash -c 'python -m pytest --junitxml=src/test_report.xml -m "not es_tests" src/olympia/'

- name: Publish test results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
files: src/test_report.xml
- uses: actions/checkout@v4

- name: Build Docker Compose
run: docker compose build

- name: Run Docker Compose
run: docker compose up -d

- name: Wait a bit for MySQL to boot
run: sleep 10

- name: Install deps
run: docker compose exec web bash -c "make -f Makefile-docker update_deps"

- name: Patch Django
run: docker compose exec web bash -c "sed -i 's/TX_ISOLATION = /transaction_isolation = /' /usr/local/lib/python3.6/site-packages/django/db/backends/mysql/base.py"

- name: Run tests
run: docker compose exec web bash -c 'python -m pytest --junitxml=src/test_report36.xml -m "not es_tests" src/olympia/'

- name: Publish test results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
check_name: "Python 3.6 Test Results"
files: src/test_report36.xml
72 changes: 38 additions & 34 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,45 +1,49 @@
.env
*.egg-info
settings_local.py*
settings_local_*.py
local_settings.py
shellng_local.py
*.py[co]
.*.sw?
pip-log.txt
docs/_gh-pages
docs/api/_build
build*.py
.DS_Store
*.js.tmp
*.css.tmp
*-min.css
*-all.css
*-min.js
*-all.js
*-min.css
*-min.js
*.css.tmp
*.egg-info
*.js.tmp
*.less.css
*.mo
*.po~
*.py[co]
*.signed.zip
*.styl.css
.*.sw?
.cache
.DS_Store
.env
.ipython
.nose*
tmp/*
.pytest_cache/*
node_modules
.npm/
static/css/node_lib/*
static/js/node_lib/*
*.signed.zip
*.po~
*.mo
site-static/*
user-media/*
guarded-addons/*
.pytest_cache/*
.tox/
MANIFEST
.vscode
build*.py
docker*.yml
docker/artifacts/*
docs/_gh-pages
docs/api/_build
docs/_build
local_settings.py
logs/*
supervisord.pid
.ipython
docker*.yml
.cache
.vscode
MANIFEST
node_modules
pip-log.txt
settings_local.py*
settings_local_*.py
shellng_local.py
site-static/*
src/olympia/discovery/strings.jinja2
static/css/node_lib/*
static/js/i18n/*.js
static/js/node_lib/*
storage/files/*
storage/git-storage/*
storage/guarded-addons/*
storage/shared_storage/*
supervisord.pid
tmp/*
venv*
56 changes: 28 additions & 28 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,33 @@
language: python
sudo: false
dist: xenial

python:
- 2.7

jobs:
fast_finish: true
allow_failures:
- python: 3.6
include:
- { stage: python2, env: TOXENV=codestyle }
- { stage: python2, env: TOXENV=docs }
- { stage: python2, env: TOXENV=assets }
- { stage: python2, env: TOXENV=es }
- { stage: python2, env: TOXENV=addons }
- { stage: python2, env: TOXENV=devhub }
- { stage: python2, env: TOXENV=reviewers-and-zadmin }
- { stage: python2, env: TOXENV=amo-locales-and-signing }
- { stage: python2, env: TOXENV=users-accounts-and-ratings }
- { stage: python2, env: TOXENV=main }
- { stage: python3, python: 3.6, env: TOXENV=codestyle}
- { stage: python3, python: 3.6, env: TOXENV=docs }
- { stage: python3, python: 3.6, env: TOXENV=assets }
- { stage: python3, python: 3.6, env: TOXENV=es }
- { stage: python3, python: 3.6, env: TOXENV=addons }
- { stage: python3, python: 3.6, env: TOXENV=devhub }
- { stage: python3, python: 3.6, env: TOXENV=reviewers-and-zadmin }
- { stage: python3, python: 3.6, env: TOXENV=amo-locales-and-signing }
- { stage: python3, python: 3.6, env: TOXENV=users-accounts-and-ratings }
- { stage: python3, python: 3.6, env: TOXENV=main }
- { env: TOXENV=codestyle }
- { env: TOXENV=docs }
- { env: TOXENV=assets }
- { env: TOXENV=es }
- { env: TOXENV=addons-versions-and-files }
- { env: TOXENV=devhub }
- { env: TOXENV=reviewers-and-zadmin }
- { env: TOXENV=accounts-users-and-ratings }
- { env: TOXENV=amo-lib-locales-and-signing }
- { env: TOXENV=main }
- { python: 3.6, env: TOXENV=codestyle}
- { python: 3.6, env: TOXENV=docs }
- { python: 3.6, env: TOXENV=assets }
- { python: 3.6, env: TOXENV=es }
- { python: 3.6, env: TOXENV=addons-versions-and-files }
- { python: 3.6, env: TOXENV=devhub }
- { python: 3.6, env: TOXENV=reviewers-and-zadmin }
- { python: 3.6, env: TOXENV=accounts-users-and-ratings }
- { python: 3.6, env: TOXENV=main }
- { python: 3.6, env: TOXENV=amo-lib-locales-and-signing }
- { python: 3.6, env: TOXENV=assets DJANGO=django22 }

env:
global:
Expand Down Expand Up @@ -70,22 +69,23 @@ before_install:
install:
- nvm current
- nvm deactivate
- nvm install 10
- nvm use 10
- pip install --upgrade pip wheel setuptools tox==3.2.1 tox-travis==0.10
- nvm install 8
- nvm use 8
- pip install --no-deps -r requirements/travis_base.txt
- ./scripts/travis-install-libgit2.sh

before_script:
- mysql --version
- node --version
- java -version
- curl -v http://localhost:9200/
- sudo touch /addons-server-docker-container

script:
- |
if [[ $TRAVIS_EVENT_TYPE != "cron" ]]; then
if [[ $TOXENV == "amo-locales-and-signing" ]]; then
docker run --name autograph -d -p 5500:5500 -v $(pwd)/scripts/:/scripts/ mozilla/autograph:2.3.2 /go/bin/autograph -c /scripts/autograph_travis_test_config.yaml
if [[ $TOXENV == "amo-lib-locales-and-signing" ]]; then
docker run --name autograph -d -p 5500:5500 -v $(pwd)/scripts/:/scripts/ mozilla/autograph:2.7.0 /go/bin/autograph -c /scripts/autograph_travis_test_config.yaml
fi
RUNNING_IN_CI=True tox
fi
Expand Down
Loading
Loading