8000 The smoke tests are not cleaning up properly · Issue #7223 · hoprnet/hoprnet · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
The smoke tests are not cleaning up properly #7223
< A752 button data-component="IconButton" type="button" class="prc-Button-ButtonBase-c50BI prc-Button-IconButton-szpyj" data-loading="false" data-no-visuals="true" data-size="medium" data-variant="invisible" aria-describedby=":R1ra56b:-loading-announcement" aria-labelledby=":R3a56b:">
Open
@Teebor-Choka

Description

@Teebor-Choka

When running the smoke tests, often the previous runs or cached data remains in the machine tampering with the following runs. In the CI this manifests as random failures

Current Behavior

The DBs are not properly cleaned up. When inspecting the logs of randomly failed smoke test executions on #7209 it became obvious, that random failures are due to DB inconsistencies that could only arise, if a different PR with different DB migrations interfered (specifically a parallel PR #7213) :

�[2m2025-06-09T11:05:37.260405Z�[0m �[32m INFO�[0m ThreadId(01) �[2mhoprd�[0m�[2m:�[0m Creating the HOPRd node instance from hopr-lib
�[2m2025-06-09T11:05:37.260633Z�[0m �[32m INFO�[0m ThreadId(01) �[2mhopr_lib�[0m�[2m:�[0m Initiating DB �[3mpath�[0m�[2m=�[0m"/tmp/hopr-localcluster/hopr-node_1/db"
Error: DatabaseBackendError(Construction("cannot apply database migration: Custom Error: Migration file of version 'm20250603_000024_index_reset' is missing, this migration has been applied but its file is missing\nMigration file of version 'm20250604_000027_index_initial_seed' is missing, this migration has been applied but its file is missing"))

Expected Behavior

Between two separate runs the DBs should be cleaned or the DB storage should be randomized in the /tmp directory for every single run.

Steps to Reproduce

  1. run the smoke tests in the CI sufficient amount of times.

Were you able to reproduce the bug using the above steps consistently each time? NO

Context (Environment)

master branch.

Metadata

Metadata

Assignees

Type

Projects

Status

To triage

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0