Repository navigation
ci: move every job onto gcrunner presets and drop RunsOn - #13777
ChiragAgg5k wants to merge 1 commit into
Conversation
The build and test lanes were still on RunsOn while the check and packaging lanes had moved to gcrunner with a machine spec spelled out on each label. Now every label names a preset from .github/gcrunner.yml, so a shape changes in one place and no label can pin an image that the image workflow later prunes. The image handoff moves with it: the build pushes to GCRUNNER_REGISTRY with a registry-backed layer cache, and the test lanes pull through GCRUNNER_REGISTRY_PULL, the read-through cache in the VM's own region. Nothing reads the RunsOn ECR or S3 variables any more.
|
|
Superseded by a two-step split, because this cannot merge as one commit. The orchestrator reads func configRef(event WorkflowJobEvent) string {
if event.Repository.Private {
return event.WorkflowJob.HeadSHA
}
return event.Repository.DefaultBranch
}So this pull request adds the file and references it in the same commit, and the presets do not exist on Held rather than failed, which is why the run sat queued for over an hour and looked like slow CI rather than a misconfiguration. Split into:
Merge in that order. Closing this one. |
Moves the build and test lanes off RunsOn and onto gcrunner, following appwrite-labs/cloud#5947. Every gcrunner label now names a preset from
.github/gcrunner.ymlinstead of spelling out a machine spec, and no label pins an image, so the image workflow pruning a build cannot take CI down again.What changed
.github/gcrunner.ymldefines six presets:small,standard,build,publish,e2eande2e-large. Databases and TablesDB keep the larger shape they had on RunsOn; everything else maps to the size it already used.runs-online inci.yml,specs.ymlandsdk-preview.ymlisgcrunner=…/runner=<preset>. The check and packaging jobs keep theirubuntu-latestfallback for fork pull requests.${GCRUNNER_REGISTRY}/appwritewith atype=registrylayer cache. The test lanes pull through${GCRUNNER_REGISTRY_PULL}/appwrite, the read-through cache in the VM's own region. The RunsOn ECR and S3 variables are gone.GCRUNNER_REGISTRYtoGITHUB_ENVbeforebuild-push-actionreads it as an action input.This repository never had a
.github/runs-on.yml; the RunsOn labels carried their spec inline, so there is nothing to delete.To verify on the first run
Presets need the gcrunner GitHub App to hold
contents: readon this repository. Without it the orchestrator cannot read.github/gcrunner.ymland leaves the job queued rather than failing it. The build and test lanes run on gcrunner unconditionally, as they did on RunsOn, so a fork pull request will only work if the orchestrator serves fork jobs.