<
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
Description
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
- 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
Labels
Type
Projects
Status
To triage