Skip to content

Sort jobs by creation in API #7875

Sort jobs by creation in API

Sort jobs by creation in API #7875

Triggered via pull request January 14, 2025 22:02
@mdegat01mdegat01
synchronize #5545
sorted-jobs
Status Failure
Total duration 5m 53s
Artifacts

ci.yaml

on: pull_request
Prepare Python dependencies
7s
Prepare Python dependencies
Run tests Python 3.12.8
5m 25s
Run tests Python 3.12.8
Check ruff-format
17s
Check ruff-format
Check ruff
12s
Check ruff
Check Dockerfile
5s
Check Dockerfile
Check executables
14s
Check executables
Check JSON
13s
Check JSON
Check pylint
43s
Check pylint
Process test coverage
0s
Process test coverage
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 8 warnings
Run tests Python 3.12.8: tests/api/test_backups.py#L290
test_api_backup_restore_background[full-options0] AssertionError: assert 'backup_store_folders' == 'backup_store_homeassistant' - backup_store_homeassistant + backup_store_folders
Run tests Python 3.12.8: tests/api/test_backups.py#L290
test_api_backup_restore_background[partial-options1] AssertionError: assert 'backup_store_folders' == 'backup_store_homeassistant' - backup_store_homeassistant + backup_store_folders
Run tests Python 3.12.8: tests/api/test_backups.py#L378
test_api_backup_errors[full-options0] AssertionError: assert 'backup_store_folders' == 'backup_store_homeassistant' - backup_store_homeassistant + backup_store_folders
Run tests Python 3.12.8: tests/api/test_backups.py#L378
test_api_backup_errors[partial-options1] AssertionError: assert 'backup_store_folders' == 'backup_store_homeassistant' - backup_store_homeassistant + backup_store_folders
Run tests Python 3.12.8: tests/api/test_jobs.py#L103
test_jobs_tree_representation AssertionError: assert [{'child_jobs...rs': [], ...}] == [{'child_jobs...rs': [], ...}] At index 0 diff: {'name': 'test_jobs_tree_alt', 'reference': None, 'uuid': 'e5735f788a664b348e11f29840b90e47', 'progress': 0, 'stage': 'init', 'done': False, 'errors': [], 'created': '2025-01-14T22:04:49.513411+00:00', 'child_jobs': []} != {'created': <ANY>, 'name': 'test_jobs_tree_outer', 'reference': None, 'uuid': <ANY>, 'progress': 50, 'stage': None, 'done': False, 'errors': [], 'child_jobs': [{'created': <ANY>, 'name': 'test_jobs_tree_inner', 'reference': None, 'uuid': <ANY>, 'progress': 0, 'stage': None, 'done': False, 'child_jobs': [], 'errors': []}]} Full diff: [ + { + 'child_jobs': [], + 'created': '2025-01-14T22:04:49.513411+00:00', + 'done': False, + 'errors': [], + 'name': 'test_jobs_tree_alt', + 'progress': 0, + 'reference': None, + 'stage': 'init', + 'uuid': 'e5735f788a664b348e11f29840b90e47', + }, { 'child_jobs': [ { 'child_jobs': [], - 'created': <ANY>, + 'created': '2025-01-14T22:04:49.513303+00:00', 'done': False, 'errors': [], 'name': 'test_jobs_tree_inner', 'progress': 0, 'reference': None, 'stage': None, - 'uuid': <ANY>, + 'uuid': '551514a8c962479586869ea2d650e3fd', }, ], - 'created': <ANY>, + 'created': '2025-01-14T22:04:49.513043+00:00', 'done': False, 'errors': [], 'name': 'test_jobs_tree_outer', 'progress': 50, 'reference': None, 'stage': None, + 'uuid': 'cb09f9f13fed40d79051ed5a9aa104b2', - 'uuid': <ANY>, - }, - { - 'child_jobs': [], - 'created': <ANY>, - 'done': False, - 'errors': [], - 'name': 'test_jobs_tree_alt', - 'progress': 0, - 'reference': None, - 'stage': 'init', - 'uuid': <ANY>, }, ]
Run tests Python 3.12.8: tests/api/test_jobs.py#L273
test_jobs_sorted AssertionError: assert [{'child_jobs...rs': [], ...}] == [{'child_jobs...rs': [], ...}] At index 1 diff: {'name': 'test_jobs_sorted_1', 'reference': None, 'uuid': '570cfe0680bb444ab1247884f4d6f6c8', 'progress': 0, 'stage': None, 'done': True, 'errors': [], 'created': '2025-01-14T22:04:50.304738+00:00', 'child_jobs': [{'name': 'test_jobs_sorted_inner_2', 'reference': None, 'uuid': '5b05fde09cba4b73abcdf69e32107cd8', 'progress': 0, 'stage': None, 'done': True, 'errors': [], 'created': '2025-01-14T22:04:50.305044+00:00', 'child_jobs': []}, {'name': 'test_jobs_sorted_inner_1', 'reference': None, 'uuid': 'b0e946d7a2474f75b1a5181a90fd4add', 'progress': 0, 'stage': None, 'done': True, 'errors': [], 'created': '2025-01-14T22:04:50.304903+00:00', 'child_jobs': []}]} != {'created': <ANY>, 'name': 'test_jobs_sorted_1', 'reference': None, 'uuid': <ANY>, 'progress': 0, 'stage': None, 'done': True, 'errors': [], 'child_jobs': [{'created': <ANY>, 'name': 'test_jobs_sorted_inner_1', 'reference': None, 'uuid': <ANY>, 'progress': 0, 'stage': None, 'done': True, 'errors': [], 'child_jobs': []}, {'created': <ANY>, 'name': 'test_jobs_sorted_inner_2', 'reference': None, 'uuid': <ANY>, 'progress': 0, 'stage': None, 'done': True, 'errors': [], 'child_jobs': []}]} Full diff: [ { 'child_jobs': [], - 'created': <ANY>, + 'created': '2025-01-14T22:04:50.305231+00:00', 'done': True, 'errors': [], 'name': 'test_jobs_sorted_2', 'progress': 0, 'reference': None, 'stage': None, - 'uuid': <ANY>, + 'uuid': '0c7ea0d934d443609fa2e447df8ec7ac', }, { 'child_jobs': [ { 'child_jobs': [], - 'created': <ANY>, + 'created': '2025-01-14T22:04:50.305044+00:00', + 'done': True, + 'errors': [], + 'name': 'test_jobs_sorted_inner_2', + 'progress': 0, + 'reference': None, + 'stage': None, + 'uuid': '5b05fde09cba4b73abcdf69e32107cd8', + }, + { + 'child_jobs': [], + 'created': '2025-01-14T22:04:50.304903+00:00', 'done': True, 'errors': [], 'name': 'test_jobs_sorted_inner_1', 'progress': 0, 'reference': None, 'stage': None, + 'uuid': 'b0e946d7a2474f75b1a5181a90fd4add', - 'uuid': <ANY>, - }, - { - 'child_jobs': [], - 'created': <ANY>, - 'done': True, - 'errors': [], - 'name': 'test_jobs_sorted_inner_2', - 'progress': 0, - 'reference': None, - 'stage': None, - 'uuid': <ANY>, }, ], - 'created': <ANY>, + 'created': '2025-01-14T22:04:50.304738+00:00', 'done': True, 'errors': [], 'name': 'test_jobs_sorted_1', 'progress': 0, 'reference': None, 'stage': None, - 'uuid': <ANY>, + 'uuid': '570cfe0680bb444ab1247884f4d6f6c8', }, ]
Run tests Python 3.12.8: tests/backups/test_manager.py#L1106
test_backup_progress AssertionError: assert [{'data': {'d...event'>}, ...] == [{'data': {'d.../event'}, ...] At index 0 diff: {'type': <WSType.SUPERVISOR_EVENT: 'supervisor/event'>, 'data': {'event': <WSEvent.JOB: 'job'>, 'data': {'name': 'backup_manager_full_backup', 'reference': None, 'uuid': 'a5d2de4fcebb436bb33df0cb779b250c', 'progress': 0, 'stage': None, 'done': False, 'parent_id': None, 'errors': [], 'created': '2025-01-14T22:05:29.842642+00:00'}}} != {'type': 'supervisor/event', 'data': {'event': 'job', 'data': {'name': 'backup_manager_full_backup', 'reference': None, 'uuid': <ANY>, 'progress': 0, 'stage': None, 'done': False, 'parent_id': None, 'errors': []}}} Full diff: [ { 'data': { 'data': { + 'created': '2025-01-14T22:05:29.842642+00:00', 'done': False, 'errors': [], 'name': 'backup_manager_full_backup', 'parent_id': None, 'progress': 0, 'reference': None, 'stage': None, - 'uuid': <ANY>, + 'uuid': 'a5d2de4fcebb436bb33df0cb779b250c', }, - 'event': 'job', + 'event': <WSEvent.JOB: 'job'>, ? ++++++++++++++ + }, - 'type': 'supervisor/event', + 'type': <WSType.SUPERVISOR_EVENT: 'supervisor/event'>, }, { 'data': { 'data': { + 'created': '2025-01-14T22:05:29.842642+00:00', 'done': False, 'errors': [], 'name': 'backup_manager_full_backup', 'parent_id': None, 'progress': 0, 'reference': '62539943', 'stage': None, - 'uuid': <ANY>, + 'uuid': 'a5d2de4fcebb436bb33df0cb779b250c', }, - 'event': 'job', + 'event': <WSEvent.JOB: 'job'>, ? ++++++++++++++ + }, - 'type': 'supervisor/event', + 'type': <WSType.SUPERVISOR_EVENT: 'supervisor/event'>, }, { 'data': { 'data': { + 'created': '2025-01-14T22:05:29.842642+00:00', 'done': False, 'errors': [], 'name': 'backup_manager_full_backup', 'parent_id': None, 'progress': 0, 'reference': '62539943', - 'stage': 'addon_repositories', - 'uuid': <ANY>, + 'stage': <BackupJobStage.ADDON_REPOSITORIES: 'addon_repositories'>, + 'uuid': 'a5d2de4fcebb436bb33df0cb779b250c', }, - 'event': 'job', + 'event': <WSEvent.JOB: 'job'>, ? ++++++++++++++ + }, - 'type': 'supervisor/event', + 'type': <WSType.SUPERVISOR_EVENT: 'supervisor/event'>, }, { 'data': { 'data': { + 'created': '2025-01-14T22:05:29.842642+00:00', 'done': False, 'errors': [], 'name': 'backup_manager_full_backup', 'parent_id': None, 'progress': 0, 'reference': '62539943', - 'stage': 'docker_config', - 'uuid': <ANY>, + 'stage': <BackupJobStage.DOCKER_CONFIG: 'docker_config'>, + 'uuid': 'a5d2de4fcebb436bb33df0cb779b250c', }, - 'event': 'job', + 'event': <WSEvent.JOB: 'job'>, ? ++++++++++++++ + }, - 'type': 'supervisor/event', + 'type': <WSType.SUPERVISOR_EVENT: 'supervisor/event'>, }, { 'data': { 'data': { +
Run tests Python 3.12.8: tests/backups/test_manager.py#L1220
test_restore_progress AssertionError: assert [{'data': {'d...event'>}, ...] == [{'data': {'d.../event'}, ...] At index 0 diff: {'type': <WSType.SUPERVISOR_EVENT: 'supervisor/event'>, 'data': {'event': <WSEvent.JOB: 'job'>, 'data': {'name': 'backup_manager_full_restore', 'reference': None, 'uuid': 'cb0fc1d0c50b484f916f2b3435e534bd', 'progress': 0, 'stage': None, 'done': False, 'parent_id': None, 'errors': [], 'created': '2025-01-14T22:05:30.174206+00:00'}}} != {'type': 'supervisor/event', 'data': {'event': 'job', 'data': {'name': 'backup_manager_full_restore', 'reference': None, 'uuid': <ANY>, 'progress': 0, 'stage': None, 'done': False, 'parent_id': None, 'errors': []}}} Full diff: [ { 'data': { 'data': { + 'created': '2025-01-14T22:05:30.174206+00:00', 'done': False, 'errors': [], 'name': 'backup_manager_full_restore', 'parent_id': None, 'progress': 0, 'reference': None, 'stage': None, + 'uuid': 'cb0fc1d0c50b484f916f2b3435e534bd', - 'uuid': <ANY>, - }, - 'event': 'job', - }, + }, ? ++++ - 'type': 'supervisor/event', + 'event': <WSEvent.JOB: 'job'>, - }, + }, ? ++++ + 'type': <WSType.SUPERVISOR_EVENT: 'supervisor/event'>, + }, { - 'data': { - 'data': { ? ---- + 'data': { + 'data': { + 'created': '2025-01-14T22:05:30.174206+00:00', 'done': False, 'errors': [], 'name': 'backup_manager_full_restore', 'parent_id': None, 'progress': 0, 'reference': '3f5e38a6', 'stage': None, + 'uuid': 'cb0fc1d0c50b484f916f2b3435e534bd', - 'uuid': <ANY>, - }, - 'event': 'job', - }, + }, ? ++++ - 'type': 'supervisor/event', + 'event': <WSEvent.JOB: 'job'>, - }, + }, ? ++++ + 'type': <WSType.SUPERVISOR_EVENT: 'supervisor/event'>, + }, { - 'data': { - 'data': { ? ---- + 'data': { - 'done': False, - 'errors': [], - 'name': 'backup_manager_full_restore', - 'parent_id': None, - 'progress': 0, - 'reference': '3f5e38a6', - 'stage': 'docker_config', - 'uuid': <ANY>, - }, - 'event': 'job', - }, - 'type': 'supervisor/event', - }, - { - 'data': { + 'data': { ? ++++ + 'created': '2025-01-14T22:05:30.174206+00:00', + 'done': False, + 'errors': [], + 'name': 'backup_manager_full_restore', + 'parent_id': None, + 'progress': 0, + 'reference': '3f5e38a6', + 'stage': <RestoreJobStage.DOCKER_CONFIG: 'docker_config'>, + 'uuid': 'cb0fc1d0c50b484f916f2b3435e534bd', + }, + 'event': <WSEvent.JOB: 'job'>, + }, + 'type': <WSType.SUPERVISOR_EVENT: 'supervisor/event'>, + }, + { - 'data': { ? ---- + 'data': { - 'done': False, - 'errors': [], - 'name': 'backup_manager_full_restore', - 'parent_id': None, - 'progress': 0, - 'reference': '3f5e38a6', - 'stage': 'folders', - 'uuid': <ANY>, - }, - 'event': 'job', - }, - 'type': 'supervisor/event', - }, - { -
Run tests Python 3.12.8: tests/backups/test_manager.py#L1406
test_freeze_thaw AssertionError: assert [{'data': {'d...isor/event'>}] == [{'data': {'d...visor/event'}] At index 0 diff: {'type': <WSType.SUPERVISOR_EVENT: 'supervisor/event'>, 'data': {'event': <WSEvent.JOB: 'job'>, 'data': {'name': 'backup_manager_freeze_all', 'reference': None, 'uuid': '9c70c058f8524e09b17cfc85601acc96', 'progress': 0, 'stage': None, 'done': False, 'parent_id': None, 'errors': [], 'created': '2025-01-14T22:05:31.288061+00:00'}}} != {'type': 'supervisor/event', 'data': {'event': 'job', 'data': {'name': 'backup_manager_freeze_all', 'reference': None, 'uuid': <ANY>, 'progress': 0, 'stage': None, 'done': False, 'parent_id': None, 'errors': []}}} Full diff: [ { 'data': { 'data': { + 'created': '2025-01-14T22:05:31.288061+00:00', 'done': False, 'errors': [], 'name': 'backup_manager_freeze_all', 'parent_id': None, 'progress': 0, 'reference': None, 'stage': None, - 'uuid': <ANY>, + 'uuid': '9c70c058f8524e09b17cfc85601acc96', }, - 'event': 'job', + 'event': <WSEvent.JOB: 'job'>, ? ++++++++++++++ + }, - 'type': 'supervisor/event', + 'type': <WSType.SUPERVISOR_EVENT: 'supervisor/event'>, }, { - 'type': 'backup/start', + 'type': <WSType.BACKUP_START: 'backup/start'>, }, { 'data': { 'data': { + 'created': '2025-01-14T22:05:31.288061+00:00', 'done': False, 'errors': [], 'name': 'backup_manager_freeze_all', 'parent_id': None, 'progress': 0, 'reference': None, - 'stage': 'home_assistant', - 'uuid': <ANY>, + 'stage': <BackupJobStage.HOME_ASSISTANT: 'home_assistant'>, + 'uuid': '9c70c058f8524e09b17cfc85601acc96', }, - 'event': 'job', + 'event': <WSEvent.JOB: 'job'>, ? ++++++++++++++ + }, - 'type': 'supervisor/event', + 'type': <WSType.SUPERVISOR_EVENT: 'supervisor/event'>, }, { 'data': { 'data': { + 'created': '2025-01-14T22:05:31.288061+00:00', 'done': False, 'errors': [], 'name': 'backup_manager_freeze_all', 'parent_id': None, 'progress': 0, 'reference': None, - 'stage': 'addons', - 'uuid': <ANY>, + 'stage': <BackupJobStage.ADDONS: 'addons'>, + 'uuid': '9c70c058f8524e09b17cfc85601acc96', }, - 'event': 'job', + 'event': <WSEvent.JOB: 'job'>, ? ++++++++++++++ + }, - 'type': 'supervisor/event', + 'type': <WSType.SUPERVISOR_EVENT: 'supervisor/event'>, }, { 'data': { 'data': { + 'created': '2025-01-14T22:05:31.291983+00:00', 'done': False, 'errors': [], 'name': 'backup_manager_thaw_all', 'parent_id': None, 'progress': 0, 'reference': None, 'stage': None, - 'uuid': <ANY>, + 'uuid': 'bc06a778e81e48f89c61d9df439eb07a', }, - 'event': 'job', + 'event': <WSEvent.JOB: 'job'>, ? ++++++++++++++ + }, - 'type': 'supervisor/event', + 'type': <WSType.SUPERVISOR_EVENT: 'supervisor/event'>, }, { '
Run tests Python 3.12.8
Process completed with exit code 1.
Prepare Python dependencies
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Check Dockerfile
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Check ruff
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Check JSON
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Check executables
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Check ruff-format
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Check pylint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Run tests Python 3.12.8
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636