-
Antoine R. Dumont authored
This ensures the deposit checks in the elastic infra (using azure objstorage) is working. There is currently no way to prevent the content-encoding from being detected and stored in the blobstorage (various tryouts have been tested to no avail). That content-encoding, is then preventing the checking/reading to work (failing [2]). Following the documentation, a workaround has been implemented to reset a posteriori the content-encoding [1]. It's not proper but, from repl experimentation, it's working which is better than the actual failure. [1] https://learn.microsoft.com/en-us/azure/storage/blobs/storage-blob-properties-metadata-python [2] ``` HttpResponseError: ('Received response with content-encoding: gzip, but failed to decode it.', error('Error -3 while decompressing data: incorrect header check')) ``` Refs. swh/infra/sysadm-environment#5129
Antoine R. Dumont authoredThis ensures the deposit checks in the elastic infra (using azure objstorage) is working. There is currently no way to prevent the content-encoding from being detected and stored in the blobstorage (various tryouts have been tested to no avail). That content-encoding, is then preventing the checking/reading to work (failing [2]). Following the documentation, a workaround has been implemented to reset a posteriori the content-encoding [1]. It's not proper but, from repl experimentation, it's working which is better than the actual failure. [1] https://learn.microsoft.com/en-us/azure/storage/blobs/storage-blob-properties-metadata-python [2] ``` HttpResponseError: ('Received response with content-encoding: gzip, but failed to decode it.', error('Error -3 while decompressing data: incorrect header check')) ``` Refs. swh/infra/sysadm-environment#5129
[mypy]
namespace_packages = True
warn_unused_ignores = True
# support for django magic: https://github.com/typeddjango/django-stubs
plugins = mypy_django_plugin.main
[mypy.plugins.django-stubs]
django_settings_module = swh.deposit.settings.testing
# 3rd party libraries without stubs (yet)
[mypy-celery.*]
ignore_missing_imports = True
[mypy-iso8601.*]
ignore_missing_imports = True
[mypy-pkg_resources.*]
ignore_missing_imports = True
[mypy-psycopg2.*]
ignore_missing_imports = True
[mypy-pytest.*]
ignore_missing_imports = True
[tenacity.*]
ignore_missing_imports = True
[mypy-rest_framework.*]
ignore_missing_imports = True
[mypy-xmlschema.*]
ignore_missing_imports = True
[mypy-xmltodict.*]
ignore_missing_imports = True
[mypy-swh.loader.tar.*]
ignore_missing_imports = True
[mypy-swh.storage.*]
ignore_missing_imports = True
[mypy-storages.*]
ignore_missing_imports = True
[mypy-azure.*]
ignore_missing_imports = True