views: signposting: files: fix filename encoding issues for downloads #5979
Triggered via pull request
February 24, 2025 14:39
Status
Failure
Total duration
26m 10s
Artifacts
–
Annotations
4 errors and 22 warnings
Python / Tests (3.9, postgresql14, opensearch2):
tests/resources/serializers/test_signposting_serializer.py#L1
Black format check
--- /home/runner/work/invenio-rdm-records/invenio-rdm-records/tests/resources/serializers/test_signposting_serializer.py 2025-02-24 14:39:45.533423+00:00
+++ /home/runner/work/invenio-rdm-records/invenio-rdm-records/tests/resources/serializers/test_signposting_serializer.py 2025-02-24 14:46:36.869752+00:00
@@ -18,26 +18,26 @@
@pytest.fixture
def full_record_to_dict_signposting(full_record_to_dict):
# raise ValueError("boom boom")
full_record_to_dict["files"] = {
- "count": 1,
- "enabled": True,
- "entries": {
- "testé.txt": {
- "checksum": "md5:e795abeef2c38de2b064be9f6364ceae",
- "ext": "txt",
- "id": "d22bde05-5a36-48a3-86a7-acf2c4bb6f64",
- "key": "testé.txt",
- "metadata": None,
- "mimetype": "text/plain",
- "size": 9,
- },
- },
- "order": [],
- "total_bytes": 9,
- }
+ "count": 1,
+ "enabled": True,
+ "entries": {
+ "testé.txt": {
+ "checksum": "md5:e795abeef2c38de2b064be9f6364ceae",
+ "ext": "txt",
+ "id": "d22bde05-5a36-48a3-86a7-acf2c4bb6f64",
+ "key": "testé.txt",
+ "metadata": None,
+ "mimetype": "text/plain",
+ "size": 9,
+ },
+ },
+ "order": [],
+ "total_bytes": 9,
+ }
return full_record_to_dict
def test_signposting_serializer_full(running_app, full_record_to_dict_signposting):
expected = {
@@ -141,11 +141,13 @@
],
},
]
}
- serialized = FAIRSignpostingProfileLvl2Serializer().dump_obj(full_record_to_dict_signposting)
+ serialized = FAIRSignpostingProfileLvl2Serializer().dump_obj(
+ full_record_to_dict_signposting
+ )
assert expected == serialized
def test_signposting_lvl1_serializer_full(running_app, full_record_to_dict_signposting):
|
Python / Tests (3.9, postgresql14, opensearch2)
Process completed with exit code 1.
|
Python / Tests (3.12, postgresql14, opensearch2):
tests/resources/serializers/test_signposting_serializer.py#L1
Black format check
--- /home/runner/work/invenio-rdm-records/invenio-rdm-records/tests/resources/serializers/test_signposting_serializer.py 2025-02-24 14:39:47.008233+00:00
+++ /home/runner/work/invenio-rdm-records/invenio-rdm-records/tests/resources/serializers/test_signposting_serializer.py 2025-02-24 14:46:46.937228+00:00
@@ -18,26 +18,26 @@
@pytest.fixture
def full_record_to_dict_signposting(full_record_to_dict):
# raise ValueError("boom boom")
full_record_to_dict["files"] = {
- "count": 1,
- "enabled": True,
- "entries": {
- "testé.txt": {
- "checksum": "md5:e795abeef2c38de2b064be9f6364ceae",
- "ext": "txt",
- "id": "d22bde05-5a36-48a3-86a7-acf2c4bb6f64",
- "key": "testé.txt",
- "metadata": None,
- "mimetype": "text/plain",
- "size": 9,
- },
- },
- "order": [],
- "total_bytes": 9,
- }
+ "count": 1,
+ "enabled": True,
+ "entries": {
+ "testé.txt": {
+ "checksum": "md5:e795abeef2c38de2b064be9f6364ceae",
+ "ext": "txt",
+ "id": "d22bde05-5a36-48a3-86a7-acf2c4bb6f64",
+ "key": "testé.txt",
+ "metadata": None,
+ "mimetype": "text/plain",
+ "size": 9,
+ },
+ },
+ "order": [],
+ "total_bytes": 9,
+ }
return full_record_to_dict
def test_signposting_serializer_full(running_app, full_record_to_dict_signposting):
expected = {
@@ -141,11 +141,13 @@
],
},
]
}
- serialized = FAIRSignpostingProfileLvl2Serializer().dump_obj(full_record_to_dict_signposting)
+ serialized = FAIRSignpostingProfileLvl2Serializer().dump_obj(
+ full_record_to_dict_signposting
+ )
assert expected == serialized
def test_signposting_lvl1_serializer_full(running_app, full_record_to_dict_signposting):
|
Python / Tests (3.12, postgresql14, opensearch2)
Process completed with exit code 1.
|
|
|
Python / Tests (3.9, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages/jsonresolver/contrib/jsonschema.py#L31
jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the https://github.com/python-jsonschema/referencing library, which provides more compliant referencing behavior as well as more flexible APIs for customization. A future release will remove RefResolver. Please file a feature request (on referencing) if you are missing an API for the kind of customization you need.
|
Python / Tests (3.9, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages/jsonresolver/contrib/jsonschema.py#L31
jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the https://github.com/python-jsonschema/referencing library, which provides more compliant referencing behavior as well as more flexible APIs for customization. A future release will remove RefResolver. Please file a feature request (on referencing) if you are missing an API for the kind of customization you need.
|
Python / Tests (3.9, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages/invenio_records/resolver.py#L14
jsonschema.exceptions.RefResolutionError is deprecated as of version 4.18.0. If you wish to catch potential reference resolution errors, directly catch referencing.exceptions.Unresolvable.
|
Python / Tests (3.9, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages/invenio_records/resolver.py#L14
jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the https://github.com/python-jsonschema/referencing library, which provides more compliant referencing behavior as well as more flexible APIs for customization. A future release will remove RefResolver. Please file a feature request (on referencing) if you are missing an API for the kind of customization you need.
|
Python / Tests (3.9, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages/invenio_records/resolver.py#L14
jsonschema.exceptions.RefResolutionError is deprecated as of version 4.18.0. If you wish to catch potential reference resolution errors, directly catch referencing.exceptions.Unresolvable.
|
Python / Tests (3.9, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages/invenio_records/resolver.py#L14
jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the https://github.com/python-jsonschema/referencing library, which provides more compliant referencing behavior as well as more flexible APIs for customization. A future release will remove RefResolver. Please file a feature request (on referencing) if you are missing an API for the kind of customization you need.
|
Python / Tests (3.9, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages/marshmallow_utils/fields/generated.py#L12
The '__version_info__' attribute is deprecated and will be removed in in a future version. Use feature detection or 'packaging.Version(importlib.metadata.version("marshmallow")).release' instead.
|
Python / Tests (3.9, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages/marshmallow_utils/fields/generated.py#L12
The '__version_info__' attribute is deprecated and will be removed in in a future version. Use feature detection or 'packaging.Version(importlib.metadata.version("marshmallow")).release' instead.
|
Python / Tests (3.9, postgresql14, opensearch2):
invenio_rdm_records/config.py#L15
Implicit imports (e.g., 'import idutils; idutils.function;') might be removed in the next major version. Please use explicit imports (e.g., 'from idutils import function;') instead.
|
Python / Tests (3.9, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages/marshmallow/utils.py#L361
`Field` should not be instantiated. Use `fields.Raw` or another field subclass instead.
|
Python / Tests (3.12, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/passlib/utils/__init__.py#L854
'crypt' is deprecated and slated for removal in Python 3.13
|
Python / Tests (3.12, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/jsonresolver/contrib/jsonschema.py#L31
jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the https://github.com/python-jsonschema/referencing library, which provides more compliant referencing behavior as well as more flexible APIs for customization. A future release will remove RefResolver. Please file a feature request (on referencing) if you are missing an API for the kind of customization you need.
|
Python / Tests (3.12, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/jsonresolver/contrib/jsonschema.py#L31
jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the https://github.com/python-jsonschema/referencing library, which provides more compliant referencing behavior as well as more flexible APIs for customization. A future release will remove RefResolver. Please file a feature request (on referencing) if you are missing an API for the kind of customization you need.
|
Python / Tests (3.12, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/invenio_records/resolver.py#L14
jsonschema.exceptions.RefResolutionError is deprecated as of version 4.18.0. If you wish to catch potential reference resolution errors, directly catch referencing.exceptions.Unresolvable.
|
Python / Tests (3.12, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/invenio_records/resolver.py#L14
jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the https://github.com/python-jsonschema/referencing library, which provides more compliant referencing behavior as well as more flexible APIs for customization. A future release will remove RefResolver. Please file a feature request (on referencing) if you are missing an API for the kind of customization you need.
|
Python / Tests (3.12, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/invenio_records/resolver.py#L14
jsonschema.exceptions.RefResolutionError is deprecated as of version 4.18.0. If you wish to catch potential reference resolution errors, directly catch referencing.exceptions.Unresolvable.
|
Python / Tests (3.12, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/invenio_records/resolver.py#L14
jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the https://github.com/python-jsonschema/referencing library, which provides more compliant referencing behavior as well as more flexible APIs for customization. A future release will remove RefResolver. Please file a feature request (on referencing) if you are missing an API for the kind of customization you need.
|
Python / Tests (3.12, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/fs/__init__.py#L4
Deprecated call to `pkg_resources.declare_namespace('fs')`.
Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
|
Python / Tests (3.12, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/fs/opener/__init__.py#L6
Deprecated call to `pkg_resources.declare_namespace('fs.opener')`.
Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
|
Python / Tests (3.12, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/pkg_resources/__init__.py#L2554
Deprecated call to `pkg_resources.declare_namespace('fs')`.
Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
|