Skip to content

[test] Sweepers fail due to missing dependency ordering #132

@alakae

Description

@alakae

Test sweepers are rarely used in practice: they only run when explicitly invoking make sweep locally, never in CI. However, when they are used, they can fail because resources are deleted before their dependents are cleaned up. E.g. a volume cannot be deleted while a snapshot of it still exists.

The resource.Sweeper struct has a Dependencies []string field that guarantees named sweepers run first. None of the current 9 sweepers use it.

Fix is small: add Dependencies to the relevant resource.AddTestSweepers calls. Low priority given limited practical use.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions