From 6af1683c23236d4f7f2fa700b1a1a5df4edba311 Mon Sep 17 00:00:00 2001 From: wakonig_k Date: Mon, 20 Apr 2026 16:48:01 +0200 Subject: [PATCH] wip --- .github/scripts/setup_benchmark_env.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/scripts/setup_benchmark_env.sh b/.github/scripts/setup_benchmark_env.sh index c96f07b0..517c7b39 100755 --- a/.github/scripts/setup_benchmark_env.sh +++ b/.github/scripts/setup_benchmark_env.sh @@ -32,7 +32,21 @@ python -m pip install -e ./ophyd_devices -e .[dev,pyside6] -e ./bec_testing_plug benchmark_tmp_dir="$(mktemp -d)" export BEC_SERVICE_CONFIG="$benchmark_tmp_dir/services_config.yaml" +# Start Redis redis-server --daemonize yes --port 6379 +# Wait for Redis to be ready +timeout 30 bash -c 'until redis-cli ping > /dev/null 2>&1; do sleep 0.1; done' || { + echo "Redis failed to start" >&2 + exit 1 +} + +# Start BEC server bec-server start --config "$BEC_SERVICE_CONFIG" +# Wait for BEC server to be ready +sleep 5 + +# Export BEC client configuration +export BEC_CONFIG='{"redis": {"host": "localhost", "port": 6379}}' +