Skip to content

refactor: Clean up DB sessions consistently #2230

refactor: Clean up DB sessions consistently

refactor: Clean up DB sessions consistently #2230

Triggered via pull request July 15, 2024 08:21
@AndreasAlbertQCAndreasAlbertQC
synchronize #702
Status Failure
Total duration 5m 45s
Artifacts

ci.yml

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

Annotations

40 errors and 10 warnings
test_quetz (ubuntu-latest, sqlite, use-migrations): quetz/tests/test_dao.py#L151
test_create_version AssertionError: assert 'filename.tar.bz2' == 'filename-2.tar.bz2' - filename-2.tar.bz2 ? -- + filename.tar.bz2
test_quetz (ubuntu-latest, sqlite, use-migrations): quetz/tests/test_dao.py#L162
test_update_channel assert False + where False = <Channel name=my-channel, description=None, private=False>.private
test_quetz (ubuntu-latest, sqlite, use-migrations): quetz/tests/test_dao.py#L170
test_update_channel_size assert 0 == 101 + where 0 = <Channel name=my-channel, description=None, private=False>.size + and 101 = <quetz.db_models.PackageVersion object at 0x7f29755528d0>.size
test_quetz (ubuntu-latest, sqlite, use-migrations): quetz/tests/test_dao.py#L196
test_increment_download_count assert 1 == 2 + where 1 = PackageVersionMetric(metric_name=download, period=H, timestamp=2020-10-01 10:00:00,count=1).count
test_quetz (ubuntu-latest, sqlite, use-migrations): quetz/tests/test_jobs.py#L301
test_restart_worker_process[None] AssertionError: assert <TaskStatus.r...ng: 'running'> == <TaskStatus.failed: 'failed'> - failed + running
test_quetz (ubuntu-latest, sqlite, use-migrations): quetz/tests/test_jobs.py#L301
test_restart_worker_process[*] AssertionError: assert <TaskStatus.r...ng: 'running'> == <TaskStatus.failed: 'failed'> - failed + running
test_quetz (ubuntu-latest, sqlite, use-migrations): quetz/tests/test_jobs.py#L643
test_post_new_job_from_plugin[quetz-dummyplugin:dummy_func-owner] AssertionError: assert <JobStatus.running: 'running'> == <JobStatus.success: 'success'> - success + running
test_quetz (ubuntu-latest, sqlite, use-migrations): quetz/tests/test_jobs.py#L643
test_post_new_job_from_plugin[quetz-dummyplugin:dummy_job-owner] AssertionError: assert <JobStatus.running: 'running'> == <JobStatus.success: 'success'> - success + running
test_quetz (ubuntu-latest, sqlite, use-migrations): quetz/tests/test_jobs.py#L667
test_post_new_job_with_handler[owner] AssertionError: assert <JobStatus.running: 'running'> == <JobStatus.success: 'success'> - success + running
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 0x7f2974ba6840>, 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 0x7f2974ba6840>*** Full diff: - ***'my_arg': 1*** + ***'dao': <quetz.dao.Dao object at 0x7f2974ba6840>, 'my_arg': 1***
test_quetz (ubuntu-latest, postgres, create-tables): quetz/tests/test_dao.py#L151
test_create_version AssertionError: assert 'filename.tar.bz2' == 'filename-2.tar.bz2' - filename-2.tar.bz2 ? -- + filename.tar.bz2
test_quetz (ubuntu-latest, postgres, create-tables): quetz/tests/test_dao.py#L162
test_update_channel assert False + where False = <Channel name=my-channel, description=None, private=False>.private
test_quetz (ubuntu-latest, postgres, create-tables): quetz/tests/test_dao.py#L170
test_update_channel_size assert 0 == 101 + where 0 = <Channel name=my-channel, description=None, private=False>.size + and 101 = <quetz.db_models.PackageVersion object at 0x7f6082225430>.size
test_quetz (ubuntu-latest, postgres, create-tables): quetz/tests/test_dao.py#L196
test_increment_download_count assert 1 == 2 + where 1 = PackageVersionMetric(metric_name=download, period=H, timestamp=2020-10-01 10:00:00,count=1).count
test_quetz (ubuntu-latest, postgres, create-tables): quetz/tests/test_jobs.py#L301
test_restart_worker_process[None] AssertionError: assert <TaskStatus.r...ng: 'running'> == <TaskStatus.failed: 'failed'> - failed + running
test_quetz (ubuntu-latest, postgres, create-tables): quetz/tests/test_jobs.py#L301
test_restart_worker_process[*] AssertionError: assert <TaskStatus.r...ng: 'running'> == <TaskStatus.failed: 'failed'> - failed + running
test_quetz (ubuntu-latest, postgres, create-tables): quetz/tests/test_jobs.py#L643
test_post_new_job_from_plugin[quetz-dummyplugin:dummy_func-owner] AssertionError: assert <JobStatus.running: 'running'> == <JobStatus.success: 'success'> - success + running
test_quetz (ubuntu-latest, postgres, create-tables): quetz/tests/test_jobs.py#L643
test_post_new_job_from_plugin[quetz-dummyplugin:dummy_job-owner] AssertionError: assert <JobStatus.running: 'running'> == <JobStatus.success: 'success'> - success + running
test_quetz (ubuntu-latest, postgres, create-tables): quetz/tests/test_jobs.py#L667
test_post_new_job_with_handler[owner] AssertionError: assert <JobStatus.running: 'running'> == <JobStatus.success: 'success'> - success + running
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 0x7f608115b6b0>, 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 0x7f608115b6b0>*** Full diff: - ***'my_arg': 1*** + ***'dao': <quetz.dao.Dao object at 0x7f608115b6b0>, 'my_arg': 1***
test_quetz (ubuntu-latest, sqlite, create-tables): quetz/tests/test_dao.py#L151
test_create_version AssertionError: assert 'filename.tar.bz2' == 'filename-2.tar.bz2' - filename-2.tar.bz2 ? -- + filename.tar.bz2
test_quetz (ubuntu-latest, sqlite, create-tables): quetz/tests/test_dao.py#L162
test_update_channel assert False + where False = <Channel name=my-channel, description=None, private=False>.private
test_quetz (ubuntu-latest, sqlite, create-tables): quetz/tests/test_dao.py#L170
test_update_channel_size assert 0 == 101 + where 0 = <Channel name=my-channel, description=None, private=False>.size + and 101 = <quetz.db_models.PackageVersion object at 0x7f9573600050>.size
test_quetz (ubuntu-latest, sqlite, create-tables): quetz/tests/test_dao.py#L196
test_increment_download_count assert 1 == 2 + where 1 = PackageVersionMetric(metric_name=download, period=H, timestamp=2020-10-01 10:00:00,count=1).count
test_quetz (ubuntu-latest, sqlite, create-tables): quetz/tests/test_jobs.py#L301
test_restart_worker_process[None] AssertionError: assert <TaskStatus.r...ng: 'running'> == <TaskStatus.failed: 'failed'> - failed + running
test_quetz (ubuntu-latest, sqlite, create-tables): quetz/tests/test_jobs.py#L301
test_restart_worker_process[*] AssertionError: assert <TaskStatus.r...ng: 'running'> == <TaskStatus.failed: 'failed'> - failed + running
test_quetz (ubuntu-latest, sqlite, create-tables): quetz/tests/test_jobs.py#L643
test_post_new_job_from_plugin[quetz-dummyplugin:dummy_func-owner] AssertionError: assert <JobStatus.running: 'running'> == <JobStatus.success: 'success'> - success + running
test_quetz (ubuntu-latest, sqlite, create-tables): quetz/tests/test_jobs.py#L643
test_post_new_job_from_plugin[quetz-dummyplugin:dummy_job-owner] AssertionError: assert <JobStatus.running: 'running'> == <JobStatus.success: 'success'> - success + running
test_quetz (ubuntu-latest, sqlite, create-tables): quetz/tests/test_jobs.py#L667
test_post_new_job_with_handler[owner] AssertionError: assert <JobStatus.running: 'running'> == <JobStatus.success: 'success'> - success + running
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 0x7f9572a43470>, 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 0x7f9572a43470>*** Full diff: - ***'my_arg': 1*** + ***'dao': <quetz.dao.Dao object at 0x7f9572a43470>, 'my_arg': 1***
test_quetz (ubuntu-latest, postgres, use-migrations): quetz/tests/test_dao.py#L151
test_create_version AssertionError: assert 'filename.tar.bz2' == 'filename-2.tar.bz2' - filename-2.tar.bz2 ? -- + filename.tar.bz2
test_quetz (ubuntu-latest, postgres, use-migrations): quetz/tests/test_dao.py#L162
test_update_channel assert False + where False = <Channel name=my-channel, description=None, private=False>.private
test_quetz (ubuntu-latest, postgres, use-migrations): quetz/tests/test_dao.py#L170
test_update_channel_size assert 0 == 101 + where 0 = <Channel name=my-channel, description=None, private=False>.size + and 101 = <quetz.db_models.PackageVersion object at 0x7f614635df40>.size
test_quetz (ubuntu-latest, postgres, use-migrations): quetz/tests/test_dao.py#L196
test_increment_download_count assert 1 == 2 + where 1 = PackageVersionMetric(metric_name=download, period=H, timestamp=2020-10-01 10:00:00,count=1).count
test_quetz (ubuntu-latest, postgres, use-migrations): quetz/tests/test_jobs.py#L301
test_restart_worker_process[None] AssertionError: assert <TaskStatus.r...ng: 'running'> == <TaskStatus.failed: 'failed'> - failed + running
test_quetz (ubuntu-latest, postgres, use-migrations): quetz/tests/test_jobs.py#L301
test_restart_worker_process[*] AssertionError: assert <TaskStatus.r...ng: 'running'> == <TaskStatus.failed: 'failed'> - failed + running
test_quetz (ubuntu-latest, postgres, use-migrations): quetz/tests/test_jobs.py#L643
test_post_new_job_from_plugin[quetz-dummyplugin:dummy_func-owner] AssertionError: assert <JobStatus.running: 'running'> == <JobStatus.success: 'success'> - success + running
test_quetz (ubuntu-latest, postgres, use-migrations): quetz/tests/test_jobs.py#L643
test_post_new_job_from_plugin[quetz-dummyplugin:dummy_job-owner] AssertionError: assert <JobStatus.running: 'running'> == <JobStatus.success: 'success'> - success + running
test_quetz (ubuntu-latest, postgres, use-migrations): quetz/tests/test_jobs.py#L667
test_post_new_job_with_handler[owner] AssertionError: assert <JobStatus.running: 'running'> == <JobStatus.success: 'success'> - success + running
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 0x7f614561c950>, 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 0x7f614561c950>*** Full diff: - ***'my_arg': 1*** + ***'dao': <quetz.dao.Dao object at 0x7f614561c950>, 'my_arg': 1***
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, 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, 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, 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/