From b6aa028bdaeb32e451697a6544332ef891d5cd31 Mon Sep 17 00:00:00 2001 From: Michael Matloka Date: Fri, 6 Dec 2024 09:01:56 +0100 Subject: [PATCH] ci: Specify Ubuntu 24.04 (#26605) --- .github/workflows/alert-on-failed-automerge.yml | 2 +- .github/workflows/automerge.yml | 2 +- .github/workflows/ci-backend-update-test-timing.yml | 2 +- .github/workflows/ci-backend.yml | 12 ++++++------ .github/workflows/ci-e2e.yml | 10 +++++----- .github/workflows/ci-frontend.yml | 6 +++--- .github/workflows/ci-hobby.yml | 2 +- .github/workflows/ci-hog.yml | 4 ++-- .github/workflows/ci-plugin-server.yml | 8 ++++---- .github/workflows/codeql.yml | 2 +- .github/workflows/codespaces.yml | 2 +- .github/workflows/container-images-cd.yml | 2 +- .github/workflows/container-images-ci.yml | 4 ++-- .github/workflows/copy-clickhouse-udfs.yml | 2 +- .github/workflows/foss-sync.yml | 2 +- .github/workflows/go.yml | 2 +- .github/workflows/lint-pr.yml | 2 +- .github/workflows/livestream-docker-image.yml | 4 ++-- .github/workflows/pr-cleanup.yml | 2 +- .github/workflows/pr-deploy.yml | 2 +- .github/workflows/release-hogvm.yml | 2 +- .github/workflows/rust-docker-build.yml | 2 +- .github/workflows/rust.yml | 2 +- .github/workflows/stale.yaml | 2 +- .github/workflows/storybook-chromatic.yml | 6 +++--- .github/workflows/storybook-deploy.yml | 2 +- .github/workflows/vector-docker-build-deploy.yml | 2 +- 27 files changed, 46 insertions(+), 46 deletions(-) diff --git a/.github/workflows/alert-on-failed-automerge.yml b/.github/workflows/alert-on-failed-automerge.yml index af9fde9675ed4..31582b50d11c1 100644 --- a/.github/workflows/alert-on-failed-automerge.yml +++ b/.github/workflows/alert-on-failed-automerge.yml @@ -9,7 +9,7 @@ on: jobs: notify_on_failure: if: ${{ github.event.check_suite.conclusion == 'failure' }} - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - name: Checkout code diff --git a/.github/workflows/automerge.yml b/.github/workflows/automerge.yml index 20a3dbf314649..4b2a41b91384f 100644 --- a/.github/workflows/automerge.yml +++ b/.github/workflows/automerge.yml @@ -23,7 +23,7 @@ on: jobs: automerge: name: Automerge if requested - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 env: IS_POSTHOG_BOT_AVAILABLE: ${{ secrets.POSTHOG_BOT_GITHUB_TOKEN != '' }} steps: diff --git a/.github/workflows/ci-backend-update-test-timing.yml b/.github/workflows/ci-backend-update-test-timing.yml index 39a1993119701..eb1c36329ce6e 100644 --- a/.github/workflows/ci-backend-update-test-timing.yml +++ b/.github/workflows/ci-backend-update-test-timing.yml @@ -19,7 +19,7 @@ env: jobs: django: name: Run Django tests and save test durations - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/ci-backend.yml b/.github/workflows/ci-backend.yml index 943b6611006d7..410d4deb18461 100644 --- a/.github/workflows/ci-backend.yml +++ b/.github/workflows/ci-backend.yml @@ -43,7 +43,7 @@ jobs: # Job to decide if we should run backend ci # See https://github.com/dorny/paths-filter#conditional-execution for more details changes: - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 timeout-minutes: 5 name: Determine need to run backend checks # Set job outputs to values from filter step @@ -94,7 +94,7 @@ jobs: timeout-minutes: 30 name: Python code quality checks - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: # If this run wasn't initiated by the bot (meaning: snapshot update) and we've determined @@ -153,7 +153,7 @@ jobs: timeout-minutes: 10 name: Validate Django and CH migrations - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v3 @@ -228,7 +228,7 @@ jobs: timeout-minutes: 30 name: Django tests – ${{ matrix.segment }} (persons-on-events ${{ matrix.person-on-events && 'on' || 'off' }}), Py ${{ matrix.python-version }}, ${{ matrix.clickhouse-server-image }} (${{matrix.group}}/${{ matrix.concurrency }}) - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 strategy: fail-fast: false @@ -328,7 +328,7 @@ jobs: matrix: clickhouse-server-image: ['clickhouse/clickhouse-server:24.8.7.41'] if: needs.changes.outputs.backend == 'true' - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - name: 'Checkout repo' uses: actions/checkout@v3 @@ -382,7 +382,7 @@ jobs: calculate-running-time: name: Calculate running time needs: [django, async-migrations] - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 if: # Run on pull requests to PostHog/posthog + on PostHog/posthog outside of PRs - but never on forks needs.changes.outputs.backend == 'true' && ( diff --git a/.github/workflows/ci-e2e.yml b/.github/workflows/ci-e2e.yml index 97deeffe6bd2a..4ec28981e5f1d 100644 --- a/.github/workflows/ci-e2e.yml +++ b/.github/workflows/ci-e2e.yml @@ -14,7 +14,7 @@ concurrency: jobs: changes: - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 timeout-minutes: 5 name: Determine need to run E2E checks # Set job outputs to values from filter step @@ -53,7 +53,7 @@ jobs: chunks: needs: changes name: Cypress preparation - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 timeout-minutes: 5 outputs: chunks: ${{ steps.chunk.outputs.chunks }} @@ -67,7 +67,7 @@ jobs: container: name: Build and cache container image - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 timeout-minutes: 60 needs: [changes] permissions: @@ -91,7 +91,7 @@ jobs: cypress: name: Cypress E2E tests (${{ strategy.job-index }}) - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 timeout-minutes: 60 needs: [chunks, changes, container] permissions: @@ -279,7 +279,7 @@ jobs: calculate-running-time: name: Calculate running time - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 needs: [cypress] if: needs.changes.outputs.shouldTriggerCypress == 'true' && github.event.pull_request.head.repo.full_name == 'PostHog/posthog' diff --git a/.github/workflows/ci-frontend.yml b/.github/workflows/ci-frontend.yml index d466e0d3cdb82..f59c7e8eef790 100644 --- a/.github/workflows/ci-frontend.yml +++ b/.github/workflows/ci-frontend.yml @@ -16,7 +16,7 @@ jobs: # we skip each step individually, so they are still reported as success # because many of them are required for CI checks to be green changes: - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 timeout-minutes: 5 name: Determine need to run frontend checks outputs: @@ -54,7 +54,7 @@ jobs: name: Code quality checks needs: changes # kea typegen and typescript:check need some more oomph - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: # we need at least one thing to run to make sure we include everything for required jobs - uses: actions/checkout@v3 @@ -121,7 +121,7 @@ jobs: minimum-change-threshold: 1000 jest: - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 needs: changes name: Jest test (${{ matrix.segment }} - ${{ matrix.chunk }}) diff --git a/.github/workflows/ci-hobby.yml b/.github/workflows/ci-hobby.yml index 0025e656c8204..73d29cbdad746 100644 --- a/.github/workflows/ci-hobby.yml +++ b/.github/workflows/ci-hobby.yml @@ -21,7 +21,7 @@ concurrency: jobs: changes: - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 # this is a slow one timeout-minutes: 30 name: Setup DO Hobby Instance and test diff --git a/.github/workflows/ci-hog.yml b/.github/workflows/ci-hog.yml index 7fee499a801f1..69a3bc3d5f133 100644 --- a/.github/workflows/ci-hog.yml +++ b/.github/workflows/ci-hog.yml @@ -20,7 +20,7 @@ jobs: # Job to decide if we should run backend ci # See https://github.com/dorny/paths-filter#conditional-execution for more details changes: - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 timeout-minutes: 5 name: Determine need to run Hog checks # Set job outputs to values from filter step @@ -50,7 +50,7 @@ jobs: timeout-minutes: 30 name: Hog tests - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: # If this run wasn't initiated by the bot (meaning: snapshot update) and we've determined diff --git a/.github/workflows/ci-plugin-server.yml b/.github/workflows/ci-plugin-server.yml index ecd13c789ddf8..30ca845cd89b6 100644 --- a/.github/workflows/ci-plugin-server.yml +++ b/.github/workflows/ci-plugin-server.yml @@ -24,7 +24,7 @@ jobs: # Job to decide if we should run plugin server ci # See https://github.com/dorny/paths-filter#conditional-execution for more details changes: - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 timeout-minutes: 5 name: Determine need to run plugin server checks outputs: @@ -53,7 +53,7 @@ jobs: name: Code quality needs: changes if: needs.changes.outputs.plugin-server == 'true' - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 defaults: run: working-directory: 'plugin-server' @@ -81,7 +81,7 @@ jobs: tests: name: Plugin Server Tests (${{matrix.shard}}) needs: changes - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 strategy: fail-fast: false @@ -193,7 +193,7 @@ jobs: functional-tests: name: Functional tests needs: changes - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 env: REDIS_URL: 'redis://localhost' diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index a914e2a95225e..56f1ed3bf0330 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -31,7 +31,7 @@ jobs: # - https://gh.io/supported-runners-and-hardware-resources # - https://gh.io/using-larger-runners (GitHub.com only) # Consider using larger runners or machines with greater resources for possible analysis time improvements. - runs-on: 'ubuntu-latest' + runs-on: 'ubuntu-24.04' timeout-minutes: 15 permissions: # required for all workflows diff --git a/.github/workflows/codespaces.yml b/.github/workflows/codespaces.yml index b725c032ddacd..06f796951dbe2 100644 --- a/.github/workflows/codespaces.yml +++ b/.github/workflows/codespaces.yml @@ -21,7 +21,7 @@ on: jobs: build: name: Build Codespaces image - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 # Build on master and PRs with the label 'codespaces-build' only if: ${{ github.ref == 'refs/heads/master' || contains(github.event.pull_request.labels.*.name, 'codespaces-build') }} diff --git a/.github/workflows/container-images-cd.yml b/.github/workflows/container-images-cd.yml index e7fe1a1608b73..b393214ec72da 100644 --- a/.github/workflows/container-images-cd.yml +++ b/.github/workflows/container-images-cd.yml @@ -22,7 +22,7 @@ jobs: posthog_build: name: Build and push PostHog if: github.repository == 'PostHog/posthog' - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 permissions: id-token: write # allow issuing OIDC tokens for this workflow run contents: read # allow at least reading the repo contents, add other permissions if necessary diff --git a/.github/workflows/container-images-ci.yml b/.github/workflows/container-images-ci.yml index c690c11dd2663..7b434a7cb546d 100644 --- a/.github/workflows/container-images-ci.yml +++ b/.github/workflows/container-images-ci.yml @@ -13,7 +13,7 @@ concurrency: jobs: posthog_build: name: Build Docker image - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 permissions: id-token: write # allow issuing OIDC tokens for this workflow run contents: read # allow at least reading the repo contents, add other permissions if necessary @@ -51,7 +51,7 @@ jobs: lint: name: Lint changed Dockerfiles - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - name: Check out uses: actions/checkout@v3 diff --git a/.github/workflows/copy-clickhouse-udfs.yml b/.github/workflows/copy-clickhouse-udfs.yml index 3dc6fce3ade07..b55d66bc30e8b 100644 --- a/.github/workflows/copy-clickhouse-udfs.yml +++ b/.github/workflows/copy-clickhouse-udfs.yml @@ -9,7 +9,7 @@ on: jobs: trigger_udfs_workflow: - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - name: Trigger UDFs Workflow uses: benc-uk/workflow-dispatch@v1 diff --git a/.github/workflows/foss-sync.yml b/.github/workflows/foss-sync.yml index 82334bfe89f5a..b8edfe63210b9 100644 --- a/.github/workflows/foss-sync.yml +++ b/.github/workflows/foss-sync.yml @@ -10,7 +10,7 @@ jobs: repo-sync: name: Sync posthog-foss with posthog if: github.repository == 'PostHog/posthog' - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - name: Sync repositories 1 to 1 - master branch uses: PostHog/git-sync@v3 diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 37c4e75ddb9bc..4fc7344a97216 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -7,7 +7,7 @@ on: jobs: test: - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - name: Checkout code diff --git a/.github/workflows/lint-pr.yml b/.github/workflows/lint-pr.yml index 3efcc6c9523de..2f700829f2921 100644 --- a/.github/workflows/lint-pr.yml +++ b/.github/workflows/lint-pr.yml @@ -10,7 +10,7 @@ on: jobs: lint-pr: name: Validate PR title against Conventional Commits - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - uses: amannn/action-semantic-pull-request@v5 env: diff --git a/.github/workflows/livestream-docker-image.yml b/.github/workflows/livestream-docker-image.yml index 7023ee98c03f1..5efde377f5866 100644 --- a/.github/workflows/livestream-docker-image.yml +++ b/.github/workflows/livestream-docker-image.yml @@ -10,7 +10,7 @@ on: jobs: build: - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 permissions: contents: read @@ -59,7 +59,7 @@ jobs: labels: ${{ steps.meta.outputs.labels }} deploy: - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 needs: build steps: - name: get deployer token diff --git a/.github/workflows/pr-cleanup.yml b/.github/workflows/pr-cleanup.yml index 26f46533847f7..0c0586e8ec0b5 100644 --- a/.github/workflows/pr-cleanup.yml +++ b/.github/workflows/pr-cleanup.yml @@ -9,7 +9,7 @@ on: jobs: deploy_preview_cleanup: name: Deploy Preview Cleanup - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 if: ${{ contains(github.event.pull_request.labels.*.name, 'deploy') }} permissions: diff --git a/.github/workflows/pr-deploy.yml b/.github/workflows/pr-deploy.yml index 26896c7566091..807b1823dc17b 100644 --- a/.github/workflows/pr-deploy.yml +++ b/.github/workflows/pr-deploy.yml @@ -10,7 +10,7 @@ on: jobs: deploy_preview: name: Deploy preview environment - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 permissions: id-token: write diff --git a/.github/workflows/release-hogvm.yml b/.github/workflows/release-hogvm.yml index 3d173bcca4591..6c8480202b24d 100644 --- a/.github/workflows/release-hogvm.yml +++ b/.github/workflows/release-hogvm.yml @@ -9,7 +9,7 @@ on: jobs: release: name: Publish - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 defaults: run: working-directory: hogvm/typescript diff --git a/.github/workflows/rust-docker-build.yml b/.github/workflows/rust-docker-build.yml index 1535867f572f0..4237599d9b311 100644 --- a/.github/workflows/rust-docker-build.yml +++ b/.github/workflows/rust-docker-build.yml @@ -118,7 +118,7 @@ jobs: deploy: name: deploy ${{ matrix.release }} - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 needs: build if: github.ref == 'refs/heads/master' strategy: diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 0dd62fcd25f7f..29268601c4db4 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -13,7 +13,7 @@ jobs: # Job to decide if we should run rust ci # See https://github.com/dorny/paths-filter#conditional-execution for more details changes: - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 timeout-minutes: 5 if: github.repository == 'PostHog/posthog' name: Determine need to run Rust checks diff --git a/.github/workflows/stale.yaml b/.github/workflows/stale.yaml index 9f2797cca668a..635e01600286c 100644 --- a/.github/workflows/stale.yaml +++ b/.github/workflows/stale.yaml @@ -7,7 +7,7 @@ jobs: stale: # Only unleash the stale bot on PostHog/posthog, as there's no POSTHOG_BOT_GITHUB_TOKEN token on forks if: ${{ github.repository == 'PostHog/posthog' }} - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - uses: actions/stale@v9 with: diff --git a/.github/workflows/storybook-chromatic.yml b/.github/workflows/storybook-chromatic.yml index 809328e296c90..7d5d68e1ac2a3 100644 --- a/.github/workflows/storybook-chromatic.yml +++ b/.github/workflows/storybook-chromatic.yml @@ -18,7 +18,7 @@ concurrency: jobs: storybook-chromatic: name: Publish to Chromatic - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 timeout-minutes: 15 if: github.event.pull_request.head.repo.full_name == github.repository # Don't run on forks outputs: @@ -50,7 +50,7 @@ jobs: visual-regression: name: Visual regression tests - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 timeout-minutes: 30 container: image: mcr.microsoft.com/playwright:v1.45.0 @@ -211,7 +211,7 @@ jobs: visual-regression-summary: name: Summarize visual regression tests - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 timeout-minutes: 5 needs: visual-regression if: always() # Run even if visual-regression fails for one (or more) of the browsers diff --git a/.github/workflows/storybook-deploy.yml b/.github/workflows/storybook-deploy.yml index 9a04f8e582ced..33520a355a244 100644 --- a/.github/workflows/storybook-deploy.yml +++ b/.github/workflows/storybook-deploy.yml @@ -8,7 +8,7 @@ on: jobs: storybook-deployment: - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 if: github.repository == 'PostHog/posthog' steps: - name: Check out PostHog/posthog repo diff --git a/.github/workflows/vector-docker-build-deploy.yml b/.github/workflows/vector-docker-build-deploy.yml index a1d97f846f298..d78e2e9b2d089 100644 --- a/.github/workflows/vector-docker-build-deploy.yml +++ b/.github/workflows/vector-docker-build-deploy.yml @@ -74,7 +74,7 @@ jobs: platforms: linux/arm64,linux/amd64 deploy: - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 needs: build if: github.ref == 'refs/heads/master' steps: