Skip to content

refactor: Clean up DB sessions consistently #2239

refactor: Clean up DB sessions consistently

refactor: Clean up DB sessions consistently #2239

Triggered via pull request July 22, 2024 09:31
@AndreasAlbertQCAndreasAlbertQC
synchronize #702
Status Failure
Total duration 8m 7s
Artifacts

ci.yml

on: pull_request_target
Matrix: test_quetz
Fit to window
Zoom out
Zoom in

Annotations

24 errors and 10 warnings
test_quetz (ubuntu-latest, postgres, create-tables): quetz/tests/test_cli.py#L185
test_run_migrations sqlalchemy.exc.InternalError: (psycopg2.errors.InFailedSqlTransaction) current transaction is aborted, commands ignored until end of transaction block [SQL: SELECT pg_catalog.pg_class.relname FROM pg_catalog.pg_class JOIN pg_catalog.pg_namespace ON pg_catalog.pg_namespace.oid = pg_catalog.pg_class.relnamespace WHERE pg_catalog.pg_class.relname = %(table_name)s AND pg_catalog.pg_class.relkind = ANY (ARRAY[%(param_1)s, %(param_2)s, %(param_3)s, %(param_4)s, %(param_5)s]) AND pg_catalog.pg_table_is_visible(pg_catalog.pg_class.oid) AND pg_catalog.pg_namespace.nspname != %(nspname_1)s] [parameters: ***'table_name': 'alembic_version', 'param_1': 'r', 'param_2': 'p', 'param_3': 'f', 'param_4': 'v', 'param_5': 'm', 'nspname_1': 'pg_catalog'***] (Background on this error at: https://sqlalche.me/e/20/2j85)
test_quetz (ubuntu-latest, postgres, create-tables): quetz/tests/test_cli.py#L396
test_multi_head alembic.util.exc.CommandError: Can't locate revision identified by '3ba25f23fb7d'
test_quetz (ubuntu-latest, postgres, create-tables): quetz/tests/test_mirror.py#L737
test_mirror_initial_sync[repo_content0-expected_paths0] AssertionError: assert [] == ['http://mirr...ackages.json'] Right contains 2 more items, first extra item: 'http://mirror3_host/channeldata.json' Full diff: [ + , - 'http://mirror3_host/channeldata.json', - 'http://mirror3_host/linux-64/repodata_from_packages.json', ]
test_quetz (ubuntu-latest, postgres, create-tables): quetz/tests/test_mirror.py#L737
test_mirror_initial_sync[repo_content1-expected_paths1] AssertionError: assert [] == ['http://mirr...ackages.json'] Right contains 2 more items, first extra item: 'http://mirror3_host/channeldata.json' Full diff: [ + , - 'http://mirror3_host/channeldata.json', - 'http://mirror3_host/linux-64/repodata_from_packages.json', ]
test_quetz (ubuntu-latest, postgres, create-tables): quetz/tests/test_mirror.py#L737
test_mirror_initial_sync[repo_content2-expected_paths2] AssertionError: assert [] == ['http://mirr...neldata.json'] Right contains one more item: 'http://mirror3_host/channeldata.json' Full diff: - ['http://mirror3_host/channeldata.json'] + []
test_quetz (ubuntu-latest, postgres, create-tables): quetz/tests/test_mirror.py#L737
test_mirror_initial_sync[repo_content3-expected_paths3] AssertionError: assert [] == ['http://mirr...ackages.json'] Right contains 3 more items, first extra item: 'http://mirror3_host/channeldata.json' Full diff: [ + , - 'http://mirror3_host/channeldata.json', - 'http://mirror3_host/some-arch-1/repodata_from_packages.json', - 'http://mirror3_host/some-arch-2/repodata_from_packages.json', ]
test_quetz (ubuntu-latest, postgres, create-tables): quetz/tests/test_mirror.py#L964
test_repo_without_channeldata[-404-expected_archs0] IndexError: list index out of range
test_quetz (ubuntu-latest, postgres, create-tables): quetz/tests/test_mirror.py#L964
test_repo_without_channeldata[<html></html>-200-expected_archs1] IndexError: list index out of range
test_quetz (ubuntu-latest, postgres, create-tables): quetz/tests/test_mirror.py#L964
test_repo_without_channeldata[***-200-expected_archs2] IndexError: list index out of range
test_quetz (ubuntu-latest, postgres, create-tables): quetz/tests/test_mirror.py#L964
test_repo_without_channeldata[***"subdirs":["wonder-arch"], "packages":***-200-expected_archs3] IndexError: list index out of range
test_quetz (ubuntu-latest, postgres, use-migrations): quetz/tests/test_cli.py#L185
test_run_migrations sqlalchemy.exc.InternalError: (psycopg2.errors.InFailedSqlTransaction) current transaction is aborted, commands ignored until end of transaction block [SQL: SELECT pg_catalog.pg_class.relname FROM pg_catalog.pg_class JOIN pg_catalog.pg_namespace ON pg_catalog.pg_namespace.oid = pg_catalog.pg_class.relnamespace WHERE pg_catalog.pg_class.relname = %(table_name)s AND pg_catalog.pg_class.relkind = ANY (ARRAY[%(param_1)s, %(param_2)s, %(param_3)s, %(param_4)s, %(param_5)s]) AND pg_catalog.pg_table_is_visible(pg_catalog.pg_class.oid) AND pg_catalog.pg_namespace.nspname != %(nspname_1)s] [parameters: ***'table_name': 'alembic_version', 'param_1': 'r', 'param_2': 'p', 'param_3': 'f', 'param_4': 'v', 'param_5': 'm', 'nspname_1': 'pg_catalog'***] (Background on this error at: https://sqlalche.me/e/20/2j85)
test_quetz (ubuntu-latest, postgres, use-migrations): quetz/tests/test_cli.py#L396
test_multi_head alembic.util.exc.CommandError: Can't locate revision identified by '3ba25f23fb7d'
test_quetz (ubuntu-latest, postgres, use-migrations)
Process completed with exit code 1.
test_quetz (ubuntu-latest, sqlite, use-migrations)
The action 'Testing server' has timed out after 5 minutes.
test_quetz (ubuntu-latest, sqlite, create-tables): plugins/quetz_conda_suggest/tests/test_quetz_conda_suggest.py#L49
test_post_add_package_version sqlalchemy.exc.IntegrityError: (sqlite3.IntegrityError) UNIQUE constraint failed: quetz_conda_suggest_metadata.version_id [SQL: INSERT INTO quetz_conda_suggest_metadata (version_id, data) VALUES (?, ?)] [parameters: (<memory at 0x7f51a7426080>, '***"test-bin": "test-package"***')] (Background on this error at: https://sqlalche.me/e/20/gkpj)
test_quetz (ubuntu-latest, sqlite, create-tables): plugins/quetz_conda_suggest/tests/test_quetz_conda_suggest.py#L114
test_conda_suggest_endpoint_with_upload TypeError: 'generator' object does not support the context manager protocol
test_quetz (ubuntu-latest, sqlite, create-tables)
Tests for plugin ./plugins/quetz_conda_suggest failed!
test_quetz (ubuntu-latest, sqlite, create-tables): plugins/quetz_content_trust/tests/test_quetz_content_trust.py#L36
test_post_root_role_permissions[True-owner-201] TypeError: get_session() missing 1 required positional argument: 'config'
test_quetz (ubuntu-latest, sqlite, create-tables): plugins/quetz_content_trust/tests/test_quetz_content_trust.py#L46
test_post_root_role TypeError: get_session() missing 1 required positional argument: 'config'
test_quetz (ubuntu-latest, sqlite, create-tables): plugins/quetz_content_trust/tests/test_quetz_content_trust.py#L108
test_delegation_cascade_deletion TypeError: get_session() missing 1 required positional argument: 'config'
test_quetz (ubuntu-latest, sqlite, create-tables): plugins/quetz_content_trust/tests/test_quetz_content_trust.py#L129
test_overwrite_root_role TypeError: get_session() missing 1 required positional argument: 'config'
test_quetz (ubuntu-latest, sqlite, create-tables): plugins/quetz_content_trust/tests/test_quetz_content_trust.py#L155
test_get_root_role[True-member-200] TypeError: get_session() missing 1 required positional argument: 'config'
test_quetz (ubuntu-latest, sqlite, create-tables): plugins/quetz_content_trust/tests/test_quetz_content_trust.py#L155
test_get_root_role[True-maintainer-200] TypeError: get_session() missing 1 required positional argument: 'config'
test_quetz (ubuntu-latest, sqlite, create-tables): plugins/quetz_content_trust/tests/test_quetz_content_trust.py#L155
test_get_root_role[True-owner-200] TypeError: get_session() missing 1 required positional argument: 'config'
test_release
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-python@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
test_release
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v2, actions/setup-python@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
test_quetz (ubuntu-latest, postgres, create-tables)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
test_quetz (ubuntu-latest, postgres, create-tables)
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
test_quetz (ubuntu-latest, postgres, use-migrations)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
test_quetz (ubuntu-latest, postgres, use-migrations)
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
test_quetz (ubuntu-latest, sqlite, use-migrations)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
test_quetz (ubuntu-latest, sqlite, use-migrations)
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
test_quetz (ubuntu-latest, sqlite, create-tables)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
test_quetz (ubuntu-latest, sqlite, create-tables)
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/