Skip to content

Commit 3c19a69

Browse files
authored
ci: run Linux x64 jobs on the pf-ci-spot pool (#420)
* ci: route CI Linux x64 jobs through the live ci-spot pool * ci: route corpus parity through the ci-spot build class * ci: route native live profiles through the ci-spot pool * ci: route documentation through the public ci-spot class * ci: route manual baseline promotion through ci-spot * ci: route release Linux x64 jobs through ci-spot * ci: require exact ci-spot routing and job labels in preflight Replace the CR-170 standard-only runner contract with the public and engine-x64-16 fragments, including fork and untrusted-event fallback. Require one matching PF_CI_LABELS string at job scope; pin the Linux-only build and release matrix routing and the unchanged hosted legs. Retain larger-runner, timeout, core-count and reusable-workflow guards. Update mutation and stage tests for missing, duplicate and incorrect PF_CI_LABELS, wrong label lists, unsafe fragment changes, paid labels and hosted exceptions. No tests, builds, linters or verification scripts run locally under the executor no-run rule. * docs: record the live ci-spot pool and hosted fallbacks Supersede the stopgap sentences from 3484a7c, squash-merged as 693fd9e (#415, CR-170). Reword the runner-selection and timing assumptions from d093560 (#290) and the documentation-only runner sentence from 133f571 (#308); preserve the platform limits from 2394ba2 (#373). Record the 2026-10-18 live-pool bulletin, exact fragment and environment labels, class allocation, actor allowlist, hosted matrix legs and event fallbacks. Keep historical timings separate from unmeasured pool performance. No local verification run under the executor no-run rule. * ci: restore release and deployment jobs to their original hosted runners Apply the L6 production-credential ruling to Cloudflare docs deployment, baseline promotion and every release job. Restore all three workflow files byte-for-byte from origin/main, including their original hosted labels, and remove pool environment labels. No steps, permissions, timeouts or matrix populations change. No tests, builds, linters, preflight, corpus verification or workflows run locally under the executor no-run rule. Nothing pushed. * ci: adopt the b240f6d7 hosted fallback for pool jobs Match the current pf-ci-spot public and engine-x64-16 fragments from bulletin #635. Change the hosted fallback to ubuntu-24.04 for all ten pool job definitions and preserve their matching PF_CI_LABELS, actor checks, fork protection and macOS routing. No tests, builds, linters, preflight, corpus verification or workflows run locally under the executor no-run rule. Nothing pushed. * ci: require hosted runners for credential-bearing jobs Pin the b240f6d7 expressions and original hosted release/deployment routes. Detect non-GITHUB_TOKEN secrets, inherited workflow environment secrets, job or workflow OIDC write permissions and deployment environments. Require hosted routing without PF_CI_LABELS for credentials and current fragments with matching labels for other Linux x64 jobs. Preserve the larger-runner, timeout and core-count guards. Add must-fail credential and old-fallback cases and a must-pass case for the current hosted release workflow. No tests, builds, linters, preflight, corpus verification or workflows run locally under the executor no-run rule. Nothing pushed. * docs: record the L6 hosted credential rule and current pool fallback Reword the pool-allocation, release/deploy routing and fallback sentences introduced by 28fe3466a and carried into f9bee22. Cite pf-ci-spot b240f6d7 and bulletin #635, retain the Dependabot and historical policy references, and explain the exact original hosted labels and updated preflight contract. No tests, builds, linters, preflight, corpus verification or workflows run locally under the executor no-run rule. Nothing pushed. * test(ci): anchor pool label mutations to job-level env An unanchored four-space env search matched the tail of step-level env in promotion and release jobs, so the negative fixture never put PF_CI_LABELS in the job environment. Anchor the env and steps keys to complete job-level lines in both label fixture builders. Assert the injected label at job scope and require the exact hosted-job diagnostic. Keep the existing hosted release baseline and the production guard unchanged. No tests, builds, linters or verification scripts run locally under the executor no-run rule. Nothing pushed.
1 parent 693fd9e commit 3c19a69

6 files changed

Lines changed: 585 additions & 127 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 65 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ env:
3232
# catalog from the checked-in diff), which only a clone without tags needs.
3333
PINEFORGE_REQUIRE_RELEASE_TAGS: "1"
3434

35-
# Every job uses the free standard runners for every event (owner cost stop,
36-
# 2026-10-18). The ci-spot labels replace them when that pool is live.
35+
# The ci-spot pool is live (2026-10-18): Linux x64 builds use its 16-vCPU
36+
# class, light jobs its 4-vCPU class. Forks and untrusted events stay hosted.
3737
# Each verification sizes its parallelism to the runner that took it.
3838
# scripts/ci_preflight.py pins every runner, time limit and job count; every
3939
# job's limit is the platform's own 360-minute maximum, the only hang catcher
@@ -44,10 +44,18 @@ jobs:
4444
# rule, and every doubt answers no. On a docs-only pull request or push the
4545
# proof jobs below skip and the build aggregate accepts exactly that skip.
4646
# Preflight, where the documentation guards run, does not wait for it, and
47-
# docs.yml builds the site as before. A few seconds of git: the standard
48-
# runner, for every event.
47+
# docs.yml builds the site as before. A few seconds of git: the light pool
48+
# class, with the public fragment's hosted fallback.
4949
changes:
50-
runs-on: ubuntu-24.04
50+
runs-on: >-
51+
${{ github.event_name != 'pull_request_target' &&
52+
github.actor != 'dependabot[bot]' && github.triggering_actor != 'dependabot[bot]' &&
53+
contains(fromJSON('["push","pull_request","workflow_dispatch","schedule","release"]'), github.event_name) &&
54+
(github.event_name != 'pull_request' ||
55+
(github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.head.repo.fork == false)) &&
56+
fromJSON('["self-hosted","pf-ci","pf-ci-x64"]') || 'ubuntu-24.04' }}
57+
env:
58+
PF_CI_LABELS: '["self-hosted","pf-ci","pf-ci-x64"]'
5159
timeout-minutes: 360
5260
outputs:
5361
docs_only: ${{ steps.classify.outputs.docs_only }}
@@ -76,7 +84,15 @@ jobs:
7684
fi
7785
7886
preflight:
79-
runs-on: ubuntu-24.04
87+
runs-on: >-
88+
${{ github.event_name != 'pull_request_target' &&
89+
github.actor != 'dependabot[bot]' && github.triggering_actor != 'dependabot[bot]' &&
90+
contains(fromJSON('["push","pull_request","workflow_dispatch","schedule","release"]'), github.event_name) &&
91+
(github.event_name != 'pull_request' ||
92+
(github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.head.repo.fork == false)) &&
93+
fromJSON('["self-hosted","pf-ci","pf-ci-x64"]') || 'ubuntu-24.04' }}
94+
env:
95+
PF_CI_LABELS: '["self-hosted","pf-ci","pf-ci-x64"]'
8096
# 360 minutes is GitHub's job maximum and deliberately the only limit:
8197
# its verifier-tests stage runs test_ci_verify.py across parallel unittest
8298
# shards, and no stage of this preflight carries a timeout of its own any
@@ -150,9 +166,22 @@ jobs:
150166
matrix:
151167
os: [ubuntu-24.04, macos-26]
152168
build_type: [Release, Debug]
153-
154-
# matrix.os selects the standard runner for every event.
155-
runs-on: ${{ matrix.os }}
169+
include:
170+
- os: ubuntu-24.04
171+
runner: >-
172+
${{ github.event_name != 'pull_request_target' &&
173+
github.actor != 'dependabot[bot]' && github.triggering_actor != 'dependabot[bot]' &&
174+
contains(fromJSON('["push","pull_request","workflow_dispatch","schedule","release"]'), github.event_name) &&
175+
(github.event_name != 'pull_request' ||
176+
(github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.head.repo.fork == false)) &&
177+
fromJSON('["self-hosted","pf-ci","pf-ci-x64-16"]') || 'ubuntu-24.04' }}
178+
- os: macos-26
179+
runner: macos-26
180+
181+
# Only Linux x64 legs use the pool; macOS keeps its hosted image and name.
182+
runs-on: ${{ matrix.runner }}
183+
env:
184+
PF_CI_LABELS: '["self-hosted","pf-ci","pf-ci-x64-16"]'
156185

157186
steps:
158187
- uses: actions/checkout@v4
@@ -231,13 +260,20 @@ jobs:
231260
sanitizers:
232261
needs: changes
233262
if: ${{ !cancelled() && (needs.changes.result != 'success' || needs.changes.outputs.docs_only != 'true') }}
234-
runs-on: ubuntu-24.04
263+
runs-on: >-
264+
${{ github.event_name != 'pull_request_target' &&
265+
github.actor != 'dependabot[bot]' && github.triggering_actor != 'dependabot[bot]' &&
266+
contains(fromJSON('["push","pull_request","workflow_dispatch","schedule","release"]'), github.event_name) &&
267+
(github.event_name != 'pull_request' ||
268+
(github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.head.repo.fork == false)) &&
269+
fromJSON('["self-hosted","pf-ci","pf-ci-x64-16"]') || 'ubuntu-24.04' }}
235270
# 360 minutes (the platform maximum). No CTest stage bound remains: main's
236271
# full set ran out of the old 30- and 60-minute stage bounds twice, and
237272
# the owner rule of 2026-10-12 removed the bounds rather than raising
238273
# them again.
239274
timeout-minutes: 360
240275
env:
276+
PF_CI_LABELS: '["self-hosted","pf-ci","pf-ci-x64-16"]'
241277
ASAN_OPTIONS: detect_leaks=1:halt_on_error=1:abort_on_error=1
242278
UBSAN_OPTIONS: print_stacktrace=1:halt_on_error=1
243279
steps:
@@ -295,7 +331,15 @@ jobs:
295331
kernel-only:
296332
needs: changes
297333
if: ${{ !cancelled() && (needs.changes.result != 'success' || needs.changes.outputs.docs_only != 'true') }}
298-
runs-on: ubuntu-24.04
334+
runs-on: >-
335+
${{ github.event_name != 'pull_request_target' &&
336+
github.actor != 'dependabot[bot]' && github.triggering_actor != 'dependabot[bot]' &&
337+
contains(fromJSON('["push","pull_request","workflow_dispatch","schedule","release"]'), github.event_name) &&
338+
(github.event_name != 'pull_request' ||
339+
(github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.head.repo.fork == false)) &&
340+
fromJSON('["self-hosted","pf-ci","pf-ci-x64-16"]') || 'ubuntu-24.04' }}
341+
env:
342+
PF_CI_LABELS: '["self-hosted","pf-ci","pf-ci-x64-16"]'
299343
# 22.3 min on the standard runner at 0d76a099; every event runs the whole
300344
# kernel set. 360 minutes is the platform maximum, the only hang catcher
301345
# (owner rule, 2026-10-12).
@@ -377,8 +421,16 @@ jobs:
377421
name: build
378422
needs: [changes, preflight, build, sanitizers, native-live, kernel-only, corpus-parity-subset]
379423
if: always()
380-
# A few seconds of shell: the standard runner, for every event.
381-
runs-on: ubuntu-24.04
424+
# A few seconds of shell: the light class, with the hosted fallback.
425+
runs-on: >-
426+
${{ github.event_name != 'pull_request_target' &&
427+
github.actor != 'dependabot[bot]' && github.triggering_actor != 'dependabot[bot]' &&
428+
contains(fromJSON('["push","pull_request","workflow_dispatch","schedule","release"]'), github.event_name) &&
429+
(github.event_name != 'pull_request' ||
430+
(github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.head.repo.fork == false)) &&
431+
fromJSON('["self-hosted","pf-ci","pf-ci-x64"]') || 'ubuntu-24.04' }}
432+
env:
433+
PF_CI_LABELS: '["self-hosted","pf-ci","pf-ci-x64"]'
382434
timeout-minutes: 360
383435
steps:
384436
- name: Require every verification lane to have passed

‎.github/workflows/corpus-parity.yml‎

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,15 +80,23 @@ env:
8080
# pin is almost entirely cache hits.
8181
CCACHE_MAXSIZE: 2G
8282

83-
# Both jobs use the free standard runner for every event (owner cost stop,
84-
# 2026-10-18). The ci-spot labels replace it when that pool is live. The build
85-
# uses every core of the runner. scripts/ci_preflight.py pins runners and limits.
83+
# Both jobs use the live ci-spot 16-vCPU class with the hosted fallback for
84+
# forks and untrusted events. The build uses every core of the runner.
85+
# scripts/ci_preflight.py pins runners and limits.
8686
jobs:
8787
# The whole population. Nightly, on demand, and on a pull request that
8888
# touches the pin or the parity tooling. Never reached by `mode: subset`.
8989
corpus-parity:
9090
if: inputs.mode != 'subset'
91-
runs-on: ubuntu-24.04
91+
runs-on: >-
92+
${{ github.event_name != 'pull_request_target' &&
93+
github.actor != 'dependabot[bot]' && github.triggering_actor != 'dependabot[bot]' &&
94+
contains(fromJSON('["push","pull_request","workflow_dispatch","schedule","release"]'), github.event_name) &&
95+
(github.event_name != 'pull_request' ||
96+
(github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.head.repo.fork == false)) &&
97+
fromJSON('["self-hosted","pf-ci","pf-ci-x64-16"]') || 'ubuntu-24.04' }}
98+
env:
99+
PF_CI_LABELS: '["self-hosted","pf-ci","pf-ci-x64-16"]'
92100
# 16.3-26.2 min on the standard runner; 360 minutes is the platform maximum,
93101
# the only hang catcher (owner rule,
94102
# 2026-10-12: no bound of our own may fail a run for slowness).
@@ -165,7 +173,15 @@ jobs:
165173
# names, judged against the same pinned sha256 rows. Reached through CI.
166174
corpus-parity-subset:
167175
if: inputs.mode == 'subset'
168-
runs-on: ubuntu-24.04
176+
runs-on: >-
177+
${{ github.event_name != 'pull_request_target' &&
178+
github.actor != 'dependabot[bot]' && github.triggering_actor != 'dependabot[bot]' &&
179+
contains(fromJSON('["push","pull_request","workflow_dispatch","schedule","release"]'), github.event_name) &&
180+
(github.event_name != 'pull_request' ||
181+
(github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.head.repo.fork == false)) &&
182+
fromJSON('["self-hosted","pf-ci","pf-ci-x64-16"]') || 'ubuntu-24.04' }}
183+
env:
184+
PF_CI_LABELS: '["self-hosted","pf-ci","pf-ci-x64-16"]'
169185
# 1.8-4.7 min on the standard runner; 360 minutes is the platform
170186
# maximum, the only hang catcher (owner rule, 2026-10-12).
171187
timeout-minutes: 360

‎.github/workflows/native-live.yml‎

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,14 @@ env:
3838
jobs:
3939
native-live:
4040
name: native-live (${{ matrix.profile }})
41-
# Standard runner for every event (owner cost stop, 2026-10-18), until the
42-
# ci-spot pool is live and its labels replace it.
43-
runs-on: ubuntu-24.04
41+
# The live ci-spot build class, with the public fragment's hosted fallback.
42+
runs-on: >-
43+
${{ github.event_name != 'pull_request_target' &&
44+
github.actor != 'dependabot[bot]' && github.triggering_actor != 'dependabot[bot]' &&
45+
contains(fromJSON('["push","pull_request","workflow_dispatch","schedule","release"]'), github.event_name) &&
46+
(github.event_name != 'pull_request' ||
47+
(github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.head.repo.fork == false)) &&
48+
fromJSON('["self-hosted","pf-ci","pf-ci-x64-16"]') || 'ubuntu-24.04' }}
4449
timeout-minutes: 360
4550
strategy:
4651
fail-fast: false
@@ -60,6 +65,7 @@ jobs:
6065
# stage, step or row carries a bound of ours any more. Only a hang reaches
6166
# the platform maximum. No row inventory changes.
6267
env:
68+
PF_CI_LABELS: '["self-hosted","pf-ci","pf-ci-x64-16"]'
6369
CCACHE_DIR: ${{ github.workspace }}/.ccache/${{ matrix.profile }}
6470
steps:
6571
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
@@ -146,7 +152,15 @@ jobs:
146152
native-live-gate:
147153
needs: native-live
148154
if: always()
149-
runs-on: ubuntu-24.04
155+
runs-on: >-
156+
${{ github.event_name != 'pull_request_target' &&
157+
github.actor != 'dependabot[bot]' && github.triggering_actor != 'dependabot[bot]' &&
158+
contains(fromJSON('["push","pull_request","workflow_dispatch","schedule","release"]'), github.event_name) &&
159+
(github.event_name != 'pull_request' ||
160+
(github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.head.repo.fork == false)) &&
161+
fromJSON('["self-hosted","pf-ci","pf-ci-x64"]') || 'ubuntu-24.04' }}
162+
env:
163+
PF_CI_LABELS: '["self-hosted","pf-ci","pf-ci-x64"]'
150164
timeout-minutes: 360
151165
steps:
152166
- name: Require every native profile to have passed

0 commit comments

Comments
 (0)