- tests/**: update templates/ → decnet/templates/ paths after module move - tests/mysql_spinup.sh: use root:root and asyncmy driver - tests/test_auto_spawn.py: patch decnet.cli.utils._pid_dir (package split) - tests/test_cli.py: set DECNET_MODE=master in api-command tests - tests/stress/conftest.py: run locust out-of-process via its CLI + CSV stats shim to avoid urllib3 RecursionError from late gevent monkey-patch; raise uvicorn startup timeout to 60s, accept 401 from auth-gated health, strip inherited DECNET_* env, surface stderr on 0-request runs - tests/stress/test_stress.py: loosen baseline thresholds to match hw
21 lines
486 B
Bash
Executable File
21 lines
486 B
Bash
Executable File
# start the instance
|
|
docker run -d --rm --name decnet-mysql \
|
|
-e MYSQL_ROOT_PASSWORD=root \
|
|
-e MYSQL_DATABASE=decnet \
|
|
-e MYSQL_USER=decnet \
|
|
-e MYSQL_PASSWORD=decnet \
|
|
-p 3307:3306 mysql:8
|
|
|
|
until docker exec decnet-mysql mysqladmin ping -h127.0.0.1 -uroot -proot --silent; do
|
|
sleep 1
|
|
done
|
|
|
|
echo "MySQL up."
|
|
|
|
export DECNET_DB_TYPE=mysql
|
|
export DECNET_DB_URL='mysql+asyncmy://root:root@127.0.0.1:3307/decnet'
|
|
|
|
source .venv/bin/activate
|
|
|
|
sudo .venv/bin/decnet api
|