Skip to content

ci: keep release execution on Blacksmith and PR checks on Tenki - #1164

Open
Gajesh2007 wants to merge 18 commits into
masterfrom
codex/tenki-ci
Open

Gajesh2007 wants to merge 18 commits into
masterfrom
codex/tenki-ci

Conversation

@Gajesh2007

@Gajesh2007 Gajesh2007 commented Sep 21, 2026 •

Copy link
Copy Markdown
Member

PR checks can run on Tenki without release credentials, but provider release inputs and signing must come from one trusted runner fleet. This change runs the complete provider release chain on Blacksmith: SDK 27 preparation, unsigned build, qualification, signing/notarization, R2 staging, publication, and the signed-artifact compatibility check. Routine PR checks stay on Tenki with read-only permissions, no protected environments, and anonymous public-model downloads.

Blacksmith's pinned macOS 27 image builds and signs with Xcode 27; its macOS 26 image checks the exact signed artifact on an older OS. The workflows let checkout use the image's default Xcode selection, then the release selector resolves that toolchain through xcode-select and xcrun and rejects any SDK or Swift version mismatch. macOS 27 jobs then use pinned Python 3.12.10 for the release helpers. The qualification and signing-validation builds install checksum-verified Rustup 1.28.2, Rust 1.88.0 and CMake 3.31.12 because those tools are absent from the Blacksmith image. Blacksmith Linux runs release resolution, staging and publication. Signing validation also builds and signs on macOS 27. Credentialed model registration, AI review automation, and benchmark approval/reporting use Blacksmith. The 48 GB benchmark compute job remains on Blacksmith because its three concurrent model weights exceed Tenki's 32 GB Mac. GitHub Actions remains the control plane and artifact store; coordinator container deployment remains the separate GCP procedure.

The runner-policy gate now pins every release job to its intended Blacksmith image and rejects any GitHub-hosted label. It rejects secrets, write tokens, protected environments, and persisted checkout credentials on Tenki jobs. Blacksmith's runner documentation lists the macOS 27 public-beta and macOS 26 images and their Xcode selection.

Before

flowchart TB
  PR["PR or push"] --> CHECK["ci.yml and integration.yml<br/>Blacksmith checks"]
  CHECK --> AUTH["Push integration uses HF token"]
  SOURCE["Release source"] --> BUILD["provider-release-cache.yml and release-swift.yml<br/>GitHub macOS build and qualification"]
  BUILD --> SIGN["GitHub macOS signing and notarization"]
  SIGN --> PUB["Blacksmith Linux<br/>R2 staging and publication"]
  classDef input fill:#dbeafe,stroke:#2563eb,color:#172554
  classDef compute fill:#fef3c7,stroke:#d97706,color:#451a03
  classDef credential fill:#fee2e2,stroke:#dc2626,color:#450a0a
  class PR,SOURCE input
  class CHECK,BUILD compute
  class AUTH,SIGN,PUB credential
Loading

After

flowchart TB
  PR["PR or push"] --> POLICY["check-ci-runner-policy.py<br/>validate runner and credential boundary"]
  POLICY --> CHECK["ci.yml and integration.yml<br/>Tenki parallel unit, SDK and parity checks<br/>Read-only credentials; anonymous downloads"]
  SOURCE["Release source"] --> BOOT["Blacksmith macOS 27<br/>select SDK, pin Python, Rust and CMake"]
  BOOT --> BUILD["Build and qualify on separate runners"]
  BUILD --> HANDOFF["Source-bound same-run unsigned artifact"]
  HANDOFF --> SIGN["Blacksmith macOS 27<br/>approved signing and notarization"]
  SIGN --> PUB["Blacksmith Linux<br/>R2 staging and publication"]
  SIGN --> OLD["Blacksmith macOS 26<br/>exact signed-artifact compatibility smoke"]
  classDef input fill:#dbeafe,stroke:#2563eb,color:#172554
  classDef readonly fill:#dcfce7,stroke:#16a34a,color:#052e16
  classDef release fill:#ede9fe,stroke:#7c3aed,color:#2e1065
  classDef credential fill:#fee2e2,stroke:#dc2626,color:#450a0a
  class PR,SOURCE input
  class POLICY,CHECK readonly
  class BOOT,BUILD,HANDOFF,OLD release
  class SIGN,PUB credential
Loading

Blue denotes inputs; green denotes read-only checks; purple denotes release preparation; red denotes credentialed work. Environment approvals and exact-artifact qualification remain required.

Validation

Latest refresh: merged master 8b8d1eedc (#1259) with signed follow-up head d85438cc1. All three independent provider unit, SDK and prompt-parity lanes, their source-matched build caches, the required aggregate and #1258's MiMo fixture/native gates are preserved. Each ordinary Mac lane now selects Xcode 27/native SwiftPM on Tenki and discards checkout credentials; the aggregate runs on Tenki Linux. Workflow regression expectations and runner-policy coverage follow the expanded lane set. The workflow tests separately assert the exact toolchain setup commands and their order before compilation, while retaining exact command lists and prerequisites for every runtime gate. The CI cache recognizes only the exact repository Swift wrapper, fingerprints the actual selected compiler/SDK and the wrapper invocation, and includes setup/wrapper scripts in its recipe. Regression cases cover wrapped builds, missing or recursive selection, rejection of a copied same-named wrapper, and stable identity across temporary wrapper paths.

Per the requested fast push, no local prechecks were run for this latest merge; fresh hosted CI and review are required. The following local results apply to prior refresh 391f6b1 against master 884370745, not to the latest merged head. The existing advisory threat-model review job stays on Blacksmith and is included in the explicit runner policy.

  • Runner policy: 16 tests passed, plus the repository policy check.
  • Release pipeline: 12 tests passed; toolchain selection: 8 passed; signing validation: 9 passed; native-GPU CI wiring: 12 passed.
  • actionlint -shellcheck='' -pyflakes='' passed. Full actionlint still reports three pre-existing shellcheck warnings in unchanged command bodies; no new workflow syntax/expression errors.
  • make docs-impact-check BASE=origin/master, make docs-check (330 files) and git diff --check passed.
  • The earlier Blacksmith SDK 27 preparation run passed both optimized build and SDK qualification at c095fd6, proving those bootstrap fixes worked on that source. Fresh checks on the updated source are required; the older success is not a qualification of this refresh.

Review follow-ups

  • d85438cc1 binds both release Actions and the shared internal metallib cache to CMake version and executable bytes, with cache-identity regressions. This prevents reusing artifacts generated with a different CMake build recipe.
  • Both new installer scripts are explicit PR path triggers for SDK 27 release preparation, with a regression pinning those paths.
  • The prior dc5da825d hosted Release Integrity, runner policy, signatures and docs checks passed, including the wrapper/cache and workflow regressions. Latest-head checks remain the source of truth for readiness.

Release qualification still required

Blacksmith's macOS 27 image is a public beta. The PR-triggered SDK 27 preparation lanes must qualify the actual Blacksmith image. Signing, notarization, the older-macOS artifact smoke and publication are not exercised by PR CI; perform the approved validation-only release before trusting this path for production. No production release or deployment is performed by this PR. Blacksmith becomes a trusted part of the release supply chain and receives the existing signing/publication secrets only in the corresponding protected jobs. Tenki receives none of those secrets. Same-run artifact identity checks protect the handoff but do not independently prove compiler or runner integrity.

@vercel

vercel Bot commented Sep 21, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
d-inference Ready Ready Preview Sep 30, 2026 1:22am UTC
d-inference-console-ui-dev Ready Ready Preview Sep 30, 2026 1:22am UTC
d-inference-landing Ready Ready Preview Sep 30, 2026 1:22am UTC
eigen-homepages-darkbloom Ready Ready Preview Sep 30, 2026 1:22am UTC

Request Review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 21, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-30T01:25:52.003127Z d85438c New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a41087b3f1

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/benchmarks.yml Resolved
@vercel

vercel Bot commented Sep 22, 2026

Copy link
Copy Markdown

Deployment failed for project eigen-homepages-darkbloom with the following error:

You don't have permission to create a Preview Deployment for this Vercel project: eigen-homepages-darkbloom.

View Documentation: https://vercel.com/docs/accounts/team-members-and-roles

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b1bebd54bb

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/benchmarks.yml Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: dc5da825d4

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

This branch was successfully deployed

4 active deployments
Preview – d-inference-console-ui-dev — d85438cc Deployed Sep 30, 2026 by vercel[bot]
Preview – d-inference — d85438cc Deployed Sep 30, 2026 by vercel[bot]
Preview – d-inference-landing — d85438cc Deployed Sep 30, 2026 by vercel[bot]
Preview – eigen-homepages-darkbloom — d85438cc Deployed Sep 30, 2026 by vercel[bot]
benchmarks — d85438cc Deployed Sep 30, 2026 by Gajesh2007 via Approve benchmark spend #1944
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.

2 participants