Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/CI.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,21 @@ scheduling, exact-run selection and receipt retention; this command
does not start a second scheduler or change queue settings. Use the existing
authorized credential as described above.

## Where Linux jobs run

The Linux x64 jobs of `checks`, `build`, `e2e`, `cli`, `security`, `sast` and `commitlint` run on
the runner the repository variable `LINUX_RUNNER` names, and on `ubuntu-latest` while it is unset.
Set it to `tale-hetzner` to use the organization's self-hosted runners of that label; delete it to
go back to GitHub-hosted runners without a code change. The suites that hold time budgets — the platform's
and the workspaces' unit lanes, the UI shards, `Performance`, `Browser` and the Playwright jobs of
`e2e` — take their runner from `LINUX_TEST_RUNNER` instead, so they keep the dedicated CPUs of
`ubuntu-latest` while self-hosted machines are shared by many jobs at once. A pull request from a
fork always runs on `ubuntu-latest`, so code from outside never reaches a self-hosted machine. Each self-hosted runner
has a Docker daemon of its own that is emptied after every job, so jobs keep the fixed ports,
container names and prune steps they use on hosted runners. The release, the Incus end-to-end
suite, the load test, the workspace upgrade check and the macOS, Windows and arm64 legs stay on
GitHub-hosted runners.

## Current execution graph

