Skip to content

Fix: Changes DB initialization order to ensure that DB always exists …

Codecov / codecov/patch failed Dec 11, 2024 in 1s

44.89% of diff hit (target 62.79%)

View this Pull Request on Codecov

44.89% of diff hit (target 62.79%)

Annotations

Check warning on line 150 in src/aleph/vm/hypervisors/qemu/qemuvm.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/aleph/vm/hypervisors/qemu/qemuvm.py#L150

Added line #L150 was not covered by tests

Check warning on line 123 in src/aleph/vm/hypervisors/qemu_confidential/qemuvm.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/aleph/vm/hypervisors/qemu_confidential/qemuvm.py#L122-L123

Added lines #L122 - L123 were not covered by tests

Check warning on line 227 in src/aleph/vm/models.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/aleph/vm/models.py#L227

Added line #L227 was not covered by tests

Check warning on line 230 in src/aleph/vm/models.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/aleph/vm/models.py#L230

Added line #L230 was not covered by tests

Check warning on line 235 in src/aleph/vm/models.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/aleph/vm/models.py#L233-L235

Added lines #L233 - L235 were not covered by tests

Check warning on line 240 in src/aleph/vm/models.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/aleph/vm/models.py#L240

Added line #L240 was not covered by tests

Check warning on line 242 in src/aleph/vm/models.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/aleph/vm/models.py#L242

Added line #L242 was not covered by tests

Check warning on line 72 in src/aleph/vm/orchestrator/chain.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/aleph/vm/orchestrator/chain.py#L72

Added line #L72 was not covered by tests

Check warning on line 359 in src/aleph/vm/orchestrator/cli.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/aleph/vm/orchestrator/cli.py#L358-L359

Added lines #L358 - L359 were not covered by tests

Check warning on line 10 in src/aleph/vm/orchestrator/migrations/versions/0002_5c6ae643c69b_add_gpu_column_to_executions_table.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/aleph/vm/orchestrator/migrations/versions/0002_5c6ae643c69b_add_gpu_column_to_executions_table.py#L9-L10

Added lines #L9 - L10 were not covered by tests

Check warning on line 16 in src/aleph/vm/orchestrator/migrations/versions/0002_5c6ae643c69b_add_gpu_column_to_executions_table.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/aleph/vm/orchestrator/migrations/versions/0002_5c6ae643c69b_add_gpu_column_to_executions_table.py#L13-L16

Added lines #L13 - L16 were not covered by tests

Check warning on line 20 in src/aleph/vm/orchestrator/migrations/versions/0002_5c6ae643c69b_add_gpu_column_to_executions_table.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/aleph/vm/orchestrator/migrations/versions/0002_5c6ae643c69b_add_gpu_column_to_executions_table.py#L19-L20

Added lines #L19 - L20 were not covered by tests

Check warning on line 24 in src/aleph/vm/orchestrator/migrations/versions/0002_5c6ae643c69b_add_gpu_column_to_executions_table.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/aleph/vm/orchestrator/migrations/versions/0002_5c6ae643c69b_add_gpu_column_to_executions_table.py#L23-L24

Added lines #L23 - L24 were not covered by tests

Check warning on line 181 in src/aleph/vm/orchestrator/tasks.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/aleph/vm/orchestrator/tasks.py#L179-L181

Added lines #L179 - L181 were not covered by tests

Check warning on line 186 in src/aleph/vm/orchestrator/tasks.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/aleph/vm/orchestrator/tasks.py#L184-L186

Added lines #L184 - L186 were not covered by tests

Check warning on line 481 in src/aleph/vm/orchestrator/views/__init__.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/aleph/vm/orchestrator/views/__init__.py#L481

Added line #L481 was not covered by tests

Check warning on line 486 in src/aleph/vm/orchestrator/views/__init__.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/aleph/vm/orchestrator/views/__init__.py#L486

Added line #L486 was not covered by tests

Check warning on line 488 in src/aleph/vm/orchestrator/views/__init__.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/aleph/vm/orchestrator/views/__init__.py#L488

Added line #L488 was not covered by tests

Check warning on line 117 in src/aleph/vm/pool.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/aleph/vm/pool.py#L117

Added line #L117 was not covered by tests

Check warning on line 245 in src/aleph/vm/pool.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/aleph/vm/pool.py#L245

Added line #L245 was not covered by tests

Check warning on line 300 in src/aleph/vm/pool.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/aleph/vm/pool.py#L300

Added line #L300 was not covered by tests

Check warning on line 302 in src/aleph/vm/pool.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/aleph/vm/pool.py#L302

Added line #L302 was not covered by tests

Check warning on line 306 in src/aleph/vm/pool.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/aleph/vm/pool.py#L305-L306

Added lines #L305 - L306 were not covered by tests

Check warning on line 309 in src/aleph/vm/pool.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/aleph/vm/pool.py#L308-L309

Added lines #L308 - L309 were not covered by tests