0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-24 09:14:46 +01:00
Commit Graph

12 Commits

Author SHA1 Message Date
Karl-Aksel Puulmann
11ede28a08
Default to "posthog" cluster (#5164)
As-is this default hurts local dev - one more setting you need to
export. Let's keep the setup simple instead.

Also the new default would have broken helm chart and production
when updating with new migrations - the cluster name there is `posthog`
for both it seems.

Let's force other deploys to be explicit instead.
2021-07-16 17:04:15 +03:00
James Greenhill
751a35cd35
Make DDLs more friendly towards running on a cluster and cleanups (#5091)
* Make DDLs more friendly towards running on a cluster

* Use primary CLICKHOUSE host for migrations and DDL

* loose ends on person kafka create

* posthog -> cluster typo

* add cluster to KAFKA create for plugin logs

* Feed the type monster

* clusterfy local clickhouse

* test docker-compose backed github action

* run just clickhouse and postgres from docker-compose

* move option to between up and <services>

* posthog all the things

* suggest tests run on  cluster

* posthog cluster for ci

* use deploy path for docker-compose

* fix for a clickhouse bug 🐛

* complete CH bug fixes

* 5439 the github actions pg configs

* remove CLICKHOUSE_DATABASE (handled automatically)

* update DATABASE_URL for code quality checks

* Missed a few DDLs on Person

* 5439 -> 5432 to please the people

* cleanup persons and use f strings <3 f strings

* remove auto parens

* Update requirements to use our fork of infi.clickhouse_orm

* fix person.py formatting

* Include boilerplate macros for a cluster
2021-07-15 17:20:37 -07:00
Marius Andra
96720e51bd
remove 5439 and restore sanity (5432) (#5128) 2021-07-14 17:14:27 +02:00
Adrien Brault
89ed4ce864
Fix docker dev environment (#3861)
* Fix docker dev environment

- Use postgres 12 to fix a failing test
- Leverage a yaml anchor to share worker/web services configuration
- Add psql
- Configure psql

* Don't use :cached

* Use Postgres 12 in docker-compose everywhere

* Use postgresql-client-12

* Remove extraneous whitespace

* Clean up dev.Dockerfile

* Clean up EE dev/test docker-compose

* Simplify docker-compose.ch.test.yml

Co-authored-by: Michael Matloka <dev@twixes.com>
2021-04-03 20:41:47 +02:00
Michael Matloka
1fd8678734
Update plugin server in ee/docker-compose.* to 0.15.4 (#3863) 2021-04-02 17:16:10 +02:00
Michael Matloka
286287e8e1
Remove IS_DOCKER env var (#3843) 2021-04-01 17:10:00 +02:00
PostHog bot
1df3f7d927
Update posthog-js to 1.9.0 and @posthog/plugin-server to 0.11.3 (#3565)
* Update posthog-js to 1.9.0

* Update @posthog/plugin-server to 0.11.2

* Update @posthog/plugin-server to 0.11.3

Co-authored-by: posthog-bot <posthog-bot@users.noreply.github.com>
Co-authored-by: Michael Matloka <dev@twixes.com>
2021-03-03 12:27:44 +01:00
Michael Matloka
bb6d4b4358
docker-compose.ch(.test).yml files for plugin server (#3552) 2021-03-02 11:57:19 +01:00
Michael Matloka
dbbb113428
Make PLUGIN_SERVER_INGESTION True by default (#3485)
* Make PLUGIN_SERVER_INGESTION True by default

* Disable plugin server ingestion in tests by default

This is so that ingestion tests in here, which rely on old ingestion, don't fail. Plugin server ingestion itself is covered well in the plugin server repo.
2021-03-01 22:34:40 +01:00
Michael Matloka
6fb295ed51
Use plugin-server container in containerized deploys (#3515) 2021-03-01 12:56:33 +01:00
Karl-Aksel Puulmann
24de8b55e4
Run tests via pytest (#3417)
* Compile requirements-dev.txt with latest pip-tools

* Install pytest

* Avoid picking up factories as tests

* New runner

* Always set TEST env variable running tests

Some of our tests rely on it.

* Remove repetition

* Fix a broken test

* Cut down noise from bin/tests

* Rename test factory

* Fix stickiness filter

* Skip a broken test

This has been broken since numpy removal PR. Sadly tests were not
running for this submodule

* Fix import on ee

* Run ee tests properly

The django_db_setup fixture will be automatically run when running ee/
module tests.

* Make tests run on CI

* Include REDIS_URL, fix cloud

* Set TEST env variable

* Hack cloud tests to work

* Attempt at workflow fix

* Import Person model when running ee tests

This module implicitly adds hooks, so this is needed when running tests

* Respect reuse-db for clickhouse

* Add custom markers to avoid warnings

* pytest: use ch test database always

Accidentally wiped by ch setup a few times without this. Oops

* Remove repetition in tests

* Pytest: Always run migrations

Testing a state cleanup fix

* Use same DB in conftest and main code

* Pytest: autoset TEST setting without env variable

* fix broken test

Co-authored-by: eric <eeoneric@gmail.com>
2021-02-24 09:32:44 +02:00
James Greenhill
e8dcf13ad0
Emit timing gauge to statsd for sync_execute on clickhouse (#3209)
* Emit timing gauge to statsd for sync_execute on clickhouse

* take out of block for SHELL_PLUS_PRINT_SQL

* add docker testing for ease

* comment out cypress projectid
2021-02-05 14:13:38 -08:00