-
Notifications
You must be signed in to change notification settings - Fork 509
Errors running test suite with pytest #18665
Copy link
Copy link
Closed
Description
Description
Hello there,
I am trying to run the test suite inside a docker container for a future Gitlab pipeline. Right now, my development machine is a Macbook with Sequoia 15.5 and Docker Desktop 4.43.1. I am running a container with:
docker run -it -v .:/synapse --hostname synapse ubuntu:22.04 /bin/bash
As you can see, I cloned the repository and mounted it as /synapse inside the container. Also inside the container, I am running the following commands:
apt-get update
DEBIAN_FRONTEND=noninteractive TZ='America/Fortaleza' apt-get install -y python3 python3-dev python3-venv python3-pip libpq-dev libicu-dev python3-icu pkg-config curl
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
. "$HOME/.cargo/env"
python3 -m venv .env
. .env/bin/activate
pip install poetry
cd /synapse
poetry install --extras all
poetry add pytest
pytest ./tests
The majority of the tests run smoothly, but at the end I get:
============================================================== short test summary info ==============================================================
ERROR tests/federation/transport/server/test__base.py::test_disconnect
ERROR tests/http/test_servlet.py::test_disconnect
ERROR tests/replication/http/test__base.py::test_disconnect
ERROR tests/test_server.py::test_disconnect
====================================== 3958 passed, 165 skipped, 9418 warnings, 4 errors in 327.21s (0:05:27) =======================================
Any suggestions?
Steps to reproduce
- list the steps
- that reproduce the bug
- using hyphens as bullet points
Homeserver
matrix.org
Synapse Version
The current main branch.
Installation Method
Docker (matrixdotorg/synapse)
Database
Not at this stage yet.
Workers
Single process
Platform
Docker container running Ubuntu 22.04 latest.
Configuration
No response
Relevant log output
============================================================== short test summary info ==============================================================
ERROR tests/federation/transport/server/test__base.py::test_disconnect
ERROR tests/http/test_servlet.py::test_disconnect
ERROR tests/replication/http/test__base.py::test_disconnect
ERROR tests/test_server.py::test_disconnect
====================================== 3958 passed, 165 skipped, 9418 warnings, 4 errors in 327.21s (0:05:27) =======================================Anything else that would be useful to know?
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Type
Fields
Give feedbackNo fields configured for issues without a type.