diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index cea55fdf04693..c9eaa41e55139 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -7,7 +7,7 @@ # experience as rich as possible. Perhaps later down the line it might be worth # rolling our own # -FROM mcr.microsoft.com/vscode/devcontainers/python:3.10-bullseye +FROM mcr.microsoft.com/vscode/devcontainers/python:3.11-bullseye # Make sure all exit codes on pipes cause failures SHELL ["/bin/bash", "-o", "pipefail", "-c"] @@ -32,6 +32,7 @@ RUN apt-get update \ netcat brotli curl \ && rm -rf /var/lib/apt/lists/* +# hadolint ignore=DL3004 RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg \ && sudo chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg \ && echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null \ diff --git a/.github/actions/run-backend-tests/action.yml b/.github/actions/run-backend-tests/action.yml index edd36992a6614..c742d87dde90d 100644 --- a/.github/actions/run-backend-tests/action.yml +++ b/.github/actions/run-backend-tests/action.yml @@ -6,7 +6,7 @@ name: Run Django tests inputs: python-version: required: true - description: Python version, e.g. 3.10.10 + description: Python version, e.g. 3.11.4 clickhouse-server-image: required: true description: ClickHouse server image tag, e.g. clickhouse/clickhouse-server:latest diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 191b481a045d2..1541c9515d4a2 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -54,7 +54,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: 3.10.10 + python-version: 3.11.6 token: ${{ secrets.POSTHOG_BOT_GITHUB_TOKEN }} - uses: syphar/restore-virtualenv@v1 diff --git a/.github/workflows/ci-backend.yml b/.github/workflows/ci-backend.yml index f80300fca0a56..3f58a57a03bbd 100644 --- a/.github/workflows/ci-backend.yml +++ b/.github/workflows/ci-backend.yml @@ -103,13 +103,13 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: 3.10.10 + python-version: 3.11.6 token: ${{ secrets.POSTHOG_BOT_GITHUB_TOKEN }} - uses: syphar/restore-virtualenv@v1 id: cache-backend-tests with: - custom_cache_key_element: v1- + custom_cache_key_element: v1 - uses: syphar/restore-pip-download-cache@v1 if: steps.cache-backend-tests.outputs.cache-hit != 'true' @@ -181,13 +181,13 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: 3.10.10 + python-version: 3.11.6 token: ${{ secrets.POSTHOG_BOT_GITHUB_TOKEN }} - uses: syphar/restore-virtualenv@v1 id: cache-backend-tests with: - custom_cache_key_element: v1- + custom_cache_key_element: v1 - uses: syphar/restore-pip-download-cache@v1 if: steps.cache-backend-tests.outputs.cache-hit != 'true' @@ -237,7 +237,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ['3.10.10'] + python-version: ['3.11.6'] clickhouse-server-image: ['clickhouse/clickhouse-server:23.6.1.1524'] segment: ['FOSS', 'EE'] person-on-events: [false, true] @@ -325,13 +325,13 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: 3.10.10 + python-version: 3.11.6 token: ${{ secrets.POSTHOG_BOT_GITHUB_TOKEN }} - uses: syphar/restore-virtualenv@v1 id: cache-backend-tests with: - custom_cache_key_element: v1- + custom_cache_key_element: v1 - uses: syphar/restore-pip-download-cache@v1 if: steps.cache-backend-tests.outputs.cache-hit != 'true' diff --git a/.github/workflows/ci-hobby.yml b/.github/workflows/ci-hobby.yml index 9985a4402118b..3aae42d144c6a 100644 --- a/.github/workflows/ci-hobby.yml +++ b/.github/workflows/ci-hobby.yml @@ -29,7 +29,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 with: - python-version: '3.8' + python-version: '3.11.6' cache: 'pip' # caching pip dependencies token: ${{ secrets.POSTHOG_BOT_GITHUB_TOKEN }} - name: Get python deps diff --git a/.github/workflows/ci-plugin-server.yml b/.github/workflows/ci-plugin-server.yml index 81aa5cf4cd81f..fb47b5bc241e6 100644 --- a/.github/workflows/ci-plugin-server.yml +++ b/.github/workflows/ci-plugin-server.yml @@ -117,14 +117,14 @@ jobs: if: needs.changes.outputs.plugin-server == 'true' uses: actions/setup-python@v4 with: - python-version: 3.10.10 + python-version: 3.11.6 token: ${{ secrets.POSTHOG_BOT_GITHUB_TOKEN }} - uses: syphar/restore-virtualenv@v1 if: needs.changes.outputs.plugin-server == 'true' id: cache-backend-tests with: - custom_cache_key_element: v1- + custom_cache_key_element: v1 - uses: syphar/restore-pip-download-cache@v1 if: needs.changes.outputs.plugin-server == 'true' && steps.cache-backend-tests.outputs.cache-hit != 'true' @@ -215,13 +215,13 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: 3.10.10 + python-version: 3.11.6 token: ${{ secrets.POSTHOG_BOT_GITHUB_TOKEN }} - uses: syphar/restore-virtualenv@v1 id: cache-backend-tests with: - custom_cache_key_element: v1- + custom_cache_key_element: v1 - uses: syphar/restore-pip-download-cache@v1 if: steps.cache-backend-tests.outputs.cache-hit != 'true' diff --git a/.github/workflows/pr-deploy.yml b/.github/workflows/pr-deploy.yml index 5bcdc2ca1e49f..81638f4d29967 100644 --- a/.github/workflows/pr-deploy.yml +++ b/.github/workflows/pr-deploy.yml @@ -62,7 +62,10 @@ jobs: export PR_NUM=${{ github.event.number }} export BRANCH_NAME=${{ github.head_ref }} export RELEASE_NAME=posthog + # branch name but with no forward slashes export NAMESPACE=pr-$PR_NUM-${BRANCH_NAME//\//-} + # and no full stops + export NAMESPACE=${NAMESPACE//./-} export NAMESPACE=${NAMESPACE:0:38} export NAMESPACE=${NAMESPACE%%-} export HOSTNAME=$NAMESPACE diff --git a/.run/Celery.run.xml b/.run/Celery.run.xml index 82f170a5fa381..fc1702472e518 100644 --- a/.run/Celery.run.xml +++ b/.run/Celery.run.xml @@ -12,6 +12,7 @@