Skip to content

ci: add the gcrunner runner presets - #13778

Merged
ChiragAgg5k merged 2 commits into
mainfrom
ci/gcrunner-presets-config
Sep 20, 2026
Merged

ChiragAgg5k merged 2 commits into
mainfrom
ci/gcrunner-presets-config

Conversation

@ChiragAgg5k

Copy link
Copy Markdown
Member

Adds the gcrunner runner presets. Nothing references them yet — that is the next pull request, and it has to be a separate one.

Why this lands on its own first

The orchestrator reads .github/gcrunner.yml from a ref that depends on whether the repository is private:

func configRef(event WorkflowJobEvent) string {
	if event.Repository.Private {
		return event.WorkflowJob.HeadSHA
	}
	return event.Repository.DefaultBranch
}

This repository is public, so the file is read from main, never from the pull request's own head. A pull request that adds the file and switches the labels to runner=… in one commit therefore references presets that do not exist on main yet, and the orchestrator holds every job:

Job 106068713448: configuration error: runner "standard" is not defined in .github/gcrunner.yml, leaving it queued

Held, not failed — the jobs sit queued indefinitely and the run looks slow rather than broken. That is what happened on #13777, where the whole CI run stalled for over an hour.

Reading from the default branch is deliberate: on a public repository a fork's pull request could otherwise define a preset requesting a 128-vCPU machine and have the orchestrator honour it.

So the order has to be: presets on main first, labels second.

What this changes

Nothing, today. The file is inert until a workflow names a preset, so this is safe to merge on its own and cannot affect any current run.

Once it is on main, the follow-up converting runs-on to runner=… resolves against these definitions and its own CI exercises them properly.

Nothing references them yet. The orchestrator reads this file from the default
branch on a public repository, never from the pull request head, so a change
that adds the file and switches the labels together references presets that do
not exist on main and every job is held queued. The definitions have to land
first.
@greptile-apps

greptile-apps Bot commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

The PR appears safe to merge because the latest revision does not alter the runner definitions or introduce an actionable failure.

Summary

Adds six gcrunner machine presets for future workflow adoption.

  • Defines small, standard, build, publish, e2e, and e2e-large runner shapes.
  • Keeps the configuration inert until workflows reference these preset names.
  • Removes introductory comments without changing any preset values.

Reviews (2) · Last reviewed commit: "ci: drop the gcrunner.yml header comment"

@github-actions

github-actions Bot commented Sep 20, 2026 •

Copy link
Copy Markdown

✨ Benchmark results

Comparing main (before) → ci/gcrunner-presets-config (after).

Metric Before After Change
🚀 Requests/sec 230.46 225.9 ⚪ -2%
⏱️ Latency P50 75.52 ms 77.56 ms ⚪ +2.7%
⏱️ Latency P95 174.1 ms 180.15 ms ⚪ +3.5%
Per-scenario breakdown & investigation details

Metrics below reflect the current branch (after). Δ P95 compares against the base.

Scenario P50 (ms) P95 (ms) Requests RPS Δ P95 (ms)
API total 77.56 180.15 14,022 225.9 +6.05
Account 145.92 279.93 738 12.29 +8.56
TablesDB 75.19 146.12 7,626 125.15 +8.99
Storage 69.05 152.05 3,690 62.3 -2.15
Functions 108.35 212.36 1,968 33.9 -0.21

Top API waits (after)

API request Max wait (ms)
account.name.update 489.05
tablesdb.rows.get 445.88
account.prefs.update 410.7
tablesdb.rows.create 354.08
tablesdb.rows.update 343.5

@ChiragAgg5k
ChiragAgg5k merged commit bdcdbc0 into main Sep 20, 2026
50 checks passed
@ChiragAgg5k
ChiragAgg5k deleted the ci/gcrunner-presets-config branch September 20, 2026 17:22
pull Bot pushed a commit to Zezo-Ai/ZezoAi-appwrite that referenced this pull request Sep 21, 2026
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 appwrite#13778 lands.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants