refactor: Clean up DB sessions consistently #2232
Triggered via pull request
July 15, 2024 12:46
AndreasAlbertQC
synchronize
#702
Status
Failure
Total duration
6m 12s
Artifacts
–
ci.yml
on: pull_request_target
test_release
1m 48s
Matrix: test_quetz
Annotations
40 errors and 10 warnings
test_quetz (ubuntu-latest, postgres, create-tables):
quetz/tests/test_jobs.py#L641
test_post_new_job_from_plugin[quetz-dummyplugin:dummy_func-owner]
sqlalchemy.orm.exc.DetachedInstanceError: Instance <Task at 0x7fb3b5784620> is not bound to a Session; attribute refresh operation cannot proceed (Background on this error at: https://sqlalche.me/e/20/bhk3)
|
test_quetz (ubuntu-latest, postgres, create-tables):
quetz/tests/test_jobs.py#L641
test_post_new_job_from_plugin[quetz-dummyplugin:dummy_job-owner]
sqlalchemy.orm.exc.DetachedInstanceError: Instance <Task at 0x7fb3b61329f0> is not bound to a Session; attribute refresh operation cannot proceed (Background on this error at: https://sqlalche.me/e/20/bhk3)
|
test_quetz (ubuntu-latest, postgres, create-tables):
quetz/tests/test_jobs.py#L665
test_post_new_job_with_handler[owner]
sqlalchemy.orm.exc.DetachedInstanceError: Instance <Task at 0x7fb3b60f8fb0> is not bound to a Session; attribute refresh operation cannot proceed (Background on this error at: https://sqlalche.me/e/20/bhk3)
|
test_quetz (ubuntu-latest, postgres, create-tables):
quetz/tests/test_jobs.py#L897
test_run_action_handler
AssertionError: expected call not found.
Expected: mock(my_arg=1)
Actual: mock(dao=<quetz.dao.Dao object at 0x7fb3b6131d30>, my_arg=1)
pytest introspection follows:
Kwargs:
assert ***'dao': <quet..., 'my_arg': 1*** == ***'my_arg': 1***
Omitting 1 identical items, use -vv to show
Left contains 1 more item:
***'dao': <quetz.dao.Dao object at 0x7fb3b6131d30>***
Full diff:
- ***'my_arg': 1***
+ ***'dao': <quetz.dao.Dao object at 0x7fb3b6131d30>, 'my_arg': 1***
|
test_quetz (ubuntu-latest, postgres, create-tables):
quetz/tests/test_jobs.py#L1007
test_run_periodic_package_version_job[start_date0]
AssertionError: assert <TaskStatus.failed: 'failed'> == <TaskStatus.s...ss: 'success'>
- success
+ failed
|
test_quetz (ubuntu-latest, postgres, create-tables):
quetz/tests/test_jobs.py#L1007
test_run_periodic_package_version_job[None]
AssertionError: assert <TaskStatus.failed: 'failed'> == <TaskStatus.s...ss: 'success'>
- success
+ failed
|
test_quetz (ubuntu-latest, postgres, create-tables):
quetz/tests/test_mirror.py#L631
test_download_remote_file_in_parallel
AssertionError: assert ['http://host...st_file3.txt'] == ['http://host/test_file3.txt']
Left contains one more item: 'http://host/test_file3.txt'
Full diff:
- ['http://host/test_file3.txt']
+ ['http://host/test_file3.txt', 'http://host/test_file3.txt']
|
test_quetz (ubuntu-latest, postgres, create-tables):
quetz/tests/test_mirror.py#L734
test_mirror_initial_sync[repo_content0-expected_paths0]
sqlalchemy.orm.exc.DetachedInstanceError: Instance <Task at 0x7fb3b4266ae0> is not bound to a Session; attribute refresh operation cannot proceed (Background on this error at: https://sqlalche.me/e/20/bhk3)
|
test_quetz (ubuntu-latest, postgres, create-tables):
quetz/tests/test_mirror.py#L734
test_mirror_initial_sync[repo_content1-expected_paths1]
sqlalchemy.orm.exc.DetachedInstanceError: Instance <Task at 0x7fb3b55dd820> is not bound to a Session; attribute refresh operation cannot proceed (Background on this error at: https://sqlalche.me/e/20/bhk3)
|
test_quetz (ubuntu-latest, postgres, create-tables):
quetz/tests/test_mirror.py#L734
test_mirror_initial_sync[repo_content2-expected_paths2]
sqlalchemy.orm.exc.DetachedInstanceError: Instance <Task at 0x7fb3b486a300> is not bound to a Session; attribute refresh operation cannot proceed (Background on this error at: https://sqlalche.me/e/20/bhk3)
|
test_quetz (ubuntu-latest, sqlite, use-migrations):
quetz/tests/test_jobs.py#L641
test_post_new_job_from_plugin[quetz-dummyplugin:dummy_func-owner]
sqlalchemy.orm.exc.DetachedInstanceError: Instance <Task at 0x7f5478fcdd90> is not bound to a Session; attribute refresh operation cannot proceed (Background on this error at: https://sqlalche.me/e/20/bhk3)
|
test_quetz (ubuntu-latest, sqlite, use-migrations):
quetz/tests/test_jobs.py#L641
test_post_new_job_from_plugin[quetz-dummyplugin:dummy_job-owner]
sqlalchemy.orm.exc.DetachedInstanceError: Instance <Task at 0x7f54791967b0> is not bound to a Session; attribute refresh operation cannot proceed (Background on this error at: https://sqlalche.me/e/20/bhk3)
|
test_quetz (ubuntu-latest, sqlite, use-migrations):
quetz/tests/test_jobs.py#L665
test_post_new_job_with_handler[owner]
sqlalchemy.orm.exc.DetachedInstanceError: Instance <Task at 0x7f5478c73140> is not bound to a Session; attribute refresh operation cannot proceed (Background on this error at: https://sqlalche.me/e/20/bhk3)
|
test_quetz (ubuntu-latest, sqlite, use-migrations):
quetz/tests/test_jobs.py#L897
test_run_action_handler
AssertionError: expected call not found.
Expected: mock(my_arg=1)
Actual: mock(dao=<quetz.dao.Dao object at 0x7f546a071580>, my_arg=1)
pytest introspection follows:
Kwargs:
assert ***'dao': <quet..., 'my_arg': 1*** == ***'my_arg': 1***
Omitting 1 identical items, use -vv to show
Left contains 1 more item:
***'dao': <quetz.dao.Dao object at 0x7f546a071580>***
Full diff:
- ***'my_arg': 1***
+ ***'dao': <quetz.dao.Dao object at 0x7f546a071580>, 'my_arg': 1***
|
test_quetz (ubuntu-latest, sqlite, use-migrations):
quetz/tests/test_jobs.py#L1007
test_run_periodic_package_version_job[start_date0]
AssertionError: assert <TaskStatus.failed: 'failed'> == <TaskStatus.s...ss: 'success'>
- success
+ failed
|
test_quetz (ubuntu-latest, sqlite, use-migrations):
quetz/tests/test_jobs.py#L1007
test_run_periodic_package_version_job[None]
AssertionError: assert <TaskStatus.failed: 'failed'> == <TaskStatus.s...ss: 'success'>
- success
+ failed
|
test_quetz (ubuntu-latest, sqlite, use-migrations):
quetz/tests/test_mirror.py#L734
test_mirror_initial_sync[repo_content0-expected_paths0]
sqlalchemy.orm.exc.DetachedInstanceError: Instance <Task at 0x7f547b605b80> is not bound to a Session; attribute refresh operation cannot proceed (Background on this error at: https://sqlalche.me/e/20/bhk3)
|
test_quetz (ubuntu-latest, sqlite, use-migrations):
quetz/tests/test_mirror.py#L734
test_mirror_initial_sync[repo_content1-expected_paths1]
sqlalchemy.orm.exc.DetachedInstanceError: Instance <Task at 0x7f5473d5aea0> is not bound to a Session; attribute refresh operation cannot proceed (Background on this error at: https://sqlalche.me/e/20/bhk3)
|
test_quetz (ubuntu-latest, sqlite, use-migrations):
quetz/tests/test_mirror.py#L734
test_mirror_initial_sync[repo_content2-expected_paths2]
sqlalchemy.orm.exc.DetachedInstanceError: Instance <Task at 0x7f5479076750> is not bound to a Session; attribute refresh operation cannot proceed (Background on this error at: https://sqlalche.me/e/20/bhk3)
|
test_quetz (ubuntu-latest, sqlite, use-migrations):
quetz/tests/test_mirror.py#L734
test_mirror_initial_sync[repo_content3-expected_paths3]
sqlalchemy.orm.exc.DetachedInstanceError: Instance <Task at 0x7f5473cb9610> is not bound to a Session; attribute refresh operation cannot proceed (Background on this error at: https://sqlalche.me/e/20/bhk3)
|
test_quetz (ubuntu-latest, sqlite, create-tables):
quetz/tests/test_jobs.py#L641
test_post_new_job_from_plugin[quetz-dummyplugin:dummy_func-owner]
sqlalchemy.orm.exc.DetachedInstanceError: Instance <Task at 0x7fba38200fe0> is not bound to a Session; attribute refresh operation cannot proceed (Background on this error at: https://sqlalche.me/e/20/bhk3)
|
test_quetz (ubuntu-latest, sqlite, create-tables):
quetz/tests/test_jobs.py#L641
test_post_new_job_from_plugin[quetz-dummyplugin:dummy_job-owner]
sqlalchemy.orm.exc.DetachedInstanceError: Instance <Task at 0x7fba38164650> is not bound to a Session; attribute refresh operation cannot proceed (Background on this error at: https://sqlalche.me/e/20/bhk3)
|
test_quetz (ubuntu-latest, sqlite, create-tables):
quetz/tests/test_jobs.py#L665
test_post_new_job_with_handler[owner]
sqlalchemy.orm.exc.DetachedInstanceError: Instance <Task at 0x7fba33d4c440> is not bound to a Session; attribute refresh operation cannot proceed (Background on this error at: https://sqlalche.me/e/20/bhk3)
|
test_quetz (ubuntu-latest, sqlite, create-tables):
quetz/tests/test_jobs.py#L897
test_run_action_handler
AssertionError: expected call not found.
Expected: mock(my_arg=1)
Actual: mock(dao=<quetz.dao.Dao object at 0x7fba29431070>, my_arg=1)
pytest introspection follows:
Kwargs:
assert ***'dao': <quet..., 'my_arg': 1*** == ***'my_arg': 1***
Omitting 1 identical items, use -vv to show
Left contains 1 more item:
***'dao': <quetz.dao.Dao object at 0x7fba29431070>***
Full diff:
- ***'my_arg': 1***
+ ***'dao': <quetz.dao.Dao object at 0x7fba29431070>, 'my_arg': 1***
|
test_quetz (ubuntu-latest, sqlite, create-tables):
quetz/tests/test_jobs.py#L1007
test_run_periodic_package_version_job[start_date0]
AssertionError: assert <TaskStatus.failed: 'failed'> == <TaskStatus.s...ss: 'success'>
- success
+ failed
|
test_quetz (ubuntu-latest, sqlite, create-tables):
quetz/tests/test_jobs.py#L1007
test_run_periodic_package_version_job[None]
AssertionError: assert <TaskStatus.failed: 'failed'> == <TaskStatus.s...ss: 'success'>
- success
+ failed
|
test_quetz (ubuntu-latest, sqlite, create-tables):
quetz/tests/test_mirror.py#L734
test_mirror_initial_sync[repo_content0-expected_paths0]
sqlalchemy.orm.exc.DetachedInstanceError: Instance <Task at 0x7fba3130a630> is not bound to a Session; attribute refresh operation cannot proceed (Background on this error at: https://sqlalche.me/e/20/bhk3)
|
test_quetz (ubuntu-latest, sqlite, create-tables):
quetz/tests/test_mirror.py#L734
test_mirror_initial_sync[repo_content1-expected_paths1]
sqlalchemy.orm.exc.DetachedInstanceError: Instance <Task at 0x7fba38ac8440> is not bound to a Session; attribute refresh operation cannot proceed (Background on this error at: https://sqlalche.me/e/20/bhk3)
|
test_quetz (ubuntu-latest, sqlite, create-tables):
quetz/tests/test_mirror.py#L734
test_mirror_initial_sync[repo_content2-expected_paths2]
sqlalchemy.orm.exc.DetachedInstanceError: Instance <Task at 0x7fba28dfd6a0> is not bound to a Session; attribute refresh operation cannot proceed (Background on this error at: https://sqlalche.me/e/20/bhk3)
|
test_quetz (ubuntu-latest, sqlite, create-tables):
quetz/tests/test_mirror.py#L734
test_mirror_initial_sync[repo_content3-expected_paths3]
sqlalchemy.orm.exc.DetachedInstanceError: Instance <Task at 0x7fba31756e70> is not bound to a Session; attribute refresh operation cannot proceed (Background on this error at: https://sqlalche.me/e/20/bhk3)
|
test_quetz (ubuntu-latest, postgres, use-migrations):
quetz/tests/test_jobs.py#L641
test_post_new_job_from_plugin[quetz-dummyplugin:dummy_func-owner]
sqlalchemy.orm.exc.DetachedInstanceError: Instance <Task at 0x7f0a5db21af0> is not bound to a Session; attribute refresh operation cannot proceed (Background on this error at: https://sqlalche.me/e/20/bhk3)
|
test_quetz (ubuntu-latest, postgres, use-migrations):
quetz/tests/test_jobs.py#L641
test_post_new_job_from_plugin[quetz-dummyplugin:dummy_job-owner]
sqlalchemy.orm.exc.DetachedInstanceError: Instance <Task at 0x7f0a5f08fe90> is not bound to a Session; attribute refresh operation cannot proceed (Background on this error at: https://sqlalche.me/e/20/bhk3)
|
test_quetz (ubuntu-latest, postgres, use-migrations):
quetz/tests/test_jobs.py#L665
test_post_new_job_with_handler[owner]
sqlalchemy.orm.exc.DetachedInstanceError: Instance <Task at 0x7f0a5caa7890> is not bound to a Session; attribute refresh operation cannot proceed (Background on this error at: https://sqlalche.me/e/20/bhk3)
|
test_quetz (ubuntu-latest, postgres, use-migrations):
quetz/tests/test_jobs.py#L897
test_run_action_handler
AssertionError: expected call not found.
Expected: mock(my_arg=1)
Actual: mock(dao=<quetz.dao.Dao object at 0x7f0a5c8274d0>, my_arg=1)
pytest introspection follows:
Kwargs:
assert ***'dao': <quet..., 'my_arg': 1*** == ***'my_arg': 1***
Omitting 1 identical items, use -vv to show
Left contains 1 more item:
***'dao': <quetz.dao.Dao object at 0x7f0a5c8274d0>***
Full diff:
- ***'my_arg': 1***
+ ***'dao': <quetz.dao.Dao object at 0x7f0a5c8274d0>, 'my_arg': 1***
|
test_quetz (ubuntu-latest, postgres, use-migrations):
quetz/tests/test_jobs.py#L1007
test_run_periodic_package_version_job[start_date0]
AssertionError: assert <TaskStatus.failed: 'failed'> == <TaskStatus.s...ss: 'success'>
- success
+ failed
|
test_quetz (ubuntu-latest, postgres, use-migrations):
quetz/tests/test_jobs.py#L1007
test_run_periodic_package_version_job[None]
AssertionError: assert <TaskStatus.failed: 'failed'> == <TaskStatus.s...ss: 'success'>
- success
+ failed
|
test_quetz (ubuntu-latest, postgres, use-migrations):
quetz/tests/test_mirror.py#L734
test_mirror_initial_sync[repo_content0-expected_paths0]
sqlalchemy.orm.exc.DetachedInstanceError: Instance <Task at 0x7f0a5cb24e60> is not bound to a Session; attribute refresh operation cannot proceed (Background on this error at: https://sqlalche.me/e/20/bhk3)
|
test_quetz (ubuntu-latest, postgres, use-migrations):
quetz/tests/test_mirror.py#L734
test_mirror_initial_sync[repo_content1-expected_paths1]
sqlalchemy.orm.exc.DetachedInstanceError: Instance <Task at 0x7f0a5c48dfd0> is not bound to a Session; attribute refresh operation cannot proceed (Background on this error at: https://sqlalche.me/e/20/bhk3)
|
test_quetz (ubuntu-latest, postgres, use-migrations):
quetz/tests/test_mirror.py#L734
test_mirror_initial_sync[repo_content2-expected_paths2]
sqlalchemy.orm.exc.DetachedInstanceError: Instance <Task at 0x7f0a5dce88f0> is not bound to a Session; attribute refresh operation cannot proceed (Background on this error at: https://sqlalche.me/e/20/bhk3)
|
test_quetz (ubuntu-latest, postgres, use-migrations):
quetz/tests/test_mirror.py#L734
test_mirror_initial_sync[repo_content3-expected_paths3]
sqlalchemy.orm.exc.DetachedInstanceError: Instance <Task at 0x7f0a5c9f20c0> is not bound to a Session; attribute refresh operation cannot proceed (Background on this error at: https://sqlalche.me/e/20/bhk3)
|
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, 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/
|
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/
|