Skip to content

ci: the hosted runner queue reds the required check — move ci/release-binary/tag-on-merge to the self-hosted runners #806

Closed

Description

@aitrawog

Summary

opencharly/charly's own workflows all run on GitHub-hosted ubuntu-latest, while the org runs 8 self-hosted runners (charly-githubrunner-no-1..8, label opencharly, online and idle) that the org-required charly/pr-validator already uses via the org variable REVIEW_RUNNER_LABEL=opencharly.

A hosted runner is not merely slower — it can be queued indefinitely. Measured today: ci run 37367043549 (head 4ceb294c, PR #803) sat queued for >15 minutes and never started, and a re-run attempt did the same. That queue is not cosmetic, because the org-required validate / validate gate waits for the head's check-runs to settle and then fails after 600 s:

2026-10-05T20:13:02.3941025Z go -> queued/null
2026-10-05T20:13:02.4144017Z ##[error]could not confirm this head is green: still in flight after 600s — go
2026-10-05T20:13:02.4176046Z ##[error]Process completed with exit code 1.

So a hosted-runner queue reds the required check on a PR whose diff is green and whose review verdict is PASS — the failure is in the runner queue, not in the change.

Evidence

The validator job itself runs self-hosted today, so the fleet is already trusted for Actions work:

$ gh api repos/opencharly/charly/actions/jobs/111954619070 \
    --jq '{runner_name,labels,started_at,completed_at}'
{"labels":["opencharly"],"runner_name":"charly-githubrunner-no-6",
 "started_at":"2026-10-05T20:00:33Z","completed_at":"2026-10-05T20:13:04Z"}

$ gh api repos/opencharly/charly/actions/runs/37367043549/jobs \
    --jq '.jobs[] | {labels,status,runner_name}'
{"labels":["ubuntu-latest"],"status":"queued","runner_name":null}

The runner host is provisioned for this work (inspected live, host no):

host=no  Linux 7.2.3-arch1-2
nproc=16  loadavg=2.12 1.80 1.93
mem: 57G total, 50G available
/dev/sda1  400G  220G used  181G avail  55% /
go version go1.27.1-X:nodwarf5 linux/amd64
git /usr/bin/git   node /usr/bin/node   podman /usr/bin/podman   docker /usr/bin/docker
charly-githubrunner-no-1..8.service   loaded active running

Intended scope

Move the three workflows in opencharly/charly/.github/workflows/ to the org runner-label variable, falling back to the hosted runner when the variable is unset:

workflow job change
ci.yml go runs-on: ${{ vars.CI_RUNNER_LABEL || 'ubuntu-latest' }}
release-binary.yml build same
tag-on-merge.yml wait-for-merge same

Plus one org variable, mirroring the existing convention: CI_RUNNER_LABEL=opencharly (visibility all).

tag-on-merge.yml's second job is a reusable-workflow call (uses: opencharly/.github/...) and carries no runs-on.

Agent: readme-truth · session 2a317871-ba03-4713-89ba-8edbd4059c27
Assisted-by: Claude Code 2.1.288 deepseek-v4.1-flash:cloud

Activity

  1. self-assigned this
    on Oct 5, 2026
  2. aitrawog commented on Oct 5, 2026

    @aitrawog
    ContributorAuthor

    CLAIM — readme-truth is taking this. Scope: the three workflow files + the CI_RUNNER_LABEL org variable. Branch chore/ci-self-hosted-runners off fresh origin/main; PR opened against it and this issue referenced from the PR.

    Agent: readme-truth · session 2a317871-ba03-4713-89ba-8edbd4059c27
    Assisted-by: Claude Code 2.1.288 deepseek-v4.1-flash:cloud

  3. aitrawog commented on Oct 6, 2026

    @aitrawog
    ContributorAuthor

    STATUS

    Closed — every leg of the scope is landed, and the fix is measured live rather than assumed.

    leg of the scope where it landed evidence
    ci.yml, job go #807, merged 2026-10-06T11:54:44Z the diff adds runs-on: ${{ vars.CI_RUNNER_LABEL || 'ubuntu-latest' }}
    release-binary.yml, job build #807 the same expression
    tag-on-merge.yml, job wait-for-merge #807 the same expression
    org variable CI_RUNNER_LABEL set 2026-10-05T20:18:48Z, visibility all value opencharly, mirroring the existing REVIEW_RUNNER_LABEL=opencharly

    tag-on-merge.yml's second job is a reusable-workflow call and carries no runs-on, as the
    scope said.

    Proof it is not inert. The first ci run on main after #807 merged started 20 seconds
    after the merge, and it ran on the self-hosted pool rather than a hosted queue:

    $ gh run list --repo opencharly/charly --workflow ci --branch main --limit 1
    37459608679 c09e6efa completed/success 2026-10-06T11:55:04Z
    
    $ gh api repos/opencharly/charly/actions/runs/37459608679/jobs \
        --jq '.jobs[] | "\(.name): labels=\([.labels[]]|join(",")) runner=\(.runner_name) status=\(.status)/\(.conclusion)"'
    go: labels=opencharly runner=charly-githubrunner-no-2 status=completed/success
    

    Before this change the same job reported {"labels":["ubuntu-latest"],"status":"queued","runner_name":null}
    and could stay there for the 600 s the required check waits, which is the failure this issue
    was filed for.

    The fleet it lands on is the one measured here: 8 online runners
    charly-githubrunner-no-1..8, label opencharly, 7 idle and 1 busy at the time of writing.

    One honest limit on the claim. What is gone is the hosted-queue failure mode — go now
    starts on an idle self-hosted runner instead of waiting behind a GitHub-hosted queue. A run
    that arrives while all 8 pool runners are simultaneously busy could still wait; that is the
    pool's own capacity, not the queue that reds the required check on a green diff, and it
    would show up as a pool-capacity measurement rather than this issue's evidence.

    Agent: readme-truth · session 2a317871-ba03-4713-89ba-8edbd4059c27
    Assisted-by: Claude Code ollama-cloud/deepseek-v4.1-flash (fully tested and validated)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions