: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): refine geoip canary alert to skip infra failures (#64455)
Julian Bez17bc143cc807
diff --git a/.github/workflows/ci-geoip-canary.yml b/.github/workflows/ci-geoip-canary.ymlindex 7cad86ea8c8c..aa95496a0f6d 100644--- a/.github/workflows/ci-geoip-canary.yml+++ b/.github/workflows/ci-geoip-canary.yml@@ -60,15 +60,19 @@ jobs:run: pnpm --filter=@posthog/nodejs... install --frozen-lockfile- name: Run canary against live database+ id: canaryenv:GEOIP_LIVE_TEST: '1'run: cd nodejs && pnpm jest src/utils/geoip-live.test.ts --runInBand --forceExit- # A failure here means the live GeoLite2 build dropped location data for the- # anchor IPs — i.e. a bad MaxMind release is already baked into production- # images. On the schedule nobody is watching the run, so alert explicitly.+ # Only the canary test itself failing means the live GeoLite2 build dropped+ # location data for the anchor IPs — i.e. a bad MaxMind release is already+ # baked into production images. Infra failures upstream (checkout, MaxMind+ # download, pnpm install) are CI noise, not a degraded database, so don't+ # page Slack for them. On the schedule nobody is watching the run, so alert+ # explicitly when the test genuinely fails.- name: Notify Slack on canary failure- if: failure()+ if: failure() && steps.canary.outcome == 'failure'uses: slackapi/slack-github-action@af78098f536edbc4de71162a307590698245be95 # v3.0.1with:method: chat.postMessage