Skip to content

fix(redirector): Redirect to download for non-previewable files #1172

fix(redirector): Redirect to download for non-previewable files

fix(redirector): Redirect to download for non-previewable files #1172

Triggered via pull request December 18, 2025 16:05
Status Failure
Total duration 6m 6s
Artifacts

tests.yml

on: pull_request
Matrix: Python
Fit to window
Zoom out
Zoom in

Annotations

7 errors
Python (3.9, postgresql14, opensearch2)
Process completed with exit code 1.
Python (3.9, postgresql14, opensearch2): site/cds_rdm/legacy/resolver.py#L0
pydocstyle-check /home/runner/work/cds-rdm/cds-rdm/site/cds_rdm/legacy/resolver.py:48 in public function `get_record_by_version`: D202: No blank lines allowed after function docstring (found 1)
Python (3.9, postgresql14, opensearch2): site/cds_rdm/legacy/redirector.py#L0
isort-check from sqlalchemy.orm.exc import NoResultFound from .errors import VersionNotFound -from .resolver import get_pid_by_legacy_recid, get_record_by_version, get_record_versions +from .resolver import ( + get_pid_by_legacy_recid, + get_record_by_version, + get_record_versions, +) HTTP_MOVED_PERMANENTLY = 301
Python (3.9, postgresql14, opensearch2): site/tests/legacy/test_redirector.py#L118
test_legacy_record_redirection assert 404 == 301 + where 404 = <WrapperTestResponse streamed [404 NOT FOUND]>.status_code
Python (3.12, postgresql14, opensearch2)
The strategy configuration was canceled because "Python._3_9_postgresql14_opensea" failed
Python (3.12, postgresql14, opensearch2)
The operation was canceled.
Python (3.12, postgresql14, opensearch2): site/tests/legacy/test_redirector.py#L118
test_legacy_record_redirection assert 404 == 301 + where 404 = <WrapperTestResponse streamed [404 NOT FOUND]>.status_code