Skip to content

Sytest is slow and takes 4 minutes to run a single test #1299

Open
@MadLittleMods

Description

@MadLittleMods

Sytest is slow and takes 4 minutes (pretty consistent 3m40s run-time) to run a single test which makes it very draining to figure out any problem. Is this expected?

Most of it is all in the setup part of it.

docker run --rm -it -e POSTGRES=1 -e MULTI_POSTGRES=1 -e WORKERS=1 \
    -v ~/Documents/github/element/synapse:/src:ro \
    -v ~/Documents/github/element/synapse/logs:/logs \
    -v ~/Documents/github/element/sytest:/sytest:ro matrixdotorg/sytest-synapse:buster tests/48admin.pl
    
... 4 minutes later ...
+ exit 1

Since the Sytest failure only occurs in the MULTI_POSTGRES, WORKERS variation, I can't just run ./run-tests.pl directly.


The test could be ported to Complement but this is orthogonal and I'm just trying to debug a broken test in CI. And the failure might be specific to the Sytest environment.

Complement is also slow but at least is the way forward.

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