Skip to content

sync-issues.yml: the sync job ignores DEVKIT_CI_RUNNER and always runs hosted #1795

Closed

Description

@c-vigo

sync-issues.yml's sync job is hardcoded to the hosted default and ignores
DEVKIT_CI_RUNNER, so consumers with their own runners still pay for it.

The gap

ci.yml resolves the runner once and every downstream job honours it:

runs-on: ${{ fromJSON(needs.resolve-toolchain.outputs.runner-json) }}

sync-issues.yml does not. Its resolve-toolchain job (:44-70) never adds
runner-json to its outputs: block, and the sync job is pinned directly:

# assets/workspace/.github/workflows/sync-issues.yml:74
runs-on: ubuntu-26.04

So a repo that sets DEVKIT_CI_RUNNER=self-hosted,... gets self-hosted CI but
still runs this workflow's real work on a paid hosted runner. The key is
honoured in ci.yml and silently dropped here.

Why it matters more than it looks

The workflow is on a daily cron (:15), so the cost is incurred per repo
per day regardless of activity — unlike ci.yml, which at least scales with PR
volume. Measured across five private consumer repos over one week, the sync
job accounted for ~53 billed minutes that the consumers' own runners would have
absorbed for free. On private repos GitHub bills each job rounded up to a
whole minute, so short jobs are disproportionately expensive.

Proposed change

  1. Add runner-json: ${{ steps.resolve.outputs.runner-json }} to
    resolve-toolchain's outputs: in sync-issues.yml.
  2. Change the sync job's runs-on: to the same fromJSON(...) expression
    ci.yml uses.

The sync job already calls ./.github/actions/setup-devkit-toolchain (:107),
so it brings its own gh/python3 closure and needs nothing from the runner
image beyond nix. No change to the resolve job's own runner (see the separate
issue for that).

resolve-toolchain stays on the hosted default here, consistent with #1173.

Check while in there

sync-main-to-dev.yml (:52-54) has the same shape and fires on every push to
the default branch; the dispatch-only release workflows
(abandon-release.yml, prepare-hotfix.yml, promote-release.yml,
release.yml) also declare a hosted resolve-toolchain but are low frequency.
Worth confirming whether any of their non-resolve jobs are similarly pinned.

Activity

  1. c-vigo commented on Oct 1, 2026

    @c-vigo
    ContributorAuthor

    Landed in #1798 (merge commit 109231a) on dev.

    Not auto-closed because this repo runs gitflow: Closes #… only fires on a merge to the default branch (main), and the change reaches main at the next release via the normal release train.

    Consumers pick it up through devkit-upgrade.yml once released — staggered per repo on its weekly cron, or immediately by dispatching that workflow. A repo with DEVKIT_AUTO_UPGRADE=false needs a manual dispatch.

    The out-of-scope findings recorded in #1798 (other managed workflows with non-resolve jobs pinned to a hosted literal, sync-main-to-dev.yml most notably) are not covered here and still want a follow-up issue.

  2. 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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions