Skip to content

ci: route Swift LM with a temporary hosted audio exception - #414

Merged
Gajesh2007 merged 11 commits into
mainfrom
codex/mlx-lm-route-every-ci-event-20261113
Nov 14, 2026
Merged

Gajesh2007 merged 11 commits into
mainfrom
codex/mlx-lm-route-every-ci-event-20261113

Conversation

@Gajesh2007

@Gajesh2007 Gajesh2007 commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

Route the remaining read-only Swift LM CI workloads through Darkbloom, with a temporary hosted exception for seven strict audio-decoder tests. Native audio migration remains open: the unchanged-base control already reproduces the PCM-bit failure, and no audio behavior or assertion is changed here.

  • Run 7,711 test identities across four native shards. Build, Metal, those four shards, and coverage share one seven-job native reservation. The same route requests the Linux map-check and final verification jobs.
  • Run the seven exact AudioReaderRetryTests and MiMoV26EncodedAACAudioTests identities in a separate static xcode-27 job. All 7,718 main identities and three special extra passes remain accounted for exactly once; all 34 group definitions, settings, fixtures, assertions, and existing test timeouts are preserved. Replanning retains the explicit hosted identities.
  • Reuse the same built products and Metal library for the audio job. It validates the build's recorded workspace and Xcode path. Hosted-built products run in the existing checkout; native-built products run in a fresh, owned copy at the original absolute workspace path. The original unpack compatibility checks are unchanged. The hosted image names the same SDK Xcode_27.2.0.app; the bridge verifies Xcode 27.2 build 27B52 and reuses only an equivalent existing path, or creates an absent alias without overwriting anything. Its isolated helper excludes Python startup from repository/environment paths. The job logs its OS, hardware, Xcode, and AVFoundation version.
  • Route read-only fork-diff checking and Pages HTML rendering through Linux sandboxes. Keep protected Pages packaging/publishing on GitHub, with write/OIDC permissions isolated from the read-only renderer.
  • Use the proven v4.6.2 uploader for the test-products archive and report its exact byte count and SHA-256. The previous native run successfully uploaded all 280,201,862 source bytes in 18 seconds; archive contents and compression are unchanged.

The small planning/routing bootstrap and privileged watchdog remain hosted. Upstream-only workflows retain their repository guards. This is not an all-CI-complete claim; removing the audio exception requires a separately verified fix for native decoding.

Validation: the five new runner/exception regression tests fail against the old shard tool; all 27 tests pass with this change. Exact identity and effective-setting comparisons confirm 7,711 native plus seven hosted tests, unchanged extra passes, and preserved policy after replanning. Both product-workspace modes and five refusal cases pass without weakening unpack guards. Actionlint, dependency/one-route checks, whitespace checks, SSH signature verification, and a clean trial merge with current main pass. A fixed-artifact hosted canary 43526840088 passed the unchanged unpack guard and all seven audio tests exactly once with zero skips. It reused the preinstalled equivalent Xcode path without creating or overwriting anything. Final combined qualification passed on reviewed head 554bca11586ccabf04583455f059e4018a83fc26: run 43527739146, attempt 2 passed all four native test shards, both native Linux helpers, native build/Metal/coverage, and the seven hosted audio tests. All 7,718 identities ran exactly once in the main pass across 11 successful processes, with the three extra runs retained and no process retries. All nine native jobs have verified execution receipts and physically retired VMs. Native lint/fork-diff and all other current-head checks also pass.

The preceding full native run 43520395494 executed all 7,718 tests exactly once and passed build, Metal, three test shards, and coverage; its single audio-bit assertion failure is also reproduced by the unchanged-base control #410. It is recorded as a failure, with no retry, tolerance, or skip.

AI usage: Codex prepared and validated these workflow changes under the repository owner's explicit direction. No Swift library source or test expectations changed.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-13T23:32:42.789503Z 554bca1 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.

