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

317 Коммитов

Автор SHA1 Сообщение Дата
Victor Ng b8e9956693 applied black formatting 2019-02-20 14:26:44 -05:00
Victor Ng 2f6c63f718 More logging and safety around the recommend method for each recommender
I've added an exception handler that forces reload of underlying model in the case of recommendation error.
Extra exception logging occurs if any recommender crashes
2019-02-20 14:26:44 -05:00
Victor Ng c1df5b1efb Added a force_expiry() method to the JSON loader 2019-02-20 14:26:44 -05:00
Victor Ng bbb7f8b8ef Added sentry integration 2019-02-20 14:26:44 -05:00
Victor Ng 4f84794bcc Merge branch 'master' of github.com:mozilla/taar 2019-02-11 08:51:05 -05:00
Victor Ng abf6b94b7c added thread synchronization as it's possible to mutate the model during
the model reload
2019-02-11 08:42:21 -05:00
Victor Ng 40534a0fd4 force collaborative model to be None when the raw_item_matrix JSON
doesn't load
2019-02-11 08:42:21 -05:00
Victor Ng 6d79398b56 reworked how the model is reconstructed when new JSON is loaded 2019-02-11 08:42:21 -05:00
Victor Ng 09ff4ac3cb set limit for taar results in test with length 4 2019-02-11 08:42:21 -05:00
Victor Ng 1f7990887a added thread synchronization as it's possible to mutate the model during
the model reload
2019-02-11 08:33:30 -05:00
Victor Ng 45e7a67226 force collaborative model to be None when the raw_item_matrix JSON
doesn't load
2019-02-11 07:15:32 -05:00
Victor Ng a7181c3618 reworked how the model is reconstructed when new JSON is loaded 2019-02-10 21:46:42 -05:00
Victor Ng 0e252d6b0b set limit for taar results in test with length 4 2019-02-10 21:44:05 -05:00
Victor Ng ec6467a8db added a skip_existing directive for Travis+PyPI 2019-01-29 10:29:37 -05:00
Victor Ng 0921f014f0 bumped to 0.4.3 for a new tag and testing travis deployment 2019-01-29 10:19:32 -05:00
Victor Ng da9ea04e3f bumped travis.yml deployment section 2019-01-29 10:07:50 -05:00
Victor Ng 05712eb9ac bumped version to 0.4.2 2019-01-29 09:42:10 -05:00
Victor Ng eb47dc658c * fixed some spurious flake8 warnings
* Reworked the LazyS3 loader to accept an optional transform function to
  modify the JSON on load.
* Dropped dead testcase and clarified name for another testcase.
2019-01-28 15:29:29 -05:00
Victor Ng e509a88299 branched a release for 20190123 2019-01-23 10:08:27 -05:00
Victor Ng 682e08ec19 fix for "F821 undefined name 'unicode'" error when running tox 2019-01-20 20:42:39 -05:00
Victor Ng 24e3d9f0a0 fixed taar.plugin to work with python2.7 2019-01-20 20:42:39 -05:00
Victor Ng 2b7f86f608 reworked the merging of promoted addons so that duplicated GUIDs are not
reflected in the resultset
2019-01-20 20:42:39 -05:00
Victor Ng b3c084bfec removed all alternate branches
removed all colander code
2019-01-20 20:42:39 -05:00
Victor Ng da5c6a4893 black'd setup.py 2019-01-20 20:42:39 -05:00
Victor Ng a476856550 bumped pyyaml as per github security 2019-01-14 00:21:28 -05:00
Victor Ng 77b36ccd71 fixed s3config.py to point to proper enviroment variable
Similarity bucket was not configured to read from the right enviroment
variable.
2019-01-14 00:21:28 -05:00
Victor Ng fd43bc5d08 added blinker back 2019-01-04 15:20:32 +00:00
Victor Ng 5212f9b180 first pass at enabling all integration test cases 2019-01-04 15:20:32 +00:00
Victor Ng d03ce83dfe started cleaning up integration tests 2019-01-04 15:20:32 +00:00
Victor Ng 58c6418ee8 hashed the test client_ids 2019-01-02 14:09:39 -05:00
Victor Ng 21a6247ce5 * Disable colander schema validation because of call overhead
* Added a test enviroment shell script to enable local execution of flask app
* disable fetching of branch intervention from the CGI args
2019-01-02 10:33:48 -05:00
Victor Ng da42d3dc3a flake8 fix 2019-01-02 10:13:18 -05:00
Victor Ng 13ec0b15c7 Merge branch 'master' of github.com:mozilla/taar 2019-01-02 10:08:05 -05:00
Victor Ng 6896982ba5 updated tests to use POST instead of GET and fixed the way that the
promoted_guids list was being used
2019-01-02 10:07:50 -05:00
Victor Ng d923d9d0ae updated tests to use POST instead of GET and fixed the way that the
promoted_guids list was being used
2019-01-02 10:02:46 -05:00
Victor Ng d5868b0cb8 ignore version.json file during build 2019-01-02 10:02:34 -05:00
Victor Ng 7141ad9e5c force execution of setup.py in docker image
package needs to be registered with setuptools
2018-12-27 16:39:54 +00:00
Victor Ng 0f8c543e70 disable coverage tests in tox because circle is being a pain 2018-12-27 16:39:54 +00:00
Jason Thomas 9b8b173fc6 Add CircleCI config 2018-12-27 16:39:54 +00:00
Victor Ng 2332a2f1e4 reworked docker repackaging branch 2018-12-04 19:31:57 +00:00
Victor Ng 0239ce4323 Extended the HTTP 400 error in the case of a malformed JSON blob on POST so that the result data can still be processed with a valid 'results' key with an empty list of suggestions. 2018-11-30 18:02:22 +00:00
Victor Ng ea8bf4571f added stub test case 2018-11-30 18:02:22 +00:00
Victor Ng 3183eab590 Reworked the URL handler to accept a hashed ID instead of a raw ID.
Added docs, tests and code to enable promoted GUIDs to be passed in through the TAAR API
2018-11-30 18:02:22 +00:00
Victor Ng bab992b682 Misc cleanups
* added dependency on pytest-flask
* Updated logging method names
* cleaned up S3 configuration for all recommendation engines
  All S3 configuration data is now in taar.recommenders.s3config
* dropped pinned hashes for packages in requirements.txt
2018-11-30 18:02:22 +00:00
Victor Ng 7820aab240 Flake8/syntax cleanup 2018-11-27 17:30:58 +00:00
Victor Ng 8d257bd539 Dropped thrift dependency as it's no longer required 2018-11-27 17:30:58 +00:00
Victor Ng 2976fec18e added flake8 configuration for consistent syntax checking across local and travis builds 2018-11-27 17:30:58 +00:00
Victor Ng f33c0c88d3 bumped paramiko and requests for security fixes 2018-11-27 15:42:53 +00:00
Victor Ng ab7cc6bdf0 split requirements up because travis has distutils certifi libraries 2018-11-26 22:16:02 +00:00
Victor Ng 99afa6be56 bumped certifi requirements 2018-11-26 22:16:02 +00:00