This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[email protected] ~]$ grep django.request logs/http_app_addons_dev/2012/02/2012-02-08 | |
Feb 8 11:44:11 dev1.addons.phx1.mozilla.com: [][] django.request:ERROR this is a test, ignore :<ipython console>:1#012Traceback (most recent call last):#012 File "<ipython console>", line 2, in <module>#012IOError: request data read error | |
Feb 8 11:44:11 dev1.addons.phx1.mozilla.com: [][] django.request:ERROR this is a test, ignore :<ipython console>:1#012Traceback (most recent call last):#012 File "<ipython console>", line 2, in <module>#012IOError: request data read error |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/manage.py b/manage.py | |
index d2a81ee..9ff3752 100755 | |
--- a/manage.py | |
+++ b/manage.py | |
@@ -94,13 +94,13 @@ def new(self, arg): | |
Markup.__mod__ = new | |
+import djcelery | |
+djcelery.setup_loader() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In [12]: ck =check.Check(addon=Addon.objects.get(pk=54)) | |
In [13]: ck.all() | |
In [14]: ck.passed | |
Out[14]: False | |
In [15]: ck.errors | |
Out[15]: ['No permission to do refunds.'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LOGGING = { | |
'loggers': { | |
'z.pool': { | |
'level': 'ERROR', | |
}, | |
}, | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/apps/devhub/tests/test_views.py b/apps/devhub/tests/test_views.py | |
index 60b5383..148287f 100644 | |
--- a/apps/devhub/tests/test_views.py | |
+++ b/apps/devhub/tests/test_views.py | |
@@ -2017,6 +2017,12 @@ class TestSubmitStep3(TestSubmitBase): | |
r = self.client.post(self.url, d) | |
self.assertFormError(r, 'form', 'support_email', 'Enter a valid e-mail address.') | |
+ def test_device_type_invalid(self): | |
+ waffle.models.Flag.objects.create(name='accept-webapps', everyone=True) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/manage.py b/manage.py | |
index 202c412..fbcfcf3 100755 | |
--- a/manage.py | |
+++ b/manage.py | |
@@ -1,5 +1,4 @@ | |
#!/usr/bin/env python | |
-import getopt | |
import imp | |
import logging | |
import os |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def test_addon_collection_indexed(self): | |
#index_addon_collection_counts(self.counts_ids) | |
AddonCollectionCount.index({'count': 4L, 'collection': 512}) | |
result = AddonCollectionCount.search().filter(collection=512) | |
eq_(result.count(), 1) | |
====================================================================== | |
FAIL: test_addon_collection_indexed (zamboni.apps.stats.tests.test_tasks.TestCollections) | |
---------------------------------------------------------------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/sandboxes/zamboni(722556) $ ./manage.py shell | |
>>> import elasticutils | |
>>> elasticutils.get_es().delete_index('amo') | |
{u'acknowledged': True, u'ok': True} | |
>>> from stats.models import AddonCollectionCount | |
>>> AddonCollectionCount.search().filter(collection=512).count() | |
16:38:21 z.es:ERROR {'filter': {'term': {'collection': 512}}, 'fields': ['id'], 'size': 0} :/Users/andy/sandboxes/zamboni/apps/amo/search.py:201 | |
------------------------------------------------------------ | |
Traceback (most recent call last): | |
File "<ipython console>", line 1, in <module> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> commands.local('test -e setup.pys').code | |
[2012-02-15 08:58:57] [localhost] running: test -e setup.pys | |
[2012-02-15 08:58:57] [localhost] finished: test -e setup.pys (0.005s) | |
1 | |
>>> commands.local('test -e setup.py').code | |
[2012-02-15 08:59:02] [localhost] running: test -e setup.py | |
[2012-02-15 08:59:02] [localhost] finished: test -e setup.py (0.005s) | |
0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File "/Users/andy/sandboxes/zamboni/vendor/lib/python/pyes/es.py", line 252, in _query_call | |
response = self._send_request('GET', path, body, querystring_args) | |
File "/Users/andy/sandboxes/zamboni/vendor/lib/python/pyes/es.py", line 223, in _send_request | |
raise_if_error(response.status, decoded) | |
File "/Users/andy/sandboxes/zamboni/vendor/lib/python/pyes/convert_errors.py", line 59, in raise_if_error | |
raise pyes.exceptions.ElasticSearchException("Unknown exception type", status, result) | |
ElasticSearchException: Unknown exception type | |
{u'hits': {u'hits': [], u'total': 232, u'max_score': None}, u'_shards': {u'successful': 0, u'failed': 5, u'total': 5, u'failures': [{u'status': 500, u'reason': u'ElasticSearchParseException[failed to parse / load source]; nested: IllegalArgumentException[docID must be >= 0 and < maxDoc=1 (got docID=46)]; '}, {u'status': 500, u'reason': u'ElasticSearchParseException[failed to parse / load source]; nested: IllegalArgumentException[docID must be >= 0 and < maxDoc=2 (go |