Skip to content

ci: parallelize provider SDK and prompt parity checks - #1259

Merged
Gajesh2007 merged 6 commits into
masterfrom
perf/provider-ci
Sep 30, 2026
Merged

Gajesh2007 merged 6 commits into
masterfrom
perf/provider-ci

Conversation

@Gajesh2007

@Gajesh2007 Gajesh2007 commented Sep 30, 2026 •

Copy link
Copy Markdown
Member

Current integration update

Merged current master including #1258's MiMo fixture and EOF fixes. The provider unit lane retains pinned tokenizer metadata, offline synthetic fixtures, and all three isolated native startup/prefix/retained-fault selections. General and isolated deadline invocations clear inherited native opt-ins. The workflow regressions pin these combined prerequisites and preserve the existing all-lanes-required aggregate.

The prior 342483951 timing measurements below remain historical measurements. The integrated head is undergoing fresh CI and review; it does not inherit a passing result from that earlier head.

Local merge validation: 16 provider-workflow, 7 MiMo fixture, 12 native-runner, 24 cache, 5 Metal-staging and 27 release-cache checks passed (91 total). Documentation impact/lint and actionlint parser/expression validation also passed. Hosted provider/SDK/parity results remain the release-readiness gates.

Summary

Parallelize the provider CI critical path across three independently scheduled Apple Silicon macOS runners, while retaining all existing provider and SDK assertions.

  • Provider Unit Tests: full provider debug test products, source-matched Metal, the serial general suite, every fresh-process isolated gate, and resource/authentication/installer checks.
  • Provider SDK Tests: full nested SDK test products and every existing DiffusionGemma, paged, KV-sharing, Nemotron and onboarding selector. No needs dependency on provider tests.
  • Provider Prompt Parity: the original Swift/Go/Rust vector comparison and sustained release-sidecar load proof. No dependency on the other test jobs.
  • Provider Tests keeps the existing required check name as a lightweight aggregate that requires all three lanes to succeed. Skipped, cancelled or failed lanes cannot turn that check green; no branch-protection mutation is needed.
  • Lane-specific compiler/SDK/dependency/recipe-bound debug caches, saved after successful compilation even if later assertions fail. Only content-verified unchanged source timestamps are restored. Actual PATH-selected Swift and effective SDKROOT are fingerprinted; unused conflicting provider overrides fail.
  • Persist the dedicated source-matched Metal cache, always run its validator and stage the actual test runtime resources. No generic cache authorizes a runtime library.
  • The push-only release cache job no longer duplicates the nested debug-test build.
  • Isolate acceptedThenExpired in a fresh quiet process and reduce its test-only real deadline from 30 seconds to two. Preserve admission-before-deadline, return-after-deadline, accepted/expired telemetry, cancellation and retirement assertions.

Review follow-up: only the isolated shell invocation gets the two-second allowance; direct/IDE runs retain the original 30 seconds. The prepared downloadable Metal compiler's version and binary SHA now bind both the CI and inner helper cache keys. The SDK build retains its 35-minute timeout, and both release checklists explicitly require all three test jobs.
The Metal version identity strips its incidental InstalledDir mount line. The final compiler-bound cache/staging path measured 8.60s on validated reuse locally; the earlier 5.85s sample predates that additional compiler hashing.

No production timeout, model, protocol, numerical tolerance, release semantics, or skip policy changes. No arbitrary in-process Swift parallelism: GPU/allocator test work is isolated across machines, not competed on one GPU. Existing zero-executed/no-skip wrappers, exclusive composition and allocator gates, failure propagation and internal controlled concurrency remain.

Measurements

Five recent successful Provider Tests jobs on blacksmith-12vcpu-macos-latest had a 19m43s median job runtime. These are observational warm-cache timings across source revisions, not a controlled before/after experiment.

Component Recent CI Measurement Change / Expected Benefit
Provider build, including tests 150-178s Consumer-owned compatible debug cache instead of relying on a release-only warmer
Main Swift test step 354-368s Preserve full suite; remove one measured 30-second fixture wait
Prompt parity 158-181s Move to independent runner, no longer serial after provider assertions
SDK build + stage + gates 308-351s Move to independent runner, no longer serial after provider/parity
Source-matched Metal preparation 70-83s each run Persist validated dedicated cache

Historical job examples: master c1e25949, successful PR, successful PR.

Local measured changes, Apple Silicon 16 logical CPUs, 128 GiB RAM, Swift 6.3.3 / Xcode 26.6:

