mirror of
https://github.com/BillyOutlast/posthog.git
synced 2026-02-04 03:01:23 +01:00
chore: split tests onto their own dedicated GitHub runners (#15919)
This commit is contained in:
@@ -15,7 +15,7 @@ env:
|
||||
jobs:
|
||||
django:
|
||||
name: Run Django tests and save test durations
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-latest-backend
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
|
||||
12
.github/workflows/ci-backend.yml
vendored
12
.github/workflows/ci-backend.yml
vendored
@@ -38,7 +38,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-latest-backend
|
||||
timeout-minutes: 5
|
||||
if: github.repository == 'PostHog/posthog'
|
||||
name: Determine need to run backend checks
|
||||
@@ -81,7 +81,7 @@ jobs:
|
||||
timeout-minutes: 10
|
||||
|
||||
name: Python code quality checks
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-latest-backend
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
@@ -167,7 +167,7 @@ jobs:
|
||||
timeout-minutes: 5
|
||||
|
||||
name: Validate Django migrations
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-latest-backend
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
@@ -231,7 +231,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-latest-backend
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
@@ -311,7 +311,7 @@ jobs:
|
||||
if: github.repository == 'PostHog/posthog' && needs.changes.outputs.backend == 'true'
|
||||
|
||||
name: Django tests – Cloud
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-latest-backend
|
||||
steps:
|
||||
- name: Fetch posthog-cloud
|
||||
run: |
|
||||
@@ -410,7 +410,7 @@ jobs:
|
||||
name: Async migrations tests
|
||||
needs: changes
|
||||
if: needs.changes.outputs.backend == 'true'
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-latest-backend
|
||||
steps:
|
||||
- name: 'Checkout repo'
|
||||
uses: actions/checkout@v3
|
||||
|
||||
6
.github/workflows/ci-e2e.yml
vendored
6
.github/workflows/ci-e2e.yml
vendored
@@ -14,7 +14,7 @@ concurrency:
|
||||
|
||||
jobs:
|
||||
changes:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-latest-e2e
|
||||
timeout-minutes: 5
|
||||
if: github.repository == 'PostHog/posthog'
|
||||
name: Determine need to run E2E checks
|
||||
@@ -50,7 +50,7 @@ jobs:
|
||||
cypress_prep:
|
||||
needs: changes
|
||||
name: Cypress preparation
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-latest-e2e
|
||||
timeout-minutes: 30
|
||||
outputs:
|
||||
specs: ${{ steps.set-specs.outputs.specs }}
|
||||
@@ -75,7 +75,7 @@ jobs:
|
||||
|
||||
cypress:
|
||||
name: Cypress E2E tests (${{ strategy.job-index }})
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-latest-e2e
|
||||
timeout-minutes: 30
|
||||
needs: [cypress_prep, changes]
|
||||
permissions:
|
||||
|
||||
4
.github/workflows/ci-frontend.yml
vendored
4
.github/workflows/ci-frontend.yml
vendored
@@ -17,7 +17,7 @@ concurrency:
|
||||
jobs:
|
||||
frontend-code-quality:
|
||||
name: Code quality checks
|
||||
runs-on: ubuntu-20.04
|
||||
runs-on: ubuntu-latest-frontend
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
@@ -58,7 +58,7 @@ jobs:
|
||||
run: pnpm schema:build:json && git diff --exit-code
|
||||
|
||||
jest:
|
||||
runs-on: ubuntu-20.04
|
||||
runs-on: ubuntu-latest-frontend
|
||||
name: Jest test (${{ matrix.chunk }})
|
||||
|
||||
strategy:
|
||||
|
||||
8
.github/workflows/ci-plugin-server.yml
vendored
8
.github/workflows/ci-plugin-server.yml
vendored
@@ -44,7 +44,7 @@ concurrency:
|
||||
jobs:
|
||||
code-quality:
|
||||
name: Code quality
|
||||
runs-on: ubuntu-22.04
|
||||
runs-on: ubuntu-latest-pluginserver
|
||||
defaults:
|
||||
run:
|
||||
working-directory: 'plugin-server'
|
||||
@@ -74,7 +74,7 @@ jobs:
|
||||
|
||||
tests:
|
||||
name: Tests (${{matrix.shard}})
|
||||
runs-on: ubuntu-22.04
|
||||
runs-on: ubuntu-latest-pluginserver
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
@@ -159,7 +159,7 @@ jobs:
|
||||
|
||||
functional-tests:
|
||||
name: Functional tests (POE_EMBRACE_JOIN_FOR_TEAMS=${{matrix.POE_EMBRACE_JOIN_FOR_TEAMS}})
|
||||
runs-on: ubuntu-latest-8-cores
|
||||
runs-on: ubuntu-latest-pluginserver
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
@@ -263,7 +263,7 @@ jobs:
|
||||
# comparable results, but rather to give a rough idea of how
|
||||
# ingestion performance changes over time.
|
||||
|
||||
runs-on: ubuntu-latest-8-cores
|
||||
runs-on: ubuntu-latest-pluginserver
|
||||
|
||||
env:
|
||||
DEBUG: 'true'
|
||||
|
||||
4
.github/workflows/storybook-chromatic.yml
vendored
4
.github/workflows/storybook-chromatic.yml
vendored
@@ -49,7 +49,7 @@ jobs:
|
||||
|
||||
visual-regression:
|
||||
name: Visual regression tests
|
||||
runs-on: ubuntu-20.04
|
||||
runs-on: ubuntu-latest-frontend
|
||||
timeout-minutes: 30
|
||||
container:
|
||||
image: mcr.microsoft.com/playwright:v1.29.2
|
||||
@@ -191,7 +191,7 @@ jobs:
|
||||
|
||||
visual-regression-summary:
|
||||
name: Summarize visual regression tests
|
||||
runs-on: ubuntu-20.04
|
||||
runs-on: ubuntu-latest-frontend
|
||||
timeout-minutes: 5
|
||||
needs: visual-regression
|
||||
if: always() # Run even if visual-regression fails for one (or more) of the browsers
|
||||
|
||||
2
.github/workflows/storybook-deploy.yml
vendored
2
.github/workflows/storybook-deploy.yml
vendored
@@ -8,7 +8,7 @@ on:
|
||||
|
||||
jobs:
|
||||
storybook-deployment:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-latest-frontend
|
||||
if: github.repository == 'PostHog/posthog'
|
||||
steps:
|
||||
- name: Check out PostHog/posthog repo
|
||||
|
||||
Reference in New Issue
Block a user