Repository navigation
ci: select runners by preset instead of a machine spec - #13779
Merged
Merged
Conversation
Each label names the shape it needs and the shape is defined once, in .github/gcrunner.yml. No preset names an image, so the default resolves the image family rather than a build name that the image workflow can prune. Depends on the presets being on main first: the orchestrator reads that file from the default branch on a public repository, so these labels resolve only after #13778 lands.
Contributor
|
✨ Benchmark resultsComparing
Per-scenario breakdown & investigation detailsMetrics below reflect the current branch (after). Δ P95 compares against the base.
Top API waits (after)
|
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>.
Per-step timing shows the gap is image pulls, not compute: Run tests is 3s on RunsOn against 5s here, while Pull Docker Image is 12s against 54s and Pull Docker Compose images 50s against 87s. The app image already comes from GCRUNNER_REGISTRY_PULL, but jobs spread over eight regions, so each regional read-through cache is cold for a new SHA and the image is fetched cross-region once per region. europe-west3 is where the source registry lives, so pinning there should make every job after the first a local hit.
This reverts commit eb475b5.
The explicit family=c3d labels were only there to measure the family change on this branch, since the orchestrator reads .github/gcrunner.yml from the default branch on a public repository. The measurement is done and the family moves into the presets in #13782, so the labels go back to runner=<name>.
pull Bot
pushed a commit
to erickirt/appwrite
that referenced
this pull request
Sep 20, 2026
n2d-standard-4 is EPYC Rome/Milan where RunsOn was handing out Zen 4, and these lanes are short and largely single-thread bound, so the core generation shows up directly: 42% slower than RunsOn on n2d against 21% on c3d, measured on appwrite#13779. Only the family changes, so every existing runner=<name> keeps resolving.
HarshMN2345
approved these changes
Sep 21, 2026
ArnabChatterjee20k
approved these changes
Sep 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Moves every remaining job onto gcrunner and removes the last RunsOn labels, so nothing in this repository depends on RunsOn any more.
What changed
Seven
runs-on=labels go — five job labels plus therunner4/runner8pair built in the E2E matrix script. The GitHub-hosted jobs stay where they are: issue triage, labelling, stale, CodeQL, publish, release and theTests / Matrixgate every test job waits on, where a VM boot would sit on the critical path of every run.Labels currently name a machine shape directly:
These were
runner=standardand so on, resolving against.github/gcrunner.ymlfrom #13778. They are spelled out again for now because the orchestrator reads that file from the default branch on a public repository, never from the pull request head — so a preset edit on this branch could not be measured on this branch. Once the shape below is agreed, the family moves intogcrunner.ymlonmainand these go back torunner=<name>.Runtime against RunsOn
Run 35527182388 against the median of the last 8 successful
mainruns on RunsOn.BenchmarkTests / E2E / PostgreSQL (dedicated) / RealtimeTests / E2E / PostgreSQL (dedicated) / DatabasesTests / E2E / PostgreSQL (dedicated) / MigrationsTests / E2E / PostgreSQL (dedicated) / SitesTests / E2E / PostgreSQL (dedicated) / FunctionsTests / E2E / PostgreSQL (dedicated) / TablesDBTests / E2E / PostgreSQL (dedicated) / FunctionsScheduleTests / E2E / PostgreSQL (dedicated) / ProjectTests / E2E / PostgreSQL (dedicated) / ProjectsTests / E2E / PostgreSQL (dedicated) / MqttTests / E2E / PostgreSQL (dedicated) / MessagingTests / E2E / PostgreSQL (dedicated) / GraphQLTests / E2E / PostgreSQL (dedicated) / ProjectWebhooksTests / E2E / PostgreSQL (dedicated) / VCSGiteaTests / E2E / PostgreSQL (dedicated) / StorageTests / E2E / PostgreSQL (dedicated) / AccountTests / E2E / PostgreSQL (dedicated) / NotificationsTests / E2E / PostgreSQL (dedicated) / ProxyTests / E2E / PostgreSQL (dedicated) / AvatarsTests / E2E / Abuse (dedicated)Tests / UnitTests / E2E / PostgreSQL (dedicated) / UsersTests / E2E / Antivirus (dedicated)Tests / E2E / PostgreSQL (dedicated) / PresencesTests / E2E / PostgreSQL (dedicated) / WebhooksTests / E2E / PostgreSQL (dedicated) / LocaleTests / E2E / PostgreSQL (dedicated) / OrganizationTests / E2E / PostgreSQL (dedicated) / UsageTests / E2E / Screenshots (dedicated)Tests / E2E / PostgreSQL (dedicated) / TeamsTests / E2E / PostgreSQL (dedicated) / TokensTests / E2E / GeneralTests / E2E / PostgreSQL (dedicated) / AdvisorTests / E2E / PostgreSQL (dedicated) / VCSGitHubTests / E2E / S3 Storage (dedicated)Tests / E2E / PostgreSQL (dedicated) / ConsoleTests / E2E / PostgreSQL (dedicated) / HealthBuildTOTAL 39 jobs: 91m01s -> 110m23s (+21.3%)
slower on gcrunner: 38/39
Read this honestly: it is still slower
Total job time 91m01s → 110m23s, +21%, and 38 of 39 jobs are slower. That is not run-to-run noise — it is every lane in the same direction against an 8-run median.
It was worse. The first attempt used
n2dand came out at +42%:n2d-standard-4is EPYC Rome/Milan, where RunsOn'srunner=4cpu-linux-x64/family=c7was handing out Zen 4 / Sapphire Rapids. Moving toc3d(Genoa) halved the gap, which confirms the core generation was most of it.The remaining 21% is probably not CPU. Every job is slower by a roughly constant 20–35 seconds regardless of how long it runs —
Health1m26s → 2m01s (+35s) next toDatabases4m29s → 4m46s (+17s) — which is the signature of fixed per-job overhead, not compute. Two candidates:extras=ecr-cache, a warm image cache in the same account. Here every job pulls from Artifact Registry.volume=60g; these run 80gbpd-ssd.More vCPU will not close that. The next measurement is per-step timing on one lane to see whether the flat ~25s is the image pull.
For contrast,
appwrite-labs/cloudcame out 7.5% faster on the same migration — its lanes run 10–35 minutes, long enough that a fixed 25s is noise. This repository's lanes are 1–5 minutes, so the same overhead is 20–30% of the job.Buildis the exception at 1m05s → 0m27s, which is the registry cache working rather than anything about the machine.Why move at all
No label names an image, so the default resolves the image family. The old labels pinned
gcrunner-ubuntu2404-x64-baf37b4-20260917131151by name, and when the image workflow pruned it on 2026-09-19 — it keeps the newest three per family, and three releases that day evicted it — every gcrunner job in this repository queued indefinitely behindThe referenced image resource cannot be found. A family pointer cannot be collected.