Skip to content

Commit

Permalink
24.3 -> 24.4 and ch
Browse files Browse the repository at this point in the history
  • Loading branch information
fuziontech committed Oct 1, 2024
1 parent fba852d commit ab8450e
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/actions/run-backend-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ runs:

- name: Upload updated timing data as artifacts
uses: actions/upload-artifact@v4
if: ${{ inputs.person-on-events != 'true' && inputs.clickhouse-server-image == 'altinity/clickhouse-server:24.3.5.47.altinitystable' }}
if: ${{ inputs.person-on-events != 'true' && inputs.clickhouse-server-image == 'clickhouse/clickhouse-server:24.4.4.113-alpine' }}
with:
name: timing_data-${{ inputs.segment }}-${{ inputs.group }}
path: .test_durations
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci-backend-update-test-timing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ jobs:
group: 1
token: ${{ secrets.POSTHOG_BOT_GITHUB_TOKEN }}
python-version: '3.11.9'
clickhouse-server-image: 'altinity/clickhouse-server:24.3.5.47.altinitystable'
clickhouse-server-image: 'clickhouse/clickhouse-server:24.4.4.113-alpine'
segment: 'FOSS'
person-on-events: false

- name: Upload updated timing data as artifacts
uses: actions/upload-artifact@v4
if: ${{ inputs.person-on-events != 'true' && inputs.clickhouse-server-image == 'altinity/clickhouse-server:24.3.5.47.altinitystable' }}
if: ${{ inputs.person-on-events != 'true' && inputs.clickhouse-server-image == 'clickhouse/clickhouse-server:24.4.4.113-alpine' }}
with:
name: timing_data-${{ inputs.segment }}-${{ inputs.group }}
path: .test_durations
Expand Down
12 changes: 3 additions & 9 deletions .github/workflows/ci-backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -235,10 +235,7 @@ jobs:
matrix:
python-version: ['3.11.9']
clickhouse-server-image:
[
'clickhouse/clickhouse-server:23.12.6.19-alpine',
'altinity/clickhouse-server:24.3.5.47.altinitystable',
]
['clickhouse/clickhouse-server:23.12.6.19-alpine', 'clickhouse/clickhouse-server:24.4.4.113-alpine']
segment: ['Core']
person-on-events: [false, true]
# :NOTE: Keep concurrency and groups in sync
Expand All @@ -247,7 +244,7 @@ jobs:
include:
- segment: 'Temporal'
person-on-events: false
clickhouse-server-image: 'altinity/clickhouse-server:24.3.5.47.altinitystable'
clickhouse-server-image: 'clickhouse/clickhouse-server:24.4.4.113-alpine'
python-version: '3.11.9'
concurrency: 1
group: 1
Expand Down Expand Up @@ -319,10 +316,7 @@ jobs:
fail-fast: false
matrix:
clickhouse-server-image:
[
'clickhouse/clickhouse-server:23.12.6.19-alpine',
'altinity/clickhouse-server:24.3.5.47.altinitystable',
]
['clickhouse/clickhouse-server:23.12.6.19-alpine', 'clickhouse/clickhouse-server:24.4.4.113-alpine']
if: needs.changes.outputs.backend == 'true'
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ services:
# Note: please keep the default version in sync across
# `posthog` and the `charts-clickhouse` repos
#
image: ${CLICKHOUSE_SERVER_IMAGE:-altinity/clickhouse-server:24.3.5.47.altinitystable}
image: ${CLICKHOUSE_SERVER_IMAGE:-clickhouse/clickhouse-server:24.4.4.113-alpine}
restart: on-failure

zookeeper:
Expand Down
1 change: 1 addition & 0 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ services:
service: clickhouse
ports:
- '8123:8123'
- '8443:8443'
- '9000:9000'
- '9440:9440'
- '9009:9009'
Expand Down
8 changes: 4 additions & 4 deletions posthog/models/raw_sessions/sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,17 +89,17 @@
-- verify correctness and as a backup. Ideally we will be able to delete the uniq columns in the future when we're
-- satisfied that counts are accurate.
pageview_count SimpleAggregateFunction(sum, Int64),
pageview_uniq AggregateFunction(uniq, Nullable(UUID)),
pageview_uniq AggregateFunction(uniq, UUID),
autocapture_count SimpleAggregateFunction(sum, Int64),
autocapture_uniq AggregateFunction(uniq, Nullable(UUID)),
autocapture_uniq AggregateFunction(uniq, UUID),
screen_count SimpleAggregateFunction(sum, Int64),
screen_uniq AggregateFunction(uniq, Nullable(UUID)),
screen_uniq AggregateFunction(uniq, UUID),
-- replay
maybe_has_session_replay SimpleAggregateFunction(max, Bool), -- will be written False to by the events table mv and True to by the replay table mv
-- as a performance optimisation, also keep track of the uniq events for all of these combined, a bounce is a session with <2 of these
page_screen_autocapture_uniq_up_to AggregateFunction(uniqUpTo(1), Nullable(UUID)),
page_screen_autocapture_uniq_up_to AggregateFunction(uniqUpTo(1), UUID),
-- web vitals
vitals_lcp AggregateFunction(argMin, Nullable(Float64), DateTime64(6, 'UTC'))
Expand Down

0 comments on commit ab8450e

Please sign in to comment.