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

577 Коммитов

Автор SHA1 Сообщение Дата
Mathieu Pillard 286773d13b Remove obsolete update_addons_collections_downloads cron 2018-08-17 00:24:13 +02:00
Mathieu Pillard 0ab1a95f5d
Merge pull request #9000 from diox/remove-update-collections-votes
Remove more obsolete collection features: stats, downloads, watchers & votes
2018-07-30 13:56:36 +02:00
Mathieu Pillard eba5e64422 Remove more obsolete collection features: stats, downloads, watchers & votes. 2018-07-30 13:39:38 +02:00
Mathieu Pillard dec7cc87f6 Remove more traces of redis 2018-07-30 11:30:13 +02:00
Greg Guthe 626a01c326
ci: run autograph with docker for travis 2018-07-27 10:47:11 -04:00
Christopher Grebs 30d1e994c3
Merge pull request #8916 from autrilla/cron-alerting
Add DataDog monitoring to cron job runs
2018-07-19 10:37:42 +02:00
Adrian Utrilla 80162fd636 Add DataDog monitoring to cron job runs 2018-07-19 10:16:59 +02:00
Christopher Grebs b45ed1a557
Merge pull request #8818 from diox/discovery-editorialized-recommendations-extract-translations-enable
Start extracting discovery pane editorialized recommendations
2018-07-17 07:34:41 +02:00
Benjamin Forehand Jr cafc5d0519
Add UI devhub login and upload tests (#8559)
* Added devhub login and upload tests.
* Add ui-test webext.
* Remove management commands.
2018-07-13 08:55:40 -04:00
Christopher Grebs 7407b70aa2
Update to Django 1.11 (#8738)
Port code and tests to Django 1.11.

* Update requirements to Django 1.11.14, remove session_csrf
* Use --run-syncdb for migration calls
* Remove unused setup-docker script
* Port code and tests to Django 1.11.
* Remove django-session-csrf everywhere, it got replaced by django's own
  session csrf protection
* Make sure we are calling `client.get()` with `follow=True` where necessary
* Replace django.core.urlresolvers import with django.urls
* Port custom `IconWidgetRenderer` to Django 1.11 as `IconTypeSelect`
* Properly use `_queryset_class` for custom manager classes
* Make use of `base_manager_name` on our models `Meta` instead of `use_for_related_objects`
  on the manager where appropriate. This is required to make translations, soft-delete
  and more work. See comment on Addons.Meta for more details.
* Various fixes along the way to make tests work
* Port form errors for locale editing forms to Django 1.11 and make use of
  form.add_error instead of our own custom process
* Mark TestDetailPage.test_304 as xfail for now, somehow Etags seem to be broken
  for that view during tests but work fine in manual tests
* Fix amo.celery, we cannot have any imports at the module-level that may
  import the ORM
* Fix global_settings context processor for 500-server error cases
* Fix `changed_data` handling in `AMOModelForm`
* Remove `queryset_transform` and implement it directly in amo/models
* Fix pagination, Django changed how `num_pages` work and how `count` can be overwritten
* Add a new test that tests database transforms as `BaseQuerysetTestCase`
* Make sure `legacy_redirect` only appends `?` if there are actual GET parameters
* Re-implement `LicenseRadioChoiceInput` as `LicenseRadioSelect` which is now Django 1.11 compatible
* Remove our custom `form_kwargs` uplift from Django 1.9
* Correct how we're using `Category.objects.create` and only pass `db_name` instead of `name`, previously
  this didn't error but now it (luckily!) does
* Update `FileSelectWidget` to correctly work with Django 1.11, use custom rendering
* Fix decorator ordering for `files.views:browse`
* Update database settings to correctly use `TEST` object
* Fix `select_related` call in `RatingViewSet`
* Remove custom `DateTimeCast` implementation
* Fix `addon_factory` calls in `reviewers/tests/test_views.py` to correctly set
  `is_webextension`
* Port our `TranslationDescriptor` and `TranslatedField` to Django 1.11. Also, make sure form error handling works
* Add a new test that checks that `default=None` is a valid setting for translation fields
* Add a new test that checks that translations from related fields are correctly fetched
* Remove possible ambiguity from translations `TestWidget` tests
* Make sure that the correct `MEDIA_URL` is set in `TestDownloadsUnlistedVersions` to fix
  external cdn tests

* Remove custom happyforms code. Django cleans text fields now by default
* Move translations app to the top of INSTALLED_APPS, add a lengthy comment
* Pass additional arguments to contribute_to_class, fix smaller nits
* Set MEDIA_URL and STATIC_URL to an external value by default. That's how they're configured in dev, stage and prod anyway.

Please note that we didn't replace all our custom form rendering with proper templated widgets yet. This will
happening in some follow-up work.

Fixes #5271, Fixes #1569
2018-07-11 06:56:54 +02:00
Mathieu Pillard f4e96b74f4 Start extracting discovery pane editorialized recommendations 2018-07-10 20:47:26 +02:00
Mathieu Pillard 9d7d6e73f8 Add the command to the extraction process, but commented out for now 2018-07-06 19:50:34 +02:00
Mathieu Pillard 7faada75cf Remove code related to Firefox hotfixes, they are no longer used
They were replaced by system add-ons, which operate outside AMO.
2018-06-28 17:23:44 +02:00
Christopher Grebs 8068fe1185
Upgrade gimme and point go to 'stable' (1.10.3 currently) release.
This plus mozilla-services/autograph#103 should fix our recent build
problems.

autograph ci will use the 'stable' flag for their CI too so that we're
in-sync and should see failures fairly quickly.
2018-06-28 14:30:57 +02:00
Christopher Grebs 959a9e704a
Fix autograph, test... 2018-06-25 20:04:16 +02:00
Andrew Williamson fd916c252e
split local dependencies from pure test dependencies and only test deps in travis (#8639) 2018-06-25 11:53:45 +01:00
Christopher Grebs d6b44de95e
Use manage.py migrate instead of deprecated syncdb.
This is just a small code-cleanup update towards Django 1.11 where
`syncdb` doesn't exist anymore.

Fixes #8530
2018-06-16 22:05:19 -07:00
Andrew Williamson b457a5cece
some py3 friendly syntax changes (#8372) 2018-05-30 11:29:13 +01:00
Benjamin Forehand Jr ab1fe7c170 Add ui login tests (#8076)
* Update tests for fxa login.

* Updates to docker compose file to allow localhost logins.

* Updated files.

* Updated readme and circle file.

* Fix typo.

* Removed debugging steps and updated readme and comments.

* April 26 Homepage update.
2018-04-23 08:02:15 +02:00
Mathieu Pillard a49a2c25e5 Reduce auto-approval interval down to every 5 minutes 2018-04-19 19:09:36 +02:00
Jason Thomas fd378611c6
Change stats cron start time 2018-03-26 19:18:03 -04:00
Mathieu Pillard 4f44ca08c6 Remove obsolete code to import Google Analytics data
It has been broken for a while and fills a table that nobody looks
at.
2018-03-13 00:31:36 +01:00
Mathieu Pillard 7bf67dc763 Add cron to send last warning notification email for info requests 2018-02-20 19:21:17 +01:00
Christopher Grebs 7bff4d9acf
Fix autograph signing server startup debug comment.
This now fetches the port correctly again.
2018-02-15 11:36:21 +01:00
Mathieu Pillard 5d095ca7c6 Move all autograph install step to start-autograph.sh 2018-02-05 12:52:49 +01:00
Philip Cristiano 0b362b0d95 scripts: Use shell that supports `[[`
`[[` is a bash construct, while the shebang was listing `sh`.
2018-01-22 16:12:25 -05:00
Benjamin Forehand Jr 8a646cadc4 Addon Install Test (#6641)
* Use docker-compose>=1.18 and minimal docker-compose config version to 2.3
* Starts ui-tests in Firefox docker container
* Let's the Firefox docker-container hit directly nginx
* makes use of https://github.com/jrbenny35/selenium-firefox/ firefox+selenium image
* makes use of /user-media/ serving directly via nginx for XPI installs
* Adds a helper that creates an installable add-on
* Update `firefox_options` fixture with all options needed to install add-ons with a test signing signature

Fixes #7270 
Fixes #2488
2018-01-12 06:58:00 +01:00
Christopher Grebs c2b7f30d24
Add autograph signing server support (#6865)
Fixes #6640
Fixes #6866

This pull request adds support for our new Autograph signing server, adds it to our dockerized services and adds tests that now actually call our signing server.

* Add a waffle-switch for calls to our new autograph signing server
* Add the autograph signing server to docker-compose
* Add the autograph signing server to our travis setup
* avoid us specifying the signing server settings everywhere in the code, one single source of truth
* more use of `responses` instead of mocking, leaning towards
  the future where we can actually hit a signing server instead
  of a mock
* disallow http requests generically, unless configured otherwise
* Add migration for waffle flag
2017-11-13 17:29:57 +01:00
Benjamin Forehand Jr d6bb402a44 Updated UI-tests to run inside of docker and switched to circleci 2.0 (#6457)
* Updated config to use circleci as well as configure ui-tests to run within docker

* Removed hacky certifi installs

* Update requirements to master versions

Fixes #4697 (though not only that)
2017-10-05 13:14:08 +02:00
Christopher Grebs a50dc71b0d Start automating l10n message travis extraction (#6243)
* First prototype of a script that pushes extracted messages to github

* Fix generation, commit and push

* Set email and name properly

* Finalize script, add in safeguards again

* Always switch to master first

* Correct test when what script is being run

* Try correcting when our scripts are running and raise proper exit codes

* tmp

* fix committing

* Restrict commit to locale/ .po files

* Properly restore git config

* Whitespace

* Correctly unset signing that get's restored later. Thanks @eviljeff

* Don't touch git config, don't save things in netrc

* Commit templates too

* Try pushing directly to remote url, don't set any config
2017-09-14 22:36:43 +02:00
Christopher Grebs 42f06f2a73
Merge branch 'master' of github.com:mozilla/addons-server into try-elasticsearch-latest 2017-07-24 12:30:52 +02:00
Mathieu Pillard cf02beeefa Increase frequency of auto_approve command, prevent multiple runs in parallel (#5751)
Increase frequency of auto_approve command, prevent multiple runs in parallel
2017-06-27 11:13:07 -07:00
Christopher Grebs efc66b997c Update ElasticSearch, travis and docker-compose configs
* Bump elasticsearch in travis to 2.3.3
* Fix index store config option for es 2.3.3
* Install es 5.1.1
* Fix es reference in travis.yml
* Fix es startup
* Let's try and switch to use jdk8
* Fix bulk_index import
* Set es 5.1 for docker compose too
* Fix docker image to use official elastic images.
* small travis cleanup
* Make sure xpack authentication is disabled for testing (for now)
* Let's try disabling xpack on travis too...
* Stupid hack to support es5 default auth on travis...
* Remove custom travis_es script
* Use ES 5.3 for now...
2017-06-16 12:01:32 +08:00
Mathieu Pillard 33a2610bcf Automatically run auto_approve command every hour 2017-04-12 12:11:12 +02:00
Benjamin Forehand Jr c1f2db3c19 Added complete configuration to enable UI testing. 2017-03-24 08:38:50 -07:00
Christopher Grebs c7104cdc03 use safe name everywhere, partially avoids duplicate names being entered. 2017-01-18 11:57:45 +01:00
Mark Striemer 66641356da Remove user registration and confirmation (supports #3049) (#3629) 2016-10-12 10:52:51 -05:00
Jason Thomas 1dae4d0090
Change MAILTO address for cron output 2016-10-12 11:08:37 -04:00
Christopher Grebs af4f5fe6ef Update django to 1.8.15 2016-09-27 16:42:22 +02:00
Mathieu Pillard 7d255b8a55 Remove cleanup_synced_collections from the crontab, it was removed months ago 2016-09-21 14:35:53 +02:00
Stuart Colville d682254850 Revert "Add make update_deps to setup-docker.sh" 2016-09-06 12:44:19 +01:00
Stuart Colville 2c4788754e Add make update_deps to setup-docker.sh 2016-09-06 09:02:09 +01:00
Stuart Colville 439a296dac Fix olympia user uid docker for mac 2016-08-24 16:42:45 +01:00
Dave Hunt fd8ec837ef Move sleep for CircleCI (#3111)
* Move sleep to just after docker-compose up
* Activate debugging for setup-docker.sh
2016-07-28 10:24:57 +01:00
Dave Hunt 6730f9a9f8 Run UI integration tests in Circle CI 2016-06-28 11:55:22 +01:00
Mathieu Pillard 7c2831fc1c Upgrade docs-related dependencies 2016-06-15 15:30:44 +01:00
Christopher Grebs 966ca48bdd Update revdeps script to do hashing and cleaning up our requirements files.
* make sure hash_requirements.py understands nested requirements files
* skip packages/lines that don't come from the currently editing requirements file.
2016-06-15 15:12:39 +02:00
Andrew Williamson 91126b76aa Add find_revdeps.py script from zamboni and note requirements in files. 2016-05-18 11:38:26 +01:00
Mathieu Pillard f9c45b1a01 Explicitly declare all ES addons mapping fields, and add stricter tests. 2016-03-24 16:53:33 +01:00
Mathieu Pillard 3e3fab3cd7 Remove *_current_version crons (fix #1242) 2016-02-03 13:12:54 +01:00