Measurement Before After Evidence
accepted-then-expired test Historical CI 30.600s 2.017s initial; 2.057-2.135s repeated; 2.004s within full runner Real assertion retained, isolated no-skip gate
Matched Metal helper 75.61s cold 5.85s validated reuse Same native MLX source/toolchain, same staging helper
Complete provider test build Not a paired comparison 250.01s cold All targets built, no qualification-only target filter
Complete nested SDK test build Not a paired comparison 130.39s compiler-reported All nested tests compiled

Projection, not a measured passing pipeline claim: splitting the approximately 20-minute chain should make warm CI's critical path roughly 9-11 minutes if three Mac runners can start together. Compatible debug/Metal cache reuse can reduce that further. Runner queue/capacity and first-generation cold caches remain limitations. The selected Mac tier is the current supported 12-vCPU tier; no invented larger-runner label is introduced.

First actual cold parallel CI run 36648832588, before the review follow-up:

Job Duration Result
Provider Tests 11m40s Fails on existing native/payload fixture prerequisites and prior issues; isolated gates still execute
Provider SDK Tests 8m36s Passed, including all required numerical/onboarding gates
Provider Prompt Parity 7m38s Existing production-vector cmp mismatch, matching local reproduction

All three jobs started within one second, confirming parallel capacity. This is not a green end-to-end baseline comparison: failures remain red and are not counted as successful test speedups. New cache namespaces were cold on this run.

Final reviewed head 342483951 in 36651839135 verified compatible fallback cache restores across commits:

Lane Prior Cold Run Final Warm Run Result / Measured Change
Provider SDK Tests 7m30s 5m55s Both pass; 95s less elapsed time (21.1%)
Provider Prompt Parity 7m37s 4m58s Both pass; 159s less elapsed time (34.8%)
Provider Unit Tests 10m41s 8m25s Both fail; not a successful-suite benchmark
Provider Tests aggregate 4s 4s Correctly fails because unit lane failed

Warm builds measured 57.064s SDK, 55.768s parity provider build, and 57.749s unit provider build. Swift and Cargo fallback restores and exact Metal cache hits are confirmed in the job logs, not inferred from durations. The unit test step stayed 365s in both runs. Its final failures remain XCTest fixture/native-lane prerequisites and the same four Swift Testing issues; no assertions were removed. These are nearby-revision CI observations, not exact same-SHA controlled benchmarks.

Before

flowchart TD
  classDef input fill:#e8eef7,stroke:#34495e,color:#17202a
  classDef slow fill:#fde2e1,stroke:#b03a2e,color:#17202a
  classDef gate fill:#fff1cc,stroke:#9a7d0a,color:#17202a
  A["PR push"]:::input --> B["One Provider Tests Mac"]:::slow
  B --> C["Provider build and Metal"]:::slow
  C --> D["Serial provider tests"]:::gate
  D --> E["Prompt parity"]:::gate
  E --> F["Nested SDK build and gates"]:::gate
  F --> G["Final CI result"]:::input
Loading

After

flowchart TD
  classDef input fill:#e8eef7,stroke:#34495e,color:#17202a
  classDef parallel fill:#dff5e3,stroke:#1e8449,color:#17202a
  classDef gate fill:#fff1cc,stroke:#9a7d0a,color:#17202a
  A["PR push"]:::input --> B["Provider Unit Tests Mac"]:::parallel
  A --> C["Provider SDK Tests Mac"]:::parallel
  A --> D["Provider Prompt Parity Mac"]:::parallel
  B --> E["Lane cache + full provider build + validated Metal"]:::parallel
  C --> F["Lane cache + full SDK build + validated Metal"]:::parallel
  D --> G["Lane cache + full parity build + validated Metal"]:::parallel
  E --> H["Provider and MiMo gates; quiet expiry fixture"]:::gate
  F --> I["All SDK selectors; exclusive numerical gates"]:::gate
  G --> J["Actual vectors and sustained load proof"]:::gate
  H --> K["Provider Tests aggregate: all three must pass"]:::input
  I --> K
  J --> K
Loading

Blue: triggers/results. Red: removed serial dependency. Green: independent build execution. Yellow: unchanged correctness gates. The code entry point for each lane is .github/actions/provider-ci-build/action.yml, with keys from scripts/provider-ci-cache.py; the existing test scripts remain the assertion entry points.

