: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(ci): add retry logic to sccache --start-server in setup-sccache action (#60577)
mendral-app[bot]f9028b36b9d5
diff --git a/.github/actions/setup-sccache/action.yml b/.github/actions/setup-sccache/action.ymlindex abb382a02dae..e1c9163c01aa 100644--- a/.github/actions/setup-sccache/action.yml+++ b/.github/actions/setup-sccache/action.yml@@ -69,6 +69,18 @@ runs:shell: bashrun: |echo "$RUNNER_TEMP/sccache" >> "$GITHUB_PATH"- echo "RUSTC_WRAPPER=sccache" >> "$GITHUB_ENV"- "$RUNNER_TEMP/sccache/sccache" --start-server+ for i in 1 2 3; do+ if "$RUNNER_TEMP/sccache/sccache" --start-server; then+ echo "sccache server started successfully"+ echo "RUSTC_WRAPPER=sccache" >> "$GITHUB_ENV"+ break+ fi+ if [ "$i" -eq 3 ]; then+ echo "::warning::sccache failed to start after 3 attempts, continuing without cache"+ exit 0+ fi+ echo "sccache startup attempt $i failed, retrying in 5 seconds..."+ "$RUNNER_TEMP/sccache/sccache" --stop-server 2>/dev/null || true+ sleep 5+ done"$RUNNER_TEMP/sccache/sccache" --version