: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(cohorts): add cohort services to rust image build and deploy (#66148)
Matheus Batistaebc5785b8be7
diff --git a/.github/rust-images.yml b/.github/rust-images.ymlindex c7e978997734..dc7c8d345323 100644--- a/.github/rust-images.yml+++ b/.github/rust-images.yml@@ -57,6 +57,14 @@dockerfile: ./rust/Dockerfileproject: vglf58qgzw+- image: cohort-event-shuffler+ dockerfile: ./rust/Dockerfile+ project: vglf58qgzw++- image: cohort-stream-processor+ dockerfile: ./rust/Dockerfile+ project: vglf58qgzw+- image: batch-import-workerdockerfile: ./rust/Dockerfileproject: 4ppc15q4bvdiff --git a/.github/workflows/rust-docker-build.yml b/.github/workflows/rust-docker-build.ymlindex efd4ea7984b7..c604ad74f912 100644--- a/.github/workflows/rust-docker-build.yml+++ b/.github/workflows/rust-docker-build.yml@@ -135,6 +135,12 @@ jobs:- release: flags-consumerdigest_key: flags-consumervalues_key: image+ - release: cohort-event-shuffler+ digest_key: cohort-event-shuffler+ values_key: image+ - release: cohort-stream-processor+ digest_key: cohort-stream-processor+ values_key: image- release: batch-import-workerdigest_key: batch-import-workervalues_key: imagediff --git a/bin/mprocs.yaml b/bin/mprocs.yamlindex ab3903ba60fd..195bff54978a 100755--- a/bin/mprocs.yaml+++ b/bin/mprocs.yaml@@ -476,14 +476,13 @@ procs:ready_pattern: 'Metrics server listening on *'# Behavioral Cohorts stream rebuild (Rust). The shuffler keys clickhouse_events_json into- # cohort_stream_events; the processor consumes that and emits membership changes. Both are gated- # behind the `behavioral_cohorts` capability (wired into the `cohorts` intent) so they only run- # when a dev opts in — the default no-intent manifest is unchanged.+ # cohort_stream_events; the processor consumes that and emits membership changes. Opt-in+ # (autostart: false).cohort-event-shuffler:shell: |-bin/wait-for-docker && \bin/start-rust-service cohort-event-shuffler- capability: behavioral_cohorts+ autostart: falseready_pattern: 'observability server starting'groups:layer: Product services@@ -493,7 +492,7 @@ procs:shell: |-bin/wait-for-docker && \bin/start-rust-service cohort-stream-processor- capability: behavioral_cohorts+ autostart: falseready_pattern: 'observability server starting'groups:layer: Product servicesdiff --git a/devenv/intent-map.yaml b/devenv/intent-map.yamlindex b070f96e9c8d..cb4e56723f29 100644--- a/devenv/intent-map.yaml+++ b/devenv/intent-map.yaml@@ -152,11 +152,6 @@ capabilities:requires: [event_ingestion]docker_profiles: []- behavioral_cohorts:- description: 'Behavioral Cohorts stream rebuild (Rust cohort-event-shuffler + cohort-stream-processor)'- requires: [event_ingestion]- docker_profiles: []-nodejs_session_replay:description: 'Node.js Session Replay - recording ingestion'requires: [event_ingestion]@@ -340,7 +335,6 @@ intents:celery_workers,celery_scheduler,nodejs_realtime_cohorts,- behavioral_cohorts,]pipelines:diff --git a/rust/affected-services/tests/integration.rs b/rust/affected-services/tests/integration.rsindex da9e6de3605a..c9242eb8f5b7 100644--- a/rust/affected-services/tests/integration.rs+++ b/rust/affected-services/tests/integration.rs@@ -111,9 +111,6 @@ fn every_deployable_binary_has_an_image_entry() {"stl_dump","run", // hogvm dev/diff CLI, not a service"hermes",- // Not yet in .github/rust-images.yml — no production Depot/chart image build.- "cohort-event-shuffler",- "cohort-stream-processor",].into();