From bec17f54987e95d17bd9d0f9f47ebe95b022d2c6 Mon Sep 17 00:00:00 2001 From: James Dumay Date: Mon, 23 Nov 2026 08:23:57 +1100 Subject: [PATCH] Allow llama upgrade preparation on ARM64 JY runners --- .agents/skills/manage-ci/SKILL.md | 4 +++- .github/actionlint.yaml | 1 + .github/scripts/llama-upgrade.test.cjs | 11 ++++++++++- .github/workflows/llama-upgrade.yml | 4 ++-- ci/README.md | 10 +++++++--- 5 files changed, 23 insertions(+), 7 deletions(-) diff --git a/.agents/skills/manage-ci/SKILL.md b/.agents/skills/manage-ci/SKILL.md index c3065553..38b38552 100644 --- a/.agents/skills/manage-ci/SKILL.md +++ b/.agents/skills/manage-ci/SKILL.md @@ -78,7 +78,9 @@ contract; no downstream product's workflow topology applies here. Candidate preparation and repair run directly on the native JY Linux runner (`jy-rnr_vfnz8k5p4yrh334`, `jy-linux-docker`) with its installed Goose and provider authentication; do not move them into a hosted CPU container or - onto Depot. The workflow defaults to noninteractive Goose and preflights its + onto Depot. Select the pool's `native-contracts` label without restricting + preparation to x64: both Linux x64 and ARM64 can prepare CPU candidates. + The workflow defaults to noninteractive Goose and preflights its native tools. Seed the protected current patch queue before replaying a new upstream revision so cold repositories have intermediate merge-base blobs. A bounded agent repair produces a fresh candidate and fresh full CI. Only the diff --git a/.github/actionlint.yaml b/.github/actionlint.yaml index 08a90111..1cd01856 100644 --- a/.github/actionlint.yaml +++ b/.github/actionlint.yaml @@ -1,6 +1,7 @@ self-hosted-runner: labels: - jy-linux-docker + - native-contracts - skippy-ephemeral - family-256g - cpu diff --git a/.github/scripts/llama-upgrade.test.cjs b/.github/scripts/llama-upgrade.test.cjs index 217e6a04..c5d3035f 100644 --- a/.github/scripts/llama-upgrade.test.cjs +++ b/.github/scripts/llama-upgrade.test.cjs @@ -47,7 +47,16 @@ test('candidate preparation and repair run with Goose on the native JY runner', for (const name of ['candidate', 'repair']) { const job = jobs(controller).find(job => job.startsWith(` ${name}:\n`)); assert.match(job, /group: jy-rnr_vfnz8k5p4yrh334/); - assert.match(job, /labels: \[self-hosted, jy-linux-docker, Linux, X64\]/); + const requested = job.match(/labels: \[([^\]]+)\]/)[1].split(',').map(label => label.trim().toLowerCase()); + assert.ok(requested.includes('jy-linux-docker')); + assert.ok(requested.includes('native-contracts')); + // The pool has both architectures. Requiring X64 stranded preparation + // while its only x64 machine served another pool and ARM64 hosts were idle. + for (const arch of ['X64', 'ARM64']) { + const available = new Set(['self-hosted', 'jy-linux-docker', 'Linux', 'native-contracts', arch] + .map(label => label.toLowerCase())); + assert.ok(requested.every(label => available.has(label)), `${name} excludes ${arch} JY capacity`); + } assert.doesNotMatch(job, /depot-|ubuntu-24\.04|container:|\/etc\/skippy-ci-image-id/); assert.match(job, /GOOSE_MODE: auto/); assert.match(job, /run: just automation-run upgrade runner-check/); diff --git a/.github/workflows/llama-upgrade.yml b/.github/workflows/llama-upgrade.yml index 9be84c9e..09a6ab86 100644 --- a/.github/workflows/llama-upgrade.yml +++ b/.github/workflows/llama-upgrade.yml @@ -31,7 +31,7 @@ jobs: if: github.ref == 'refs/heads/main' runs-on: group: jy-rnr_vfnz8k5p4yrh334 - labels: [self-hosted, jy-linux-docker, Linux, X64] + labels: [self-hosted, jy-linux-docker, Linux, native-contracts] timeout-minutes: 180 permissions: contents: read @@ -138,7 +138,7 @@ jobs: needs.candidate.outputs.validate == 'true' && needs.qualify.result == 'failure' runs-on: group: jy-rnr_vfnz8k5p4yrh334 - labels: [self-hosted, jy-linux-docker, Linux, X64] + labels: [self-hosted, jy-linux-docker, Linux, native-contracts] defaults: run: shell: bash diff --git a/ci/README.md b/ci/README.md index 891ccef8..21affe3c 100644 --- a/ci/README.md +++ b/ci/README.md @@ -175,9 +175,10 @@ The repository Actions variable `SKIPPY_DEPOT_RUNNERS_ENABLED=true` selects Depot for every job that otherwise uses a GitHub-hosted runner. This includes PR validation and its aggregate, code and package CI, compiler images and publishing, documentation and deployment, release validation and publication, -the inference controllers, and llama upgrade preparation and publication. Most +the inference controllers, and llama upgrade publication. Most Linux jobs use four-core Ubuntu 24.04 runners of the existing architecture. -Graph Contracts and llama upgrade preparation use eight-core x64 runners. The +Graph Contracts uses eight-core x64 runners. Llama upgrade preparation and repair +use the JY native-contracts pool on Linux x64 or ARM64. The macOS CPU package uses Depot's macOS 15 ARM64 runner. Device jobs use their specified JY groups. Clearing the variable or setting it to `false` restores GitHub-hosted placement and direct PR workflow routing for subsequent runs. @@ -534,7 +535,10 @@ The successful path has one full CI pass. A failed candidate may receive one agent repair followed by full CI on a fresh candidate. Preparation and repair run directly on the native JY Linux runner in group `jy-rnr_vfnz8k5p4yrh334` with labels `self-hosted`, `jy-linux-docker`, `Linux` -and `X64`. Goose and its provider authentication come from that runner. These +and `native-contracts`. Both Linux x64 and ARM64 machines can prepare CPU +candidates; compiler caches remain architecture-scoped. An x64-only selector +can leave preparation queued while the pool's ARM64 machines are idle. +Goose and its provider authentication come from that runner. These jobs do not use the hosted CPU container, which would hide the runner installation. Just and GitHub CLI remain pinned; native prerequisites include LLVM/Clang 22 under `/usr/lib/llvm-22`. A preflight checks the repair executable