Skip to content

Commit af45acc

Browse files
author
Brandon Bennett
committed
fix(tests): align count expectations with live catalogs (pre-existing release drift)
Release/v3.8.50 currently fails five gates on its own tree; this PR inherits them. Fix the stale expectations to match live code: - feature-flags-settings: 48 -> 49 flags (Wave 2 adds OMNIROUTE_CHAT_VIRTUAL_LANES) - cli-tools-schema / cli-catalog-counts: 33 -> 34 tools (zcode added; 26 code = 21 visible + 5 none) - optional-transformers-dependency: onnxruntime-node ~1.24.3 -> ~1.27.0 (bump diegosouzapw#10382) - stryker.conf.json: register chatcore-header-drop-warn-dedupe-10315 test - check-public-creds: freeze zcodeProtocol clientId false positive (client identifier, not a credential)
1 parent 7b38342 commit af45acc

6 files changed

Lines changed: 18 additions & 15 deletions

File tree

scripts/check/check-public-creds.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ const ENV_KEY_RE = /(clientId|clientSecret|apiKey)Env\s*:/;
9292
export const KNOWN_LITERAL_CREDS = new Set([
9393
"open-sse/services/usage/minimax.ts:213:minimax", // TODO(6A.8): pre-existing FP — TS fn-param type, not a credential (getMiniMaxUsage signature)
9494
"open-sse/services/usage/minimax.ts:213:minimax-cn", // TODO(6A.8): pre-existing FP — TS fn-param type, not a credential (getMiniMaxUsage signature)
95+
"open-sse/executors/zcodeProtocol.ts:302:omniroute-${process.pid}", // pre-existing FP — clientId identifier, not a credential (ZCode handshake client name)
9596
]);
9697

9798
/**

stryker.conf.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,9 @@
110110
"tests/unit/chatcore-compression-integration.test.ts",
111111
"tests/unit/chatcore-executor-helpers.test.ts",
112112
"tests/unit/chatcore-executor-proxy.test.ts",
113-
"tests/unit/chatcore-extracted-modules-3821.test.ts",
114-
"tests/unit/chatcore-headers.test.ts",
113+
"tests/unit/chatcore-extracted-modules-3821.test.ts",
114+
"tests/unit/chatcore-header-drop-warn-dedupe-10315.test.ts",
115+
"tests/unit/chatcore-headers.test.ts",
115116
"tests/unit/chatcore-imports-cleanly.test.ts",
116117
"tests/unit/chatcore-log-truncation.test.ts",
117118
"tests/unit/chatcore-memory-extraction.test.ts",

tests/unit/build/optional-transformers-dependency.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ test("@huggingface/transformers is a regular dependency so npm ci never skips it
1515
// pin dragged onnxruntime-node@1.21.0 whose NAN build no longer compiles), which
1616
// broke `npm ci`/`next build` with "Can't resolve @huggingface/transformers"
1717
// (lazy import in src/lib/memory/embedding/transformersLocal.ts). As a regular
18-
// dep with onnxruntime-node@~1.24.3 (napi prebuilds, no node-gyp) it stays
18+
// dep with onnxruntime-node@~1.27.0 (napi prebuilds, no node-gyp) it stays
1919
// installable and the memory embedding path requires() cleanly.
2020
const pkg = readJson<{
2121
dependencies?: Record<string, string>;
@@ -38,7 +38,7 @@ test("transformers + onnxruntime-node are regular dependencies (not optional)",
3838

3939
assert.equal(
4040
pkg.dependencies?.["onnxruntime-node"],
41-
"~1.24.3",
41+
"~1.27.0",
4242
"onnxruntime-node is a regular dep (napi prebuilds, installable on Node 24/26)"
4343
);
4444
assert.equal(pkg.optionalDependencies?.["onnxruntime-node"], undefined);

tests/unit/cli-catalog-counts.test.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,24 +30,24 @@ test(`CLI_TOOLS has exactly ${EXPECTED_AGENT_COUNT} agent entries`, () => {
3030
);
3131
});
3232

33-
test("CLI_TOOLS total code entries (including none) equals 25 (21 visible + 4 none)", () => {
34-
// code-none entries: antigravity, kiro, cursor (app), hermes (simple guide)
33+
test("CLI_TOOLS total code entries (including none) equals 26 (21 visible + 5 none)", () => {
34+
// code-none entries: zcode, antigravity, kiro, cursor (app), hermes (simple guide)
3535
const codeNone = codeAll.filter((t) => t.baseUrlSupport === "none");
3636
assert.equal(
3737
codeNone.length,
38-
4,
39-
`Expected 4 code entries with baseUrlSupport='none', got ${codeNone.length}: ${codeNone.map((t) => t.id).join(", ")}`
38+
5,
39+
`Expected 5 code entries with baseUrlSupport='none', got ${codeNone.length}: ${codeNone.map((t) => t.id).join(", ")}`
4040
);
41-
assert.equal(codeAll.length, 25, `Expected 25 total code entries, got ${codeAll.length}`);
41+
assert.equal(codeAll.length, 26, `Expected 26 total code entries, got ${codeAll.length}`);
4242
});
4343

44-
test("CLI_TOOLS total (code + agent) = 33", () => {
45-
assert.equal(all.length, 33, `Expected 33 total entries, got ${all.length}`);
44+
test("CLI_TOOLS total (code + agent) = 34", () => {
45+
assert.equal(all.length, 34, `Expected 34 total entries, got ${all.length}`);
4646
});
4747

4848
test("All code-none entries have configType mitm OR are legacy excluded entries", () => {
4949
const codeNone = codeAll.filter((t) => t.baseUrlSupport === "none");
50-
const allowedIds = new Set(["antigravity", "kiro", "cursor", "hermes"]);
50+
const allowedIds = new Set(["zcode", "antigravity", "kiro", "cursor", "hermes"]);
5151
for (const entry of codeNone) {
5252
assert.ok(
5353
allowedIds.has(entry.id),

tests/unit/cli-tools-schema.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ test("CLI_TOOLS registry contains all expected tools including rebuilt Qwen Code
4545
"crush",
4646
"grok-build",
4747
"qwen",
48+
"zcode",
4849
];
4950
for (const id of expected) {
5051
assert.ok(id in CLI_TOOLS, `Missing tool: ${id}`);

tests/unit/feature-flags-settings.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ const {
3030
isControlPlaneProxyDirectFallbackEnabled,
3131
} = await import("../../src/shared/utils/featureFlags.ts");
3232

33-
const EXPECTED_FEATURE_FLAG_COUNT = 48;
33+
const EXPECTED_FEATURE_FLAG_COUNT = 49;
3434

3535
// ──────────────────────────────────────────────────────
3636
// Test group 1 — Flag definitions registry
3737
// ──────────────────────────────────────────────────────
3838
describe("featureFlagDefinitions", () => {
39-
it("has exactly 48 flag definitions", () => {
39+
it("has exactly 49 flag definitions", () => {
4040
assert.strictEqual(FEATURE_FLAG_DEFINITIONS.length, EXPECTED_FEATURE_FLAG_COUNT);
4141
});
4242

@@ -344,7 +344,7 @@ describe("resolveFeatureFlag", () => {
344344
});
345345

346346
describe("resolveAllFeatureFlags", () => {
347-
it("returns all 47 flags", () => {
347+
it("returns all 49 flags", () => {
348348
const all = resolveAllFeatureFlags();
349349
assert.strictEqual(all.length, EXPECTED_FEATURE_FLAG_COUNT);
350350
});

0 commit comments

Comments
 (0)