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(ci): serialise concurrent playwright browser cache access (#59473)

Paul D'Ambra859f17448cb5
diff --git a/Dockerfile b/Dockerfile
index f6877fafdfe1..c521a69dfd44 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -314,7 +314,7 @@ ENV PATH=/python-runtime/bin:$PATH \
# Use cache mount for browser binaries to avoid re-downloading on every build
USER root
ENV PLAYWRIGHT_BROWSERS_PATH=/ms-playwright
-RUN --mount=type=cache,id=playwright-browsers,target=/tmp/playwright-cache \
+RUN --mount=type=cache,id=playwright-browsers,target=/tmp/playwright-cache,sharing=locked \
PLAYWRIGHT_BROWSERS_PATH=/tmp/playwright-cache \
/python-runtime/bin/python -m playwright install --with-deps chromium && \
mkdir -p /ms-playwright && \