- **Checks / Unit** is the stable required aggregate. Two platform Vitest shards run
Expand Down
66 changes: 33 additions & 33 deletions .github/release-candidate-contract.json
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@
{
"path": ["jobs", "backend-integration", "runs-on"],
"kind": "value",
"expected": "ubuntu-latest"
"expected": "${{ github.event.pull_request.head.repo.fork && 'ubuntu-latest' || vars.LINUX_RUNNER || 'ubuntu-latest' }}"
},
{
"path": ["jobs", "backend-integration", "timeout-minutes"],
Expand Down Expand Up @@ -636,7 +636,7 @@
{
"path": ["jobs", "build", "runs-on"],
"kind": "value",
"expected": "ubuntu-latest"
"expected": "${{ github.event.pull_request.head.repo.fork && 'ubuntu-latest' || vars.LINUX_RUNNER || 'ubuntu-latest' }}"
},
{
"path": ["jobs", "build", "timeout-minutes"],
Expand Down Expand Up @@ -873,7 +873,7 @@
{
"path": ["jobs", "ci-ready", "runs-on"],
"kind": "value",
"expected": "ubuntu-latest"
"expected": "${{ github.event.pull_request.head.repo.fork && 'ubuntu-latest' || vars.LINUX_RUNNER || 'ubuntu-latest' }}"
},
{
"path": ["jobs", "ci-ready", "timeout-minutes"],
Expand Down Expand Up @@ -960,7 +960,7 @@
{
"path": ["jobs", "format", "runs-on"],
"kind": "value",
"expected": "ubuntu-latest"
"expected": "${{ github.event.pull_request.head.repo.fork && 'ubuntu-latest' || vars.LINUX_RUNNER || 'ubuntu-latest' }}"
},
{
"path": ["jobs", "format", "timeout-minutes"],
Expand Down Expand Up @@ -1089,7 +1089,7 @@
{
"path": ["jobs", "integration-scope", "runs-on"],
"kind": "value",
"expected": "ubuntu-latest"
"expected": "${{ github.event.pull_request.head.repo.fork && 'ubuntu-latest' || vars.LINUX_RUNNER || 'ubuntu-latest' }}"
},
{
"path": ["jobs", "integration-scope", "timeout-minutes"],
Expand Down Expand Up @@ -1207,7 +1207,7 @@
{
"path": ["jobs", "knip", "runs-on"],
"kind": "value",
"expected": "ubuntu-latest"
"expected": "${{ github.event.pull_request.head.repo.fork && 'ubuntu-latest' || vars.LINUX_RUNNER || 'ubuntu-latest' }}"
},
{
"path": ["jobs", "knip", "timeout-minutes"],
Expand Down Expand Up @@ -1299,7 +1299,7 @@
{
"path": ["jobs", "lint", "runs-on"],
"kind": "value",
"expected": "ubuntu-latest"
"expected": "${{ github.event.pull_request.head.repo.fork && 'ubuntu-latest' || vars.LINUX_RUNNER || 'ubuntu-latest' }}"
},
{
"path": ["jobs", "lint", "timeout-minutes"],
Expand Down Expand Up @@ -1416,7 +1416,7 @@
{
"path": ["jobs", "performance", "runs-on"],
"kind": "value",
"expected": "ubuntu-latest"
"expected": "${{ github.event.pull_request.head.repo.fork && 'ubuntu-latest' || vars.LINUX_TEST_RUNNER || 'ubuntu-latest' }}"
},
{
"path": ["jobs", "performance", "timeout-minutes"],
Expand Down Expand Up @@ -1583,7 +1583,7 @@
{
"path": ["jobs", "test", "runs-on"],
"kind": "value",
"expected": "ubuntu-latest"
"expected": "${{ github.event.pull_request.head.repo.fork && 'ubuntu-latest' || vars.LINUX_RUNNER || 'ubuntu-latest' }}"
},
{
"path": ["jobs", "test", "timeout-minutes"],
Expand Down Expand Up @@ -1646,7 +1646,7 @@
{
"path": ["jobs", "test-browser", "runs-on"],
"kind": "value",
"expected": "ubuntu-latest"
"expected": "${{ github.event.pull_request.head.repo.fork && 'ubuntu-latest' || vars.LINUX_TEST_RUNNER || 'ubuntu-latest' }}"
},
{
"path": ["jobs", "test-browser", "timeout-minutes"],
Expand Down Expand Up @@ -1900,7 +1900,7 @@
{
"path": ["jobs", "test-platform-shards", "runs-on"],
"kind": "value",
"expected": "ubuntu-latest"
"expected": "${{ github.event.pull_request.head.repo.fork && 'ubuntu-latest' || vars.LINUX_TEST_RUNNER || 'ubuntu-latest' }}"
},
{
"path": ["jobs", "test-platform-shards", "services"],
Expand Down Expand Up @@ -2045,7 +2045,7 @@
{
"path": ["jobs", "test-ui", "runs-on"],
"kind": "value",
"expected": "ubuntu-latest"
"expected": "${{ github.event.pull_request.head.repo.fork && 'ubuntu-latest' || vars.LINUX_RUNNER || 'ubuntu-latest' }}"
},
{
"path": ["jobs", "test-ui", "timeout-minutes"],
Expand Down Expand Up @@ -2108,7 +2108,7 @@
{
"path": ["jobs", "test-ui-shards", "runs-on"],
"kind": "value",
"expected": "ubuntu-latest"
"expected": "${{ github.event.pull_request.head.repo.fork && 'ubuntu-latest' || vars.LINUX_TEST_RUNNER || 'ubuntu-latest' }}"
},
{
"path": ["jobs", "test-ui-shards", "strategy"],
Expand Down Expand Up @@ -2260,7 +2260,7 @@
{
"path": ["jobs", "test-workspaces", "runs-on"],
"kind": "value",
"expected": "ubuntu-latest"
"expected": "${{ github.event.pull_request.head.repo.fork && 'ubuntu-latest' || vars.LINUX_TEST_RUNNER || 'ubuntu-latest' }}"
},
{
"path": ["jobs", "test-workspaces", "timeout-minutes"],
Expand Down Expand Up @@ -2393,7 +2393,7 @@
{
"path": ["jobs", "typecheck", "runs-on"],
"kind": "value",
"expected": "ubuntu-latest"
"expected": "${{ github.event.pull_request.head.repo.fork && 'ubuntu-latest' || vars.LINUX_RUNNER || 'ubuntu-latest' }}"
},
{
"path": ["jobs", "typecheck", "timeout-minutes"],
Expand Down Expand Up @@ -2679,7 +2679,7 @@
{
"path": ["jobs", "ci-ready", "runs-on"],
"kind": "value",
"expected": "ubuntu-latest"
"expected": "${{ github.event.pull_request.head.repo.fork && 'ubuntu-latest' || vars.LINUX_RUNNER || 'ubuntu-latest' }}"
},
{
"path": ["jobs", "ci-ready", "timeout-minutes"],
Expand Down Expand Up @@ -2767,7 +2767,7 @@
{
"path": ["jobs", "sast", "runs-on"],
"kind": "value",
"expected": "ubuntu-latest"
"expected": "${{ github.event.pull_request.head.repo.fork && 'ubuntu-latest' || vars.LINUX_RUNNER || 'ubuntu-latest' }}"
},
{
"path": ["jobs", "sast", "timeout-minutes"],
Expand Down Expand Up @@ -3154,7 +3154,7 @@
{
"path": ["jobs", "ci-ready", "runs-on"],
"kind": "value",
"expected": "ubuntu-latest"
"expected": "${{ github.event.pull_request.head.repo.fork && 'ubuntu-latest' || vars.LINUX_RUNNER || 'ubuntu-latest' }}"
},
{
"path": ["jobs", "ci-ready", "timeout-minutes"],
Expand Down Expand Up @@ -3241,7 +3241,7 @@
{
"path": ["jobs", "commitlint", "runs-on"],
"kind": "value",
"expected": "ubuntu-latest"
"expected": "${{ github.event.pull_request.head.repo.fork && 'ubuntu-latest' || vars.LINUX_RUNNER || 'ubuntu-latest' }}"
},
{
"path": ["jobs", "commitlint", "timeout-minutes"],
Expand Down Expand Up @@ -3430,7 +3430,7 @@
{
"path": ["jobs", "build", "runs-on"],
"kind": "value",
"expected": "ubuntu-latest"
"expected": "${{ github.event.pull_request.head.repo.fork && 'ubuntu-latest' || vars.LINUX_RUNNER || 'ubuntu-latest' }}"
},
{
"path": ["jobs", "build", "timeout-minutes"],
Expand Down Expand Up @@ -3636,7 +3636,7 @@
{
"path": ["jobs", "ci-ready", "runs-on"],
"kind": "value",
"expected": "ubuntu-latest"
"expected": "${{ github.event.pull_request.head.repo.fork && 'ubuntu-latest' || vars.LINUX_RUNNER || 'ubuntu-latest' }}"
},
{
"path": ["jobs", "ci-ready", "timeout-minutes"],
Expand Down Expand Up @@ -3734,7 +3734,7 @@
{
"path": ["jobs", "e2e", "runs-on"],
"kind": "value",
"expected": "ubuntu-latest"
"expected": "${{ github.event.pull_request.head.repo.fork && 'ubuntu-latest' || vars.LINUX_TEST_RUNNER || 'ubuntu-latest' }}"
},
{
"path": ["jobs", "e2e", "services"],
Expand Down Expand Up @@ -4026,7 +4026,7 @@
{
"path": ["jobs", "pr-scope", "runs-on"],
"kind": "value",
"expected": "ubuntu-latest"
"expected": "${{ github.event.pull_request.head.repo.fork && 'ubuntu-latest' || vars.LINUX_RUNNER || 'ubuntu-latest' }}"
},
{
"path": ["jobs", "pr-scope", "timeout-minutes"],
Expand Down Expand Up @@ -4127,7 +4127,7 @@
{
"path": ["jobs", "scope", "runs-on"],
"kind": "value",
"expected": "ubuntu-latest"
"expected": "${{ github.event.pull_request.head.repo.fork && 'ubuntu-latest' || vars.LINUX_RUNNER || 'ubuntu-latest' }}"
},
{
"path": ["jobs", "scope", "timeout-minutes"],
Expand Down Expand Up @@ -4198,7 +4198,7 @@
{
"path": ["jobs", "static-sites", "runs-on"],
"kind": "value",
"expected": "ubuntu-latest"
"expected": "${{ github.event.pull_request.head.repo.fork && 'ubuntu-latest' || vars.LINUX_TEST_RUNNER || 'ubuntu-latest' }}"
},
{
"path": ["jobs", "static-sites", "strategy"],
Expand Down Expand Up @@ -5115,7 +5115,7 @@
{
"path": ["jobs", "ci-ready", "runs-on"],
"kind": "value",
"expected": "ubuntu-latest"
"expected": "${{ github.event.pull_request.head.repo.fork && 'ubuntu-latest' || vars.LINUX_RUNNER || 'ubuntu-latest' }}"
},
{
"path": ["jobs", "ci-ready", "timeout-minutes"],
Expand Down Expand Up @@ -5206,7 +5206,7 @@
{
"path": ["jobs", "pr-scope", "runs-on"],
"kind": "value",
"expected": "ubuntu-latest"
"expected": "${{ github.event.pull_request.head.repo.fork && 'ubuntu-latest' || vars.LINUX_RUNNER || 'ubuntu-latest' }}"
},
{
"path": ["jobs", "pr-scope", "timeout-minutes"],
Expand Down Expand Up @@ -5299,7 +5299,7 @@
{
"path": ["jobs", "prepare", "runs-on"],
"kind": "value",
"expected": "ubuntu-latest"
"expected": "${{ github.event.pull_request.head.repo.fork && 'ubuntu-latest' || vars.LINUX_RUNNER || 'ubuntu-latest' }}"
},
{
"path": ["jobs", "prepare", "timeout-minutes"],
Expand Down Expand Up @@ -5369,7 +5369,7 @@
{
"path": ["jobs", "release", "runs-on"],
"kind": "value",
"expected": "ubuntu-latest"
"expected": "${{ github.event.pull_request.head.repo.fork && 'ubuntu-latest' || vars.LINUX_RUNNER || 'ubuntu-latest' }}"
},
{
"path": ["jobs", "release", "timeout-minutes"],
Expand Down Expand Up @@ -5587,7 +5587,7 @@
{
"path": ["jobs", "bun-audit", "runs-on"],
"kind": "value",
"expected": "ubuntu-latest"
"expected": "${{ github.event.pull_request.head.repo.fork && 'ubuntu-latest' || vars.LINUX_RUNNER || 'ubuntu-latest' }}"
},
{
"path": ["jobs", "bun-audit", "timeout-minutes"],
Expand Down Expand Up @@ -5792,7 +5792,7 @@
{
"path": ["jobs", "ci-ready", "runs-on"],
"kind": "value",
"expected": "ubuntu-latest"
"expected": "${{ github.event.pull_request.head.repo.fork && 'ubuntu-latest' || vars.LINUX_RUNNER || 'ubuntu-latest' }}"
},
{
"path": ["jobs", "ci-ready", "timeout-minutes"],
Expand Down Expand Up @@ -5883,7 +5883,7 @@
{
"path": ["jobs", "pr-scope", "runs-on"],
"kind": "value",
"expected": "ubuntu-latest"
"expected": "${{ github.event.pull_request.head.repo.fork && 'ubuntu-latest' || vars.LINUX_RUNNER || 'ubuntu-latest' }}"
},
{
"path": ["jobs", "pr-scope", "timeout-minutes"],
Expand Down Expand Up @@ -5975,7 +5975,7 @@
{
"path": ["jobs", "trivy-fs", "runs-on"],
"kind": "value",
"expected": "ubuntu-latest"
"expected": "${{ github.event.pull_request.head.repo.fork && 'ubuntu-latest' || vars.LINUX_RUNNER || 'ubuntu-latest' }}"
},
{
"path": ["jobs", "trivy-fs", "timeout-minutes"],
Expand Down
Loading
Loading