Repository navigation
ci: parallelize provider SDK and prompt parity checks - #1259
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 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".
There was a problem hiding this comment.
💡 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".
There was a problem hiding this comment.
💡 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".
|
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. |
Current integration update
Merged current
masterincluding #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
342483951timing 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.
needsdependency on provider tests.acceptedThenExpiredin 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
InstalledDirmount 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-latesthad a 19m43s median job runtime. These are observational warm-cache timings across source revisions, not a controlled before/after experiment.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:
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:
cmpmismatch, matching local reproductionAll 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
342483951in 36651839135 verified compatible fallback cache restores across commits: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
After
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 fromscripts/provider-ci-cache.py; the existing test scripts remain the assertion entry points.Prior-head validation and baseline failures
actionlint, YAML parsing,git diff --check,make docs-impact-check BASE=origin/master,make docs-check.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
cmpgate 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.mdanddocs/developer/test.mdfor 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.