Skip to content

Commit

Permalink
Specify 22.04 in a few places
Browse files Browse the repository at this point in the history
  • Loading branch information
Twixes committed Dec 3, 2024
1 parent a6f6350 commit 6dc152f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
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-24.04
runs-on: ubuntu-22.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-24.04
runs-on: ubuntu-22.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-24.04
runs-on: ubuntu-22.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-24.04
runs-on: ubuntu-22.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-24.04
runs-on: ubuntu-22.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-24.04
runs-on: ubuntu-22.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-24.04
runs-on: ubuntu-22.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-24.04
runs-on: ubuntu-22.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-24.04
runs-on: ubuntu-22.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-24.04
runs-on: ubuntu-22.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-24.04
runs-on: ubuntu-22.04
needs: [cypress]
if: needs.changes.outputs.shouldTriggerCypress == 'true' &&
github.event.pull_request.head.repo.full_name == 'PostHog/posthog'
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-24.04
runs-on: ubuntu-22.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-24.04
runs-on: ubuntu-22.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-24.04
runs-on: ubuntu-22.04

strategy:
fail-fast: false
Expand Down Expand Up @@ -193,7 +193,7 @@ jobs:
functional-tests:
name: Functional tests
needs: changes
runs-on: ubuntu-24.04
runs-on: ubuntu-22.04

env:
REDIS_URL: 'redis://localhost'
Expand Down

0 comments on commit 6dc152f

Please sign in to comment.