Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Specify Ubuntu 24.04 #26605

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/alert-on-failed-automerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-backend-update-test-timing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/ci-backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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' &&
(
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/ci-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 }}
Expand All @@ -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:
Expand All @@ -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:
Expand Down Expand Up @@ -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'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci-frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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 }})

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-hobby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci-hog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/ci-plugin-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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'
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codespaces.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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') }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/container-images-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/container-images-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/copy-clickhouse-udfs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/foss-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
test:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04

steps:
- name: Checkout code
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/livestream-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04

permissions:
contents: read
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-hogvm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
release:
name: Publish
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
defaults:
run:
working-directory: hogvm/typescript
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rust-docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stale.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/storybook-chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Loading
Loading