Files
workinf_Blender_Wasm/web/tests/unit/execution-control-plane.test.mjs
mes123456 f3e21c6b98
Some checks failed
M6 deployable RC / quick (push) Has been cancelled
M6 deployable RC / chromium (push) Has been cancelled
M6 deployable RC / release (push) Has been cancelled
chore: checkpoint web Blender migration source, tools and docs
Accumulated uncommitted work: GHOST Web backend, WebGL/GPU web layer,
web workflow engine and protocol, tooling, docs and task records.
Large generated evidence, user-testing archives, build snapshots and
imported test assets remain untracked.

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-11-10 11:18:01 +08:00

21 lines
917 B
JavaScript

import assert from "node:assert/strict";
import { execFileSync } from "node:child_process";
import test from "node:test";
import path from "node:path";
const root = path.resolve(import.meta.dirname, "../../..");
test("execution control plane reports one queue pointer and capability throughput", () => {
const output = execFileSync(process.execPath, [
path.join(root, "tools/web/check-execution-control-plane.mjs"),
"--allow-unrunnable",
], { cwd: root, encoding: "utf8" });
const report = JSON.parse(output);
assert.equal(report.status, "PASS");
assert.ok(report.queue.activeCatalogTask === null || report.queue.currentTask === report.queue.activeCatalogTask);
assert.equal(report.queue.parentNextTask, report.queue.currentTask);
assert.equal(report.efficiency.capabilityClusters, 3);
assert.ok(report.efficiency.averageGapsPerCapability >= 1);
assert.equal(report.issues.length, 0);
});