test(ci): reconcile release/v3.8.30 baseline + test drift (#4276)

Reconcile baseline + test drift on release/v3.8.30 (complexity, opaque surface, search count, tproxy addon). Round-robin left as a canary for the undici-dispatcher issue.
This commit is contained in:
Diego Rodrigues de Sa e Souza
2026-06-19 10:48:59 -03:00
committed by GitHub
parent 3e6be47012
commit ec4d94f4c1
4 changed files with 32 additions and 11 deletions

View File

@@ -284,7 +284,11 @@ describe("API Routes — dashboard and tool consumers", () => {
assert.match(globals, /--color-card:\s+#ffffff/);
assert.match(globals, /--color-card:\s+#161b22/);
assert.match(globals, /--color-card:\s+var\(--color-card\)/);
assert.match(requestLogger, /bg-black\/5 dark:bg-black\/20/);
// #4233 ("opaque tables D9") replaced the bg-black/5 tint — which lost to
// bg-surface via tailwind-merge — with the opaque bg-surface theme color.
// The intent here (request log surface stays opaque over theme colors) is now
// expressed by bg-surface itself.
assert.match(requestLogger, /bg-surface/);
assert.doesNotMatch(requestLogger, /\/api\/logs\/active/);
});

View File

@@ -2,7 +2,7 @@
* Integration tests for GET /api/search/providers — extended catalog (F4).
*
* Tests:
* - Returns 15 items total (12 search + 3 fetch providers).
* - Returns 16 items total (13 search + 3 fetch providers).
* - Each item carries the correct `kind` field.
* - Status reflects actual DB credential state:
* - "configured" when an active, non-rate-limited connection exists.
@@ -50,7 +50,10 @@ const route = await import("../../src/app/api/search/providers/route.ts");
// Constants
// ---------------------------------------------------------------------------
const EXPECTED_SEARCH_COUNT = 12;
// 13 search-kind providers: serper, brave, perplexity, exa, tavily, google-pse,
// linkup, searchapi, youcom, searxng, ollama, zai + duckduckgo-free (added in the
// v3.8.27 cycle, registry open-sse/config/searchRegistry.ts).
const EXPECTED_SEARCH_COUNT = 13;
const EXPECTED_FETCH_COUNT = 3;
const EXPECTED_TOTAL = EXPECTED_SEARCH_COUNT + EXPECTED_FETCH_COUNT;
@@ -137,7 +140,7 @@ test("search-providers-catalog: returns 401 for unauthenticated requests when au
assert.ok(!bodyStr.includes(" at /"), "error body must not contain stack trace");
});
test("search-providers-catalog: returns 15 providers (12 search + 3 fetch)", async () => {
test("search-providers-catalog: returns 16 providers (13 search + 3 fetch)", async () => {
const req = await buildAuthRequest();
const res = await route.GET(req);