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

Cache unauthenticated GET/HEAD requests for one hour. #289

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Make the cache maxage configurable via settings

e708441
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Open

Cache unauthenticated GET/HEAD requests for one hour. #289

Make the cache maxage configurable via settings
e708441
Select commit
Loading
Failed to load commit list.
GitHub Actions / Test Results failed May 30, 2024 in 0s

63 fail, 25 skipped, 5 393 pass in 28m 56s

5 481 tests  ±0   5 393 ✅ ±0   28m 56s ⏱️ + 1m 13s
    1 suites ±0      25 💤 ±0 
    1 files   ±0      63 ❌ ±0 

Results for commit e708441. ± Comparison against earlier commit 71cafc0.

Annotations

Check warning on line 297 in src/olympia/addons/tests/test_commands.py

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_tag_added_for_is_dynamic_theme (src.olympia.addons.tests.test_commands.TestAddDynamicThemeTagForThemeApiCommand) failed

src/test_report.xml [took 0s]
Raw output
IntegrityError: (1062, "Duplicate entry '67637' for key 'webext_permissions.file_id'")
src/olympia/addons/tests/test_commands.py:302: in test_tag_added_for_is_dynamic_theme
    permissions=['theme'])
/usr/local/lib/python2.7/site-packages/django/db/models/manager.py:85: in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
/usr/local/lib/python2.7/site-packages/django/db/models/query.py:394: in create
    obj.save(force_insert=True, using=self.db)
src/olympia/amo/models.py:340: in save
    return super(SaveUpdateMixin, self).save(**kwargs)
/usr/local/lib/python2.7/site-packages/django/db/models/base.py:808: in save
    force_update=force_update, update_fields=update_fields)
/usr/local/lib/python2.7/site-packages/django/db/models/base.py:838: in save_base
    updated = self._save_table(raw, cls, force_insert, force_update, using, update_fields)
/usr/local/lib/python2.7/site-packages/django/db/models/base.py:924: in _save_table
    result = self._do_insert(cls._base_manager, using, fields, update_pk, raw)
/usr/local/lib/python2.7/site-packages/django/db/models/base.py:963: in _do_insert
    using=using, raw=raw)
/usr/local/lib/python2.7/site-packages/django/db/models/manager.py:85: in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
/usr/local/lib/python2.7/site-packages/django/db/models/query.py:1079: in _insert
    return query.get_compiler(using=using).execute_sql(return_id)
/usr/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py:1112: in execute_sql
    cursor.execute(sql, params)
/usr/local/lib/python2.7/site-packages/raven/contrib/django/client.py:127: in execute
    return real_execute(self, sql, params)
/usr/local/lib/python2.7/site-packages/django/db/backends/utils.py:64: in execute
    return self.cursor.execute(sql, params)
/usr/local/lib/python2.7/site-packages/django/db/utils.py:94: in __exit__
    six.reraise(dj_exc_type, dj_exc_value, traceback)
/usr/local/lib/python2.7/site-packages/django/db/backends/utils.py:64: in execute
    return self.cursor.execute(sql, params)
/usr/local/lib/python2.7/site-packages/django/db/backends/mysql/base.py:101: in execute
    return self.cursor.execute(query, args)
/usr/local/lib/python2.7/site-packages/MySQLdb/cursors.py:250: in execute
    self.errorhandler(self, exc, value)
/usr/local/lib/python2.7/site-packages/MySQLdb/connections.py:50: in defaulterrorhandler
    raise errorvalue
E   IntegrityError: (1062, "Duplicate entry '67637' for key 'webext_permissions.file_id'")

Check warning on line 163 in src/olympia/addons/tests/test_indexers.py

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_extract_attributes (src.olympia.addons.tests.test_indexers.TestAddonIndexer) failed

src/test_report.xml [took 0s]
Raw output
AssertionError: assert set(['app', '...utions', ...]) == set(['app', 'a...utions', ...])   Extra items in the left set:   'requires_sensitive_data_access'   Full diff:   set(['app',   'average_daily_users',   'bayesian_rating',   'boost',...      ...Full output truncated (116 lines hidden), use '-vv' to show
src/olympia/addons/tests/test_indexers.py:170: in test_extract_attributes
    assert set(extracted.keys()) == set(
E   AssertionError: assert set(['app', '...utions', ...]) == set(['app', 'a...utions', ...])
E     Extra items in the left set:
E     'requires_sensitive_data_access'
E     Full diff:
E     set(['app',
E     'average_daily_users',
E     'bayesian_rating',
E     'boost',...
E     
E     ...Full output truncated (116 lines hidden), use '-vv' to show

Check warning on line 250 in src/olympia/addons/tests/test_indexers.py

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_extract_version_and_files (src.olympia.addons.tests.test_indexers.TestAddonIndexer) failed

src/test_report.xml [took 0s]
Raw output
IntegrityError: (1062, "Duplicate entry '82185' for key 'webext_permissions.file_id'")
src/olympia/addons/tests/test_indexers.py:262: in test_extract_version_and_files
    permissions=['bookmarks', 'random permission']
/usr/local/lib/python2.7/site-packages/django/db/models/manager.py:85: in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
/usr/local/lib/python2.7/site-packages/django/db/models/query.py:394: in create
    obj.save(force_insert=True, using=self.db)
src/olympia/amo/models.py:340: in save
    return super(SaveUpdateMixin, self).save(**kwargs)
/usr/local/lib/python2.7/site-packages/django/db/models/base.py:808: in save
    force_update=force_update, update_fields=update_fields)
/usr/local/lib/python2.7/site-packages/django/db/models/base.py:838: in save_base
    updated = self._save_table(raw, cls, force_insert, force_update, using, update_fields)
/usr/local/lib/python2.7/site-packages/django/db/models/base.py:924: in _save_table
    result = self._do_insert(cls._base_manager, using, fields, update_pk, raw)
/usr/local/lib/python2.7/site-packages/django/db/models/base.py:963: in _do_insert
    using=using, raw=raw)
/usr/local/lib/python2.7/site-packages/django/db/models/manager.py:85: in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
/usr/local/lib/python2.7/site-packages/django/db/models/query.py:1079: in _insert
    return query.get_compiler(using=using).execute_sql(return_id)
/usr/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py:1112: in execute_sql
    cursor.execute(sql, params)
/usr/local/lib/python2.7/site-packages/raven/contrib/django/client.py:127: in execute
    return real_execute(self, sql, params)
/usr/local/lib/python2.7/site-packages/django/db/backends/utils.py:64: in execute
    return self.cursor.execute(sql, params)
/usr/local/lib/python2.7/site-packages/django/db/utils.py:94: in __exit__
    six.reraise(dj_exc_type, dj_exc_value, traceback)
/usr/local/lib/python2.7/site-packages/django/db/backends/utils.py:64: in execute
    return self.cursor.execute(sql, params)
/usr/local/lib/python2.7/site-packages/django/db/backends/mysql/base.py:101: in execute
    return self.cursor.execute(query, args)
/usr/local/lib/python2.7/site-packages/MySQLdb/cursors.py:250: in execute
    self.errorhandler(self, exc, value)
/usr/local/lib/python2.7/site-packages/MySQLdb/connections.py:50: in defaulterrorhandler
    raise errorvalue
E   IntegrityError: (1062, "Duplicate entry '82185' for key 'webext_permissions.file_id'")

Check warning on line 90 in src/olympia/addons/tests/test_indexers.py

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_mapping (src.olympia.addons.tests.test_indexers.TestAddonIndexer) failed

src/test_report.xml [took 0s]
Raw output
AssertionError: assert set(['app', '...utions', ...]) == set(['app', 'a...utions', ...])   Extra items in the left set:   'requires_sensitive_data_access'   Full diff:   set(['app',   'average_daily_users',   'bayesian_rating',   'boost',...      ...Full output truncated (117 lines hidden), use '-vv' to show
src/olympia/addons/tests/test_indexers.py:99: in test_mapping
    assert set(mapping_properties.keys()) == set(self.expected_fields())
E   AssertionError: assert set(['app', '...utions', ...]) == set(['app', 'a...utions', ...])
E     Extra items in the left set:
E     'requires_sensitive_data_access'
E     Full diff:
E     set(['app',
E     'average_daily_users',
E     'bayesian_rating',
E     'boost',...
E     
E     ...Full output truncated (117 lines hidden), use '-vv' to show

Check warning on line 546 in src/olympia/addons/tests/test_serializers.py

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_webextension (src.olympia.addons.tests.test_serializers.TestAddonSerializerOutput) failed

src/test_report.xml [took 0s]
Raw output
IntegrityError: (1062, "Duplicate entry '96963' for key 'webext_permissions.file_id'")
src/olympia/addons/tests/test_serializers.py:552: in test_webextension
    permissions=['bookmarks', 'random permission']
/usr/local/lib/python2.7/site-packages/django/db/models/manager.py:85: in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
/usr/local/lib/python2.7/site-packages/django/db/models/query.py:394: in create
    obj.save(force_insert=True, using=self.db)
src/olympia/amo/models.py:340: in save
    return super(SaveUpdateMixin, self).save(**kwargs)
/usr/local/lib/python2.7/site-packages/django/db/models/base.py:808: in save
    force_update=force_update, update_fields=update_fields)
/usr/local/lib/python2.7/site-packages/django/db/models/base.py:838: in save_base
    updated = self._save_table(raw, cls, force_insert, force_update, using, update_fields)
/usr/local/lib/python2.7/site-packages/django/db/models/base.py:924: in _save_table
    result = self._do_insert(cls._base_manager, using, fields, update_pk, raw)
/usr/local/lib/python2.7/site-packages/django/db/models/base.py:963: in _do_insert
    using=using, raw=raw)
/usr/local/lib/python2.7/site-packages/django/db/models/manager.py:85: in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
/usr/local/lib/python2.7/site-packages/django/db/models/query.py:1079: in _insert
    return query.get_compiler(using=using).execute_sql(return_id)
/usr/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py:1112: in execute_sql
    cursor.execute(sql, params)
/usr/local/lib/python2.7/site-packages/raven/contrib/django/client.py:127: in execute
    return real_execute(self, sql, params)
/usr/local/lib/python2.7/site-packages/django/db/backends/utils.py:64: in execute
    return self.cursor.execute(sql, params)
/usr/local/lib/python2.7/site-packages/django/db/utils.py:94: in __exit__
    six.reraise(dj_exc_type, dj_exc_value, traceback)
/usr/local/lib/python2.7/site-packages/django/db/backends/utils.py:64: in execute
    return self.cursor.execute(sql, params)
/usr/local/lib/python2.7/site-packages/django/db/backends/mysql/base.py:101: in execute
    return self.cursor.execute(query, args)
/usr/local/lib/python2.7/site-packages/MySQLdb/cursors.py:250: in execute
    self.errorhandler(self, exc, value)
/usr/local/lib/python2.7/site-packages/MySQLdb/connections.py:50: in defaulterrorhandler
    raise errorvalue
E   IntegrityError: (1062, "Duplicate entry '96963' for key 'webext_permissions.file_id'")

Check warning on line 1076 in src/olympia/addons/tests/test_serializers.py

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_file_webext_permissions (src.olympia.addons.tests.test_serializers.TestVersionSerializerOutput) failed

src/test_report.xml [took 0s]
Raw output
IntegrityError: (1062, "Duplicate entry '96969' for key 'webext_permissions.file_id'")
src/olympia/addons/tests/test_serializers.py:1087: in test_file_webext_permissions
    permissions=permissions, file=self.version.all_files[0])
/usr/local/lib/python2.7/site-packages/django/db/models/manager.py:85: in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
/usr/local/lib/python2.7/site-packages/django/db/models/query.py:394: in create
    obj.save(force_insert=True, using=self.db)
src/olympia/amo/models.py:340: in save
    return super(SaveUpdateMixin, self).save(**kwargs)
/usr/local/lib/python2.7/site-packages/django/db/models/base.py:808: in save
    force_update=force_update, update_fields=update_fields)
/usr/local/lib/python2.7/site-packages/django/db/models/base.py:838: in save_base
    updated = self._save_table(raw, cls, force_insert, force_update, using, update_fields)
/usr/local/lib/python2.7/site-packages/django/db/models/base.py:924: in _save_table
    result = self._do_insert(cls._base_manager, using, fields, update_pk, raw)
/usr/local/lib/python2.7/site-packages/django/db/models/base.py:963: in _do_insert
    using=using, raw=raw)
/usr/local/lib/python2.7/site-packages/django/db/models/manager.py:85: in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
/usr/local/lib/python2.7/site-packages/django/db/models/query.py:1079: in _insert
    return query.get_compiler(using=using).execute_sql(return_id)
/usr/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py:1112: in execute_sql
    cursor.execute(sql, params)
/usr/local/lib/python2.7/site-packages/raven/contrib/django/client.py:127: in execute
    return real_execute(self, sql, params)
/usr/local/lib/python2.7/site-packages/django/db/backends/utils.py:64: in execute
    return self.cursor.execute(sql, params)
/usr/local/lib/python2.7/site-packages/django/db/utils.py:94: in __exit__
    six.reraise(dj_exc_type, dj_exc_value, traceback)
/usr/local/lib/python2.7/site-packages/django/db/backends/utils.py:64: in execute
    return self.cursor.execute(sql, params)
/usr/local/lib/python2.7/site-packages/django/db/backends/mysql/base.py:101: in execute
    return self.cursor.execute(query, args)
/usr/local/lib/python2.7/site-packages/MySQLdb/cursors.py:250: in execute
    self.errorhandler(self, exc, value)
/usr/local/lib/python2.7/site-packages/MySQLdb/connections.py:50: in defaulterrorhandler
    raise errorvalue
E   IntegrityError: (1062, "Duplicate entry '96969' for key 'webext_permissions.file_id'")

Check warning on line 478 in src/olympia/addons/tests/test_views.py

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_external_urls (src.olympia.addons.tests.test_views.TestDetailPage) failed

src/test_report.xml [took 0s]
Raw output
AssertionError: assert 0 == 1  +  where 0 = [].length  +    where [] = [<html>](('aside a.home[href^="%s"]' % ''))  +      where '' = <LazySettings "None">.REDIRECT_URL
src/olympia/addons/tests/test_views.py:483: in test_external_urls
    assert doc(
E   AssertionError: assert 0 == 1
E    +  where 0 = [].length
E    +    where [] = [<html>](('aside a.home[href^="%s"]' % ''))
E    +      where '' = <LazySettings "None">.REDIRECT_URL

Check warning on line 3454 in src/olympia/addons/tests/test_views.py

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_cache_control (src.olympia.addons.tests.test_views.TestStaticCategoryView) failed

src/test_report.xml [took 0s]
Raw output
AssertionError: assert 'max-age=3600' == 'max-age=21600'   - max-age=3600   ?         ^   + max-age=21600   ?         ^^
src/olympia/addons/tests/test_views.py:3458: in test_cache_control
    assert response['cache-control'] == 'max-age=21600'
E   AssertionError: assert 'max-age=3600' == 'max-age=21600'
E     - max-age=3600
E     ?         ^
E     + max-age=21600
E     ?         ^^

Check warning on line 53 in src/olympia/amo/tests/test_fields.py

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_db_field_properties (src.olympia.amo.tests.test_fields.TestPositiveAutoField) failed

src/test_report.xml [took 0s]
Raw output
AssertionError: assert 'int unsigned' == 'int(10) unsigned'   - int unsigned   + int(10) unsigned   ?    ++++
src/olympia/amo/tests/test_fields.py:64: in test_db_field_properties
    assert column_type == 'int(10) unsigned'
E   AssertionError: assert 'int unsigned' == 'int(10) unsigned'
E     - int unsigned
E     + int(10) unsigned
E     ?    ++++

Check warning on line 0 in <string>

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_signer (src.olympia.amo.tests.test_monitor.TestMonitor) failed

src/test_report.xml [took 0s]
Raw output
AssertionError: assert "Failed to ch...not known',))" == ''   - Failed to chat with signing service: HTTPConnectionPool(host='autograph', port=8000): Max retries exceeded with url: /__heartbeat__ (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fdb8e66b890>: Failed to establish a new connection: [Errno -2] Name or service not known',))
<string>:3: in wrapper
    ???
src/olympia/amo/tests/test_monitor.py:74: in test_signer
    assert status == ''
E   AssertionError: assert "Failed to ch...not known',))" == ''
E     - Failed to chat with signing service: HTTPConnectionPool(host='autograph', port=8000): Max retries exceeded with url: /__heartbeat__ (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fdb8e66b890>: Failed to establish a new connection: [Errno -2] Name or service not known',))

Check warning on line 39 in src/olympia/amo/tests/test_redirects.py

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_parameters (src.olympia.amo.tests.test_redirects.TestRedirects) failed

src/test_report.xml [took 0s]
Raw output
UndefinedError: 'django.core.handlers.wsgi.WSGIRequest object' has no attribute 'user'
src/olympia/amo/tests/test_redirects.py:44: in test_parameters
    r = self.client.get(url, follow=True)
/usr/local/lib/python2.7/site-packages/django/test/client.py:538: in get
    response = self._handle_redirects(response, **extra)
/usr/local/lib/python2.7/site-packages/django/test/client.py:725: in _handle_redirects
    response = self.get(path, QueryDict(url.query), follow=False, **extra)
/usr/local/lib/python2.7/site-packages/django/test/client.py:536: in get
    **extra)
/usr/local/lib/python2.7/site-packages/django/test/client.py:340: in get
    return self.generic('GET', path, secure=secure, **r)
/usr/local/lib/python2.7/site-packages/django/test/client.py:416: in generic
    return self.request(**r)
/usr/local/lib/python2.7/site-packages/django/test/client.py:483: in request
    response = self.handler(environ)
/usr/local/lib/python2.7/site-packages/django/test/client.py:144: in __call__
    response = self.get_response(request)
/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py:124: in get_response
    response = self._middleware_chain(request)
/usr/local/lib/python2.7/site-packages/django/core/handlers/exception.py:43: in inner
    response = response_for_exception(request, exc)
/usr/local/lib/python2.7/site-packages/django/core/handlers/exception.py:93: in response_for_exception
    response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())
/usr/local/lib/python2.7/site-packages/django/core/handlers/exception.py:143: in handle_uncaught_exception
    return callback(request, **param_dict)
src/olympia/amo/views.py:94: in handler500
    return render(request, 'amo/500.html', status=500)
src/olympia/amo/utils.py:63: in render
    rendered = loader.render_to_string(template, ctx, request=request)
/usr/local/lib/python2.7/site-packages/django/template/loader.py:68: in render_to_string
    return template.render(context, request)
/usr/local/lib/python2.7/site-packages/django_jinja/backend.py:106: in render
    return mark_safe(self.template.render(context))
conftest.py:89: in instrumented_render
    return old_render(self, *args, **kwargs)
/usr/local/lib/python2.7/site-packages/jinja2/environment.py:1008: in render
    return self.environment.handle_exception(exc_info, True)
/usr/local/lib/python2.7/site-packages/jinja2/environment.py:780: in handle_exception
    reraise(exc_type, exc_value, tb)
src/olympia/amo/templates/amo/500.html:1: in top-level template code
    {% extends "base_side_categories.html" %}
src/olympia/templates/base_side_categories.html:1: in top-level template code
    {% extends "base.html" %}
src/olympia/templates/base.html:40: in top-level template code
    {% if request.user.is_authenticated %}
/usr/local/lib/python2.7/site-packages/jinja2/environment.py:430: in getattr
    return getattr(obj, attribute)
E   UndefinedError: 'django.core.handlers.wsgi.WSGIRequest object' has no attribute 'user'

Check warning on line 33 in src/olympia/amo/tests/test_settings.py

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_raven_release_config (src.olympia.amo.tests.test_settings) failed

src/test_report.xml [took 0s]
Raw output
TypeError: object of type 'NoneType' has no len()
src/olympia/amo/tests/test_settings.py:41: in test_raven_release_config
    assert len(get_raven_release()) == 40
E   TypeError: object of type 'NoneType' has no len()

Check warning on line 285 in src/olympia/amo/tests/test_url_prefix.py

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_outgoing_url_query_params (src.olympia.amo.tests.test_url_prefix) failed

src/test_report.xml [took 0s]
Raw output
AssertionError: http://xx.com?q=1&v=2 assert False  +  where False = <built-in method endswith of str object at 0x7fdb96ed1430>('http%3A//xx.com%3Fq=1&v=2')  +    where <built-in method endswith of str object at 0x7fdb96ed1430> = 'http://xx.com?q=1&v=2'.endswith
src/olympia/amo/tests/test_url_prefix.py:289: in test_outgoing_url_query_params
    assert fixed.endswith('http%3A//xx.com%3Fq=1&v=2'), fixed
E   AssertionError: http://xx.com?q=1&v=2
E   assert False
E    +  where False = <built-in method endswith of str object at 0x7fdb96ed1430>('http%3A//xx.com%3Fq=1&v=2')
E    +    where <built-in method endswith of str object at 0x7fdb96ed1430> = 'http://xx.com?q=1&v=2'.endswith

Check warning on line 300 in src/olympia/amo/tests/test_url_prefix.py

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_outgoing_url_javascript_scheme (src.olympia.amo.tests.test_url_prefix) failed

src/test_report.xml [took 0s]
Raw output
AssertionError: assert 'javascript:/...ocation.href)' == '/'   - javascript://addons.mozilla.org/%0Aalert(location.href)   + /
src/olympia/amo/tests/test_url_prefix.py:304: in test_outgoing_url_javascript_scheme
    assert fixed == '/'
E   AssertionError: assert 'javascript:/...ocation.href)' == '/'
E     - javascript://addons.mozilla.org/%0Aalert(location.href)
E     + /

Check warning on line 48 in src/olympia/api/tests/test_middleware.py

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_settings (src.olympia.api.tests.test_middleware.TestGzipMiddleware) failed

src/test_report.xml [took 0s]
Raw output
AssertionError: assert 'olympia.api....estMiddleware' == 'olympia.api.m...areForAPIOnly'   - olympia.api.middleware.IdentifyAPIRequestMiddleware   + olympia.api.middleware.GZipMiddlewareForAPIOnly
src/olympia/api/tests/test_middleware.py:56: in test_settings
    assert (
E   AssertionError: assert 'olympia.api....estMiddleware' == 'olympia.api.m...areForAPIOnly'
E     - olympia.api.middleware.IdentifyAPIRequestMiddleware
E     + olympia.api.middleware.GZipMiddlewareForAPIOnly

Check warning on line 18 in src/olympia/core/tests/test_certifi.py

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_no_certificate_errors_aws (src.olympia.core.tests.test_certifi.TestCertifi) failed

src/test_report.xml [took 0s]
Raw output
ConnectionError: Connection refused: GET https://s3.amazonaws.com/
src/olympia/core/tests/test_certifi.py:20: in test_no_certificate_errors_aws
    resp = requests.get('https://s3.amazonaws.com/', verify=True)
/usr/local/lib/python2.7/site-packages/requests/api.py:76: in get
    return request('get', url, params=params, **kwargs)
/usr/local/lib/python2.7/site-packages/requests/api.py:61: in request
    return session.request(method=method, url=url, **kwargs)
/usr/local/lib/python2.7/site-packages/requests/sessions.py:542: in request
    resp = self.send(prep, **send_kwargs)
/usr/local/lib/python2.7/site-packages/raven/breadcrumbs.py:326: in send
    resp = real_send(self, request, *args, **kwargs)
/usr/local/lib/python2.7/site-packages/requests/sessions.py:655: in send
    r = adapter.send(request, **kwargs)
/usr/local/lib/python2.7/site-packages/responses.py:572: in unbound_on_send
    return self._on_request(adapter, request, *a, **kwargs)
/usr/local/lib/python2.7/site-packages/responses.py:543: in _on_request
    raise response
E   ConnectionError: Connection refused: GET https://s3.amazonaws.com/

Check warning on line 22 in src/olympia/core/tests/test_certifi.py

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_no_certificate_errors_google (src.olympia.core.tests.test_certifi.TestCertifi) failed

src/test_report.xml [took 0s]
Raw output
ConnectionError: Connection refused: GET https://www.google.com/
src/olympia/core/tests/test_certifi.py:24: in test_no_certificate_errors_google
    resp = requests.get('https://www.google.com', verify=True)
/usr/local/lib/python2.7/site-packages/requests/api.py:76: in get
    return request('get', url, params=params, **kwargs)
/usr/local/lib/python2.7/site-packages/requests/api.py:61: in request
    return session.request(method=method, url=url, **kwargs)
/usr/local/lib/python2.7/site-packages/requests/sessions.py:542: in request
    resp = self.send(prep, **send_kwargs)
/usr/local/lib/python2.7/site-packages/raven/breadcrumbs.py:326: in send
    resp = real_send(self, request, *args, **kwargs)
/usr/local/lib/python2.7/site-packages/requests/sessions.py:655: in send
    r = adapter.send(request, **kwargs)
/usr/local/lib/python2.7/site-packages/responses.py:572: in unbound_on_send
    return self._on_request(adapter, request, *a, **kwargs)
/usr/local/lib/python2.7/site-packages/responses.py:543: in _on_request
    raise response
E   ConnectionError: Connection refused: GET https://www.google.com/

Check warning on line 491 in src/olympia/devhub/tests/test_tasks.py

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_run_linter_use_temporary_file (src.olympia.devhub.tests.test_tasks.TestRunAddonsLinter) failed

src/test_report.xml [took 3s]
Raw output
AssertionError: assert 25 == 45
src/olympia/devhub/tests/test_tasks.py:513: in test_run_linter_use_temporary_file
    assert result['warnings'] == 45
E   AssertionError: assert 25 == 45

Check warning on line 551 in src/olympia/devhub/tests/test_tasks.py

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_amo_validator_addons_linter_error (src.olympia.devhub.tests.test_tasks.TestValidateFilePath) failed

src/test_report.xml [took 0s]
Raw output
AssertionError: assert not 1
src/olympia/devhub/tests/test_tasks.py:560: in test_amo_validator_addons_linter_error
    assert not result['warnings']
E   AssertionError: assert not 1

Check warning on line 543 in src/olympia/devhub/tests/test_tasks.py

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_amo_validator_addons_linter_success (src.olympia.devhub.tests.test_tasks.TestValidateFilePath) failed

src/test_report.xml [took 0s]
Raw output
AssertionError: assert not 1
src/olympia/devhub/tests/test_tasks.py:550: in test_amo_validator_addons_linter_success
    assert not result['warnings']
E   AssertionError: assert not 1

Check warning on line 597 in src/olympia/devhub/tests/test_tasks.py

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_new_webextension_is_not_annotated (src.olympia.devhub.tests.test_tasks.TestWebextensionIncompatibilities) failed

src/test_report.xml [took 1s]
Raw output
AssertionError: assert 1 == 0
src/olympia/devhub/tests/test_tasks.py:616: in test_new_webextension_is_not_annotated
    assert validation['warnings'] == 0
E   AssertionError: assert 1 == 0

Check warning on line 580 in src/olympia/devhub/tests/test_tasks.py

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_webextension_upgrade_is_annotated (src.olympia.devhub.tests.test_tasks.TestWebextensionIncompatibilities) failed

src/test_report.xml [took 0s]
Raw output
AssertionError: assert 2 == 1
src/olympia/devhub/tests/test_tasks.py:595: in test_webextension_upgrade_is_annotated
    assert upload.processed_validation['warnings'] == 1
E   AssertionError: assert 2 == 1

Check warning on line 618 in src/olympia/devhub/tests/test_tasks.py

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_webextension_webext_to_webext_not_annotated (src.olympia.devhub.tests.test_tasks.TestWebextensionIncompatibilities) failed

src/test_report.xml [took 1s]
Raw output
AssertionError: assert 1 == 0
src/olympia/devhub/tests/test_tasks.py:635: in test_webextension_webext_to_webext_not_annotated
    assert validation['warnings'] == 0
E   AssertionError: assert 1 == 0

Check warning on line 802 in src/olympia/devhub/tests/test_tasks.py

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_submit_webextension (src.olympia.devhub.tests.test_tasks.TestLegacyAddonRestrictions) failed

src/test_report.xml [took 0s]
Raw output
AssertionError: assert [{'descriptio...&#34;.', ...}] == []   Left contains more items, first extra item: {'description': ['The &#34;applications&#34; property in the manifest is deprecated and will no longer be accepted in ...PPLICATIONS_DEPRECATED'], 'message': 'Use &#34;browser_specific_settings&#34; instead of &#34;applications&#34;.', ...}   Full diff:   + []   - [{u'description': [u'The &#34;applications&#34; property in the manifest is deprecated and will no longer be accepted in Manifest Version 3 and above.'],   -   u'file': u'manifest.json',   -   u'id': [u'APPLICATIONS_DEPRECATED'],   -   u'message': u'Use &#34;browser_specific_settings&#34; instead of &#34;applica...      ...Full output truncated (4 lines hidden), use '-vv' to show
src/olympia/devhub/tests/test_tasks.py:811: in test_submit_webextension
    assert upload.processed_validation['messages'] == []
E   AssertionError: assert [{'descriptio...&#34;.', ...}] == []
E     Left contains more items, first extra item: {'description': ['The &#34;applications&#34; property in the manifest is deprecated and will no longer be accepted in ...PPLICATIONS_DEPRECATED'], 'message': 'Use &#34;browser_specific_settings&#34; instead of &#34;applications&#34;.', ...}
E     Full diff:
E     + []
E     - [{u'description': [u'The &#34;applications&#34; property in the manifest is deprecated and will no longer be accepted in Manifest Version 3 and above.'],
E     -   u'file': u'manifest.json',
E     -   u'id': [u'APPLICATIONS_DEPRECATED'],
E     -   u'message': u'Use &#34;browser_specific_settings&#34; instead of &#34;applica...
E     
E     ...Full output truncated (4 lines hidden), use '-vv' to show

Check warning on line 47 in ../../usr/local/lib/python2.7/site-packages/waffle/testutils.py

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_submit_webextension_okay_after_legacy_unsupported (src.olympia.devhub.tests.test_tasks.TestLegacyAddonRestrictions) failed

src/test_report.xml [took 0s]
Raw output
AssertionError: assert [{'descriptio...&#34;.', ...}] == []   Left contains more items, first extra item: {'description': ['The &#34;applications&#34; property in the manifest is deprecated and will no longer be accepted in ...PPLICATIONS_DEPRECATED'], 'message': 'Use &#34;browser_specific_settings&#34; instead of &#34;applications&#34;.', ...}   Full diff:   + []   - [{u'description': [u'The &#34;applications&#34; property in the manifest is deprecated and will no longer be accepted in Manifest Version 3 and above.'],   -   u'file': u'manifest.json',   -   u'id': [u'APPLICATIONS_DEPRECATED'],   -   u'message': u'Use &#34;browser_specific_settings&#34; instead of &#34;applica...      ...Full output truncated (4 lines hidden), use '-vv' to show
/usr/local/lib/python2.7/site-packages/waffle/testutils.py:51: in _wrapped
    return func(*args, **kwargs)
src/olympia/devhub/tests/test_tasks.py:1133: in test_submit_webextension_okay_after_legacy_unsupported
    self.test_submit_webextension()
src/olympia/devhub/tests/test_tasks.py:811: in test_submit_webextension
    assert upload.processed_validation['messages'] == []
E   AssertionError: assert [{'descriptio...&#34;.', ...}] == []
E     Left contains more items, first extra item: {'description': ['The &#34;applications&#34; property in the manifest is deprecated and will no longer be accepted in ...PPLICATIONS_DEPRECATED'], 'message': 'Use &#34;browser_specific_settings&#34; instead of &#34;applications&#34;.', ...}
E     Full diff:
E     + []
E     - [{u'description': [u'The &#34;applications&#34; property in the manifest is deprecated and will no longer be accepted in Manifest Version 3 and above.'],
E     -   u'file': u'manifest.json',
E     -   u'id': [u'APPLICATIONS_DEPRECATED'],
E     -   u'message': u'Use &#34;browser_specific_settings&#34; instead of &#34;applica...
E     
E     ...Full output truncated (4 lines hidden), use '-vv' to show