: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
chore(ci): remove ai evals container images cd workflow (#59911)
Georgiy Tarasove1dae0bdec1e
diff --git a/.github/workflows/cd-ai-evals-image.yml b/.github/workflows/cd-ai-evals-image.ymldeleted file mode 100644index db3c728f253a..000000000000--- a/.github/workflows/cd-ai-evals-image.yml+++ /dev/null@@ -1,67 +0,0 @@-#-# Build and push PostHog container images for AI evaluations to AWS ECR-#-# - posthog_ai_evals_build: build and push the PostHog container image to AWS ECR-#-name: AI Evals Container Images CD--on:- push:- branches:- - master- paths-ignore:- - 'rust/**'- - 'livestream/**'- - 'nodejs/**'- pull_request:- workflow_dispatch:--jobs:- posthog_ai_evals_build:- name: Build and push container image- if: |- github.repository == 'PostHog/posthog' && (- github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'build-ai-evals-image')- )- runs-on: depot-ubuntu-latest- timeout-minutes: 10- permissions:- id-token: write # allow issuing OIDC tokens for this workflow run- contents: read # allow at least reading the repo contents, add other permissions if necessary-- steps:- - name: Check out- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2- with:- fetch-depth: 2-- - name: Set up Docker Buildx- uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0-- - name: Set up QEMU- uses: docker/setup-qemu-action@ce360397dd3f832beb865e1373c09c0e9f86d70a # v4.0.0-- - name: Set up Depot CLI- uses: depot/setup-action@15c09a5f77a0840ad4bce955686522a257853461 # v1.7.1-- - name: Configure AWS credentials- uses: aws-actions/configure-aws-credentials@ec61189d14ec14c8efccab744f656cffd0e33f37 # v6.1.0- with:- role-to-assume: ${{ secrets.AWS_ECR_PUBLISH_IAM_ROLE }}- aws-region: us-east-1-- - name: Login to Amazon ECR- id: aws-ecr- uses: aws-actions/amazon-ecr-login@f2e9fc6c2b355c1890b65e6f6f0e2ac3e6e22f78 # v2.1.2-- - name: Build and push container image- id: build- uses: depot/build-push-action@5f3b3c2e5a00f0093de47f657aeaefcedff27d18 # v1.17.0- with:- project: c1f2m5s6zd- file: ./Dockerfile.ai-evals- buildx-fallback: false # the fallback is so slow it's better to just fail- push: true- tags: ${{ github.ref == 'refs/heads/master' && format('{0}/posthog-ai-evals:master,{0}/posthog-ai-evals:{1}', steps.aws-ecr.outputs.registry, github.sha) || format('{0}/posthog-ai-evals:{1}', steps.aws-ecr.outputs.registry, github.sha) }}- platforms: linux/arm64,linux/amd64- build-args: COMMIT_HASH=${{ github.sha }}diff --git a/Dockerfile.ai-evals b/Dockerfile.ai-evalsdeleted file mode 100644index 5e1e64cdffa9..000000000000--- a/Dockerfile.ai-evals+++ /dev/null@@ -1,61 +0,0 @@-# Same as pyproject.toml so that uv can pick it up and doesn't need to download a different Python version.-FROM python:3.12.12-slim-bookworm AS python-base-FROM ghcr.io/astral-sh/uv:0.10.2 AS uv-FROM cruizba/ubuntu-dind:latest-SHELL ["/bin/bash", "-e", "-o", "pipefail", "-c"]--# Copy Python base and uv-COPY --from=python-base /usr/local /usr/local-COPY --from=uv /uv /uvx /bin/--# Set working directory-WORKDIR /code--# uv settings for Docker builds-ENV UV_COMPILE_BYTECODE=1-ENV UV_LINK_MODE=copy-ENV UV_PROJECT_ENVIRONMENT=/python-runtime--# Copy Docker scripts-COPY docker/ ./docker/--# Install system dependencies-RUN apt-get update && \- apt-get install -y --no-install-recommends \- "build-essential" \- "git" \- "libpq-dev" \- "libxmlsec1" \- "libxmlsec1-dev" \- "libffi-dev" \- "zlib1g-dev" \- "pkg-config" \- "netcat-openbsd" \- "postgresql-client" \- && \- rm -rf /var/lib/apt/lists/*--# Install Python dependencies using cache mount for faster rebuilds-RUN --mount=type=cache,target=/root/.cache/uv \- --mount=type=bind,source=uv.lock,target=uv.lock \- --mount=type=bind,source=pyproject.toml,target=pyproject.toml \- --mount=type=bind,source=tools/hogli,target=tools/hogli \- uv sync --locked --no-install-project --no-binary-package lxml --no-binary-package xmlsec--# Copy project files-COPY bin/ ./bin/-COPY manage.py manage.py-COPY common/esbuilder common/esbuilder-COPY common/hogvm common/hogvm/-COPY posthog posthog/-COPY products/ products/-COPY ee ee/-COPY docker-compose.base.yml docker-compose.dev.yml ./--ENV PATH=/python-runtime/bin:$PATH \- PYTHONPATH=/python-runtime--# Make scripts executable-RUN chmod +x bin/*--CMD bin/docker-ai-evals