mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
ci: try c3d explicitly to measure the family change
The preset run came out 42% slower than RunsOn across 38 of 39 jobs, because n2d-standard-4 is EPYC Rome/Milan against the Zen 4 machines RunsOn was handing out for runner=4cpu-linux-x64/family=c7. These lanes are short and largely single-thread bound, so the core generation shows up directly. Explicit labels rather than presets, because the orchestrator reads .github/gcrunner.yml from the default branch on a public repository, so a preset edit on this branch would not affect this branch is own CI. Measure first, then move the family into the presets and restore runner=<name>.
This commit is contained in:
3 files changed
+13
-13
No files matched your search
+11
-11
@@ -46,7 +46,7 @@ jobs:
|
||||
runs-on: >-
|
||||
${{ (github.event_name != 'pull_request'
|
||||
|| github.event.pull_request.head.repo.full_name == github.repository)
|
||||
&& format('gcrunner={0}-security-{1}/runner=standard', github.run_id, strategy.job-index)
|
||||
&& format('gcrunner={0}-security-{1}/family=c3d/cpu=4+8/ram=16+32/disk=80gb', github.run_id, strategy.job-index)
|
||||
|| 'ubuntu-latest' }}
|
||||
permissions:
|
||||
contents: read
|
||||
@@ -104,7 +104,7 @@ jobs:
|
||||
runs-on: >-
|
||||
${{ (github.event_name != 'pull_request'
|
||||
|| github.event.pull_request.head.repo.full_name == github.repository)
|
||||
&& format('gcrunner={0}-checks-{1}/runner=standard', github.run_id, strategy.job-index)
|
||||
&& format('gcrunner={0}-checks-{1}/family=c3d/cpu=4+8/ram=16+32/disk=80gb', github.run_id, strategy.job-index)
|
||||
|| 'ubuntu-latest' }}
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
@@ -179,7 +179,7 @@ jobs:
|
||||
runs-on: >-
|
||||
${{ (github.event_name != 'pull_request'
|
||||
|| github.event.pull_request.head.repo.full_name == github.repository)
|
||||
&& format('gcrunner={0}-locale-{1}/runner=small', github.run_id, strategy.job-index)
|
||||
&& format('gcrunner={0}-locale-{1}/family=c3d/cpu=2+4/ram=8+16/disk=80gb', github.run_id, strategy.job-index)
|
||||
|| 'ubuntu-latest' }}
|
||||
steps:
|
||||
- name: Check out the repo
|
||||
@@ -278,7 +278,7 @@ jobs:
|
||||
runs-on: >-
|
||||
${{ (github.event_name != 'pull_request'
|
||||
|| github.event.pull_request.head.repo.full_name == github.repository)
|
||||
&& format('gcrunner={0}-packages-{1}/runner=small', github.run_id, strategy.job-index)
|
||||
&& format('gcrunner={0}-packages-{1}/family=c3d/cpu=2+4/ram=8+16/disk=80gb', github.run_id, strategy.job-index)
|
||||
|| 'ubuntu-latest' }}
|
||||
outputs:
|
||||
matrix: ${{ steps.changed.outputs.matrix }}
|
||||
@@ -350,7 +350,7 @@ jobs:
|
||||
runs-on: >-
|
||||
${{ (github.event_name != 'pull_request'
|
||||
|| github.event.pull_request.head.repo.full_name == github.repository)
|
||||
&& format('gcrunner={0}-package-{1}/runner=small', github.run_id, strategy.job-index)
|
||||
&& format('gcrunner={0}-package-{1}/family=c3d/cpu=2+4/ram=8+16/disk=80gb', github.run_id, strategy.job-index)
|
||||
|| 'ubuntu-latest' }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
@@ -385,7 +385,7 @@ jobs:
|
||||
|
||||
build:
|
||||
name: Build
|
||||
runs-on: gcrunner=${{ github.run_id }}/runner=build
|
||||
runs-on: gcrunner=${{ github.run_id }}/family=c3d/cpu=8/ram=32/disk=100gb
|
||||
timeout-minutes: 30
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
@@ -424,7 +424,7 @@ jobs:
|
||||
|
||||
unit:
|
||||
name: Tests / Unit
|
||||
runs-on: gcrunner=${{ github.run_id }}/runner=e2e
|
||||
runs-on: gcrunner=${{ github.run_id }}/family=c3d/cpu=4+8/ram=16+32/disk=80gb
|
||||
timeout-minutes: 15
|
||||
needs: build
|
||||
permissions:
|
||||
@@ -486,7 +486,7 @@ jobs:
|
||||
|
||||
e2e_general:
|
||||
name: Tests / E2E / General
|
||||
runs-on: gcrunner=${{ github.run_id }}/runner=e2e
|
||||
runs-on: gcrunner=${{ github.run_id }}/family=c3d/cpu=4+8/ram=16+32/disk=80gb
|
||||
timeout-minutes: 15
|
||||
needs: build
|
||||
permissions:
|
||||
@@ -555,7 +555,7 @@ jobs:
|
||||
|
||||
e2e_service:
|
||||
name: Tests / E2E / ${{ matrix.database }} (${{ matrix.mode }}) / ${{ matrix.service.name }}
|
||||
runs-on: gcrunner=${{ github.run_id }}/runner=${{ matrix.service.runner }}
|
||||
runs-on: gcrunner=${{ github.run_id }}/family=c3d/cpu=${{ matrix.service.runner == 'e2e-large' && '8+16' || '4+8' }}/ram=${{ matrix.service.runner == 'e2e-large' && '32+64' || '16+32' }}/disk=80gb
|
||||
timeout-minutes: 20
|
||||
needs: [build, matrix]
|
||||
permissions:
|
||||
@@ -720,7 +720,7 @@ jobs:
|
||||
|
||||
e2e_grouped:
|
||||
name: Tests / E2E / ${{ matrix.config.label }} (${{ matrix.mode }})
|
||||
runs-on: gcrunner=${{ github.run_id }}/runner=e2e
|
||||
runs-on: gcrunner=${{ github.run_id }}/family=c3d/cpu=4+8/ram=16+32/disk=80gb
|
||||
timeout-minutes: 35
|
||||
needs: [build, matrix]
|
||||
permissions:
|
||||
@@ -879,7 +879,7 @@ jobs:
|
||||
benchmark:
|
||||
name: Benchmark
|
||||
if: github.event_name == 'pull_request' || github.event_name == 'push'
|
||||
runs-on: gcrunner=${{ github.run_id }}/runner=e2e
|
||||
runs-on: gcrunner=${{ github.run_id }}/family=c3d/cpu=4+8/ram=16+32/disk=80gb
|
||||
timeout-minutes: 20
|
||||
needs: build
|
||||
permissions:
|
||||
|
||||
@@ -16,7 +16,7 @@ on:
|
||||
jobs:
|
||||
setup:
|
||||
name: Setup & Build SDK
|
||||
runs-on: gcrunner=${{ github.run_id }}-setup-${{ strategy.job-index }}/runner=publish
|
||||
runs-on: gcrunner=${{ github.run_id }}-setup-${{ strategy.job-index }}/family=c3d/cpu=4/ram=16/disk=80gb
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
|
||||
@@ -30,7 +30,7 @@ on:
|
||||
jobs:
|
||||
generate:
|
||||
name: Generate Specs
|
||||
runs-on: gcrunner=${{ github.run_id }}-generate-${{ strategy.job-index }}/runner=publish
|
||||
runs-on: gcrunner=${{ github.run_id }}-generate-${{ strategy.job-index }}/family=c3d/cpu=4/ram=16/disk=80gb
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
|
||||
Reference in new issue
Block a user