Skip to content

Scaffolded ci.yml: manifest-driven runner override (self-hosted consumers can't keep hand-edits) #1173

Closed

Description

@c-vigo

Description

Let a consumer route the scaffolded ci.yml jobs to self-hosted runners via a .vig-os manifest key, instead of hand-editing a scaffold-managed workflow.

Problem Statement

assets/workspace/.github/workflows/ci.yml hardcodes hosted runners. exo-pet/exo-fleet runs its CI entirely on a self-hosted runner ([self-hosted, linux, x64, meatgrinder], per its ADR-0022 — GitHub billing blocked hosted runners for that org's heavy jobs). Because ci.yml is scaffold-managed, any hand-edit to runs-on is clobbered on the next re-scaffold/upgrade — so today a self-hosted consumer cannot adopt the scaffolded CI at all.

Proposed Solution

  • New optional .vig-os key, e.g. DEVKIT_CI_RUNNER (comma-separated label list; absent → current default, e.g. ubuntu-24.04).
  • resolve-toolchain (which already reads .vig-os) emits a runner-json output (JSON array of labels, defaulted); downstream jobs use runs-on: ${{ fromJSON(needs.resolve-toolchain.outputs.runner-json) }}. The resolve-toolchain job itself stays on the hosted default (it's seconds of sparse checkout; a consumer whose org can't run hosted jobs at all can be documented as a limitation or given a static render — keep v1 minimal).
  • Persist the key through init-workspace.sh re-scaffolds like the other manifest keys (cf. .vig-os upgrade blanks DEVKIT_TAG_PREFIX / DEVKIT_FLOATING_TAGS (silent release-tag regression) #1116 DEVKIT_MODULES mirroring); optionally a --ci-runner installer flag.
  • Document in docs/MIGRATION.md.

Alternatives Considered

  • Hand-edit + exclude ci.yml from the managed set: breaks the managed-upgrade model for the most churn-prone scaffold file.
  • Repo variable (vars.CI_RUNNER) instead of .vig-os: viable, but the manifest is the established consumer-config SSoT and works without extra repo provisioning; runs-on can read vars.* directly though — acceptable fallback if expression-from-needs proves brittle.

Additional Context

Recon from the exo-fleet deployment assessment (2026-07-17). exo-fleet's bespoke heavy workflows (nix build matrix, KVM NixOS tests) remain repo-specific beside the scaffolded ci.yml — this issue only covers the scaffolded lint/test/summary lanes. Related: #1039 (private-repo guards), ADR-conditional-container-toolchain.

Impact

  • Default unchanged for all existing consumers; opt-in via manifest. Backward compatible (semver:minor).

Changelog Category

Added

Activity

  1. added this to the Backlog milestone on Jul 17, 2026
  2. added
    feature
    priority:medium
    area:ci
    effort:medium
    semver:minor
    on Jul 17, 2026
  3. added a commit that references this issue on Jul 17, 2026
    901e2c0
  4. c-vigo commented on Jul 17, 2026

    @c-vigo
    ContributorAuthor

    Shipped via PR #1174, merged to dev (dev-PR Closes does not auto-close — closing manually). Reaches consumers with the next devkit release.

  5. added a commit that references this issue on Oct 5, 2026
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

    area:cieffort:mediumfeaturepriority:mediumsemver:minor

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions