Thanks to visit codestin.com
Credit goes to github.com

Skip to content

TestWorkspaceFilter is slow and flakey #2854

Closed
@kylecarbs

Description

@kylecarbs

I've seen a few intermittent failures occur where elements are in the list of filter items when they shouldn't be. Due to the random nature of the test, it's hard to narrow down these cases. The random set that the test produces isn't random enough to cover a lot of cases but is random enough to cause intermittent unexpected behavior that is difficult to track.

I propose we refactor the workspace filtering tests to be explicit on a case-by-case basis to remove randomness. If we believe fuzzing is important for these tests, we should extract the filtering logic outside of coderd to a new package that doesn't require coderd setup.

Metadata

Metadata

Assignees

No one assigned

    Labels

    apiArea: HTTP APIstaleThis issue is like stale bread.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions