Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(mcp): playwright-style race starting docker services (#66164)

Raúl Negrón-Otero0b7983e72830
diff --git a/.github/workflows/ci-mcp.yml b/.github/workflows/ci-mcp.yml
index 19fa34251fa8..fa6f4afc92ff 100644
--- a/.github/workflows/ci-mcp.yml
+++ b/.github/workflows/ci-mcp.yml
@@ -285,40 +285,13 @@ jobs:
[ -d "data" ] && docker run --rm -v "$(pwd)/data:/data" alpine sh -c "rm -rf /data/seaweedfs /data/minio" || true
continue-on-error: true
- - name: Stop/Start stack with Docker Compose
+ - name: Pull Docker images
shell: bash
env:
COMPOSE_PROFILES: temporal
run: |
cp posthog/user_scripts/latest_user_defined_function.xml docker/clickhouse/user_defined_function.xml
- (
- max_attempts=3
- attempt=1
- delay=5
-
- while [ $attempt -le $max_attempts ]; do
- echo "Attempt $attempt of $max_attempts to start stack..."
-
- if docker compose -f docker-compose.dev.yml down && \
- docker compose -f docker-compose.dev.yml -f docker-compose.profiles.yml up -d; then
- echo "Stack started successfully"
- exit 0
- fi
-
- echo "Failed to start stack on attempt $attempt"
-
- if [ $attempt -lt $max_attempts ]; then
- sleep_time=$((delay * 2 ** (attempt - 1)))
- echo "Waiting ${sleep_time} seconds before retry..."
- sleep $sleep_time
- fi
-
- attempt=$((attempt + 1))
- done
-
- echo "Failed to start stack after $max_attempts attempts"
- exit 1
- ) &
+ docker compose -f docker-compose.dev.yml -f docker-compose.profiles.yml pull --quiet &
- name: Add service hostnames to /etc/hosts
shell: bash