From cdb11ba399e7952285f6b154bf38ee0f49a41545 Mon Sep 17 00:00:00 2001 From: Aaron Scherer Date: Wed, 19 Aug 2026 02:43:51 -0500 Subject: [PATCH] test(ci): clear release gate regressions --- tests/unit/autoCombo/provider-family-combos.test.ts | 11 ++++++++++- tests/unit/cli-oauth-commands.test.ts | 6 ++++-- tests/unit/executor-gitlab.test.ts | 5 ++++- 3 files changed, 18 insertions(+), 4 deletions(-) diff --git a/tests/unit/autoCombo/provider-family-combos.test.ts b/tests/unit/autoCombo/provider-family-combos.test.ts index 3a7e33e4f25d..715bb34d0683 100644 --- a/tests/unit/autoCombo/provider-family-combos.test.ts +++ b/tests/unit/autoCombo/provider-family-combos.test.ts @@ -144,7 +144,16 @@ describe("auto/ materialization (#6453)", () => { // `zcode` joined for the same documented reason too — #10184 added the local // ZCode app-server backend whose registry (registry/zcode) advertises the // full GLM_SHARED_MODELS line-up, so it genuinely serves the family. - assert.deepEqual(providerIds, ["auggie", "devin-cli-agentic", "glm", "zai", "zcode"]); + // cloudflare-playground advertises zai-org/glm-* models, so its no-auth + // catalog belongs in auto/glm too. + assert.deepEqual(providerIds, [ + "auggie", + "cloudflare-playground", + "devin-cli-agentic", + "glm", + "zai", + "zcode", + ]); // Every candidate must be a glm-family model (the Cartesian pool now surfaces // each backend's full glm line-up, not only the glm-5.2 default), and the // connected openai/gpt-4o-mini backend must be excluded — same family diff --git a/tests/unit/cli-oauth-commands.test.ts b/tests/unit/cli-oauth-commands.test.ts index 63301f818f43..450500e8e9f7 100644 --- a/tests/unit/cli-oauth-commands.test.ts +++ b/tests/unit/cli-oauth-commands.test.ts @@ -100,11 +100,13 @@ test("runOAuthStatus consumes the connections envelope", async () => { globalThis.fetch = ((url: string) => { assert.ok(url.includes("/api/providers")); return Promise.resolve(makeResp({ connections: CONNECTIONS })); - }) as any; + }) as typeof fetch; try { const { runOAuthStatus } = await import("../../bin/cli/commands/oauth.mjs"); - const out = await captureStdout(() => runOAuthStatus({}, makeCmd() as any)); + const out = await captureStdout(() => + runOAuthStatus({}, makeCmd() as Parameters[1]) + ); const parsed = JSON.parse(out); assert.deepEqual( parsed.map((connection: { id: string }) => connection.id), diff --git a/tests/unit/executor-gitlab.test.ts b/tests/unit/executor-gitlab.test.ts index e873805b4a78..65ab3bdc5cf1 100644 --- a/tests/unit/executor-gitlab.test.ts +++ b/tests/unit/executor-gitlab.test.ts @@ -305,7 +305,10 @@ test("GitlabExecutor falls back to the public Code Suggestions endpoint when dir "https://gitlab.example.com/api/v4/code_suggestions/completions", ]); - const body = (await result.response.json()) as any; + const body = (await result.response.json()) as { + model: string; + choices: Array<{ message: { content: string } }>; + }; assert.equal(body.model, "code-gecko"); assert.match(body.choices[0].message.content, /monolith fallback works/i); } finally {