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.

chore(replay): force ml-mirror-image-scrub rebuild after ECR expiry (#83040)

Keelan J.a5d87e977988
diff --git a/Dockerfile.ml-mirror-image-scrub b/Dockerfile.ml-mirror-image-scrub
index 7afd8859dd39..6031b2dc3b5a 100644
--- a/Dockerfile.ml-mirror-image-scrub
+++ b/Dockerfile.ml-mirror-image-scrub
@@ -14,6 +14,12 @@
# Exact node version pinned to .nvmrc (24.13.0), matching the main Dockerfile's node stages, so the
# build is reproducible instead of drifting with the floating major tag; renovate bumps it. -bookworm-slim
# so glibc matches sharp's prebuilt binaries.
+#
+# ECR retention on posthog-ml-mirror-image-scrub has to outlive the gap between builds, because prod
+# pins an exact digest (PostHog/charts state/) and a master push only rebuilds this image when the
+# paths filtered in .github/workflows/ci-ml-mirror-image-scrub-container.yml change. Once a pinned
+# digest expires, running pods keep serving from their cached copy, so the loss only surfaces as new
+# nodes failing to pull.
FROM node:24.13.0-bookworm-slim
WORKDIR /code/app
SHELL ["/bin/bash", "-e", "-o", "pipefail", "-c"]