Prior-head validation and baseline failures

  • 24 offline cache regressions: purpose/toolchain/SDK/path/dependency/recipe isolation, source generations, exact Metal cache including independent compiler bytes/version, actual PATH invocation and SDKROOT, rejected unused overrides, no Rust probing outside parity.
  • 15 workflow regressions: independent jobs, exact SDK gate membership, continued later gates after a failure, nonempty/no-skip wrappers, parity prerequisites, post-success Cargo save, and fail-closed aggregation under the existing required check name.
  • 10 native-CI routing regressions, including the new eighth provider invocation and existing exclusive allocator/composition assertions.
  • 27 unchanged release-cache tests and eight public MiMo fixture-setup tests.
  • Full provider and nested SDK test products built locally; matched Metal staged in both packages.
  • All DiffusionGemma/paged/hash/eligibility/backend/KV-sharing/kernel/composition gates passed locally.
  • Every one of the 15 Nemotron/onboarding SDK selectors passed locally.
  • Edited deadline test passed repeatedly and again within the full runner; all isolated provider gates ran and passed despite the general-suite failure.
  • actionlint, YAML parsing, git diff --check, make docs-impact-check BASE=origin/master, make docs-check.
  • All signed commits display GitHub Verified. Review findings fixed and replied to with concrete test evidence; the erroneous unsigned-commit claim was disproved using the exact Git object and successful signature check.
  • At prior head 342483951, automated review completed and actionable threads were resolved. Its SDK/parity lanes passed and the aggregate preserved the MiMo unit failure. Fresh integrated-head CI and review are tracked in the update above.

The earlier provider suite was not green before #1258 landed. The local complete runner executed and failed visibly in 384.879s, matching the existing baseline class of missing MiMo native/payload fixtures plus four Swift Testing issues. Public metadata setup fixed some missing tokenizer prerequisites, but does not supply native payload fixtures or authorize retained-fault GPU lanes. Existing master Provider Tests failed in the same areas before this change. Those failures were not removed, converted to skips, or retried into a success.

The unchanged production parity script also reached its existing cmp gate and failed against the committed production vectors locally; no generated golden file was accepted or rewritten. This remains a separate upstream qualification issue. CI validates each independent job and leaves a failing gate red.

Documentation and Overlap

Updated canonical docs/developer/build.md and docs/developer/test.md for independent jobs, compatible cache boundaries and isolated deadline coverage.

PR #1253 adds provider coverage and overlaps the same scripts/workflow. Its future merge must instrument both provider and parity builds and collect both jobs' profiles; this PR does not silently delete an existing coverage step. PR #1164 changes runner policy and cache namespace; this PR stays on the currently configured Blacksmith tier. Coordinator speedup PR #1257 is separate and has a passing Linux Coordinator Tests job (126-second test step); this provider PR leaves coordinator execution unchanged.

@vercel

vercel Bot commented Sep 30, 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:08am UTC
d-inference-console-ui-dev Ready Ready Preview Sep 30, 2026 1:08am UTC
d-inference-landing Ready Ready Preview Sep 30, 2026 1:08am UTC
eigen-homepages-darkbloom Ready Ready Preview Sep 30, 2026 1:08am UTC

Request Review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 30, 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:10:20.516877Z 9c57750 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: 9d39ab7e61

ℹ️ 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 scripts/provider-ci-cache.py Resolved
Comment thread .github/workflows/ci.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: 9503fc42cb

ℹ️ 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 scripts/fetch-metallib.sh Resolved
Comment thread docs/developer/test.md 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: 3424839514

ℹ️ 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".

@Gajesh2007

Copy link
Copy Markdown
Member Author

Final measured validation at 3424839: all commits are GitHub-verified and latest-head review completed with actionable threads resolved. Compatible fallback caches are confirmed in logs. Provider SDK Tests passed in 5m55s (57.064s build), Provider Prompt Parity passed in 4m58s (55.768s build), versus preceding successful cold runs of 7m30s and 7m37s. Provider Unit Tests finished in 8m25s but remains red: XCTest fixture/native-lane failures plus the same four Swift Testing issues; its test step stayed 365s. The required Provider Tests aggregate correctly failed, preserving those gates. All other settled CI checks passed; E2E Integration is still running and E2E Benchmarks waits for manual approval. No merge, release, deployment, golden-vector rewrite, or skip of failing assertions performed.

This branch was successfully deployed

4 active deployments
Preview – d-inference — 9c577507 Deployed Sep 30, 2026 by vercel[bot]
Preview – d-inference-console-ui-dev — 9c577507 Deployed Sep 30, 2026 by vercel[bot]
Preview – eigen-homepages-darkbloom — 9c577507 Deployed Sep 30, 2026 by vercel[bot]
Preview – d-inference-landing — 9c577507 Deployed Sep 30, 2026 by vercel[bot]
benchmarks — 9c577507 Deployed Sep 30, 2026 by Gajesh2007 via E2E Benchmarks #1939
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