Skip to content

ci: run Linux jobs on the runner LINUX_RUNNER names - #5070

Merged
yannickmonney merged 6 commits into
mainfrom
ci/self-hosted-linux-runners
Oct 29, 2026
Merged

yannickmonney merged 6 commits into
mainfrom
ci/self-hosted-linux-runners

Conversation

@yannickmonney

@yannickmonney yannickmonney commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

The Linux x64 jobs of checks, build, e2e, cli, security, sast and commitlint now take their runner from the repository variable LINUX_RUNNER, falling back to ubuntu-latest while it is unset, so nothing changes until the variable is set.

  • runs-on: ${{ github.event.pull_request.head.repo.fork && 'ubuntu-latest' || vars.LINUX_RUNNER || 'ubuntu-latest' }}: a fork's pull request always runs on GitHub's runners, so code from outside never reaches a self-hosted machine.
  • With LINUX_RUNNER=tale-hetzner, the jobs run on the organization's 64 self-hosted runners (group tale-hetzner, limited to this repository). Each runner has a Docker daemon of its own, emptied after every job, so the jobs' fixed host ports, container names, compose project names and docker image prune steps behave as on a hosted runner.
  • The suites that hold wall-clock budgets (platform and workspace unit lanes, UI shards, Performance, Browser, the Playwright jobs of e2e) take their runner from LINUX_TEST_RUNNER instead, which stays unset, so they keep ubuntu-latest's dedicated CPUs. In the first merge-queue run they shared two 12-thread hosts with ~60 jobs and missed their budgets by 5-10x.
  • Release, the Incus end-to-end suite, load, workspace upgrade, and the macOS, Windows and arm64 legs stay on GitHub-hosted runners.
  • .github/CI.md gains a "Where Linux jobs run" section.

actionlint passes on every changed workflow.

Pinned sources follow the change:

  • tools/cli/scripts/ci-merge-group-profiles.ts gains a reviewed finishing profile for each of the seven changed workflows (their new bytes with the current ready-check closure; jobs, conditions and matrices unchanged).

  • .github/release-candidate-contract.json is refreshed with bun tools/cli/scripts/release-candidate-contract.ts --write; only the 33 runs-on values change (7 of them to LINUX_TEST_RUNNER). The Ops contract digest that release adoption pins needs the matching update before the next adoption.

  • ci-integration-setup.test.ts expects the runner expression; the CLI graph test compares the current workflow and closure with the runner left out.

  • prompt.test.ts left a global -y output mode active for later test files in the same Bun process; on the self-hosted runners' file order this made the two rollback-confirmation tests skip their prompt. It now restores the default mode after each test, and rollback.test.ts starts each test without a global -y.

Each changed workflow gets a merge-group finishing profile of its new bytes with the current ready-check closure; jobs, conditions and matrices are unchanged. The release-candidate descriptor is refreshed with tools/cli/scripts/release-candidate-contract.ts --write: only the 33 runs-on values change. The integration-setup test expects the runner expression, and the CLI graph test compares the current workflow and closure without the runner.
Bun runs every test file in one process. prompt.test.ts left a global -y mode active, so when it ran before rollback.test.ts the rollback confirmation tests never reached their prompt; the order differs between machines. prompt.test.ts now restores the default mode after each test and rollback.test.ts starts each test without a global -y.
@yannickmonney
yannickmonney added this pull request to the merge queue Oct 29, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 29, 2026
The platform and workspace unit lanes, the UI shards, Performance, Browser
and the Playwright jobs hold wall-clock budgets. On self-hosted machines
that many jobs share at once they missed them by 5-10x in the merge
queue, so they take their runner from LINUX_TEST_RUNNER, which keeps
ubuntu-latest while it is unset. The Checks and E2E profiles and the
release-candidate contract are re-pinned to the new sources.
@yannickmonney
yannickmonney added this pull request to the merge queue Oct 29, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 29, 2026
@yannickmonney
yannickmonney added this pull request to the merge queue Oct 29, 2026
Merged via the queue into main with commit 9be5cad Oct 29, 2026
64 checks passed
@yannickmonney
yannickmonney deleted the ci/self-hosted-linux-runners branch October 29, 2026 07:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant