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(ci): only run AI evals when evals-ready label is set (#57949)

Georgiy Tarasov7cd2aded4c7a
diff --git a/.github/workflows/ci-ai.yml b/.github/workflows/ci-ai.yml
index 396ea3a07661..649ca150c8d9 100644
--- a/.github/workflows/ci-ai.yml
+++ b/.github/workflows/ci-ai.yml
@@ -2,16 +2,10 @@ name: AI
on:
pull_request:
types: [opened, synchronize, reopened, labeled, unlabeled]
- push:
- branches:
- - master
- paths:
- - 'ee/hogai/**'
- - '.github/workflows/ci-ai.yml'
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
- cancel-in-progress: ${{ github.event_name == 'pull_request' }} # We only want one AI CI run per PR concurrently
+ cancel-in-progress: true # We only want one AI CI run per PR concurrently
jobs:
eval:
@@ -20,9 +14,7 @@ jobs:
runs-on: ubuntu-latest
# Skipping on forks as Braintrust credentials are not available there
if: |
- github.repository == 'PostHog/posthog' && (
- github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'evals-ready')
- )
+ github.repository == 'PostHog/posthog' && contains(github.event.pull_request.labels.*.name, 'evals-ready')
strategy:
fail-fast: false