Skip to content

✅ Required PR Check mirror job hardcodes runs-on: ubuntu-latest → fails on private repos (runner-routing drift from v4.19.1) #208

Closed

Description

@Shinrai

Problem

The ✅ Required PR Check mirror job in the consumer CI template hardcodes runs-on: ubuntu-latest, while every other CI job resolves the runner via the visibility-aware expression workflow-ci.yml uses (private CLDMV → cldmv-runners, public → ubuntu-latest, overridable via RUNS_ON_DEFAULT).

On private repos the GitHub-hosted Actions budget is exhausted, so private CI runs on self-hosted cldmv-runners. This one job can't get a hosted runner and fails to start (runner_id: 0, no steps, ~10s) — turning the required check red on every PR.

Drift

  • v4.19.1 (2026-08-04, 4f7b2b21c) added the ((github.repository_owner == 'CLDMV' && github.event.repository.private) && 'cldmv-runners' || 'ubuntu-latest') routing to workflow-ci.yml's jobs (lines 238/258/271/414).
  • examples/individual-repo-workflows/core-cicd/ci.yml's ✅ Required PR Check job runs-on has been ubuntu-latest since 2025-09-08 and never got the update. The reusable's real jobs moved to self-hosted; the consumer mirror didn't.

Evidence

  • gh-broker (private) run 31061960578 on next: all real jobs green on cldmv-runners; ✅ Required PR Check = failure, labels: ["ubuntu-latest"], runner_id: 0, no steps, ~10s.
  • cpm (private) run 30968374551 (chalk-6 bump): identical signature.
  • Public repos (envm, polyfillme) unaffected (free hosted minutes). Private releases on 08-03 passed (pre-exhaustion); every private run since ~08-05 fails the mirror.
  • Because org bootstrap (08-03) made ✅ Required PR Check a genuinely required check, this blocks every PR on gh-broker, cpm, memcache.

Fix

In examples/individual-repo-workflows/core-cicd/ci.yml, change the ✅ Required PR Check job's runs-on to match the reusable (minus the inputs.runs_on it doesn't have):

runs-on: ${{ vars.RUNS_ON_DEFAULT != '' && vars.RUNS_ON_DEFAULT || ((github.repository_owner == 'CLDMV' && github.event.repository.private) && 'cldmv-runners' || 'ubuntu-latest') }}

Public repos stay hosted; private route to self-hosted; RUNS_ON_DEFAULT overrides. The mirror is pure shell, so self-hosted runs it fine. Consumers (git-embedded golden reference + already-onboarded repos) need the same one-line change swept.

Possible sibling (flagging, not fixing here)

examples/individual-repo-workflows/release-flow-v4/v4-bootstrap.yml:83 also hardcodes runs-on: ubuntu-latest. A private repo dispatching v4-bootstrap while the hosted budget is exhausted would hit the same failure — but bootstrap may intentionally use hosted (e.g. to run before self-hosted access is configured). Maintainer's call whether it should adopt the same routing.

Activity

  1. added
    type: bug
    priority: high
    type: ci
    on Aug 8, 2026
  2. added
    status: confirmed
    on Aug 8, 2026
  3. added theissue type on Aug 8, 2026
  4. cldmv-bot commented on Aug 8, 2026

    @cldmv-bot
    Contributor

    Closed in v4.19.3 — resolved by #209.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: highstatus: confirmedtype: bugtype: ci

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions