Skip to content

Commit

Permalink
Update Clickhouse version in CI (plausible#4617)
Browse files Browse the repository at this point in the history
* Update Clickhouse version in CI

* update order

* Update clickhouse image

* Update Makefile
  • Loading branch information
cnkk authored Oct 10, 2024
1 parent 141eea8 commit 0c40042
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/elixir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
--health-timeout 5s
--health-retries 5
clickhouse:
image: clickhouse/clickhouse-server:24.3.3.102-alpine
image: clickhouse/clickhouse-server:24.8.5.115-alpine
ports:
- 8123:8123
env:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ clickhouse: ## Start a container with a recent version of clickhouse
docker run $(CH_FLAGS) --volume=$$PWD/.clickhouse_db_vol:/var/lib/clickhouse clickhouse/clickhouse-server:latest-alpine

clickhouse-prod: ## Start a container with the same version of clickhouse as the one in prod
docker run $(CH_FLAGS) --volume=$$PWD/.clickhouse_db_vol_prod:/var/lib/clickhouse clickhouse/clickhouse-server:24.3.3.102-alpine
docker run $(CH_FLAGS) --volume=$$PWD/.clickhouse_db_vol_prod:/var/lib/clickhouse clickhouse/clickhouse-server:24.8.5.115-alpine

clickhouse-stop: ## Stop and remove the clickhouse container
docker stop plausible_clickhouse && docker rm plausible_clickhouse
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3105,8 +3105,8 @@ defmodule PlausibleWeb.Api.ExternalStatsController.QueryTest do
%{"results" => results} = json_response(conn, 200)

assert results == [
%{"dimensions" => ["/"], "metrics" => [2, 2, 2, 2, 50, 300]},
%{"dimensions" => ["/plausible.io"], "metrics" => [2, 2, 2, 2, 100, 0]}
%{"dimensions" => ["/plausible.io"], "metrics" => [2, 2, 2, 2, 100, 0]},
%{"dimensions" => ["/"], "metrics" => [2, 2, 2, 2, 50, 300]}
]
end
end
Expand Down

0 comments on commit 0c40042

Please sign in to comment.