: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(e2e): playwright race condition starting services (#66159)
Nick Best2af62c72e036
diff --git a/.github/workflows/ci-e2e-playwright.yml b/.github/workflows/ci-e2e-playwright.ymlindex 24ac4e964845..bbf39fc10275 100644--- a/.github/workflows/ci-e2e-playwright.yml+++ b/.github/workflows/ci-e2e-playwright.yml@@ -262,40 +262,12 @@ jobs:[ -d "data" ] && docker run --rm -v "$(pwd)/data:/data" alpine sh -c "rm -rf /data/seaweedfs /data/minio" || truecontinue-on-error: true- - name: Stop/Start stack with Docker Compose+ - name: Pull Docker imagesshell: bashrun: |export CLICKHOUSE_SERVER_IMAGE=${{ needs.changes.outputs.oldest_supported }}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/hostsshell: bash