Skip to content

Commit e1d29cb

Browse files
authored
ci: move release toolchain builds to hosted runners (#777)
Move the x86 release build from a preloaded self-hosted toolchain to a standard hosted runner using a digest-pinned Bookworm image from Artifact Registry. Separate the platform builds from the write-scoped upload job and bind uploads explicitly to the repository. Release dispatch stays restricted to main. Preserve the dedicated read-only image identity, isolated non-root build, packed-artifact consumer, released-baseline GLIBC comparison and checksum checks. Add a regression test that runs the actual upload shell with the installed GitHub CLI outside a checkout, using a local HTTPS fixture to check two repositories and all four filenames and payloads against the historical negative control. Caller tests preserve main success and require tag refusal; the retired-runner mutation keeps its exact hosted-runner refusal assertion. Validation on the final merged head: release-gate 295 tests (294 passed, one expected UNPROVEN_HOSTED skip), preflight 546 passed, and Bookworm helper 27 passed; zero failures or errors. The upload-context test must still run in hosted CI. Hosted PR CI, strict parity and the live-head review remain required; release build behavior and timing remain for the release dry run on main. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
1 parent 67e1e80 commit e1d29cb

16 files changed

Lines changed: 2901 additions & 220 deletions

‎.github/actionlint.yaml‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# Release keeps one protected runner label, on its x86_64 prebuilt cell.
1+
# Hosted workflows need no self-hosted runner labels.
22
self-hosted-runner:
3-
labels:
4-
- gkp-od-16cpu-32gb-amd64-128gb
3+
labels: []

‎.github/engine-toolchain-image.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
us-central1-docker.pkg.dev/gen-lang-client-0864094636/engine-release-toolchains/engine-toolchain-bookworm@sha256:72fb3f2a4d3409e6050b17530585992784a21a4955b368cb8f8b392981abc780
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
# The unchanged release workflow retains its protected group 15 route.
2-
pineforge-4pass/pineforge-engine/.github/workflows/release.yml@refs/heads/main
1+
# Group 15 mirror intentionally empty: release builds use hosted runners.
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Prebuilt hosted diagnostic
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
paths:
7+
- '.github/workflows/release.yml'
8+
- '.github/workflows/prebuilt-hosted-diagnostic.yml'
9+
- '.github/engine-toolchain-image.txt'
10+
- 'scripts/build_prebuilt_bookworm.sh'
11+
12+
permissions:
13+
contents: read
14+
15+
jobs:
16+
observe:
17+
if: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.head.repo.fork == false }}
18+
runs-on: ubuntu-24.04
19+
permissions:
20+
contents: read
21+
steps:
22+
- name: Checkout the exact same-repository PR head
23+
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
24+
with:
25+
repository: ${{ github.repository }}
26+
ref: ${{ github.event.pull_request.head.sha }}
27+
persist-credentials: false
28+
29+
- name: Record host identity and Docker observations
30+
run: |
31+
set -euo pipefail
32+
id
33+
docker version --format '{{.Client.Version}} {{.Server.Version}}'
34+
docker info --format '{{.Driver}}'

0 commit comments

Comments
 (0)