From ad35183725eeb6325a56212b0ead0cbcb06e8c2f Mon Sep 17 00:00:00 2001 From: Goni Sulaiman Date: Wed, 23 Sep 2026 21:17:01 +0100 Subject: [PATCH 1/2] test: realign golden + count pins left stale by the merge wave (#14547) Two deterministic base-red unit failures, both tests left behind by merged features: 1. quota-plan-registry.test.ts pinned knownProviders() at 12 and its includes list predates muse-code. #14329 added the muse-code plan (13th) without touching the count pin, so every shard fails with 13 !== 12. Pin updated to 13 and muse-code added to the list. 2. provider-translate-path-golden.test.ts regenerating against the deepseek registry restructure (198b3bfd8): the golden still froze format openai-responses + https://api.deepseek.com/responses as the default path, while the registry now declares openai + /chat/completions (responses remains an alternateFormats entry). Snapshot regenerated via UPDATE_GOLDEN=1; the diff is exactly the deepseek format/url lines. Refs #14547 --- tests/snapshots/provider/translate-path.json | 6 +++--- tests/unit/quota-plan-registry.test.ts | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/tests/snapshots/provider/translate-path.json b/tests/snapshots/provider/translate-path.json index 90cb7786e052..f55e800b868d 100644 --- a/tests/snapshots/provider/translate-path.json +++ b/tests/snapshots/provider/translate-path.json @@ -1702,7 +1702,7 @@ } }, "deepseek": { - "format": "openai-responses", + "format": "openai", "headers": { "apiKey": { "Accept": "text/event-stream", @@ -1720,8 +1720,8 @@ } }, "url": { - "nonStream": "https://api.deepseek.com/responses", - "stream": "https://api.deepseek.com/responses" + "nonStream": "https://api.deepseek.com/chat/completions", + "stream": "https://api.deepseek.com/chat/completions" } }, "deepseek-web": { diff --git a/tests/unit/quota-plan-registry.test.ts b/tests/unit/quota-plan-registry.test.ts index bbcb1ae87be3..4b2619e86613 100644 --- a/tests/unit/quota-plan-registry.test.ts +++ b/tests/unit/quota-plan-registry.test.ts @@ -64,8 +64,8 @@ test("getKnownPlan('') returns null", () => { assert.equal(getKnownPlan(""), null); }); -test("knownProviders() returns exactly 12 entries", () => { - assert.equal(knownProviders().length, 12); +test("knownProviders() returns exactly 13 entries", () => { + assert.equal(knownProviders().length, 13); }); test("knownProviders() includes the full registry set", () => { @@ -79,6 +79,7 @@ test("knownProviders() includes the full registry set", () => { "bailian", "kimi", "kimi-coding", + "muse-code", "xiaomi-mimo", "alibaba", "grok-cli", From 493f1d3c3e35a79a20b5829e731885d6307974b4 Mon Sep 17 00:00:00 2001 From: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com> Date: Thu, 24 Sep 2026 02:57:24 -0300 Subject: [PATCH 2/2] test(golden): drop the retired suno provider from the translate-path golden #14468 retired suno from the registry but left its block in the committed translate-path golden, so the golden test stayed red on the release tip even after the deepseek realignment. Regenerated with UPDATE_GOLDEN=1 against the current registry; the only change is the suno block removal. --- tests/snapshots/provider/translate-path.json | 23 -------------------- 1 file changed, 23 deletions(-) diff --git a/tests/snapshots/provider/translate-path.json b/tests/snapshots/provider/translate-path.json index 06598ba50dbc..90eb199ff17e 100644 --- a/tests/snapshots/provider/translate-path.json +++ b/tests/snapshots/provider/translate-path.json @@ -5547,29 +5547,6 @@ "stream": "https://ai.sumopod.com/v1/chat/completions" } }, - "suno": { - "format": "openai", - "headers": { - "apiKey": { - "Accept": "text/event-stream", - "Authorization": "Bearer ", - "Content-Type": "application/json" - }, - "nonStream": { - "Authorization": "Bearer ", - "Content-Type": "application/json" - }, - "oauth": { - "Accept": "text/event-stream", - "Authorization": "Bearer ", - "Content-Type": "application/json" - } - }, - "url": { - "nonStream": "https://studio-api.suno.ai/api/generate/v2/", - "stream": "https://studio-api.suno.ai/api/generate/v2/" - } - }, "synthetic": { "format": "openai", "headers": {