Skip to content

Audit: Cloud-building runner size

What we check

A job whose runner builds a nested test cloud must ask for one of the two runner sizes reserved for that work, rather than for the plain size with the same footprint:

Size For
s-cloud a nested cloud on one node
s-cluster a nested cluster of several nodes

A job counts as cloud-building when it calls one of the fleet's cloud builders: the smoke-cluster.yml reusable workflow, or the build-smoke-cluster, setup-kerbside-environment, deploy-kolla-ansible, deploy-proxmox-on-shakenfist or deploy-kerbside-on-shakenfist composite actions. Both a job-level uses: and a step's count, and the name is matched as the last element of the uses: path, so every spelling of the same callee is covered -- shakenfist/actions/build-smoke-cluster@main, a relative ./deploy-proxmox-on-shakenfist, a pin to a tag or a sha. A uses: inside a comment calls nothing and does not count. deploy-kerbside-on-shakenfist is in the list ahead of its arrival: the plan that defined this criterion names it, and listing it now is cheaper than remembering to add it later. It is a guess at a name, though, and a wrong guess matches nothing and fails no test, so the entry is to be confirmed against shakenfist/actions -- or dropped -- once kerbside's deploy action lands.

Detection by callee is coarse -- a job that only lints a composite action's YAML would count -- and it is the point. It cannot mistake a lint job for a cloud build, and a criterion that files findings against jobs which build nothing is a criterion nobody reads.

Of those jobs, the ones judged are those whose runs-on: names the vm label and a size written literally. A cloud-building vm job on xs, s, m, l, xl or a bigdisk variant is a finding. One whose runner genuinely needs more than a cloud size offers -- kerbside's Kolla all-in-one on m, say -- marks the line audit-ok: cloud-runner-size, on the runs-on: itself or the line immediately above it -- the job key line included, where the runs-on: is the job's first line -- with the reason. The marker is this criterion's own and not vm-runner-size's: the two ask different questions of the same line, and one marker answering both would let "the size comes from an expression" also excuse "the size is not a cloud token".

A repository where no job calls a cloud builder is not applicable, and so is one whose cloud-building jobs are all of the shapes below.

Why

A runner is claimed for the per-dimension maximum of every job pending in its (label, size) combination, so a job that builds a cloud and shares a combination with lint jobs sets every lint runner's capacity claim -- and the CI cluster refuses a large claim far more often than a small one. Over the seven days to 2026-10-11, 1,105 of the cluster's 1,511 capacity refusals were on debian-13/s, and 616 of those were for runners whose own job would have fitted in the free capacity at its own size.

s-cloud and s-cluster have the same footprint as s (2 vCPU, 4096 MB). What the token changes is which pending pool the job joins, not the machine it gets, which is why this criterion is about the kind of size named rather than about the size being big enough. There are two rather than one because a single cloud size would still put a 17 vCPU all-in-one in the same combination as a 44 vCPU multi-node job, and every all-in-one runner would keep asking for 44 while the multi-node job was pending.

The authority for the vocabulary is CI_SIZES in shakenfist/private-ci's conductor/provisioner.py, and the reasoning is that repository's docs/capacity-claims.md, under "Cloud-building jobs". Neither is reachable from here; scripts/tests/test_runners.py keeps this page and the check's own list in step, which is the most this repository can do.

What we do not check

Four shapes are deliberately out of scope.

  • A cloud-building job with no literal size. That is vm-runner-size's finding, and one edit should not produce two issues. It covers the job that names no size at all and the job whose size could only arrive through an expression, which is how smoke-cluster.yml derives its own size from its topology input.
  • A job bound to a runner of its own (bound-<image>, bound-<size> and a bind- token, with no vm label; see workflow-standards.md). Its combination key carries its own token, so it shares a claim with nothing and the reason for the cloud sizes does not apply to it. kerbside and kerbside-patches build their cloud jobs this way.
  • A job that calls smoke-cluster.yml. A job calling a reusable workflow has no runs-on: of its own, so there is nothing to judge; the size lives in the callee's own job, which this criterion measures where the callee is in scope. The entry is in the list because the specification is a list of cloud builders rather than a list of shapes that happen to be reachable.
  • A job whose vm label arrives through an expression while its size is written literally. The vm label is what puts a job in a shared combination, so a job that does not name it literally is not judged here -- and vm-runner-size passes it too, because it does name a size. This is the one shape neither criterion measures. Judging a literal plain size without a literal vm would file findings against jobs that cannot be shown to be vm jobs at all, which is the false positive this criterion's design trades coverage for. No workflow in the fleet writes it.

A runs-on: written as a block sequence over the following lines is not seen either, as it is not by any other check in workflow-standards.md: the pattern needs a value on the same line. Nor is a cloud builder reached through a repository-local composite action -- only workflow files are read, so a job whose uses: names ./.github/actions/deploy-cloud calls nothing this criterion recognises, even where that composite's own action.yml calls a builder. Indirection through a local reusable workflow is covered, because the callee's own job is scanned in its own file, which makes the composite the asymmetric case. Both are recorded so the coverage claim is honest rather than assumed.

Template

No template -- the change is one runs-on: label per job.

Projects

Per-project compliance for this criterion is regenerated on every run of the consistency audit: see the compliance page.

📝 Report an issue with this page