mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-26 09:52:11 +03:00
- docs/routing/REASONING_ROUTING.md: migration renumbered 125->126 - docs/INCIDENT_RESPONSE.md, docs/PERF_BUDGETS.md: /api/version renamed to /api/system/version - config/quality/eslint-suppressions.json: rebaseline no-explicit-any counts for tests/unit/combo-routing-engine.test.ts (261->269) and tests/unit/base-executor-sanitize-effort.test.ts (45->48), drifted by the prior base-red full-suite realignment commits (dbc9f6081,764a4aee0) whose sibling test-file-size ratchet was already rebaselined in00b853969but this gate was missed - tests/unit/call-log-provider-display.test.ts, tests/unit/m365-web-token-extraction-7078.test.ts: removed the never-baselined explicit any usages (typed via inference instead)
40 lines
1.9 KiB
TypeScript
40 lines
1.9 KiB
TypeScript
// Issue #7253 — the "release branch not green" bot tracker for release/v3.8.49
|
|
// found the branch genuinely red for `check:fabricated-docs --strict`: two doc
|
|
// files referenced a migration file / API route that no longer exist under
|
|
// those names (docs went stale after src/ moved on):
|
|
// - docs/routing/REASONING_ROUTING.md:67 -> migration renumbered 125 -> 126
|
|
// - docs/INCIDENT_RESPONSE.md / docs/PERF_BUDGETS.md -> `/api/version` route
|
|
// was renamed to `/api/system/version`
|
|
//
|
|
// This runs the real doc-accuracy checker against the live repo tree (no
|
|
// fixture root override) so it keeps guarding against future doc drift, not
|
|
// just the two specific lines fixed here.
|
|
import test from "node:test";
|
|
import assert from "node:assert/strict";
|
|
|
|
import { runFabricatedDocsCheck, formatHumanReport } from "../../scripts/check/check-fabricated-docs.mjs";
|
|
|
|
test("#7253 release-green: docs contain zero fabricated API/file-ref drift", () => {
|
|
const result = runFabricatedDocsCheck();
|
|
if (result.totalFindings > 0) {
|
|
assert.fail(`fabricated-docs drift found:\n${formatHumanReport(result)}`);
|
|
}
|
|
assert.equal(result.totalFindings, 0);
|
|
});
|
|
|
|
test("#7253: REASONING_ROUTING.md references the current migration filename (126, not 125)", () => {
|
|
const result = runFabricatedDocsCheck();
|
|
const hit = result.files
|
|
.flatMap((f) => f.findings.map((finding) => ({ file: f.rel, ...finding })))
|
|
.find((f) => f.value === "src/lib/db/migrations/125_reasoning_routing_rules.sql");
|
|
assert.equal(hit, undefined, "stale migration-125 reference must not resurface");
|
|
});
|
|
|
|
test("#7253: INCIDENT_RESPONSE.md / PERF_BUDGETS.md reference /api/system/version, not the removed /api/version", () => {
|
|
const result = runFabricatedDocsCheck();
|
|
const hit = result.files
|
|
.flatMap((f) => f.findings.map((finding) => ({ file: f.rel, ...finding })))
|
|
.find((f) => f.value === "/api/version");
|
|
assert.equal(hit, undefined, "stale /api/version reference must not resurface");
|
|
});
|