@Gajesh2007 Gajesh2007 changed the title ci: route Swift LM main and manual tests through Darkbloom ci: route Swift LM workloads through Darkbloom with balanced shards Nov 13, 2026
Keep the seven exact audio identities on xcode-27 after the unchanged base reproduced native PCM bit differences. Preserve assertions, all other test identities, three extra passes and coverage aggregation. Use the shared products only at their recorded workspace and Xcode paths, and preserve the hosted exception when replanning four native shards.
@Gajesh2007 Gajesh2007 changed the title ci: route Swift LM workloads through Darkbloom with balanced shards ci: route Swift LM with a temporary hosted audio exception Nov 13, 2026

@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: f8b003a700

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

hosted = set(data.get("hosted_tests", []))
if hosted - set(tests):
raise SystemExit("error: a configured hosted test is absent from the test list.")
tests = [test for test in tests if test not in hosted]

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Exclude hosted identities from generated unit selections

When a suite contains both a hosted exception and a native test—for example, after adding a test to AudioReaderRetryTests—removing the hosted IDs from this list does not exclude them from the generated shard. The planner subsequently emits the whole suite as a units entry, whose prefix filter selects the hosted tests again, so they run on both runners and the exactly-once check fails. Reproduced with M.A/testHosted and M.A/testNew: planning succeeds but checking its output reports duplicate ownership of testHosted. Emit exact native test selections for units that also contain hosted identities.

Useful? React with 👍 / 👎.

Keep the original product guard. Verify Xcode 27.2 build 27B52 and both allowed paths, create the missing canonical app alias atomically without overwrite, and use the recorded developer directory for downstream audio execution.
@Gajesh2007
Gajesh2007 merged commit 4342a66 into main Nov 14, 2026
23 of 30 checks passed
jonathan308 added a commit that referenced this pull request Nov 14, 2026
…the cumulative SDK

Only .github/test-shards.json conflicted. Resolution = #414's replanned map
(4 native shards + the hosted audio shard, hosted_tests, rest run in shard
4) byte for byte, plus what this branch had added to the old map, each once:
- groups native-reasoning-budget (#411) and gemma-quoted-number-enabled
  (#408, extra pass with DARKBLOOM_GEMMA_SCHEMA_COERCION=1), unchanged;
- a run for each group (shards 1 and 2) and one units run in shard 3 for
  CBv2FreeSpanTests + QwenFreeSpanHistoryTests (#413, was its own shard) and
  CBv2GrammarNonFiniteTests + CBv2GrammarQwen4Tests (#409, was the rest run);
- estimated_seconds of those three shards raised accordingly.
Every other #414 file is main's version; no Swift file differs from the
cumulative head eaed116. Checked: test_shards.py load_map/resolve_runs
(36 groups each used once, one rest run, no unit listed twice; each new
suite selected by exactly one main run); test_shards_test.py 27/27 OK.
jonathan308 added a commit that referenced this pull request Nov 14, 2026
jonathan308 added a commit that referenced this pull request Nov 14, 2026
test-shards.json: #417's map (#414's four native shards and hosted
audio shard, with #416's two groups) taken as is, plus #407's
gemma-reopened-thought-enabled group and one extra run beside
gemma-quoted-number-enabled in shard 2 (+15 s estimate, as for that
run). The seven hosted audio tests are unchanged. Every other file
merges cleanly; against #417's head this adds exactly #407's lines,
the reviewed test case and the reference text.
jonathan308 added a commit that referenced this pull request Nov 14, 2026
Brings in main at f41a5f9 (#407 to #418: opt-in native reasoning
budgets, grammar-aware MTP verification and free spans, GLM token
constraints, Gemma parsing options, and CI routing #414).

One conflict, in fork.yaml: main and this branch each add a paragraph to
the core runtime description. Both are kept: the canonical prefill grid
paragraph, then main's reasoning budget paragraph. CBv2Contracts.swift,
EngineV2.swift, EngineLoopV2.swift and CONTRACT-DECISIONS.md merged
without a conflict. Every ordinary submission path (submit,
submitWithRetirement, submitWithNativeRetirement and the first-token
deadline submit) still cancels a running continuation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

1 participant