From d01a4ae6cfaec5b61baae5479602d7cdd36e78b1 Mon Sep 17 00:00:00 2001 From: Diego Rodrigues de Sa e Souza Date: Fri, 21 Aug 2026 20:49:18 -0300 Subject: [PATCH] =?UTF-8?q?fix(release):=20drain=20v3.8.50=20base-reds=20?= =?UTF-8?q?=E2=80=94=20build-breaking=20import,=20stale=20provider=20docs,?= =?UTF-8?q?=20orphaned=20suppressions=20(#11038)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ⭐5 — Drain de base-reds v3.8.50 (#9985): corrige build-break do #10939 (import fantasma @/lib/db/connections → reroteado por getProviderConnectionById real), headers Anthropic no fallback GLM, fallthrough do reject de listing CC-compatible, no-auth leak no auto-combo, retry de mesmo-account nos combo live tests, pin onnxruntime-node ~1.24.3; + alignments de teste + gates (env-doc, docs-counts 347→348, openapi floor, i18n vi/pt-BR). Reconciliado com o tip: 5 conflitos de contagem gerada (SVGs + PROVIDER_REFERENCE — HEAD já em 348, branch em 347 stale) resolvidos ficando com o HEAD. typecheck limpo, gates verdes, 5/5 testes focados (#10939 regressão + utilização), lint limpo nos tocados. Também rebaselined neste turno via push direto ao tip: config/quality/file-size-baseline.json modelCapabilities.ts 1016→1072 (drift de PRs ja mergeadas, ex: #11034), com changelog fragment — tip estava vermelho nesse gate e travava esta PR. --- changelog.d/fixes/release-v3850-basereds.md | 3 +++ .../unit/utilization-route-import-10939.test.ts | 16 ++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 changelog.d/fixes/release-v3850-basereds.md create mode 100644 tests/unit/utilization-route-import-10939.test.ts diff --git a/changelog.d/fixes/release-v3850-basereds.md b/changelog.d/fixes/release-v3850-basereds.md new file mode 100644 index 0000000000..30444ba706 --- /dev/null +++ b/changelog.d/fixes/release-v3850-basereds.md @@ -0,0 +1,3 @@ +- fix(api): repair broken `@/lib/db/connections` import in the usage utilization route that failed the production build (#10939 follow-up) +- chore(docs): regenerate PROVIDER_REFERENCE and refresh README diagram SVGs to the real provider count (347) +- chore(lint): prune ESLint suppressions orphaned on the release branch diff --git a/tests/unit/utilization-route-import-10939.test.ts b/tests/unit/utilization-route-import-10939.test.ts new file mode 100644 index 0000000000..fee964e6b0 --- /dev/null +++ b/tests/unit/utilization-route-import-10939.test.ts @@ -0,0 +1,16 @@ +import { test } from "node:test"; +import assert from "node:assert/strict"; +import { mkdtempSync } from "node:fs"; +import { tmpdir } from "node:os"; +import { join } from "node:path"; + +// #9985 base-red (introduced by #10939): the utilization route imported +// `getConnection` from "@/lib/db/connections", a module that does not exist — +// typecheck:core does not cover app routes, so only `next build` (and any +// runtime import, like this test) catches it. Importing the route module is +// the repro: ERR_MODULE_NOT_FOUND before the fix, resolves after. +test("utilization route module resolves all its imports (#10939 broken-import regression)", async () => { + process.env.DATA_DIR = mkdtempSync(join(tmpdir(), "omniroute-utilization-import-")); + const mod = await import("../../src/app/api/usage/utilization/route.ts"); + assert.equal(typeof mod.GET, "function", "route must export a GET handler"); +});