Skip to content

Usage, Alerts and Troubleshooting

Cloud → CI runners shows usage for the current month for each pool: the number of jobs, the job minutes, the VM-hours, and the 95th percentile queue wait.

The queue wait is the time between GitHub queueing a job and the job starting. A 95th percentile of a few seconds means that almost every job found a free slot on a running machine. A value of about a minute usually means jobs often arrive when the pool is idle. A higher value means jobs wait for other jobs to finish.

The usage page of your organisation shows the VM-hours of each pool, its included VM-hours, and the VM-hours over them. See Pricing. A pool that exists for part of a month is charged for that part.

Quant shows an alert on the pool and emails the members of your organisation who can manage pools in these cases. An alert emails at most once in 24 hours.

Alert Meaning What to do
Jobs are waiting for a free runner Jobs have waited longer than usual because every slot was busy Wait, or move the pool to a larger tier
The pool is at capacity The pool has been full for much of your working week Move the pool to a larger tier
The pool used 80% of its included VM-hours, or 100% The pool has used that part of its included VM-hours for this month Nothing, if you expect the usage. Jobs keep running, and VM-hours over the included hours are charged at the tier’s rate. To use fewer VM-hours, lower the idle timeout or turn off warm hours
The pool has an error Quant could not start machines for the pool Quant is alerted as well. Contact support if it does not clear

The pool also shows the alert A job asked for labels this pool does not have when a job has a label in runs-on that the pool does not accept. The job stays queued on GitHub. Quant cannot cancel the job. Cancel it in GitHub and fix runs-on.

Check these in order:

  1. The labels. The runs-on line must have self-hosted, quant, the exact pool name and an architecture the pool offers. See the next entry for the labels a pool accepts.
  2. The connection. The pool must show Connected to your GitHub organisation.
  3. Repository access. Choose Manage access on GitHub and check that the app can see the repository.
  4. A full pool. If other jobs are running, the job starts when a slot is free.
  5. A full disk. A machine with less than 10 GiB of free disk takes no new job. See A job stops and GitHub shows a lost runner.

A job stays queued and the pool shows “A job asked for labels this pool does not have”

Section titled “A job stays queued and the pool shows “A job asked for labels this pool does not have””

The job has a label in runs-on that the pool does not accept. A pool serves a job only when every label in runs-on is one of these: self-hosted, linux, quant, the pool name, and at most one architecture label (x64 or arm64) that the pool has. A job with any other label is not picked up and stays queued on GitHub.

Quant cannot cancel the job. Cancel it in GitHub and fix runs-on. See Labels a pool accepts.

The job is refused before its first step. A pool runs jobs of public repositories only when Quant has enabled that for the pool.

Contact Quant support to enable the pool for public repositories, or keep the job on GitHub-hosted runners.

The pool’s machines stop after the idle timeout. The next job waits about a minute for a machine. Turn on Keep one VM warm in business hours, or raise the idle timeout.

The runner image does not carry every tool that ubuntu-latest has. Add a setup action or an install step to the job. See Install the tools a job needs.

  • The job must run on a Quant runner. Jobs on GitHub-hosted runners do not receive Quant values.
  • Check the scope. A value for one repository must name the repository as owner/name.
  • Check the branch list. See A value with a branch list is empty.
  • A job for a pull request from a fork receives no Quant values.
  • The value must have been saved before the job started.
  • A value for one repository is withheld after the repository is deleted and a new one is created with the same name. See A value for one repository is withheld.

The value is empty in the job on a tag run, a release event run or a pull request run. A value with a branch list is given only to a run whose ref is one of the listed branches (refs/heads/<branch>) on a push, workflow_dispatch or schedule event. A tag with the same name as the branch does not count.

Use a value with no branch list, or run the deploy from the branch.

A save of a value for one repository fails

Section titled “A save of a value for one repository fails”

The API answers 400 when the repository’s GitHub owner is not connected to a pool. Connect the owner to a pool, then save the value.

The API answers 503 with a Retry-After header when GitHub is unavailable. Try again after that time.

The value list shows a withheld reason, and the value is empty in the job. A value for one repository is bound to the repository itself, not to its name. The repository was deleted and a new one was created with the same name, so the old value is withheld.

Save the value again.

A pull request from a fork has no values and a cold build

Section titled “A pull request from a fork has no values and a cold build”

A pull request from a fork of a private repository gets no Quant values and no build cache. The values are empty in the job, and the build is cold.

This is expected. A job that runs for a fork pull request must work without Quant values and without a cache.

The step needed more memory than the job has, and the kernel stopped it. Each job has 6 GiB of memory on the Small tier, and 14 GiB on the Medium and Large tiers.

Lower the memory the step uses, for example with fewer parallel workers. On the Small tier, you can also move the pool to a larger tier.

A step shows fork: retry: Resource temporarily unavailable

Section titled “A step shows fork: retry: Resource temporarily unavailable”

The job reached its limit of processes and threads. Each job may have at most 16,384.

Lower the number of processes and threads the job starts at one time.

A job stops and GitHub shows a lost runner

Section titled “A job stops and GitHub shows a lost runner”

The machine ran low on disk. Jobs on one virtual machine share its disk. When the machine has less than 10 GiB free, it takes no new job. When it has less than 3 GiB free, the jobs running on that machine are stopped and the machine is replaced.

Run the job again. To keep disk free, clean large build outputs, prune Docker images in long jobs, or use a larger tier.

  • A run restores from its own branch or tag, then, for a pull request, the base branch, then the default branch. A pull_request_target run restores from the base branch, then the default branch. A run does not restore from other branches. See Branch rules.
  • A push to a new branch has no entries of its own, so it restores from the default branch. A pull request restores from refs/pull/<number>/merge, then its base branch, then the default branch.
  • A pull request from a fork gets no cache. A pull_request_target run that a fork started also gets no cache.
  • Entries expire 14 days after they are saved.
  • If the pool’s Cache residency is Australia only and the pool’s cache service cannot serve the job, the job runs without a cache. See An artifact step fails and the job has no cache.

An artifact step fails and the job has no cache

Section titled “An artifact step fails and the job has no cache”

The pool’s Cache residency is Australia only, and the pool’s cache service could not serve the job. The job runs without a cache: a restore is a miss and a save is skipped with a warning. Its artifact upload and download steps fail. The job never falls back to GitHub’s cache.

The artifact steps fail because, on a pool with Australia only, artifact uploads and downloads pass through the pool’s cache service on their way to GitHub.

This case is rare, because a runner machine whose cache service is not healthy takes no new jobs and is replaced automatically. Run the job again. See Cache residency.

A save reports “Unable to reserve cache”

Section titled “A save reports “Unable to reserve cache””

An entry with that key already exists, and a save to an existing key is refused. Use a key that changes when the content changes, for example npm-${{ hashFiles('package-lock.json') }}.

The pool shows “Disconnected from GitHub”

Section titled “The pool shows “Disconnected from GitHub””

The app was removed from your GitHub organisation, or its access was suspended. Choose Connect it to your GitHub organisation on the pool to install it again.

A job fails at set-up, before its first step

Section titled “A job fails at set-up, before its first step”

There are three causes:

  • The confirmation with GitHub failed. Every job is confirmed with GitHub before it starts. If GitHub’s API has a fault, or the confirmation takes longer than 15 seconds, the job fails at set-up. Run the job again.
  • Quant could not deliver the job’s secrets. Quant stopped the job so that it would not run without them. Run the job again. If it fails again, contact support with the link to the run.
  • The repository is public. See A job of a public repository is refused.