Skip to content

Snapshot tests running slowly with syrupy >=5.5 #1383

Description

@ubdbra001

Currently syrupy is pinned to <5.5.

This is because the test suite run time went from ~5-10 mins to >60 mins when syrupy was updated to 5.5.

The snapshot tests in test_nodestats.py seem to be the culprit, specifically the large snapshot file (~33MB), as tests run in a reasonable time when these test cases are skipped.
This file is so large due to to test cases add_branches_to_labelled_image and analyse_nodes, these have 100,000 items in the snapshot file, most of which are 0s, likely a consequence of using np.array2string() to generate and compare the snapshots.

A short-medium term solution to this is breaking up the file and implementing a custom snapshot extension to read in the parts (see this discussion).

The ultimate solution is reducing the file size down to something reasonable. Given the current lack of numpy support this is likely to also require a custom snapshot extension (see this issue)

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