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>
This commit is contained in:
49
my-tools/BLENDER_PROGRESS.md
Normal file
49
my-tools/BLENDER_PROGRESS.md
Normal file
@@ -0,0 +1,49 @@
|
||||
# 查看 Blender → Web Blender 当前执行状态
|
||||
|
||||
在仓库目录运行:
|
||||
|
||||
```bash
|
||||
python3 my-tools/view_wbv2_progress.py
|
||||
```
|
||||
|
||||
每 5 秒自动刷新,按 Ctrl+C 退出:
|
||||
|
||||
```bash
|
||||
python3 my-tools/view_wbv2_progress.py --watch
|
||||
```
|
||||
|
||||
自定义刷新间隔和最近交接条数:
|
||||
|
||||
```bash
|
||||
python3 my-tools/view_wbv2_progress.py --watch --interval 10 --recent 5
|
||||
```
|
||||
|
||||
从任意目录执行:
|
||||
|
||||
```bash
|
||||
python3 /home/mes123456/workinf_Blender_Wasm/my-tools/view_wbv2_progress.py --watch
|
||||
```
|
||||
|
||||
获取 JSON(配合 --watch 时每行一个 JSON 快照):
|
||||
|
||||
```bash
|
||||
python3 my-tools/view_wbv2_progress.py --json
|
||||
```
|
||||
|
||||
默认输出只保留当前任务真正需要的信息:
|
||||
|
||||
- 当前任务、活动轮次、当前 UI 模块、进程身份、心跳和本轮实际耗时。
|
||||
- 当前调度器交接的下一动作与明确余项;旧的阶段清单、空模块零计数和历史计划不再冒充当前进度。
|
||||
- 最新源码交接及少量最近结果;每轮使用 `process.json` 的实际耗时,不用文件时间差估算执行速度。
|
||||
- 调度器指定的应用候选、明确待组合源码轮次和根会话补缺是否尚未归属候选;不扫描其它候选目录代替当前记录。
|
||||
- 当前 `validation` / `acceptance`;不以心跳、轮次、构建或报告数量宣称完整对标。
|
||||
|
||||
需要历史路由、源码落点、进程文件和已报告实现条目时再展开:
|
||||
|
||||
```bash
|
||||
python3 my-tools/view_wbv2_progress.py --details
|
||||
```
|
||||
|
||||
该入口复用当前任务的 `unattended-implementation/state.json`、`desktop-delivery-manifest.json`、当前轮 `attempt.json`、少量最近 `result.json/process.json` 和显式根会话交接。候选只读取 `state.applicationCandidate` 指定的 `candidate.json`;不使用其它目录的修改时间替代,不读取 WASM 内容、不重新计算构件哈希、不载入完整源码 inventory。
|
||||
|
||||
命令只读,不启动/停止服务,不更新队列、状态或缓存,不构建,不运行功能验证。状态文件缺失、暂时写入不完整或任务不一致时显示说明,不误报已完成。本次实现遵照项目规则未执行测试、独立语法检查或验收。
|
||||
28
my-tools/bind_candidate_contracts.py
Normal file
28
my-tools/bind_candidate_contracts.py
Normal file
@@ -0,0 +1,28 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Report candidate tests without inventing behavior contracts.
|
||||
|
||||
Keyword matches are discovery references. A reviewed workflow must supply actual
|
||||
assertions and receipt producers before the supervisor can execute its cases.
|
||||
"""
|
||||
import json
|
||||
from pathlib import Path
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[1]
|
||||
|
||||
|
||||
def main():
|
||||
pending_path = ROOT / "tests/golden/WBV2/autopilot/behavior-pending.json"
|
||||
pending = json.loads(pending_path.read_text())
|
||||
references = []
|
||||
for item in pending.get("tasks", []):
|
||||
references.append({
|
||||
"job": item["job"],
|
||||
"referenceTests": item.get("candidateTests", []),
|
||||
"action": "implement route-specific assertions and receipts in an explicit workflow",
|
||||
})
|
||||
print(json.dumps({"bound": [], "references": references,
|
||||
"policy": "discovery does not change contract or acceptance"}, indent=2))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
46
my-tools/build_local_webengine.py
Normal file
46
my-tools/build_local_webengine.py
Normal file
@@ -0,0 +1,46 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Incrementally compile the local WebEngine and publish its integrity binding."""
|
||||
import json
|
||||
import os
|
||||
from pathlib import Path
|
||||
import shutil
|
||||
import subprocess
|
||||
import time
|
||||
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[1]
|
||||
|
||||
|
||||
def main():
|
||||
nodes = sorted((ROOT / ".emsdk/node").glob("*/bin/node"))
|
||||
node = str(nodes[-1]) if nodes else shutil.which("node")
|
||||
if not node:
|
||||
raise RuntimeError("local Node executable missing")
|
||||
environment = {**os.environ,
|
||||
"EM_CONFIG": str(ROOT / ".emscripten-web"),
|
||||
"EM_LLVM_ROOT": str(ROOT / ".emsdk/upstream/bin"),
|
||||
"EM_BINARYEN_ROOT": str(ROOT / ".emsdk/upstream"),
|
||||
"EM_NODE_JS": node,
|
||||
"EM_LLVM_ADD_VERSION": "", "EM_CLANG_ADD_VERSION": "",
|
||||
}
|
||||
jobs = max(1, min(4, int(os.environ.get("CMAKE_BUILD_PARALLEL_LEVEL", "4"))))
|
||||
stages = []
|
||||
for name, argv in [
|
||||
("incremental_compile", ["cmake", "--build", "build_web_blender6", "--target", "web_engine", "--parallel", str(jobs)]),
|
||||
("runtime_integrity_sync", ["node", "tools/web/sync-web-engine-runtime.mjs"]),
|
||||
]:
|
||||
start = time.monotonic()
|
||||
result = subprocess.run(argv, cwd=ROOT, env=environment)
|
||||
stages.append({"stage": name, "seconds": round(time.monotonic() - start, 6), "exitCode": result.returncode})
|
||||
print(json.dumps(stages[-1]), flush=True)
|
||||
if result.returncode:
|
||||
return result.returncode
|
||||
if os.environ.get("WBV2_RECEIPT_DIR"):
|
||||
output = Path(os.environ["WBV2_RECEIPT_DIR"])
|
||||
output.mkdir(parents=True, exist_ok=True)
|
||||
(output / "build-stages.json").write_text(json.dumps(stages, indent=2) + "\n", encoding="utf-8")
|
||||
return 0
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
raise SystemExit(main())
|
||||
195
my-tools/diagnose_local_animation_authoring.mjs
Normal file
195
my-tools/diagnose_local_animation_authoring.mjs
Normal file
@@ -0,0 +1,195 @@
|
||||
import assert from 'node:assert/strict';
|
||||
import fs from 'node:fs';
|
||||
import os from 'node:os';
|
||||
import path from 'node:path';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
import { spawnSync } from 'node:child_process';
|
||||
import createEngine from '../build_web_blender6/bin/web_engine.js';
|
||||
|
||||
const publishDiagnostic = value => {
|
||||
const routes = {
|
||||
fcurve_explicit_handles_persist: ['setFCurveKeyframes', 'web_engine_blend_main_set_fcurve_keyframes'],
|
||||
driver_is_registered_on_object: ['setDriverExpression', 'web_engine_blend_main_set_driver_expression'],
|
||||
action_group_survives_desktop_read: ['setActionGroups', 'web_engine_blend_main_set_action_groups'],
|
||||
keying_path_owns_object_property: ['setKeyingSet', 'web_engine_blend_main_set_keying_set'],
|
||||
bake_samples_evaluated_animation: ['bakeAnimation', 'web_engine_blend_main_bake_animation'],
|
||||
};
|
||||
if (process.env.WBV2_RECEIPT_DIR) {
|
||||
fs.mkdirSync(process.env.WBV2_RECEIPT_DIR, { recursive: true });
|
||||
const findings = (value.checks ?? []).filter(check => !check.ok).map(check => ({
|
||||
assertion: check.name, message: check.message,
|
||||
sourceUnit: routes[check.name] ? 'web-command:' + routes[check.name][0] : null,
|
||||
sourcePath: 'blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp',
|
||||
symbol: routes[check.name]?.[1],
|
||||
}));
|
||||
if (!value.ok && !findings.length) findings.push({ assertion: 'native_execution', message: value.error });
|
||||
fs.writeFileSync(path.join(process.env.WBV2_RECEIPT_DIR, 'native-business-diagnostic.json'), JSON.stringify({
|
||||
schemaVersion: 1, job: 'ANIMATION-FCURVE-DRIVER-COVERAGE', checkId: 'native-animation',
|
||||
status: value.ok ? 'PASS' : 'FAIL', findings, stages: value.stages,
|
||||
reproduce: { cwd: '.', argv: ['node', 'my-tools/diagnose_local_animation_authoring.mjs', '--indexed-path'] },
|
||||
}, null, 2) + '\n');
|
||||
}
|
||||
console.log(JSON.stringify(value));
|
||||
};
|
||||
|
||||
|
||||
const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');
|
||||
const directory = fs.mkdtempSync(path.join(os.tmpdir(), 'wbv2-animation-native-'));
|
||||
const stages = [];
|
||||
const record = (stage, started) => stages.push({ stage, seconds: (performance.now() - started) / 1000 });
|
||||
const log = (message) => fs.appendFileSync(path.join(directory, 'native.log'), `${message}\n`);
|
||||
const started = performance.now();
|
||||
const engine = await createEngine({
|
||||
wasmBinary: fs.readFileSync(path.join(root, 'build_web_blender6/bin/web_engine.wasm')),
|
||||
print: log,
|
||||
printErr: log,
|
||||
});
|
||||
record('instantiate', started);
|
||||
const handle = engine._web_engine_create();
|
||||
const pointers = engine._malloc(8);
|
||||
const output = () => {
|
||||
const pointer = engine.HEAPU32[pointers >> 2];
|
||||
const length = engine.HEAPU32[(pointers + 4) >> 2];
|
||||
return engine.HEAPU8.slice(pointer, pointer + length);
|
||||
};
|
||||
const call = (stage, data) => {
|
||||
const begin = performance.now();
|
||||
const pointer = data ? engine._malloc(data.length) : 0;
|
||||
try {
|
||||
if (data) engine.HEAPU8.set(data, pointer);
|
||||
const code = stage === 'open'
|
||||
? engine._web_engine_open_blend(handle, pointer, data.length)
|
||||
: stage === 'snapshot'
|
||||
? engine._web_engine_get_scene_snapshot(handle, pointers, pointers + 4)
|
||||
: engine._web_engine_call_json(handle, pointer, data.length, pointers, pointers + 4);
|
||||
if (code !== 0) throw new Error(`${stage}: ${engine.UTF8ToString(engine._web_engine_last_error_message())}`);
|
||||
return stage === 'open' ? null : JSON.parse(new TextDecoder().decode(output()));
|
||||
} finally {
|
||||
if (pointer) engine._free(pointer);
|
||||
record(stage, begin);
|
||||
}
|
||||
};
|
||||
const edit = (command, expected = true) => {
|
||||
const result = call(command.type, Buffer.from(JSON.stringify({ cmd: 'applyCommand', params: { command } })));
|
||||
assert.equal(result.ok, expected, `${command.type}: ${JSON.stringify(result.error ?? result)}`);
|
||||
return result;
|
||||
};
|
||||
const save = (name) => {
|
||||
const begin = performance.now();
|
||||
assert.equal(engine._web_engine_save_blend(handle, pointers, pointers + 4), 0);
|
||||
const file = path.join(directory, `${name}.blend`);
|
||||
fs.writeFileSync(file, output());
|
||||
engine._web_engine_free_buffer(engine.HEAPU32[pointers >> 2]);
|
||||
record(`save:${name}`, begin);
|
||||
return file;
|
||||
};
|
||||
|
||||
try {
|
||||
call('open', fs.readFileSync(path.join(root, 'tests/files/web/animation_scene.blend')));
|
||||
const initial = call('snapshot');
|
||||
if (process.argv.includes('--inspect')) {
|
||||
publishDiagnostic({ ok: true, directory, stages, animations: initial.animations, scenes: initial.scenes?.map(({ id, name, keyingSets }) => ({ id, name, keyingSets })), objects: initial.nodes?.map(({ id, name, animationId }) => ({ id, name, animationId })) });
|
||||
} else {
|
||||
const animation = initial.animations.find((item) => item.targetId === 'object:AnimatedObject');
|
||||
assert(animation);
|
||||
const scene = initial.scenes.find((item) => item.name === 'Scene');
|
||||
const files = { initial: save('initial') };
|
||||
const command = {
|
||||
type: 'setFCurveKeyframes', animationId: animation.id, path: 'location[0]',
|
||||
points: [
|
||||
{ frame: 1, value: 0, handleLeft: [0, -1], handleRight: [2, 1], interpolation: 'BEZIER' },
|
||||
{ frame: 5, value: 4, handleLeft: [4, 3], handleRight: [6, 5], interpolation: 'BEZIER' },
|
||||
],
|
||||
};
|
||||
edit(command);
|
||||
files.points = save('points');
|
||||
edit({ type: 'setDriverExpression', animationId: animation.id, path: 'location[1]', expression: 'frame * 0.5' });
|
||||
edit({ type: "setFrame", frame: 3 });
|
||||
assert.equal(call("snapshot").nodes.find(node => node.name === "AnimatedObject").transform.translation[1], 1.5, "setFrame must publish evaluated driver values");
|
||||
edit({ type: "setFrame", frame: 1 });
|
||||
edit({ type: "setDriverExpression", animationId: animation.id, path: "location[1]", expression: "frame * 0.25" });
|
||||
assert.equal(call("snapshot").nodes.find(node => node.name === "AnimatedObject").transform.translation[1], 0.25, "edited driver expressions must invalidate cached evaluation");
|
||||
edit({ type: "setDriverExpression", animationId: animation.id, path: "location[1]", expression: "frame * 0.5" });
|
||||
files.driver = save('driver');
|
||||
edit({ type: 'setActionGroups', animationId: animation.id, groups: [{ name: 'Web Motion', paths: ['location[0]', 'location[1]'] }] });
|
||||
files.groups = save('groups');
|
||||
edit({ type: 'setKeyingSet', sceneId: scene.id, name: 'Web Location', paths: [{ path: (process.argv.includes("--indexed-path") ? "location[0]" : "location"), arrayIndex: 0 }], active: true });
|
||||
files.keying = save('keying');
|
||||
edit({ type: 'bakeAnimation', objectId: animation.targetId, frameStart: 1, frameEnd: 5, step: 2 });
|
||||
files.bake = save('bake');
|
||||
const negative = [
|
||||
{ ...command, path: 'missing_property[0]' },
|
||||
{ type: 'setDriverExpression', animationId: animation.id, path: 'location[1]', expression: 'x'.repeat(256) },
|
||||
{ type: 'setActionGroups', animationId: animation.id, groups: [{ name: 'Invalid', paths: ['missing_property[0]'] }] },
|
||||
{ type: 'setKeyingSet', sceneId: scene.id, name: 'Invalid', paths: [{ path: 17, arrayIndex: 0 }], active: true },
|
||||
{ type: 'bakeAnimation', objectId: animation.targetId, frameStart: 5, frameEnd: 1, step: 1 },
|
||||
];
|
||||
const accepted = call('snapshot');
|
||||
for (const rejected of negative) {
|
||||
edit(rejected, false);
|
||||
assert.deepEqual(call('snapshot'), accepted, `${rejected.type} rejected without mutation`);
|
||||
}
|
||||
files.negative = save('negative');
|
||||
const request = { files, output: path.join(directory, 'main-snapshots.json') };
|
||||
const requestPath = path.join(directory, 'readback-request.json');
|
||||
fs.writeFileSync(requestPath, JSON.stringify(request));
|
||||
const begin = performance.now();
|
||||
const reader = spawnSync(process.env.BLENDER_BIN || path.join(root, 'build_blender_native/bin/blender'), [
|
||||
'--background', '--factory-startup', '--python-exit-code', '1', '--python', path.join(root, 'web/tests/fixtures/animation-authoring-main-snapshots.py'), '--', requestPath,
|
||||
], { cwd: root, encoding: 'utf8', timeout: 20000 });
|
||||
fs.writeFileSync(path.join(directory, 'desktop.log'), `${reader.stdout || ''}\n${reader.stderr || ''}`);
|
||||
record('desktop_readback', begin);
|
||||
assert.equal(reader.status, 0, 'Desktop Main reader failed; details remain in desktop.log');
|
||||
const main = JSON.parse(fs.readFileSync(request.output, 'utf8'));
|
||||
assert.deepEqual(main.negative, main.bake, 'Rejected commands preserve saved native Main');
|
||||
const checks = [];
|
||||
const verify = (name, fn) => {
|
||||
try { fn(); checks.push({ name, ok: true }); }
|
||||
catch (error) { checks.push({ name, ok: false, message: error.message }); }
|
||||
};
|
||||
const curve = (label, index) => main[label].actions.find((item) => item.name === animation.name)
|
||||
?.curves.find((item) => item.path === 'location' && item.index === index);
|
||||
verify('fcurve_explicit_handles_persist', () => {
|
||||
const point = curve('points', 0).keys.find((key) => key.co[0] === 5);
|
||||
assert.deepEqual(point.co, [5, 4]);
|
||||
assert.deepEqual(point.left, [4, 3]);
|
||||
assert.deepEqual(point.right, [6, 5]);
|
||||
assert.equal(point.leftType, 'FREE');
|
||||
assert.equal(point.rightType, 'FREE');
|
||||
});
|
||||
verify('driver_is_registered_on_object', () => {
|
||||
const driver = main.driver.objects.find((item) => item.name === 'AnimatedObject').drivers
|
||||
.find((item) => item.path === 'location' && item.index === 1);
|
||||
assert.equal(driver?.driver.expression, 'frame * 0.5');
|
||||
});
|
||||
verify('action_group_survives_desktop_read', () => {
|
||||
assert.equal(curve('groups', 0).group, 'Web Motion');
|
||||
assert.equal(curve('groups', 1).group, 'Web Motion');
|
||||
});
|
||||
verify('keying_path_owns_object_property', () => {
|
||||
const keyingSet = main.keying.scenes[0].keyingSets.find((item) => item.name === 'Web Location');
|
||||
assert.equal(keyingSet?.paths[0].id, 'AnimatedObject');
|
||||
assert.equal(keyingSet?.paths[0].idType, 'OBJECT');
|
||||
assert.equal(keyingSet?.isPathAbsolute, true);
|
||||
});
|
||||
verify('bake_samples_evaluated_animation', () => {
|
||||
for (const sample of main.keying.evaluatedSamples) {
|
||||
const object = sample.objects.find((item) => item.name === 'AnimatedObject');
|
||||
for (let index = 0; index < 3; index++) {
|
||||
const key = curve('bake', index).keys.find((item) => item.co[0] === sample.frame);
|
||||
assert(Math.abs(key.co[1] - object.location[index]) < 1e-5, `frame ${sample.frame} location[${index}] expected evaluated ${object.location[index]}, received ${key.co[1]}`);
|
||||
}
|
||||
}
|
||||
});
|
||||
const ok = checks.every((check) => check.ok);
|
||||
publishDiagnostic({ ok, directory, stages, checks, files, main: request.output });
|
||||
if (!ok) process.exitCode = 1;
|
||||
}
|
||||
} catch (error) {
|
||||
log(error.stack);
|
||||
publishDiagnostic({ ok: false, directory, error: error.message, frames: String(error.stack).split("\n").filter(line => line.includes("wasm-function")).slice(0, 12), stages });
|
||||
process.exitCode = 1;
|
||||
} finally {
|
||||
engine._free(pointers);
|
||||
engine._web_engine_destroy(handle);
|
||||
}
|
||||
167
my-tools/diagnose_local_grease_pencil_authoring.mjs
Normal file
167
my-tools/diagnose_local_grease_pencil_authoring.mjs
Normal file
@@ -0,0 +1,167 @@
|
||||
import assert from 'node:assert/strict';
|
||||
import fs from 'node:fs';
|
||||
import os from 'node:os';
|
||||
import path from 'node:path';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
import { spawnSync } from 'node:child_process';
|
||||
import createEngine from '../build_web_blender6/bin/web_engine.js';
|
||||
|
||||
const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');
|
||||
const directory = fs.mkdtempSync(path.join(os.tmpdir(), 'wbv2-grease-pencil-native-'));
|
||||
const stages = [];
|
||||
const checks = [];
|
||||
const files = {};
|
||||
const log = (message) => fs.appendFileSync(path.join(directory, 'native.log'), `${message}\n`);
|
||||
const record = (stage, started) => stages.push({ stage, seconds: (performance.now() - started) / 1000 });
|
||||
const started = performance.now();
|
||||
const engine = await createEngine({
|
||||
wasmBinary: fs.readFileSync(path.join(root, 'build_web_blender6/bin/web_engine.wasm')),
|
||||
print: log, printErr: log,
|
||||
});
|
||||
record('instantiate', started);
|
||||
const handle = engine._web_engine_create();
|
||||
const pointers = engine._malloc(8);
|
||||
const output = () => {
|
||||
const pointer = engine.HEAPU32[pointers >> 2];
|
||||
const length = engine.HEAPU32[(pointers + 4) >> 2];
|
||||
return engine.HEAPU8.slice(pointer, pointer + length);
|
||||
};
|
||||
const call = (stage, data) => {
|
||||
const begin = performance.now();
|
||||
const pointer = data ? engine._malloc(data.length) : 0;
|
||||
try {
|
||||
if (data) engine.HEAPU8.set(data, pointer);
|
||||
const code = stage === 'open'
|
||||
? engine._web_engine_open_blend(handle, pointer, data.length)
|
||||
: stage === 'snapshot'
|
||||
? engine._web_engine_get_scene_snapshot(handle, pointers, pointers + 4)
|
||||
: engine._web_engine_call_json(handle, pointer, data.length, pointers, pointers + 4);
|
||||
if (code !== 0) throw new Error(`${stage}: ${engine.UTF8ToString(engine._web_engine_last_error_message())}`);
|
||||
return stage === 'open' ? null : JSON.parse(new TextDecoder().decode(output()));
|
||||
} finally {
|
||||
if (pointer) engine._free(pointer);
|
||||
record(stage, begin);
|
||||
}
|
||||
};
|
||||
const edit = (command, expected = true) => {
|
||||
const result = call(command.type, Buffer.from(JSON.stringify({ cmd: 'applyCommand', params: { command } })));
|
||||
assert.equal(result.ok, expected, `${command.type}: ${JSON.stringify(result.error ?? result)}`);
|
||||
return result;
|
||||
};
|
||||
const save = (name) => {
|
||||
const begin = performance.now();
|
||||
assert.equal(engine._web_engine_save_blend(handle, pointers, pointers + 4), 0);
|
||||
const file = path.join(directory, `${name}.blend`);
|
||||
fs.writeFileSync(file, output());
|
||||
engine._web_engine_free_buffer(engine.HEAPU32[pointers >> 2]);
|
||||
record(`save:${name}`, begin);
|
||||
files[name] = file;
|
||||
return file;
|
||||
};
|
||||
const verify = (name, fn) => {
|
||||
try { fn(); checks.push({ name, ok: true }); }
|
||||
catch (error) { checks.push({ name, ok: false, message: error.message }); }
|
||||
};
|
||||
|
||||
try {
|
||||
call('open', fs.readFileSync(path.join(root, 'tests/files/web/modifier_grease_pencil_scene.blend')));
|
||||
const initial = call('snapshot');
|
||||
fs.writeFileSync(path.join(directory, 'initial-snapshot.json'), JSON.stringify(initial));
|
||||
if (process.argv.includes('--inspect')) {
|
||||
console.log(JSON.stringify({ ok: true, directory, stages, keys: Object.keys(initial), nodes: initial.nodes?.map(({ id, name, dataId, type }) => ({ id, name, dataId, type })), greasePencils: initial.greasePencils }));
|
||||
} else {
|
||||
const greasePencil = initial.greasePencils[0];
|
||||
assert(greasePencil);
|
||||
const layer = greasePencil.layers[0];
|
||||
const target = { dataId: greasePencil.id, layerId: layer.id };
|
||||
const command = (type, fields) => ({ type, ...target, baseRevision: call('snapshot').revision, ...fields });
|
||||
const frameAt = (frame) => call('snapshot').greasePencils[0].layers[0].frames.find((item) => item.frame === frame);
|
||||
const point = (x, y = 0) => ({ position: [x, y, 0], radius: 0.1, opacity: 0.8, vertexColor: [1, 0.2, 0.3, 1] });
|
||||
const strokes = [
|
||||
{ cyclic: false, materialIndex: 0, points: [point(0), point(2)] },
|
||||
{ cyclic: false, materialIndex: 0, points: [point(4), point(6)] },
|
||||
];
|
||||
const drawing = (frame, data) => edit(command('setGreasePencilDrawing', {
|
||||
frame, drawingId: frameAt(frame).drawing.id, strokes: data,
|
||||
}));
|
||||
save('initial');
|
||||
drawing(1, strokes);
|
||||
save('drawing');
|
||||
edit(command('setGreasePencilSelection', { frame: 1, pointIndices: [0], strokeIndices: [], mode: 'REPLACE' }));
|
||||
save('selection');
|
||||
edit(command('setGreasePencilMaterial', { frame: 1, materialIndex: 0, strokeIndices: [0] }));
|
||||
save('material');
|
||||
edit(command('insertGreasePencilFrame', { frame: 5, duration: 0 }));
|
||||
const shifted = strokes.map((stroke) => ({ ...stroke, points: stroke.points.map((item) => ({
|
||||
...item, position: [item.position[0] + 8, 0, 0], radius: 0.3, opacity: 0.4, vertexColor: [0, 0.6, 0.7, 1],
|
||||
})) }));
|
||||
drawing(5, shifted);
|
||||
edit(command('setGreasePencilInterpolate', { sourceFrame: 1, targetFrame: 5, factor: 0.5 }));
|
||||
save('interpolate');
|
||||
const negatives = [
|
||||
['drawing_identity', 'setGreasePencilDrawing', { frame: 1, drawingId: 'missing-drawing', strokes }],
|
||||
['selection_bounds', 'setGreasePencilSelection', { frame: 1, pointIndices: [100], strokeIndices: [], mode: 'REPLACE' }],
|
||||
['material_missing_slot', 'setGreasePencilMaterial', { frame: 1, materialIndex: 7, strokeIndices: [0] }],
|
||||
['interpolate_bounds', 'setGreasePencilInterpolate', { sourceFrame: 1, targetFrame: 5, factor: 2 }],
|
||||
];
|
||||
for (const [label, type, fields] of negatives) {
|
||||
const before = call('snapshot');
|
||||
verify(label, () => {
|
||||
edit(command(type, fields), false);
|
||||
assert.deepEqual(call('snapshot'), before);
|
||||
});
|
||||
}
|
||||
save('negative');
|
||||
drawing(1, [
|
||||
{ ...strokes[0], points: [point(0)] },
|
||||
{ ...strokes[1], points: [point(2), point(4), point(6)] },
|
||||
]);
|
||||
save('topology_before');
|
||||
verify('interpolate_per_stroke_topology', () => edit(command('setGreasePencilInterpolate', {
|
||||
sourceFrame: 1, targetFrame: 5, factor: 0.5,
|
||||
}), false));
|
||||
save('topology_after');
|
||||
const request = { files, output: path.join(directory, 'main-snapshots.json') };
|
||||
const requestPath = path.join(directory, 'readback-request.json');
|
||||
fs.writeFileSync(requestPath, JSON.stringify(request));
|
||||
const begin = performance.now();
|
||||
const reader = spawnSync(process.env.BLENDER_BIN || path.join(root, 'build_blender_native/bin/blender'), [
|
||||
'--background', '--factory-startup', '--python-exit-code', '1', '--python',
|
||||
path.join(root, 'web/tests/fixtures/grease-pencil-authoring-main-snapshots.py'), '--', requestPath,
|
||||
], { cwd: root, encoding: 'utf8', timeout: 20000 });
|
||||
fs.writeFileSync(path.join(directory, 'desktop.log'), `${reader.stdout || ''}\n${reader.stderr || ''}`);
|
||||
record('desktop_readback', begin);
|
||||
assert.equal(reader.status, 0, 'Desktop Main reader failed; details remain in desktop.log');
|
||||
const main = JSON.parse(fs.readFileSync(request.output, 'utf8'));
|
||||
const mainFrame = (label, frame) => main[label].greasePencils[0].layers[0].frames.find((item) => item.frame === frame).drawing;
|
||||
verify('drawing_native_main', () => {
|
||||
const stored = mainFrame('drawing', 1);
|
||||
assert.equal(stored.strokes.length, 2);
|
||||
assert.deepEqual(stored.strokes.flatMap((stroke) => stroke.points.map((item) => item.position[0])), [0, 2, 4, 6]);
|
||||
});
|
||||
verify('selection_native_main', () => {
|
||||
const stored = mainFrame('selection', 1);
|
||||
assert.deepEqual(stored.strokes.flatMap((stroke) => stroke.points.map((item) => item.select)), [true, false, false, false]);
|
||||
const attributes = stored.attributes.filter((item) => item.name === '.selection');
|
||||
assert.equal(attributes.length, 1);
|
||||
});
|
||||
verify('interpolate_native_main', () => {
|
||||
const stored = mainFrame('interpolate', 5);
|
||||
assert.deepEqual(stored.strokes.flatMap((stroke) => stroke.points.map((item) => item.position[0])), [4, 6, 8, 10]);
|
||||
for (const stroke of stored.strokes) for (const item of stroke.points) {
|
||||
assert(Math.abs(item.radius - 0.2) < 1e-6);
|
||||
assert(Math.abs(item.opacity - 0.6) < 1e-6);
|
||||
}
|
||||
});
|
||||
const ok = checks.every((check) => check.ok);
|
||||
console.log(JSON.stringify({ ok, directory, stages, checks, files, main: request.output }));
|
||||
if (!ok) process.exitCode = 1;
|
||||
}
|
||||
} catch (error) {
|
||||
log(error.stack);
|
||||
console.log(JSON.stringify({ ok: false, directory, error: error.message, stages, checks, files }));
|
||||
process.exitCode = 1;
|
||||
} finally {
|
||||
engine._free(pointers);
|
||||
engine._web_engine_destroy(handle);
|
||||
}
|
||||
91
my-tools/diagnose_local_object_editor.mjs
Normal file
91
my-tools/diagnose_local_object_editor.mjs
Normal file
@@ -0,0 +1,91 @@
|
||||
import assert from 'node:assert/strict';
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
import createEngine from '../build_web_blender6/bin/web_engine.js';
|
||||
|
||||
const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');
|
||||
const stages = [];
|
||||
const begin = performance.now();
|
||||
const engine = await createEngine({ wasmBinary: fs.readFileSync(path.join(root, 'build_web_blender6/bin/web_engine.wasm')) });
|
||||
stages.push({ stage: 'instantiate', seconds: (performance.now() - begin) / 1000 });
|
||||
const handle = engine._web_engine_create();
|
||||
const pointers = engine._malloc(8);
|
||||
const call = (stage, data) => {
|
||||
const started = performance.now();
|
||||
const pointer = data ? engine._malloc(data.length) : 0;
|
||||
try {
|
||||
if (data) engine.HEAPU8.set(data, pointer);
|
||||
const code = stage === 'open'
|
||||
? engine._web_engine_open_blend(handle, pointer, data.length)
|
||||
: stage === 'snapshot'
|
||||
? engine._web_engine_get_scene_snapshot(handle, pointers, pointers + 4)
|
||||
: engine._web_engine_call_json(handle, pointer, data.length, pointers, pointers + 4);
|
||||
if (code !== 0) throw new Error(engine.UTF8ToString(engine._web_engine_last_error_message(handle)));
|
||||
if (stage === 'open') return null;
|
||||
const output = engine.HEAPU32[pointers / 4];
|
||||
const length = engine.HEAPU32[pointers / 4 + 1];
|
||||
return JSON.parse(new TextDecoder().decode(engine.HEAPU8.slice(output, output + length)));
|
||||
} finally {
|
||||
if (pointer) engine._free(pointer);
|
||||
stages.push({ stage, seconds: (performance.now() - started) / 1000 });
|
||||
}
|
||||
};
|
||||
const edit = (command, expected = true) => {
|
||||
const result = call(command.type, Buffer.from(JSON.stringify({ cmd: 'applyCommand', params: { command } })));
|
||||
assert.equal(result.ok, expected, result.error ?? command.type);
|
||||
};
|
||||
try {
|
||||
const hierarchy = process.argv.includes('--hierarchy');
|
||||
call('open', fs.readFileSync(path.join(root, 'tests/files/web',
|
||||
hierarchy ? 'object_editor_visibility_scene.blend' : 'object_editor_scene.blend')));
|
||||
const initial = call('snapshot');
|
||||
const cube = initial.nodes.find(node => node.name === 'BasicCube');
|
||||
const collection = initial.collections.find(collection => collection.name === 'Collection');
|
||||
assert(cube && collection);
|
||||
edit({ type: 'clearObjectTransform', objectId: cube.id, channels: ['LOCATION', 'ROTATION', 'SCALE'] });
|
||||
const cleared = call('snapshot').nodes.find(node => node.id === cube.id);
|
||||
if (process.argv.includes('--inspect')) console.log(JSON.stringify({ transform: cleared.transform }));
|
||||
assert.deepEqual(cleared.transform.translation, [0, 0, 0]);
|
||||
assert.deepEqual(cleared.transform.rotationEuler, [0, 0, 0]);
|
||||
assert.deepEqual(cleared.transform.scale, [1, 1, 1]);
|
||||
for (const objectType of ['CAMERA', 'LIGHT', 'EMPTY', 'ARMATURE']) {
|
||||
const name = `Object Editor ${objectType}`;
|
||||
edit({ type: 'createObjectData', objectType, name });
|
||||
assert.equal(call('snapshot').nodes.find(node => node.name === name)?.type, objectType);
|
||||
}
|
||||
edit({ type: 'setObjectSelection', objectId: cube.id, selected: true, active: true });
|
||||
assert.equal(call('snapshot').activeObjectId, cube.id);
|
||||
edit({ type: 'setCollectionVisibility', collectionId: collection.id, viewportVisible: false, renderVisible: false });
|
||||
const hidden = call('snapshot');
|
||||
assert.equal(hidden.nodes.find(node => node.id === cube.id)?.visible, false,
|
||||
'hidden collection must hide its objects in the Web snapshot');
|
||||
if (hierarchy) {
|
||||
assert.equal(hidden.nodes.find(node => node.name === 'BasicCamera')?.visible, false);
|
||||
assert.equal(hidden.nodes.find(node => node.name === 'BasicArea')?.visible, true);
|
||||
assert.equal(hidden.nodes.find(node => node.name === 'ObjectEditor Hidden')?.visible, false);
|
||||
}
|
||||
edit({ type: 'setCollectionVisibility', collectionId: collection.id, viewportVisible: true, renderVisible: true });
|
||||
const shown = call('snapshot');
|
||||
assert.equal(shown.nodes.find(node => node.id === cube.id)?.visible, true);
|
||||
if (hierarchy) {
|
||||
assert.equal(shown.nodes.find(node => node.name === 'BasicCamera')?.visible, true);
|
||||
assert.equal(shown.nodes.find(node => node.name === 'BasicArea')?.visible, true);
|
||||
assert.equal(shown.nodes.find(node => node.name === 'ObjectEditor Hidden')?.visible, false);
|
||||
}
|
||||
for (const command of [
|
||||
{ type: 'clearObjectTransform', objectId: 'object:Missing', channels: ['LOCATION'] },
|
||||
{ type: 'createObjectData', objectType: 'UNSUPPORTED', name: 'Invalid' },
|
||||
{ type: 'setObjectSelection', objectId: 'object:Missing', selected: true, active: true },
|
||||
{ type: 'setCollectionVisibility', collectionId: 'collection:Missing', viewportVisible: false },
|
||||
]) edit(command, false);
|
||||
assert.equal(call('snapshot').nodes.length, initial.nodes.length + 4);
|
||||
console.log(JSON.stringify({ status: 'PASS', stages }));
|
||||
} catch (error) {
|
||||
console.log(JSON.stringify({ status: 'FAIL', error: error.message,
|
||||
frames: String(error.stack).split('\n').filter(line => /wasm-function|wasm:/.test(line)).slice(0, 10), stages }));
|
||||
process.exitCode = 1;
|
||||
} finally {
|
||||
engine._free(pointers);
|
||||
engine._web_engine_destroy(handle);
|
||||
}
|
||||
89
my-tools/diagnose_local_save_stability.mjs
Normal file
89
my-tools/diagnose_local_save_stability.mjs
Normal file
@@ -0,0 +1,89 @@
|
||||
import assert from 'node:assert/strict';
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import crypto from 'node:crypto';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
import createEngine from '../build_web_blender6/bin/web_engine.js';
|
||||
|
||||
const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');
|
||||
const engine = await createEngine({ wasmBinary: fs.readFileSync(path.join(root, 'build_web_blender6/bin/web_engine.wasm')) });
|
||||
const handle = engine._web_engine_create();
|
||||
const pointers = engine._malloc(8);
|
||||
const started = performance.now();
|
||||
const hash = bytes => crypto.createHash('sha256').update(bytes).digest('hex');
|
||||
const output = () => {
|
||||
const pointer = engine.HEAPU32[pointers / 4];
|
||||
const length = engine.HEAPU32[pointers / 4 + 1];
|
||||
return { pointer, bytes: engine.HEAPU8.slice(pointer, pointer + length) };
|
||||
};
|
||||
const open = file => {
|
||||
const bytes = fs.readFileSync(path.join(root, file));
|
||||
const pointer = engine._malloc(bytes.length);
|
||||
try {
|
||||
engine.HEAPU8.set(bytes, pointer);
|
||||
assert.equal(engine._web_engine_open_blend(handle, pointer, bytes.length), 0);
|
||||
} finally { engine._free(pointer); }
|
||||
};
|
||||
const invoke = (cmd, params = {}, ok = true) => {
|
||||
const bytes = Buffer.from(JSON.stringify({ cmd, params }));
|
||||
const pointer = engine._malloc(bytes.length);
|
||||
try {
|
||||
engine.HEAPU8.set(bytes, pointer);
|
||||
assert.equal(engine._web_engine_call_json(handle, pointer, bytes.length, pointers, pointers + 4), 0);
|
||||
const result = JSON.parse(new TextDecoder().decode(output().bytes));
|
||||
assert.equal(result.ok, ok, result.error);
|
||||
} finally { engine._free(pointer); }
|
||||
};
|
||||
const command = (command, ok = true) => invoke('applyCommand', { command }, ok);
|
||||
const snapshot = () => {
|
||||
assert.equal(engine._web_engine_get_scene_snapshot(handle, pointers, pointers + 4), 0);
|
||||
return JSON.parse(new TextDecoder().decode(output().bytes));
|
||||
};
|
||||
const save = () => {
|
||||
assert.equal(engine._web_engine_save_blend(handle, pointers, pointers + 4), 0);
|
||||
const result = output();
|
||||
engine._web_engine_free_buffer(result.pointer);
|
||||
return result.bytes;
|
||||
};
|
||||
try {
|
||||
open('tests/files/web/nonmesh_scene.blend');
|
||||
command({ type: 'createObjectData', objectType: 'EMPTY', name: 'Save Stability Probe' });
|
||||
const beforeState = snapshot();
|
||||
const font = beforeState.nonMeshData.find(data => data.type === 'FONT');
|
||||
assert(font);
|
||||
const first = save();
|
||||
const savedMemory = engine._web_engine_get_allocated_bytes();
|
||||
assert.equal(hash(save()), hash(first), 'unchanged repeated saves must have identical bytes');
|
||||
assert.equal(engine._web_engine_get_allocated_bytes(), savedMemory, 'repeated saves must not accumulate retained buffers');
|
||||
command({ type: 'setFontLinks', dataId: font.id, links: { regular: 'vfont:MissingLocalFont' } }, false);
|
||||
const rejectedState = snapshot();
|
||||
assert.equal(rejectedState.revision, beforeState.revision);
|
||||
assert.deepEqual(rejectedState.nonMeshData, beforeState.nonMeshData);
|
||||
assert.deepEqual(rejectedState.vfonts, beforeState.vfonts);
|
||||
const afterFailure = save();
|
||||
assert.equal(hash(afterFailure), hash(first), 'a rejected command must preserve saved bytes for the same revision');
|
||||
command({ type: 'createObjectData', objectType: 'EMPTY', name: 'Changed Save Probe' });
|
||||
const changed = save();
|
||||
assert.notEqual(hash(changed), hash(first), 'successful edits must invalidate saved bytes');
|
||||
invoke('undo');
|
||||
assert(!snapshot().nodes.some(node => node.name === 'Changed Save Probe'));
|
||||
assert.notEqual(hash(save()), hash(changed), 'undo must not export the newer cached state');
|
||||
invoke('redo');
|
||||
assert(snapshot().nodes.some(node => node.name === 'Changed Save Probe'));
|
||||
const redone = save();
|
||||
assert.equal(hash(save()), hash(redone));
|
||||
open('tests/files/web/basic_scene.blend');
|
||||
const reopened = save();
|
||||
assert.equal(hash(reopened), hash(fs.readFileSync(path.join(root, 'tests/files/web/basic_scene.blend'))),
|
||||
'opening a different project must invalidate the saved byte cache');
|
||||
open('tests/files/web/nonmesh_scene.blend');
|
||||
assert.equal(hash(save()), hash(fs.readFileSync(path.join(root, 'tests/files/web/nonmesh_scene.blend'))));
|
||||
console.log(JSON.stringify({ status: 'PASS', seconds: (performance.now() - started) / 1000,
|
||||
savedHash: hash(first), afterFailureHash: hash(afterFailure), changedHash: hash(changed) }));
|
||||
} catch (error) {
|
||||
console.log(JSON.stringify({ status: 'FAIL', error: error.message, seconds: (performance.now() - started) / 1000 }));
|
||||
process.exitCode = 1;
|
||||
} finally {
|
||||
engine._free(pointers);
|
||||
engine._web_engine_destroy(handle);
|
||||
}
|
||||
77
my-tools/diagnose_local_scene_strips.mjs
Normal file
77
my-tools/diagnose_local_scene_strips.mjs
Normal file
@@ -0,0 +1,77 @@
|
||||
import assert from 'node:assert/strict';
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
import createEngine from '../build_web_blender6/bin/web_engine.js';
|
||||
|
||||
const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');
|
||||
const stages = [];
|
||||
const engine = await createEngine({ wasmBinary: fs.readFileSync(path.join(root, 'build_web_blender6/bin/web_engine.wasm')) });
|
||||
const handle = engine._web_engine_create();
|
||||
const slots = engine._malloc(8);
|
||||
const read = () => {
|
||||
const pointer = engine.HEAPU32[slots / 4], length = engine.HEAPU32[slots / 4 + 1];
|
||||
return JSON.parse(new TextDecoder().decode(engine.HEAPU8.slice(pointer, pointer + length)));
|
||||
};
|
||||
const snapshot = () => {
|
||||
assert.equal(engine._web_engine_get_scene_snapshot(handle, slots, slots + 4), 0);
|
||||
return read();
|
||||
};
|
||||
const apply = (sceneId, timeline, expected = true) => {
|
||||
const start = performance.now();
|
||||
const bytes = Buffer.from(JSON.stringify({ cmd: 'applyCommand', params: {
|
||||
command: { type: 'setSequencerStrips', sceneId, timeline },
|
||||
} }));
|
||||
const pointer = engine._malloc(bytes.length);
|
||||
try {
|
||||
engine.HEAPU8.set(bytes, pointer);
|
||||
assert.equal(engine._web_engine_call_json(handle, pointer, bytes.length, slots, slots + 4), 0);
|
||||
const result = read();
|
||||
assert.equal(result.ok, expected, result.error);
|
||||
return result;
|
||||
} finally {
|
||||
engine._free(pointer);
|
||||
stages.push({ stage: expected ? 'edit' : 'reject', seconds: (performance.now() - start) / 1000 });
|
||||
}
|
||||
};
|
||||
try {
|
||||
const start = performance.now();
|
||||
const bytes = fs.readFileSync(path.join(root, 'tests/files/web/sequencer_scene_source.blend'));
|
||||
const pointer = engine._malloc(bytes.length);
|
||||
try {
|
||||
engine.HEAPU8.set(bytes, pointer);
|
||||
assert.equal(engine._web_engine_open_blend(handle, pointer, bytes.length), 0);
|
||||
} finally { engine._free(pointer); }
|
||||
stages.push({ stage: 'open', seconds: (performance.now() - start) / 1000 });
|
||||
const initial = snapshot();
|
||||
const scene = initial.scenes.find(scene => scene.name === 'SequencerScene');
|
||||
const source = initial.scenes.find(scene => scene.name === 'SourceScene');
|
||||
assert(scene && source);
|
||||
const timeline = structuredClone(scene.sequencerTimeline);
|
||||
timeline.strips.push({ id: 'strip:Web SCENE', name: 'Web SCENE', type: 'SCENE', sourceId: source.id,
|
||||
frameStart: 1, frameEnd: 25, sourceStart: 0, sourceEnd: 24, channel: 5,
|
||||
speed: 1, muted: false, locked: false });
|
||||
apply(scene.id, timeline);
|
||||
const accepted = snapshot();
|
||||
const strips = accepted.scenes.find(item => item.id === scene.id).sequencerTimeline.strips;
|
||||
assert.equal(strips.find(strip => strip.name === 'Web SCENE').sourceId, source.id);
|
||||
assert.deepEqual(accepted.scenes.find(item => item.id === source.id), source);
|
||||
for (const sourceId of [scene.id, 'scene:MissingLocalScene']) {
|
||||
const invalid = structuredClone(timeline);
|
||||
invalid.strips.at(-1).sourceId = sourceId;
|
||||
const result = apply(scene.id, invalid, false);
|
||||
assert.match(result.error, /own scene|missing scene/);
|
||||
assert.deepEqual(snapshot().scenes, accepted.scenes);
|
||||
}
|
||||
apply(scene.id, scene.sequencerTimeline);
|
||||
assert.deepEqual(snapshot().scenes.find(item => item.id === scene.id).sequencerTimeline.strips,
|
||||
scene.sequencerTimeline.strips);
|
||||
console.log(JSON.stringify({ status: 'PASS', stages }));
|
||||
} catch (error) {
|
||||
console.log(JSON.stringify({ status: 'FAIL', error: error.message, stages,
|
||||
frames: String(error.stack).split('\n').filter(line => /wasm-function|wasm:/.test(line)).slice(0, 8) }));
|
||||
process.exitCode = 1;
|
||||
} finally {
|
||||
engine._free(slots);
|
||||
engine._web_engine_destroy(handle);
|
||||
}
|
||||
77
my-tools/diagnose_local_sequencer.mjs
Normal file
77
my-tools/diagnose_local_sequencer.mjs
Normal file
@@ -0,0 +1,77 @@
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
import assert from 'node:assert/strict';
|
||||
import createEngine from '../build_web_blender6/bin/web_engine.js';
|
||||
|
||||
const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');
|
||||
const stages = [];
|
||||
const started = performance.now();
|
||||
const engine = await createEngine({
|
||||
wasmBinary: fs.readFileSync(path.join(root, 'build_web_blender6/bin/web_engine.wasm')),
|
||||
});
|
||||
stages.push({ stage: 'instantiate', seconds: (performance.now() - started) / 1000 });
|
||||
const handle = engine._web_engine_create();
|
||||
const pointers = engine._malloc(8);
|
||||
const call = (name, data) => {
|
||||
const start = performance.now();
|
||||
const pointer = data ? engine._malloc(data.length) : 0;
|
||||
try {
|
||||
if (data) engine.HEAPU8.set(data, pointer);
|
||||
const code = name === 'snapshot'
|
||||
? engine._web_engine_get_scene_snapshot(handle, pointers, pointers + 4)
|
||||
: name === 'open'
|
||||
? engine._web_engine_open_blend(handle, pointer, data.length)
|
||||
: engine._web_engine_call_json(handle, pointer, data.length, pointers, pointers + 4);
|
||||
if (code !== 0) throw new Error(engine.UTF8ToString(engine._web_engine_last_error_message(handle)));
|
||||
if (name === 'open') return null;
|
||||
const output = engine.HEAPU32[pointers / 4];
|
||||
const length = engine.HEAPU32[pointers / 4 + 1];
|
||||
return JSON.parse(new TextDecoder().decode(engine.HEAPU8.slice(output, output + length)));
|
||||
} finally {
|
||||
if (pointer) engine._free(pointer);
|
||||
stages.push({ stage: name, seconds: (performance.now() - start) / 1000 });
|
||||
}
|
||||
};
|
||||
try {
|
||||
call('open', fs.readFileSync(path.join(root, 'tests/files/web/sequencer_scene.blend')));
|
||||
const snapshot = call('snapshot');
|
||||
const scene = snapshot.scenes.find(scene => scene.name === 'SequencerScene');
|
||||
const timeline = structuredClone(scene.sequencerTimeline);
|
||||
if (process.argv.includes('--inspect')) {
|
||||
console.log(JSON.stringify({ fixtureStrips: timeline.strips.map(strip => ({
|
||||
id: strip.id, type: strip.type, sourceId: strip.sourceId, sourcePath: strip.sourcePath,
|
||||
})) }));
|
||||
}
|
||||
const image = timeline.strips.find(strip => strip.type === 'IMAGE');
|
||||
image.frameStart += 1;
|
||||
image.frameEnd += 1;
|
||||
const result = call('edit', Buffer.from(JSON.stringify({ cmd: 'applyCommand', params: {
|
||||
command: { type: 'setSequencerStrips', sceneId: scene.id, timeline },
|
||||
} })));
|
||||
if (!result.ok) throw new Error(result.error);
|
||||
const updated = call('snapshot').scenes.find(item => item.id === scene.id).sequencerTimeline;
|
||||
const updatedImage = updated.strips.find(strip => strip.name === image.name);
|
||||
assert.equal(updatedImage.frameStart, image.frameStart);
|
||||
assert.equal(updatedImage.frameEnd, image.frameEnd);
|
||||
assert.equal(updated.strips.length, timeline.strips.length);
|
||||
const invalid = structuredClone(updated);
|
||||
invalid.strips.push({ id: 'strip:MissingScene', name: 'Missing Scene', type: 'SCENE',
|
||||
channel: 8, frameStart: 1, frameEnd: 25, sourceStart: 0, sourceEnd: 24,
|
||||
speed: 1, muted: false, locked: false, sourceId: 'scene:MissingLocalTestScene' });
|
||||
const rejected = call('reject-missing-scene', Buffer.from(JSON.stringify({ cmd: 'applyCommand', params: {
|
||||
command: { type: 'setSequencerStrips', sceneId: scene.id, timeline: invalid },
|
||||
} })));
|
||||
assert.equal(rejected.ok, false);
|
||||
assert.match(rejected.error, /missing scene/);
|
||||
assert.deepEqual(call('snapshot').scenes.find(item => item.id === scene.id).sequencerTimeline.strips,
|
||||
updated.strips);
|
||||
console.log(JSON.stringify({ status: 'PASS', stages }));
|
||||
} catch (error) {
|
||||
console.log(JSON.stringify({ status: 'FAIL', error: error.message,
|
||||
frames: String(error.stack).split('\n').filter(line => /wasm-function|wasm:/.test(line)).slice(0,12), stages }));
|
||||
process.exitCode = 1;
|
||||
} finally {
|
||||
engine._free(pointers);
|
||||
engine._web_engine_destroy(handle);
|
||||
}
|
||||
45
my-tools/disk-cleanup-20260930.json
Normal file
45
my-tools/disk-cleanup-20260930.json
Normal file
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"startedAt": "2026-09-30T09:30:24+0800",
|
||||
"operation": "deduplicate identical packaged resources using existing SHA-256 hardlink helper",
|
||||
"freeBytesBefore": 27218341888,
|
||||
"scheduled": 705,
|
||||
"completed": 705,
|
||||
"errors": [],
|
||||
"protectedRecentCandidates": [
|
||||
"cycle-002047-20260930-main-desktop-history-ownership-candidate",
|
||||
"cycle-002048-main-desktop-history-ownership-candidate",
|
||||
"cycle-002051-20260930-main-desktop-history-ownership-candidate",
|
||||
"cycle-002052-20260930-main-desktop-multiview-integrated-candidate",
|
||||
"cycle-002055-20260930-main-desktop-cineon-candidate",
|
||||
"cycle-002057-20260930-main-desktop-cineon-ui-candidate",
|
||||
"cycle-002062-20260930-main-desktop-history-ownership-integrated-candidate",
|
||||
"cycle-002064-main-desktop-multiview-ui-integrated-candidate",
|
||||
"cycle-002067-main-desktop-selection-recovery-integrated-candidate",
|
||||
"cycle-002069-main-desktop-render-view-owner-integrated-candidate",
|
||||
"cycle-002068-main-desktop-render-view-owner-candidate",
|
||||
"cycle-002075-main-desktop-selection-fallback-candidate",
|
||||
"cycle-002079-main-desktop-multiview-active-index-candidate",
|
||||
"cycle-002085-main-desktop-view-layer-passes-candidate",
|
||||
"cycle-002086-main-desktop-view-layer-pass-candidate",
|
||||
"cycle-002090-main-desktop-selection-persistence-candidate",
|
||||
"cycle-002091-main-desktop-view-layer-pass-candidate",
|
||||
"cycle-002096-main-desktop-f3-pending-controls-candidate",
|
||||
"cycle-002101-main-desktop-format-pixel-density-candidate",
|
||||
"cycle-002103-main-desktop-format-pixel-density-candidate"
|
||||
],
|
||||
"validation": "not_run",
|
||||
"continuationNotes": "Disk maintenance only; source/native builds/production and all candidate paths retained; task/parent/nextTask unchanged.",
|
||||
"freeBytesAfter": 305856475136,
|
||||
"elapsedSeconds": 455,
|
||||
"freedBytes": 278638133248,
|
||||
"finishedAt": "2026-09-30T09:37:59+0800",
|
||||
"finalAllocatedBytes": {
|
||||
"project": 117503631360,
|
||||
"candidateBuilds": 91244089344
|
||||
},
|
||||
"deletedDisposableCaches": [
|
||||
"web/node_modules/.vite"
|
||||
],
|
||||
"sourceAndBuildDirectories": "preserved",
|
||||
"newPackaging": "Existing share_candidate_assets helper already shares matching resources"
|
||||
}
|
||||
@@ -22,8 +22,9 @@ def main() -> int:
|
||||
if output.is_absolute() or ".." in output.parts or output.suffix != ".blend" or not str(output).startswith("tests/files/web/"):
|
||||
parser.error("--output must be a repository-relative .blend path under tests/files/web/")
|
||||
nodes = list(dict.fromkeys(args.node))
|
||||
if not nodes or any(not (node.startswith("GeometryNode") or node.startswith("FunctionNode")) or not node.replace("_", "").isalnum() for node in nodes):
|
||||
parser.error("every --node must be a Blender GeometryNode or FunctionNode identifier")
|
||||
allowed_prefixes = ("GeometryNode", "FunctionNode", "NodeClosure", "NodeCombineBundle", "NodeEnableOutput", "NodeEvaluateClosure", "NodeGetBundleItem", "NodeGetNestedBundlePaths", "NodeJoinBundle", "NodeSeparateBundle", "NodeStoreBundleItem")
|
||||
if not nodes or any(not node.startswith(allowed_prefixes) or not node.replace("_", "").isalnum() for node in nodes):
|
||||
parser.error("every --node must be an allowlisted GeometryNode, FunctionNode or bundle Node identifier")
|
||||
if not NATIVE_BLENDER.is_file():
|
||||
raise SystemExit(f"native Blender fixture generator is unavailable: {NATIVE_BLENDER.relative_to(ROOT)}")
|
||||
destination = ROOT / output
|
||||
|
||||
215
my-tools/local-workflows/ACTION-MARKER-AUTHORING.json
Normal file
215
my-tools/local-workflows/ACTION-MARKER-AUTHORING.json
Normal file
@@ -0,0 +1,215 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P1424-001",
|
||||
"job": "ACTION-MARKER-AUTHORING",
|
||||
"parentSha256": "46a3ce65d56747da8684af422a1a94540612c767a6dcc42da7939930731399d5",
|
||||
"acceptance": "pending independent local validation",
|
||||
"result": {
|
||||
"status": "ready",
|
||||
"summary": "Prepared local native authoring workflow; independent behavioral validation is mandatory",
|
||||
"workflow": "Create and remove Actions, edit keyframes and their handles, and add, rename, move and delete timeline markers through native Main",
|
||||
"sourceUnits": [
|
||||
"web-command:createAction",
|
||||
"web-command:removeAction",
|
||||
"web-command:setKeyframe",
|
||||
"web-command:setFCurveKeyframes",
|
||||
"web-command:setTimelineMarkers"
|
||||
],
|
||||
"routeIds": [
|
||||
"web-command:createAction",
|
||||
"web-command:removeAction",
|
||||
"web-command:setKeyframe",
|
||||
"web-command:setFCurveKeyframes",
|
||||
"web-command:setTimelineMarkers"
|
||||
],
|
||||
"sourceReferences": [
|
||||
"blender-5.2.0/source/blender/makesrna/intern/rna_action.cc",
|
||||
"blender-5.2.0/source/blender/makesrna/intern/rna_timeline.cc",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp"
|
||||
],
|
||||
"changedFiles": [
|
||||
"web/tests/e2e/action-marker-ui-production.spec.ts",
|
||||
"web/tests/fixtures/action-main-snapshots.py",
|
||||
"web/tests/fixtures/native-ui-workflow.ts",
|
||||
"web/app/src/app/App.tsx",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp"
|
||||
],
|
||||
"dependencies": [
|
||||
".emscripten-web",
|
||||
"blender-5.2.0/source/blender/makesrna/intern/rna_action.cc",
|
||||
"blender-5.2.0/source/blender/makesrna/intern/rna_timeline.cc",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"build_web_blender6/CMakeCache.txt",
|
||||
"my-tools/build_local_webengine.py",
|
||||
"my-tools/prepare_wbv2_authoring_batch.py",
|
||||
"tests/files/web/animation_scene.blend",
|
||||
"tools/web/incremental-web-build.mjs",
|
||||
"tools/web/run-incremental-typecheck.mjs",
|
||||
"tools/web/sync-web-engine-runtime.mjs",
|
||||
"tools/web/web-build-fingerprint.mjs",
|
||||
"web/app/src/app/App.tsx",
|
||||
"web/app/src/capabilities/blender-feature-route-catalog.json",
|
||||
"web/app/src/engine-client/WebEngineClient.ts",
|
||||
"web/app/src/workers/web-engine.worker.ts",
|
||||
"web/app/vite.config.ts",
|
||||
"web/package.json",
|
||||
"web/playwright.config.ts",
|
||||
"web/protocol/animation-render-commands.ts",
|
||||
"web/protocol/nonmesh-geometry-commands.ts",
|
||||
"web/protocol/scene-ir.ts",
|
||||
"web/protocol/web-engine.ts",
|
||||
"web/tests/e2e/action-marker-ui-production.spec.ts",
|
||||
"web/tests/fixtures/action-main-snapshots.py",
|
||||
"web/tests/fixtures/native-ui-workflow.ts",
|
||||
"web/tsconfig.json"
|
||||
],
|
||||
"artifacts": [
|
||||
"build_blender_native/bin/blender",
|
||||
"build_web_blender6/bin/web_engine.wasm",
|
||||
"build_web_blender6/bin/web_engine.js",
|
||||
"web/app/public/vendor/blender/web_engine.wasm",
|
||||
"web/app/public/vendor/blender/web_engine.js",
|
||||
"web/app/public/wasm-module-manifest.json"
|
||||
],
|
||||
"checks": [
|
||||
{
|
||||
"id": "wasm-source-build",
|
||||
"argv": [
|
||||
"python3",
|
||||
"my-tools/build_local_webengine.py"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"source_build"
|
||||
],
|
||||
"timeoutSeconds": 1200,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "web-build",
|
||||
"argv": [
|
||||
"node",
|
||||
"tools/web/incremental-web-build.mjs"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"typecheck"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build"
|
||||
],
|
||||
"timeoutSeconds": 300,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "authoring-lint",
|
||||
"argv": [
|
||||
"node",
|
||||
"node_modules/eslint/bin/eslint.js",
|
||||
"app/src/app/App.tsx"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"lint"
|
||||
],
|
||||
"timeoutSeconds": 60,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "chromium-authoring",
|
||||
"argv": [
|
||||
"env",
|
||||
"BLENDER_BIN=/home/mes123456/workinf_Blender_Wasm/build_blender_native/bin/blender",
|
||||
"WEB_TEST_PORT=5357",
|
||||
"node",
|
||||
"node_modules/@playwright/test/cli.js",
|
||||
"test",
|
||||
"--config",
|
||||
"playwright.config.ts",
|
||||
"tests/e2e/action-marker-ui-production.spec.ts",
|
||||
"--workers=1",
|
||||
"--max-failures=1"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"chromium",
|
||||
"positive",
|
||||
"negative",
|
||||
"undo_redo",
|
||||
"save_reopen",
|
||||
"determinism"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build",
|
||||
"web-build"
|
||||
],
|
||||
"timeoutSeconds": 180,
|
||||
"continueOnFailure": true
|
||||
}
|
||||
],
|
||||
"cases": [
|
||||
{
|
||||
"id": "action-marker-positive",
|
||||
"kind": "positive",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/positive.json",
|
||||
"unitIds": [
|
||||
"web-command:createAction",
|
||||
"web-command:removeAction",
|
||||
"web-command:setKeyframe",
|
||||
"web-command:setFCurveKeyframes",
|
||||
"web-command:setTimelineMarkers"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "action-marker-negative",
|
||||
"kind": "negative",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/negative.json",
|
||||
"unitIds": [
|
||||
"web-command:setTimelineMarkers"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "action-marker-undo_redo",
|
||||
"kind": "undo_redo",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/undo_redo.json",
|
||||
"unitIds": [
|
||||
"web-command:setTimelineMarkers"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "action-marker-save_reopen",
|
||||
"kind": "save_reopen",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/save_reopen.json",
|
||||
"unitIds": [
|
||||
"web-command:createAction",
|
||||
"web-command:removeAction",
|
||||
"web-command:setKeyframe",
|
||||
"web-command:setFCurveKeyframes",
|
||||
"web-command:setTimelineMarkers"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "action-marker-determinism",
|
||||
"kind": "determinism",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/determinism.json",
|
||||
"unitIds": [
|
||||
"web-command:createAction",
|
||||
"web-command:removeAction",
|
||||
"web-command:setKeyframe",
|
||||
"web-command:setFCurveKeyframes",
|
||||
"web-command:setTimelineMarkers"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
262
my-tools/local-workflows/ANIMATION-FCURVE-DRIVER-COVERAGE.json
Normal file
262
my-tools/local-workflows/ANIMATION-FCURVE-DRIVER-COVERAGE.json
Normal file
@@ -0,0 +1,262 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P1424-001",
|
||||
"job": "ANIMATION-FCURVE-DRIVER-COVERAGE",
|
||||
"parentSha256": "46a3ce65d56747da8684af422a1a94540612c767a6dcc42da7939930731399d5",
|
||||
"acceptance": "pending independent local validation",
|
||||
"result": {
|
||||
"status": "ready",
|
||||
"summary": "Animation routes verified against evaluated desktop Main behavior",
|
||||
"workflow": "Edit FCurve points, object drivers, layered Action groups and absolute Keying Sets, then bake evaluated object transforms with history and persistence",
|
||||
"sourceUnits": [
|
||||
"web-command:setFCurveKeyframes",
|
||||
"web-command:setDriverExpression",
|
||||
"web-command:setActionGroups",
|
||||
"web-command:setKeyingSet",
|
||||
"web-command:bakeAnimation"
|
||||
],
|
||||
"routeIds": [
|
||||
"web-command:setFCurveKeyframes",
|
||||
"web-command:setDriverExpression",
|
||||
"web-command:setActionGroups",
|
||||
"web-command:setKeyingSet",
|
||||
"web-command:bakeAnimation"
|
||||
],
|
||||
"sourceReferences": [
|
||||
"blender-5.2.0/source/blender/blenkernel/intern/anim_sys.cc",
|
||||
"blender-5.2.0/source/blender/blenkernel/intern/fcurve_driver.cc",
|
||||
"blender-5.2.0/source/blender/animrig/intern/action.cc",
|
||||
"blender-5.2.0/source/blender/animrig/intern/evaluation.cc",
|
||||
"blender-5.2.0/source/blender/makesrna/intern/rna_access.cc",
|
||||
"blender-5.2.0/source/blender/makesrna/intern/rna_path.cc",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_rna_fallback.cpp"
|
||||
],
|
||||
"changedFiles": [
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_rna_fallback.cpp",
|
||||
"web/app/src/app/App.tsx",
|
||||
"web/tests/e2e/animation-authoring-ui-production.spec.ts",
|
||||
"web/tests/fixtures/animation-authoring-main-snapshots.py",
|
||||
"my-tools/diagnose_local_animation_authoring.mjs",
|
||||
"my-tools/prepare_wbv2_animation_workflow.py",
|
||||
"tools/web/inspect-workflow-controls.mjs"
|
||||
],
|
||||
"dependencies": [
|
||||
".emscripten-web",
|
||||
"blender-5.2.0/source/blender/animrig/intern/action.cc",
|
||||
"blender-5.2.0/source/blender/animrig/intern/evaluation.cc",
|
||||
"blender-5.2.0/source/blender/blenkernel/intern/anim_sys.cc",
|
||||
"blender-5.2.0/source/blender/blenkernel/intern/fcurve_driver.cc",
|
||||
"blender-5.2.0/source/blender/makesrna/intern/rna_access.cc",
|
||||
"blender-5.2.0/source/blender/makesrna/intern/rna_action.cc",
|
||||
"blender-5.2.0/source/blender/makesrna/intern/rna_path.cc",
|
||||
"blender-5.2.0/source/blender/makesrna/intern/rna_timeline.cc",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_rna_fallback.cpp",
|
||||
"build_web_blender6/CMakeCache.txt",
|
||||
"my-tools/build_local_webengine.py",
|
||||
"my-tools/diagnose_local_animation_authoring.mjs",
|
||||
"my-tools/local-workflows/ACTION-MARKER-AUTHORING.json",
|
||||
"my-tools/prepare_wbv2_animation_workflow.py",
|
||||
"my-tools/wbv2_runtime_contract.py",
|
||||
"tests/files/web/animation_scene.blend",
|
||||
"tools/web/incremental-web-build.mjs",
|
||||
"tools/web/inspect-workflow-controls.mjs",
|
||||
"tools/web/run-incremental-typecheck.mjs",
|
||||
"tools/web/sync-web-engine-runtime.mjs",
|
||||
"tools/web/web-build-fingerprint.mjs",
|
||||
"web/app/src/app/App.tsx",
|
||||
"web/app/src/capabilities/blender-feature-route-catalog.json",
|
||||
"web/app/src/engine-client/WebEngineClient.ts",
|
||||
"web/app/src/three-adapter/viewport.ts",
|
||||
"web/app/src/workers/web-engine.worker.ts",
|
||||
"web/app/vite.config.ts",
|
||||
"web/package.json",
|
||||
"web/playwright.config.ts",
|
||||
"web/protocol/animation-render-commands.ts",
|
||||
"web/protocol/nonmesh-geometry-commands.ts",
|
||||
"web/protocol/scene-ir.ts",
|
||||
"web/protocol/web-engine.ts",
|
||||
"web/tests/e2e/animation-authoring-ui-production.spec.ts",
|
||||
"web/tests/fixtures/animation-authoring-main-snapshots.py",
|
||||
"web/tests/fixtures/native-ui-workflow.ts",
|
||||
"web/tsconfig.json"
|
||||
],
|
||||
"artifacts": [
|
||||
"build_blender_native/bin/blender",
|
||||
"build_web_blender6/bin/web_engine.wasm",
|
||||
"build_web_blender6/bin/web_engine.js",
|
||||
"web/app/public/vendor/blender/web_engine.wasm",
|
||||
"web/app/public/vendor/blender/web_engine.js",
|
||||
"web/app/public/wasm-module-manifest.json"
|
||||
],
|
||||
"checks": [
|
||||
{
|
||||
"id": "wasm-source-build",
|
||||
"argv": [
|
||||
"python3",
|
||||
"my-tools/build_local_webengine.py"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"source_build"
|
||||
],
|
||||
"timeoutSeconds": 1200,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "native-animation",
|
||||
"argv": [
|
||||
"env",
|
||||
"BLENDER_BIN=/home/mes123456/workinf_Blender_Wasm/build_blender_native/bin/blender",
|
||||
"node",
|
||||
"my-tools/diagnose_local_animation_authoring.mjs",
|
||||
"--indexed-path"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"unit"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build"
|
||||
],
|
||||
"timeoutSeconds": 60,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "web-build",
|
||||
"argv": [
|
||||
"node",
|
||||
"tools/web/incremental-web-build.mjs"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"typecheck"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build",
|
||||
"native-animation"
|
||||
],
|
||||
"timeoutSeconds": 300,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "authoring-lint",
|
||||
"argv": [
|
||||
"node",
|
||||
"node_modules/eslint/bin/eslint.js",
|
||||
"app/src/app/App.tsx"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"lint"
|
||||
],
|
||||
"timeoutSeconds": 60,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "chromium-authoring",
|
||||
"argv": [
|
||||
"env",
|
||||
"BLENDER_BIN=/home/mes123456/workinf_Blender_Wasm/build_blender_native/bin/blender",
|
||||
"WEB_TEST_PORT=5365",
|
||||
"node",
|
||||
"node_modules/@playwright/test/cli.js",
|
||||
"test",
|
||||
"--config",
|
||||
"playwright.config.ts",
|
||||
"tests/e2e/animation-authoring-ui-production.spec.ts",
|
||||
"--workers=1",
|
||||
"--max-failures=1"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"chromium",
|
||||
"positive",
|
||||
"negative",
|
||||
"undo_redo",
|
||||
"save_reopen",
|
||||
"determinism"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build",
|
||||
"web-build"
|
||||
],
|
||||
"timeoutSeconds": 180,
|
||||
"continueOnFailure": true
|
||||
}
|
||||
],
|
||||
"cases": [
|
||||
{
|
||||
"id": "animation-authoring-positive",
|
||||
"kind": "positive",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/positive.json",
|
||||
"unitIds": [
|
||||
"web-command:setFCurveKeyframes",
|
||||
"web-command:setDriverExpression",
|
||||
"web-command:setActionGroups",
|
||||
"web-command:setKeyingSet",
|
||||
"web-command:bakeAnimation"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "animation-authoring-negative",
|
||||
"kind": "negative",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/negative.json",
|
||||
"unitIds": [
|
||||
"web-command:setFCurveKeyframes",
|
||||
"web-command:setDriverExpression",
|
||||
"web-command:setActionGroups",
|
||||
"web-command:setKeyingSet",
|
||||
"web-command:bakeAnimation"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "animation-authoring-undo_redo",
|
||||
"kind": "undo_redo",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/undo_redo.json",
|
||||
"unitIds": [
|
||||
"web-command:setFCurveKeyframes",
|
||||
"web-command:setDriverExpression",
|
||||
"web-command:setActionGroups",
|
||||
"web-command:setKeyingSet",
|
||||
"web-command:bakeAnimation"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "animation-authoring-save_reopen",
|
||||
"kind": "save_reopen",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/save_reopen.json",
|
||||
"unitIds": [
|
||||
"web-command:setFCurveKeyframes",
|
||||
"web-command:setDriverExpression",
|
||||
"web-command:setActionGroups",
|
||||
"web-command:setKeyingSet",
|
||||
"web-command:bakeAnimation"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "animation-authoring-determinism",
|
||||
"kind": "determinism",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/determinism.json",
|
||||
"unitIds": [
|
||||
"web-command:setFCurveKeyframes",
|
||||
"web-command:setDriverExpression",
|
||||
"web-command:setActionGroups",
|
||||
"web-command:setKeyingSet",
|
||||
"web-command:bakeAnimation"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
538
my-tools/local-workflows/ARMATURE-EDITOR-COVERAGE.json
Normal file
538
my-tools/local-workflows/ARMATURE-EDITOR-COVERAGE.json
Normal file
@@ -0,0 +1,538 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P1424-001",
|
||||
"job": "ARMATURE-EDITOR-COVERAGE",
|
||||
"parentSha256": "46a3ce65d56747da8684af422a1a94540612c767a6dcc42da7939930731399d5",
|
||||
"acceptance": "pending independent local validation",
|
||||
"result": {
|
||||
"status": "ready",
|
||||
"summary": "Selected-bone authoring with shared native transaction recovery",
|
||||
"workflow": "Edit bones, roll, mirror state, parenting and targeted pose constraints; retain the selected armature and verify each route through desktop Main readback, rejection, history, persistence and replay",
|
||||
"sourceUnits": [
|
||||
"web-command:armatureEditOperations",
|
||||
"web-command:setBoneRoll",
|
||||
"web-command:setBoneSymmetry",
|
||||
"web-command:setBoneParenting",
|
||||
"web-command:setPoseConstraint"
|
||||
],
|
||||
"routeIds": [
|
||||
"web-command:armatureEditOperations",
|
||||
"web-command:setBoneRoll",
|
||||
"web-command:setBoneSymmetry",
|
||||
"web-command:setBoneParenting",
|
||||
"web-command:setPoseConstraint"
|
||||
],
|
||||
"sourceReferences": [
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.h",
|
||||
"blender-5.2.0/source/blender/blenkernel/intern/armature.cc",
|
||||
"blender-5.2.0/source/blender/blenkernel/BKE_armature.hh"
|
||||
],
|
||||
"changedFiles": [
|
||||
"web/tests/e2e/armature-editor-coverage-ui-production.spec.ts",
|
||||
"web/tests/fixtures/armature-authoring-main-snapshots.py",
|
||||
"my-tools/prepare_wbv2_armature_workflow.py",
|
||||
"web/app/src/app/App.tsx",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp"
|
||||
],
|
||||
"dependencies": [
|
||||
".emscripten-web",
|
||||
"blender-5.2.0/source/blender/blenkernel/BKE_armature.hh",
|
||||
"blender-5.2.0/source/blender/blenkernel/intern/armature.cc",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.h",
|
||||
"build_web_blender6/CMakeCache.txt",
|
||||
"my-tools/build_local_webengine.py",
|
||||
"my-tools/prepare_wbv2_armature_workflow.py",
|
||||
"tests/files/web/pose_constraint_scene.blend",
|
||||
"tools/web/incremental-web-build.mjs",
|
||||
"tools/web/sync-web-engine-runtime.mjs",
|
||||
"web/app/src/app/App.tsx",
|
||||
"web/app/src/engine-client/WebEngineClient.ts",
|
||||
"web/app/src/workers/web-engine.worker.ts",
|
||||
"web/app/vite.config.ts",
|
||||
"web/package.json",
|
||||
"web/playwright.config.ts",
|
||||
"web/protocol/scene-ir.ts",
|
||||
"web/protocol/web-engine.ts",
|
||||
"web/tests/e2e/armature-editor-coverage-ui-production.spec.ts",
|
||||
"web/tests/fixtures/armature-authoring-main-snapshots.py",
|
||||
"web/tests/fixtures/native-ui-workflow.ts",
|
||||
"web/tsconfig.json"
|
||||
],
|
||||
"artifacts": [
|
||||
"build_web_blender6/bin/web_engine.wasm",
|
||||
"build_web_blender6/bin/web_engine.js",
|
||||
"build_blender_native/bin/blender"
|
||||
],
|
||||
"checks": [
|
||||
{
|
||||
"id": "wasm-source-build",
|
||||
"argv": [
|
||||
"python3",
|
||||
"my-tools/build_local_webengine.py"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"source_build"
|
||||
],
|
||||
"timeoutSeconds": 1200,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "web-build",
|
||||
"argv": [
|
||||
"node",
|
||||
"tools/web/incremental-web-build.mjs"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"typecheck"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build"
|
||||
],
|
||||
"timeoutSeconds": 300,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "authoring-lint",
|
||||
"argv": [
|
||||
"node",
|
||||
"node_modules/eslint/bin/eslint.js",
|
||||
"app/src/app/App.tsx",
|
||||
"tests/e2e/armature-editor-coverage-ui-production.spec.ts"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"lint"
|
||||
],
|
||||
"timeoutSeconds": 90,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "chromium-panel",
|
||||
"argv": [
|
||||
"env",
|
||||
"WEB_TEST_PORT=5378",
|
||||
"node",
|
||||
"node_modules/@playwright/test/cli.js",
|
||||
"test",
|
||||
"--config",
|
||||
"playwright.config.ts",
|
||||
"tests/e2e/armature-editor-coverage-ui-production.spec.ts",
|
||||
"--grep",
|
||||
"armature panel ",
|
||||
"--workers=1",
|
||||
"--max-failures=1"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"chromium"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build",
|
||||
"web-build",
|
||||
"authoring-lint"
|
||||
],
|
||||
"timeoutSeconds": 75,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "chromium-edit",
|
||||
"argv": [
|
||||
"env",
|
||||
"WEB_TEST_PORT=5378",
|
||||
"node",
|
||||
"node_modules/@playwright/test/cli.js",
|
||||
"test",
|
||||
"--config",
|
||||
"playwright.config.ts",
|
||||
"tests/e2e/armature-editor-coverage-ui-production.spec.ts",
|
||||
"--grep",
|
||||
"armature edit ",
|
||||
"--workers=1",
|
||||
"--max-failures=1"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"chromium",
|
||||
"positive",
|
||||
"negative",
|
||||
"undo_redo",
|
||||
"save_reopen",
|
||||
"determinism"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build",
|
||||
"web-build",
|
||||
"authoring-lint"
|
||||
],
|
||||
"timeoutSeconds": 75,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "chromium-roll",
|
||||
"argv": [
|
||||
"env",
|
||||
"WEB_TEST_PORT=5378",
|
||||
"node",
|
||||
"node_modules/@playwright/test/cli.js",
|
||||
"test",
|
||||
"--config",
|
||||
"playwright.config.ts",
|
||||
"tests/e2e/armature-editor-coverage-ui-production.spec.ts",
|
||||
"--grep",
|
||||
"armature roll ",
|
||||
"--workers=1",
|
||||
"--max-failures=1"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"chromium",
|
||||
"positive",
|
||||
"negative",
|
||||
"undo_redo",
|
||||
"save_reopen",
|
||||
"determinism"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build",
|
||||
"web-build",
|
||||
"authoring-lint"
|
||||
],
|
||||
"timeoutSeconds": 75,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "chromium-symmetry",
|
||||
"argv": [
|
||||
"env",
|
||||
"WEB_TEST_PORT=5378",
|
||||
"node",
|
||||
"node_modules/@playwright/test/cli.js",
|
||||
"test",
|
||||
"--config",
|
||||
"playwright.config.ts",
|
||||
"tests/e2e/armature-editor-coverage-ui-production.spec.ts",
|
||||
"--grep",
|
||||
"armature symmetry ",
|
||||
"--workers=1",
|
||||
"--max-failures=1"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"chromium",
|
||||
"positive",
|
||||
"negative",
|
||||
"undo_redo",
|
||||
"save_reopen",
|
||||
"determinism"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build",
|
||||
"web-build",
|
||||
"authoring-lint"
|
||||
],
|
||||
"timeoutSeconds": 75,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "chromium-parent",
|
||||
"argv": [
|
||||
"env",
|
||||
"WEB_TEST_PORT=5378",
|
||||
"node",
|
||||
"node_modules/@playwright/test/cli.js",
|
||||
"test",
|
||||
"--config",
|
||||
"playwright.config.ts",
|
||||
"tests/e2e/armature-editor-coverage-ui-production.spec.ts",
|
||||
"--grep",
|
||||
"armature parent ",
|
||||
"--workers=1",
|
||||
"--max-failures=1"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"chromium",
|
||||
"positive",
|
||||
"negative",
|
||||
"undo_redo",
|
||||
"save_reopen",
|
||||
"determinism"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build",
|
||||
"web-build",
|
||||
"authoring-lint"
|
||||
],
|
||||
"timeoutSeconds": 75,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "chromium-constraint",
|
||||
"argv": [
|
||||
"env",
|
||||
"WEB_TEST_PORT=5378",
|
||||
"node",
|
||||
"node_modules/@playwright/test/cli.js",
|
||||
"test",
|
||||
"--config",
|
||||
"playwright.config.ts",
|
||||
"tests/e2e/armature-editor-coverage-ui-production.spec.ts",
|
||||
"--grep",
|
||||
"armature constraint ",
|
||||
"--workers=1",
|
||||
"--max-failures=1"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"chromium",
|
||||
"positive",
|
||||
"negative",
|
||||
"undo_redo",
|
||||
"save_reopen",
|
||||
"determinism"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build",
|
||||
"web-build",
|
||||
"authoring-lint"
|
||||
],
|
||||
"timeoutSeconds": 75,
|
||||
"continueOnFailure": true
|
||||
}
|
||||
],
|
||||
"cases": [
|
||||
{
|
||||
"id": "armature-edit-positive",
|
||||
"kind": "positive",
|
||||
"checkId": "chromium-edit",
|
||||
"receipt": "unallocated/edit-positive.json",
|
||||
"unitIds": [
|
||||
"web-command:armatureEditOperations"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "armature-edit-negative",
|
||||
"kind": "negative",
|
||||
"checkId": "chromium-edit",
|
||||
"receipt": "unallocated/edit-negative.json",
|
||||
"unitIds": [
|
||||
"web-command:armatureEditOperations"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "armature-edit-undo_redo",
|
||||
"kind": "undo_redo",
|
||||
"checkId": "chromium-edit",
|
||||
"receipt": "unallocated/edit-undo_redo.json",
|
||||
"unitIds": [
|
||||
"web-command:armatureEditOperations"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "armature-edit-save_reopen",
|
||||
"kind": "save_reopen",
|
||||
"checkId": "chromium-edit",
|
||||
"receipt": "unallocated/edit-save_reopen.json",
|
||||
"unitIds": [
|
||||
"web-command:armatureEditOperations"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "armature-edit-determinism",
|
||||
"kind": "determinism",
|
||||
"checkId": "chromium-edit",
|
||||
"receipt": "unallocated/edit-determinism.json",
|
||||
"unitIds": [
|
||||
"web-command:armatureEditOperations"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "armature-roll-positive",
|
||||
"kind": "positive",
|
||||
"checkId": "chromium-roll",
|
||||
"receipt": "unallocated/roll-positive.json",
|
||||
"unitIds": [
|
||||
"web-command:setBoneRoll"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "armature-roll-negative",
|
||||
"kind": "negative",
|
||||
"checkId": "chromium-roll",
|
||||
"receipt": "unallocated/roll-negative.json",
|
||||
"unitIds": [
|
||||
"web-command:setBoneRoll"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "armature-roll-undo_redo",
|
||||
"kind": "undo_redo",
|
||||
"checkId": "chromium-roll",
|
||||
"receipt": "unallocated/roll-undo_redo.json",
|
||||
"unitIds": [
|
||||
"web-command:setBoneRoll"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "armature-roll-save_reopen",
|
||||
"kind": "save_reopen",
|
||||
"checkId": "chromium-roll",
|
||||
"receipt": "unallocated/roll-save_reopen.json",
|
||||
"unitIds": [
|
||||
"web-command:setBoneRoll"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "armature-roll-determinism",
|
||||
"kind": "determinism",
|
||||
"checkId": "chromium-roll",
|
||||
"receipt": "unallocated/roll-determinism.json",
|
||||
"unitIds": [
|
||||
"web-command:setBoneRoll"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "armature-symmetry-positive",
|
||||
"kind": "positive",
|
||||
"checkId": "chromium-symmetry",
|
||||
"receipt": "unallocated/symmetry-positive.json",
|
||||
"unitIds": [
|
||||
"web-command:setBoneSymmetry"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "armature-symmetry-negative",
|
||||
"kind": "negative",
|
||||
"checkId": "chromium-symmetry",
|
||||
"receipt": "unallocated/symmetry-negative.json",
|
||||
"unitIds": [
|
||||
"web-command:setBoneSymmetry"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "armature-symmetry-undo_redo",
|
||||
"kind": "undo_redo",
|
||||
"checkId": "chromium-symmetry",
|
||||
"receipt": "unallocated/symmetry-undo_redo.json",
|
||||
"unitIds": [
|
||||
"web-command:setBoneSymmetry"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "armature-symmetry-save_reopen",
|
||||
"kind": "save_reopen",
|
||||
"checkId": "chromium-symmetry",
|
||||
"receipt": "unallocated/symmetry-save_reopen.json",
|
||||
"unitIds": [
|
||||
"web-command:setBoneSymmetry"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "armature-symmetry-determinism",
|
||||
"kind": "determinism",
|
||||
"checkId": "chromium-symmetry",
|
||||
"receipt": "unallocated/symmetry-determinism.json",
|
||||
"unitIds": [
|
||||
"web-command:setBoneSymmetry"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "armature-parent-positive",
|
||||
"kind": "positive",
|
||||
"checkId": "chromium-parent",
|
||||
"receipt": "unallocated/parent-positive.json",
|
||||
"unitIds": [
|
||||
"web-command:setBoneParenting"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "armature-parent-negative",
|
||||
"kind": "negative",
|
||||
"checkId": "chromium-parent",
|
||||
"receipt": "unallocated/parent-negative.json",
|
||||
"unitIds": [
|
||||
"web-command:setBoneParenting"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "armature-parent-undo_redo",
|
||||
"kind": "undo_redo",
|
||||
"checkId": "chromium-parent",
|
||||
"receipt": "unallocated/parent-undo_redo.json",
|
||||
"unitIds": [
|
||||
"web-command:setBoneParenting"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "armature-parent-save_reopen",
|
||||
"kind": "save_reopen",
|
||||
"checkId": "chromium-parent",
|
||||
"receipt": "unallocated/parent-save_reopen.json",
|
||||
"unitIds": [
|
||||
"web-command:setBoneParenting"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "armature-parent-determinism",
|
||||
"kind": "determinism",
|
||||
"checkId": "chromium-parent",
|
||||
"receipt": "unallocated/parent-determinism.json",
|
||||
"unitIds": [
|
||||
"web-command:setBoneParenting"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "armature-constraint-positive",
|
||||
"kind": "positive",
|
||||
"checkId": "chromium-constraint",
|
||||
"receipt": "unallocated/constraint-positive.json",
|
||||
"unitIds": [
|
||||
"web-command:setPoseConstraint"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "armature-constraint-negative",
|
||||
"kind": "negative",
|
||||
"checkId": "chromium-constraint",
|
||||
"receipt": "unallocated/constraint-negative.json",
|
||||
"unitIds": [
|
||||
"web-command:setPoseConstraint"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "armature-constraint-undo_redo",
|
||||
"kind": "undo_redo",
|
||||
"checkId": "chromium-constraint",
|
||||
"receipt": "unallocated/constraint-undo_redo.json",
|
||||
"unitIds": [
|
||||
"web-command:setPoseConstraint"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "armature-constraint-save_reopen",
|
||||
"kind": "save_reopen",
|
||||
"checkId": "chromium-constraint",
|
||||
"receipt": "unallocated/constraint-save_reopen.json",
|
||||
"unitIds": [
|
||||
"web-command:setPoseConstraint"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "armature-constraint-determinism",
|
||||
"kind": "determinism",
|
||||
"checkId": "chromium-constraint",
|
||||
"receipt": "unallocated/constraint-determinism.json",
|
||||
"unitIds": [
|
||||
"web-command:setPoseConstraint"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
92
my-tools/local-workflows/ASSET-LIBRARY-COVERAGE.json
Normal file
92
my-tools/local-workflows/ASSET-LIBRARY-COVERAGE.json
Normal file
@@ -0,0 +1,92 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P1424-001",
|
||||
"job": "ASSET-LIBRARY-COVERAGE",
|
||||
"parentSha256": "46a3ce65d56747da8684af422a1a94540612c767a6dcc42da7939930731399d5",
|
||||
"acceptance": "deferred until user use; no behavioral acceptance claimed",
|
||||
"result": {
|
||||
"status": "ready",
|
||||
"contractKind": "compilation_only",
|
||||
"summary": "Native asset marking, catalog and library link/override/reload routes use Blender asset APIs; implementation phase only.",
|
||||
"workflow": "Native asset marking, catalog and library link/override/reload routes use Blender asset APIs; implementation phase only.",
|
||||
"sourceUnits": [
|
||||
"operator:ASSET_OT_catalog_new",
|
||||
"operator:ASSET_OT_library_reload_listing",
|
||||
"operator:ASSET_OT_mark"
|
||||
],
|
||||
"routeIds": [
|
||||
"operator:ASSET_OT_catalog_new",
|
||||
"operator:ASSET_OT_library_reload_listing",
|
||||
"operator:ASSET_OT_mark"
|
||||
],
|
||||
"sourceReferences": [
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/editors/asset/intern/asset_ops.cc",
|
||||
"blender-5.2.0/source/blender/asset_system/intern/asset_library.cc"
|
||||
],
|
||||
"changedFiles": [
|
||||
"my-tools/prepare_wbv2_asset_library_workflow.py",
|
||||
"web/app/src/app/App.tsx",
|
||||
"web/protocol/web-engine.ts"
|
||||
],
|
||||
"dependencies": [
|
||||
".emscripten-web",
|
||||
"blender-5.2.0/source/blender/asset_system/intern/asset_library.cc",
|
||||
"blender-5.2.0/source/blender/editors/asset/intern/asset_ops.cc",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"build_web_blender6/CMakeCache.txt",
|
||||
"my-tools/build_local_webengine.py",
|
||||
"my-tools/prepare_wbv2_asset_library_workflow.py",
|
||||
"my-tools/wbv2_compilation_recipe.py",
|
||||
"tools/web/incremental-web-build.mjs",
|
||||
"tools/web/run-incremental-typecheck.mjs",
|
||||
"tools/web/sync-web-engine-runtime.mjs",
|
||||
"web/app/src/app/App.tsx",
|
||||
"web/app/src/engine-client/WebEngineClient.ts",
|
||||
"web/app/src/workers/web-engine.worker.ts",
|
||||
"web/app/vite.config.ts",
|
||||
"web/package.json",
|
||||
"web/protocol/asset-library-io.ts",
|
||||
"web/protocol/scene-ir.ts",
|
||||
"web/protocol/web-engine.ts",
|
||||
"web/tsconfig.json"
|
||||
],
|
||||
"artifacts": [
|
||||
"build_web_blender6/bin/web_engine.wasm",
|
||||
"build_web_blender6/bin/web_engine.js",
|
||||
"build_blender_native/bin/blender"
|
||||
],
|
||||
"checks": [
|
||||
{
|
||||
"id": "wasm-source-build",
|
||||
"argv": [
|
||||
"python3",
|
||||
"my-tools/build_local_webengine.py"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"source_build"
|
||||
],
|
||||
"timeoutSeconds": 1800
|
||||
},
|
||||
{
|
||||
"id": "web-build",
|
||||
"argv": [
|
||||
"node",
|
||||
"tools/web/incremental-web-build.mjs"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"typecheck"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build"
|
||||
],
|
||||
"timeoutSeconds": 180
|
||||
}
|
||||
],
|
||||
"cases": []
|
||||
}
|
||||
}
|
||||
186
my-tools/local-workflows/BROWSER-EQUIVALENT-RUNTIME.json
Normal file
186
my-tools/local-workflows/BROWSER-EQUIVALENT-RUNTIME.json
Normal file
@@ -0,0 +1,186 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P1424-001",
|
||||
"job": "BROWSER-EQUIVALENT-RUNTIME",
|
||||
"parentSha256": "46a3ce65d56747da8684af422a1a94540612c767a6dcc42da7939930731399d5",
|
||||
"acceptance": "pending independent local validation",
|
||||
"result": {
|
||||
"status": "ready",
|
||||
"summary": "Browser-equivalent feature route invocation reuses existing native WebEngine command paths; implementation phase only.",
|
||||
"workflow": "Browser-equivalent feature route invocation reuses existing native WebEngine command paths; implementation phase only.",
|
||||
"sourceUnits": [
|
||||
"web-command:applyObjectTransform",
|
||||
"web-command:createPrimitive",
|
||||
"web-command:renderFrame"
|
||||
],
|
||||
"routeIds": [
|
||||
"web-command:applyObjectTransform",
|
||||
"web-command:createPrimitive",
|
||||
"web-command:renderFrame"
|
||||
],
|
||||
"sourceReferences": [
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp"
|
||||
],
|
||||
"changedFiles": [
|
||||
"my-tools/prepare_wbv2_browser_equivalent_workflow.py",
|
||||
"web/app/src/app/App.tsx",
|
||||
"web/protocol/web-engine.ts",
|
||||
"web/tests/e2e/browser-equivalent-runtime-receipt.spec.ts"
|
||||
],
|
||||
"dependencies": [
|
||||
".emscripten-web",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"build_web_blender6/CMakeCache.txt",
|
||||
"my-tools/build_local_webengine.py",
|
||||
"my-tools/prepare_wbv2_browser_equivalent_workflow.py",
|
||||
"my-tools/wbv2_compilation_recipe.py",
|
||||
"tools/web/incremental-web-build.mjs",
|
||||
"tools/web/run-incremental-typecheck.mjs",
|
||||
"tools/web/sync-web-engine-runtime.mjs",
|
||||
"web/app/src/app/App.tsx",
|
||||
"web/app/src/engine-client/WebEngineClient.ts",
|
||||
"web/app/src/workers/web-engine.worker.ts",
|
||||
"web/app/vite.config.ts",
|
||||
"web/package.json",
|
||||
"web/protocol/scene-ir.ts",
|
||||
"web/protocol/web-engine.ts",
|
||||
"web/tsconfig.json",
|
||||
"web/tests/e2e/browser-equivalent-runtime-receipt.spec.ts"
|
||||
],
|
||||
"artifacts": [
|
||||
"build_web_blender6/bin/web_engine.wasm",
|
||||
"build_web_blender6/bin/web_engine.js",
|
||||
"build_blender_native/bin/blender"
|
||||
],
|
||||
"checks": [
|
||||
{
|
||||
"id": "wasm-source-build",
|
||||
"argv": [
|
||||
"python3",
|
||||
"my-tools/build_local_webengine.py"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"source_build"
|
||||
],
|
||||
"timeoutSeconds": 1800
|
||||
},
|
||||
{
|
||||
"id": "web-build",
|
||||
"argv": [
|
||||
"node",
|
||||
"tools/web/incremental-web-build.mjs"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"typecheck"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build"
|
||||
],
|
||||
"timeoutSeconds": 180
|
||||
},
|
||||
{
|
||||
"id": "authoring-lint",
|
||||
"argv": [
|
||||
"node",
|
||||
"node_modules/eslint/bin/eslint.js",
|
||||
"app/src/app/App.tsx",
|
||||
"tests/e2e/receipt-producer-runtime.spec.ts"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"lint"
|
||||
],
|
||||
"timeoutSeconds": 90,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "chromium-authoring",
|
||||
"argv": [
|
||||
"node",
|
||||
"node_modules/@playwright/test/cli.js",
|
||||
"test",
|
||||
"tests/e2e/browser-equivalent-runtime-receipt.spec.ts",
|
||||
"--workers=1",
|
||||
"--max-failures=1"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"chromium",
|
||||
"positive",
|
||||
"negative",
|
||||
"undo_redo",
|
||||
"save_reopen",
|
||||
"determinism"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build",
|
||||
"web-build",
|
||||
"authoring-lint"
|
||||
],
|
||||
"timeoutSeconds": 180,
|
||||
"continueOnFailure": true
|
||||
}
|
||||
],
|
||||
"cases": [
|
||||
{
|
||||
"id": "browser-equivalent-runtime-positive",
|
||||
"kind": "positive",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/browser-equivalent-runtime-positive.json",
|
||||
"unitIds": [
|
||||
"web-command:applyObjectTransform",
|
||||
"web-command:createPrimitive",
|
||||
"web-command:renderFrame"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "browser-equivalent-runtime-negative",
|
||||
"kind": "negative",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/browser-equivalent-runtime-negative.json",
|
||||
"unitIds": [
|
||||
"web-command:applyObjectTransform",
|
||||
"web-command:createPrimitive",
|
||||
"web-command:renderFrame"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "browser-equivalent-runtime-undo_redo",
|
||||
"kind": "undo_redo",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/browser-equivalent-runtime-undo_redo.json",
|
||||
"unitIds": [
|
||||
"web-command:applyObjectTransform",
|
||||
"web-command:createPrimitive",
|
||||
"web-command:renderFrame"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "browser-equivalent-runtime-save_reopen",
|
||||
"kind": "save_reopen",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/browser-equivalent-runtime-save_reopen.json",
|
||||
"unitIds": [
|
||||
"web-command:applyObjectTransform",
|
||||
"web-command:createPrimitive",
|
||||
"web-command:renderFrame"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "browser-equivalent-runtime-determinism",
|
||||
"kind": "determinism",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/browser-equivalent-runtime-determinism.json",
|
||||
"unitIds": [
|
||||
"web-command:applyObjectTransform",
|
||||
"web-command:createPrimitive",
|
||||
"web-command:renderFrame"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
188
my-tools/local-workflows/CURVE-SURFACE-COVERAGE.json
Normal file
188
my-tools/local-workflows/CURVE-SURFACE-COVERAGE.json
Normal file
@@ -0,0 +1,188 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P1424-001",
|
||||
"job": "CURVE-SURFACE-COVERAGE",
|
||||
"parentSha256": "46a3ce65d56747da8684af422a1a94540612c767a6dcc42da7939930731399d5",
|
||||
"acceptance": "pending independent local validation",
|
||||
"result": {
|
||||
"status": "ready",
|
||||
"summary": "Curve bevel/taper/conversion and surface resolution use native Main",
|
||||
"workflow": "Mutate curve bevel and taper, convert curve to surface, set surface resolution, then verify rejection, undo/redo, save/reopen and deterministic replay",
|
||||
"sourceUnits": [
|
||||
"web-command:convertCurveType",
|
||||
"web-command:setCurveBevel",
|
||||
"web-command:setCurveTaper",
|
||||
"web-command:setSurfaceResolution"
|
||||
],
|
||||
"routeIds": [
|
||||
"web-command:convertCurveType",
|
||||
"web-command:setCurveBevel",
|
||||
"web-command:setCurveTaper",
|
||||
"web-command:setSurfaceResolution"
|
||||
],
|
||||
"sourceReferences": [
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"blender-5.2.0/source/blender/blenkernel/intern/curve.cc"
|
||||
],
|
||||
"changedFiles": [
|
||||
"web/tests/e2e/wbv2-curve-surface-coverage-production.spec.ts",
|
||||
"my-tools/prepare_wbv2_curve_surface_workflow.py"
|
||||
],
|
||||
"dependencies": [
|
||||
".emscripten-web",
|
||||
"blender-5.2.0/source/blender/blenkernel/intern/curve.cc",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"build_web_blender6/CMakeCache.txt",
|
||||
"my-tools/build_local_webengine.py",
|
||||
"my-tools/prepare_wbv2_curve_surface_workflow.py",
|
||||
"tests/files/web/nonmesh_scene.blend",
|
||||
"tools/web/incremental-web-build.mjs",
|
||||
"tools/web/sync-web-engine-runtime.mjs",
|
||||
"web/app/src/app/App.tsx",
|
||||
"web/app/src/workers/web-engine.worker.ts",
|
||||
"web/package.json",
|
||||
"web/playwright.config.ts",
|
||||
"web/protocol/nonmesh-geometry-commands.ts",
|
||||
"web/protocol/web-engine.ts",
|
||||
"web/tests/e2e/wbv2-curve-surface-coverage-production.spec.ts",
|
||||
"web/tests/fixtures/native-ui-workflow.ts",
|
||||
"web/tsconfig.json"
|
||||
],
|
||||
"artifacts": [
|
||||
"build_blender_native/bin/blender",
|
||||
"build_web_blender6/bin/web_engine.wasm",
|
||||
"build_web_blender6/bin/web_engine.js",
|
||||
"web/app/public/vendor/blender/web_engine.wasm",
|
||||
"web/app/public/vendor/blender/web_engine.js",
|
||||
"web/app/public/wasm-module-manifest.json"
|
||||
],
|
||||
"checks": [
|
||||
{
|
||||
"id": "wasm-source-build",
|
||||
"argv": [
|
||||
"python3",
|
||||
"my-tools/build_local_webengine.py"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"source_build"
|
||||
],
|
||||
"timeoutSeconds": 1200,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "web-build",
|
||||
"argv": [
|
||||
"node",
|
||||
"tools/web/incremental-web-build.mjs"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"typecheck"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build"
|
||||
],
|
||||
"timeoutSeconds": 300,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "authoring-lint",
|
||||
"argv": [
|
||||
"node",
|
||||
"node_modules/eslint/bin/eslint.js",
|
||||
"app/src/app/App.tsx"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"lint"
|
||||
],
|
||||
"timeoutSeconds": 90,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "chromium-authoring",
|
||||
"argv": [
|
||||
"env",
|
||||
"WEB_TEST_PORT=5373",
|
||||
"node",
|
||||
"node_modules/@playwright/test/cli.js",
|
||||
"test",
|
||||
"--config",
|
||||
"playwright.config.ts",
|
||||
"tests/e2e/wbv2-curve-surface-coverage-production.spec.ts",
|
||||
"--workers=1",
|
||||
"--max-failures=1"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"chromium",
|
||||
"positive",
|
||||
"negative",
|
||||
"undo_redo",
|
||||
"save_reopen",
|
||||
"determinism"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build",
|
||||
"web-build",
|
||||
"authoring-lint"
|
||||
],
|
||||
"timeoutSeconds": 180,
|
||||
"continueOnFailure": true
|
||||
}
|
||||
],
|
||||
"cases": [
|
||||
{
|
||||
"id": "curve-surface-positive",
|
||||
"kind": "positive",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/positive.json",
|
||||
"unitIds": [
|
||||
"web-command:setCurveBevel",
|
||||
"web-command:setCurveTaper",
|
||||
"web-command:convertCurveType",
|
||||
"web-command:setSurfaceResolution"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "curve-surface-negative",
|
||||
"kind": "negative",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/negative.json",
|
||||
"unitIds": [
|
||||
"web-command:setCurveBevel"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "curve-surface-undo_redo",
|
||||
"kind": "undo_redo",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/undo_redo.json",
|
||||
"unitIds": [
|
||||
"web-command:setSurfaceResolution"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "curve-surface-save_reopen",
|
||||
"kind": "save_reopen",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/save_reopen.json",
|
||||
"unitIds": [
|
||||
"web-command:setSurfaceResolution"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "curve-surface-determinism",
|
||||
"kind": "determinism",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/determinism.json",
|
||||
"unitIds": [
|
||||
"web-command:setCurveBevel"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
184
my-tools/local-workflows/FEATURE-COVERAGE-DASHBOARD.json
Normal file
184
my-tools/local-workflows/FEATURE-COVERAGE-DASHBOARD.json
Normal file
@@ -0,0 +1,184 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P1424-001",
|
||||
"job": "FEATURE-COVERAGE-DASHBOARD",
|
||||
"parentSha256": "46a3ce65d56747da8684af422a1a94540612c767a6dcc42da7939930731399d5",
|
||||
"acceptance": "pending independent local validation",
|
||||
"result": {
|
||||
"status": "ready",
|
||||
"summary": "Feature route inventory and implementation gap dashboard consumes source-bound route metadata; implementation phase only.",
|
||||
"workflow": "Feature route inventory and implementation gap dashboard consumes source-bound route metadata; implementation phase only.",
|
||||
"sourceUnits": [
|
||||
"operator:OBJECT_OT_voxel_remesh",
|
||||
"web-command:createPrimitive",
|
||||
"web-command:renderFrame"
|
||||
],
|
||||
"routeIds": [
|
||||
"operator:OBJECT_OT_voxel_remesh",
|
||||
"web-command:createPrimitive",
|
||||
"web-command:renderFrame"
|
||||
],
|
||||
"sourceReferences": [
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp"
|
||||
],
|
||||
"changedFiles": [
|
||||
"my-tools/prepare_wbv2_feature_dashboard_workflow.py",
|
||||
"web/app/src/app/App.tsx",
|
||||
"web/tests/e2e/feature-coverage-dashboard-receipt.spec.ts"
|
||||
],
|
||||
"dependencies": [
|
||||
".emscripten-web",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"build_web_blender6/CMakeCache.txt",
|
||||
"my-tools/build_local_webengine.py",
|
||||
"my-tools/prepare_wbv2_feature_dashboard_workflow.py",
|
||||
"my-tools/wbv2_compilation_recipe.py",
|
||||
"tools/web/incremental-web-build.mjs",
|
||||
"tools/web/run-incremental-typecheck.mjs",
|
||||
"tools/web/sync-web-engine-runtime.mjs",
|
||||
"web/app/src/app/App.tsx",
|
||||
"web/app/src/engine-client/WebEngineClient.ts",
|
||||
"web/app/src/workers/web-engine.worker.ts",
|
||||
"web/app/vite.config.ts",
|
||||
"web/package.json",
|
||||
"web/protocol/blender-operator.ts",
|
||||
"web/protocol/scene-ir.ts",
|
||||
"web/protocol/web-engine.ts",
|
||||
"web/tsconfig.json",
|
||||
"web/tests/e2e/feature-coverage-dashboard-receipt.spec.ts"
|
||||
],
|
||||
"artifacts": [
|
||||
"build_web_blender6/bin/web_engine.wasm",
|
||||
"build_web_blender6/bin/web_engine.js",
|
||||
"build_blender_native/bin/blender"
|
||||
],
|
||||
"checks": [
|
||||
{
|
||||
"id": "wasm-source-build",
|
||||
"argv": [
|
||||
"python3",
|
||||
"my-tools/build_local_webengine.py"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"source_build"
|
||||
],
|
||||
"timeoutSeconds": 1800
|
||||
},
|
||||
{
|
||||
"id": "web-build",
|
||||
"argv": [
|
||||
"node",
|
||||
"tools/web/incremental-web-build.mjs"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"typecheck"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build"
|
||||
],
|
||||
"timeoutSeconds": 180
|
||||
},
|
||||
{
|
||||
"id": "authoring-lint",
|
||||
"argv": [
|
||||
"node",
|
||||
"node_modules/eslint/bin/eslint.js",
|
||||
"app/src/app/App.tsx",
|
||||
"tests/e2e/receipt-producer-runtime.spec.ts"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"lint"
|
||||
],
|
||||
"timeoutSeconds": 90,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "chromium-authoring",
|
||||
"argv": [
|
||||
"node",
|
||||
"node_modules/@playwright/test/cli.js",
|
||||
"test",
|
||||
"tests/e2e/feature-coverage-dashboard-receipt.spec.ts",
|
||||
"--workers=1",
|
||||
"--max-failures=1"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"chromium",
|
||||
"positive",
|
||||
"negative",
|
||||
"undo_redo",
|
||||
"save_reopen",
|
||||
"determinism"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build",
|
||||
"web-build",
|
||||
"authoring-lint"
|
||||
],
|
||||
"timeoutSeconds": 180,
|
||||
"continueOnFailure": true
|
||||
}
|
||||
],
|
||||
"cases": [
|
||||
{
|
||||
"id": "feature-coverage-dashboard-positive",
|
||||
"kind": "positive",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/feature-coverage-dashboard-positive.json",
|
||||
"unitIds": [
|
||||
"operator:OBJECT_OT_voxel_remesh",
|
||||
"web-command:createPrimitive",
|
||||
"web-command:renderFrame"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "feature-coverage-dashboard-negative",
|
||||
"kind": "negative",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/feature-coverage-dashboard-negative.json",
|
||||
"unitIds": [
|
||||
"operator:OBJECT_OT_voxel_remesh",
|
||||
"web-command:createPrimitive",
|
||||
"web-command:renderFrame"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "feature-coverage-dashboard-undo_redo",
|
||||
"kind": "undo_redo",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/feature-coverage-dashboard-undo_redo.json",
|
||||
"unitIds": [
|
||||
"operator:OBJECT_OT_voxel_remesh",
|
||||
"web-command:createPrimitive",
|
||||
"web-command:renderFrame"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "feature-coverage-dashboard-save_reopen",
|
||||
"kind": "save_reopen",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/feature-coverage-dashboard-save_reopen.json",
|
||||
"unitIds": [
|
||||
"operator:OBJECT_OT_voxel_remesh",
|
||||
"web-command:createPrimitive",
|
||||
"web-command:renderFrame"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "feature-coverage-dashboard-determinism",
|
||||
"kind": "determinism",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/feature-coverage-dashboard-determinism.json",
|
||||
"unitIds": [
|
||||
"operator:OBJECT_OT_voxel_remesh",
|
||||
"web-command:createPrimitive",
|
||||
"web-command:renderFrame"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
184
my-tools/local-workflows/GREASE-PENCIL-COVERAGE.json
Normal file
184
my-tools/local-workflows/GREASE-PENCIL-COVERAGE.json
Normal file
@@ -0,0 +1,184 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P1424-001",
|
||||
"job": "GREASE-PENCIL-COVERAGE",
|
||||
"parentSha256": "46a3ce65d56747da8684af422a1a94540612c767a6dcc42da7939930731399d5",
|
||||
"acceptance": "deferred until user use; no behavioral acceptance claimed",
|
||||
"result": {
|
||||
"status": "ready",
|
||||
"contractKind": "compilation_only",
|
||||
"summary": "Grease Pencil drawing, material, selection and interpolation Main commands retain all 26 original GP/Lineart modifier types when saving. Original callbacks are compiled into WASM; user behavior verification is deferred.",
|
||||
"workflow": "Grease Pencil drawing, material, selection and interpolation Main commands retain all 26 original GP/Lineart modifier types when saving. Original callbacks are compiled into WASM; user behavior verification is deferred.",
|
||||
"sourceUnits": [
|
||||
"web-command:setGreasePencilDrawing",
|
||||
"web-command:setGreasePencilInterpolate",
|
||||
"web-command:setGreasePencilMaterial",
|
||||
"web-command:setGreasePencilSelection"
|
||||
],
|
||||
"routeIds": [
|
||||
"web-command:setGreasePencilDrawing",
|
||||
"web-command:setGreasePencilInterpolate",
|
||||
"web-command:setGreasePencilMaterial",
|
||||
"web-command:setGreasePencilSelection"
|
||||
],
|
||||
"sourceReferences": [
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_armature.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_array.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_build.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_color.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_dash.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_envelope.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_hook.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_lattice.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_length.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_mirror.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_multiply.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_noise.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_offset.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_opacity.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_outline.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_shrinkwrap.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_simplify.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_smooth.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_subdiv.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_texture.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_thickness.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_time.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_tint.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_util.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_weight_angle.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_weight_proximity.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_lineart.cc",
|
||||
"blender-5.2.0/source/blender/editors/grease_pencil/intern/grease_pencil_geom.cc",
|
||||
"blender-5.2.0/source/blender/editors/grease_pencil/intern/grease_pencil_lineart.cc",
|
||||
"blender-5.2.0/source/blender/editors/grease_pencil/intern/grease_pencil_edit.cc",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp"
|
||||
],
|
||||
"changedFiles": [
|
||||
"my-tools/wbv2_compilation_recipe.py",
|
||||
"blender-5.2.0/source/blender/modifiers/CMakeLists.txt",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_util.cc",
|
||||
"blender-5.2.0/source/blender/web_engine/CMakeLists.txt",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"web/app/src/app/App.tsx",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_armature.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_array.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_build.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_color.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_dash.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_envelope.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_hook.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_lattice.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_length.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_mirror.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_multiply.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_noise.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_offset.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_opacity.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_outline.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_shrinkwrap.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_simplify.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_smooth.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_subdiv.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_texture.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_thickness.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_time.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_tint.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_util.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_weight_angle.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_weight_proximity.cc",
|
||||
"my-tools/prepare_wbv2_grease_pencil_workflow.py",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_lineart.cc"
|
||||
],
|
||||
"dependencies": [
|
||||
".emscripten-web",
|
||||
"blender-5.2.0/source/blender/editors/grease_pencil/intern/grease_pencil_edit.cc",
|
||||
"blender-5.2.0/source/blender/editors/grease_pencil/intern/grease_pencil_geom.cc",
|
||||
"blender-5.2.0/source/blender/editors/grease_pencil/intern/grease_pencil_lineart.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/CMakeLists.txt",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_armature.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_array.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_build.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_color.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_dash.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_envelope.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_hook.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_lattice.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_length.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_mirror.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_multiply.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_noise.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_offset.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_opacity.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_outline.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_shrinkwrap.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_simplify.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_smooth.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_subdiv.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_texture.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_thickness.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_time.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_tint.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_util.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_weight_angle.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_grease_pencil_weight_proximity.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_lineart.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_util.cc",
|
||||
"blender-5.2.0/source/blender/web_engine/CMakeLists.txt",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"build_web_blender6/CMakeCache.txt",
|
||||
"my-tools/build_local_webengine.py",
|
||||
"my-tools/prepare_wbv2_grease_pencil_workflow.py",
|
||||
"my-tools/wbv2_compilation_recipe.py",
|
||||
"tests/files/web/modifier_grease_pencil_scene.blend",
|
||||
"tools/web/incremental-web-build.mjs",
|
||||
"tools/web/run-incremental-typecheck.mjs",
|
||||
"tools/web/sync-web-engine-runtime.mjs",
|
||||
"web/app/src/app/App.tsx",
|
||||
"web/app/src/engine-client/WebEngineClient.ts",
|
||||
"web/app/src/workers/web-engine.worker.ts",
|
||||
"web/app/vite.config.ts",
|
||||
"web/package.json",
|
||||
"web/protocol/scene-ir.ts",
|
||||
"web/protocol/web-engine.ts",
|
||||
"web/tsconfig.json"
|
||||
],
|
||||
"artifacts": [
|
||||
"build_web_blender6/bin/web_engine.wasm",
|
||||
"build_web_blender6/bin/web_engine.js",
|
||||
"build_blender_native/bin/blender"
|
||||
],
|
||||
"checks": [
|
||||
{
|
||||
"id": "wasm-source-build",
|
||||
"argv": [
|
||||
"python3",
|
||||
"my-tools/build_local_webengine.py"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"source_build"
|
||||
],
|
||||
"timeoutSeconds": 1800
|
||||
},
|
||||
{
|
||||
"id": "web-build",
|
||||
"argv": [
|
||||
"node",
|
||||
"tools/web/incremental-web-build.mjs"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"typecheck"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build"
|
||||
],
|
||||
"timeoutSeconds": 180
|
||||
}
|
||||
],
|
||||
"cases": []
|
||||
}
|
||||
}
|
||||
202
my-tools/local-workflows/IO-ROUTE-COMPLETION.json
Normal file
202
my-tools/local-workflows/IO-ROUTE-COMPLETION.json
Normal file
@@ -0,0 +1,202 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P1424-001",
|
||||
"job": "IO-ROUTE-COMPLETION",
|
||||
"parentSha256": "46a3ce65d56747da8684af422a1a94540612c767a6dcc42da7939930731399d5",
|
||||
"acceptance": "pending independent local validation",
|
||||
"result": {
|
||||
"status": "ready",
|
||||
"summary": "Native OBJ geometry import/export; external materials and other formats remain outside this bounded workflow.",
|
||||
"workflow": "Import OBJ into Main, reject empty geometry without mutation, export OBJ, undo/redo, save/reopen and independently replay; compare browser blends and exported geometry with desktop Blender.",
|
||||
"sourceUnits": [
|
||||
"operator:WM_OT_obj_export",
|
||||
"operator:WM_OT_obj_import",
|
||||
"operator:WM_OT_open_mainfile"
|
||||
],
|
||||
"routeIds": [
|
||||
"operator:WM_OT_obj_export",
|
||||
"operator:WM_OT_obj_import",
|
||||
"operator:WM_OT_open_mainfile"
|
||||
],
|
||||
"sourceReferences": [
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"blender-5.2.0/source/blender/windowmanager/intern/wm_files.cc",
|
||||
"blender-5.2.0/source/blender/io/wavefront_obj/exporter/obj_exporter.cc",
|
||||
"blender-5.2.0/source/blender/io/wavefront_obj/importer/obj_importer.cc"
|
||||
],
|
||||
"changedFiles": [
|
||||
"web/tests/e2e/io-format-operator-production.spec.ts",
|
||||
"web/tests/fixtures/io-route-main-snapshots.py",
|
||||
"my-tools/prepare_wbv2_io_route_workflow.py"
|
||||
],
|
||||
"dependencies": [
|
||||
".emscripten-web",
|
||||
"blender-5.2.0/source/blender/io/CMakeLists.txt",
|
||||
"blender-5.2.0/source/blender/io/wavefront_obj/exporter/obj_exporter.cc",
|
||||
"blender-5.2.0/source/blender/io/wavefront_obj/importer/obj_importer.cc",
|
||||
"blender-5.2.0/source/blender/nodes/shader/node_shader_util.cc",
|
||||
"blender-5.2.0/source/blender/web_engine/CMakeLists.txt",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_headless_fallback.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.h",
|
||||
"blender-5.2.0/source/blender/web_engine/web_rna_fallback.cpp",
|
||||
"blender-5.2.0/source/blender/windowmanager/intern/wm_files.cc",
|
||||
"build_web_blender6/CMakeCache.txt",
|
||||
"my-tools/build_local_webengine.py",
|
||||
"my-tools/prepare_wbv2_io_route_workflow.py",
|
||||
"tests/files/web/basic_scene.blend",
|
||||
"tests/files/web/m12_obj_multi_v1/multi-object.mtl",
|
||||
"tests/files/web/m12_obj_multi_v1/multi-object.obj",
|
||||
"tools/web/incremental-web-build.mjs",
|
||||
"tools/web/sync-web-engine-runtime.mjs",
|
||||
"web/app/src/app/App.tsx",
|
||||
"web/app/src/engine-client/WebEngineClient.ts",
|
||||
"web/app/src/workers/web-engine.worker.ts",
|
||||
"web/app/vite.config.ts",
|
||||
"web/package.json",
|
||||
"web/playwright.config.ts",
|
||||
"web/protocol/scene-ir.ts",
|
||||
"web/protocol/web-engine.ts",
|
||||
"web/tests/e2e/io-format-operator-production.spec.ts",
|
||||
"web/tests/fixtures/io-route-main-snapshots.py",
|
||||
"web/tsconfig.json"
|
||||
],
|
||||
"artifacts": [
|
||||
"build_blender_native/bin/blender",
|
||||
"build_web_blender6/bin/web_engine.wasm",
|
||||
"build_web_blender6/bin/web_engine.js",
|
||||
"web/app/public/vendor/blender/web_engine.wasm",
|
||||
"web/app/public/vendor/blender/web_engine.js",
|
||||
"web/app/public/wasm-module-manifest.json"
|
||||
],
|
||||
"checks": [
|
||||
{
|
||||
"id": "wasm-source-build",
|
||||
"argv": [
|
||||
"python3",
|
||||
"my-tools/build_local_webengine.py"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"source_build"
|
||||
],
|
||||
"timeoutSeconds": 1800
|
||||
},
|
||||
{
|
||||
"id": "web-build",
|
||||
"argv": [
|
||||
"node",
|
||||
"tools/web/incremental-web-build.mjs"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"typecheck"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build"
|
||||
],
|
||||
"timeoutSeconds": 300
|
||||
},
|
||||
{
|
||||
"id": "authoring-lint",
|
||||
"argv": [
|
||||
"node",
|
||||
"node_modules/eslint/bin/eslint.js",
|
||||
"app/src/app/App.tsx"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"lint"
|
||||
],
|
||||
"timeoutSeconds": 90
|
||||
},
|
||||
{
|
||||
"id": "chromium-authoring",
|
||||
"argv": [
|
||||
"env",
|
||||
"WEB_TEST_PORT=5391",
|
||||
"node",
|
||||
"node_modules/@playwright/test/cli.js",
|
||||
"test",
|
||||
"tests/e2e/io-format-operator-production.spec.ts",
|
||||
"--workers=1",
|
||||
"--max-failures=1"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"chromium",
|
||||
"positive",
|
||||
"negative",
|
||||
"undo_redo",
|
||||
"save_reopen",
|
||||
"determinism"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build",
|
||||
"web-build",
|
||||
"authoring-lint"
|
||||
],
|
||||
"timeoutSeconds": 180
|
||||
}
|
||||
],
|
||||
"cases": [
|
||||
{
|
||||
"id": "io-route-completion-positive",
|
||||
"kind": "positive",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/io-route-completion-positive.json",
|
||||
"unitIds": [
|
||||
"operator:WM_OT_obj_export",
|
||||
"operator:WM_OT_obj_import",
|
||||
"operator:WM_OT_open_mainfile"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "io-route-completion-negative",
|
||||
"kind": "negative",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/io-route-completion-negative.json",
|
||||
"unitIds": [
|
||||
"operator:WM_OT_obj_export",
|
||||
"operator:WM_OT_obj_import",
|
||||
"operator:WM_OT_open_mainfile"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "io-route-completion-undo_redo",
|
||||
"kind": "undo_redo",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/io-route-completion-undo_redo.json",
|
||||
"unitIds": [
|
||||
"operator:WM_OT_obj_export",
|
||||
"operator:WM_OT_obj_import",
|
||||
"operator:WM_OT_open_mainfile"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "io-route-completion-save_reopen",
|
||||
"kind": "save_reopen",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/io-route-completion-save_reopen.json",
|
||||
"unitIds": [
|
||||
"operator:WM_OT_obj_export",
|
||||
"operator:WM_OT_obj_import",
|
||||
"operator:WM_OT_open_mainfile"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "io-route-completion-determinism",
|
||||
"kind": "determinism",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/io-route-completion-determinism.json",
|
||||
"unitIds": [
|
||||
"operator:WM_OT_obj_export",
|
||||
"operator:WM_OT_obj_import",
|
||||
"operator:WM_OT_open_mainfile"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
892
my-tools/local-workflows/MESH-EDITOR-COVERAGE.json
Normal file
892
my-tools/local-workflows/MESH-EDITOR-COVERAGE.json
Normal file
@@ -0,0 +1,892 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P1424-001",
|
||||
"job": "MESH-EDITOR-COVERAGE",
|
||||
"parentSha256": "46a3ce65d56747da8684af422a1a94540612c767a6dcc42da7939930731399d5",
|
||||
"acceptance": "pending independent local validation",
|
||||
"result": {
|
||||
"status": "ready",
|
||||
"summary": "Mesh selection and UV seams reach native Blender transactions",
|
||||
"workflow": "Subdivide selected edges/faces, triangulate, repair normals, bridge loops, delete vertices/edges/faces, and project selected UVs with edge seams; verify native Main recovery and preserve unrelated geometry",
|
||||
"sourceUnits": [
|
||||
"web-command:meshSubdivide",
|
||||
"web-command:meshTriangulate",
|
||||
"web-command:meshRecalculateNormals",
|
||||
"web-command:meshBridgeLoops",
|
||||
"web-command:meshDeleteElements",
|
||||
"web-command:meshUVProject"
|
||||
],
|
||||
"routeIds": [
|
||||
"web-command:meshSubdivide",
|
||||
"web-command:meshTriangulate",
|
||||
"web-command:meshRecalculateNormals",
|
||||
"web-command:meshBridgeLoops",
|
||||
"web-command:meshDeleteElements",
|
||||
"web-command:meshUVProject"
|
||||
],
|
||||
"sourceReferences": [
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.h",
|
||||
"blender-5.2.0/source/blender/makesrna/intern/rna_mesh.cc"
|
||||
],
|
||||
"changedFiles": [
|
||||
"web/tests/e2e/mesh-editor-coverage-ui-production.spec.ts",
|
||||
"web/tests/fixtures/mesh-editor-main-snapshots.py",
|
||||
"my-tools/prepare_wbv2_mesh_editor_workflow.py",
|
||||
"web/app/src/app/App.tsx",
|
||||
"web/tests/fixtures/create-mesh-editor-input.py",
|
||||
"tests/files/web/mesh_editor_scene.blend",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.h"
|
||||
],
|
||||
"dependencies": [
|
||||
".emscripten-web",
|
||||
"blender-5.2.0/source/blender/makesrna/intern/rna_mesh.cc",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.h",
|
||||
"build_web_blender6/CMakeCache.txt",
|
||||
"my-tools/build_local_webengine.py",
|
||||
"my-tools/prepare_wbv2_mesh_editor_workflow.py",
|
||||
"tests/files/web/basic_scene.blend",
|
||||
"tests/files/web/mesh_editor_scene.blend",
|
||||
"tools/web/incremental-web-build.mjs",
|
||||
"tools/web/sync-web-engine-runtime.mjs",
|
||||
"web/app/src/app/App.tsx",
|
||||
"web/app/src/engine-client/WebEngineClient.ts",
|
||||
"web/app/src/workers/web-engine.worker.ts",
|
||||
"web/app/vite.config.ts",
|
||||
"web/package.json",
|
||||
"web/playwright.config.ts",
|
||||
"web/protocol/mesh-authoring-commands.ts",
|
||||
"web/protocol/scene-ir.ts",
|
||||
"web/protocol/web-engine.ts",
|
||||
"web/tests/e2e/mesh-editor-coverage-ui-production.spec.ts",
|
||||
"web/tests/fixtures/create-mesh-editor-input.py",
|
||||
"web/tests/fixtures/mesh-editor-main-snapshots.py",
|
||||
"web/tests/fixtures/native-ui-workflow.ts",
|
||||
"web/tsconfig.json"
|
||||
],
|
||||
"artifacts": [
|
||||
"build_web_blender6/bin/web_engine.wasm",
|
||||
"build_web_blender6/bin/web_engine.js",
|
||||
"build_blender_native/bin/blender"
|
||||
],
|
||||
"checks": [
|
||||
{
|
||||
"id": "wasm-source-build",
|
||||
"argv": [
|
||||
"python3",
|
||||
"my-tools/build_local_webengine.py"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"source_build"
|
||||
],
|
||||
"timeoutSeconds": 1200,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "web-build",
|
||||
"argv": [
|
||||
"node",
|
||||
"tools/web/incremental-web-build.mjs"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"typecheck"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build"
|
||||
],
|
||||
"timeoutSeconds": 300,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "authoring-lint",
|
||||
"argv": [
|
||||
"node",
|
||||
"node_modules/eslint/bin/eslint.js",
|
||||
"app/src/app/App.tsx",
|
||||
"tests/e2e/mesh-editor-coverage-ui-production.spec.ts"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"lint"
|
||||
],
|
||||
"timeoutSeconds": 90,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "chromium-panel",
|
||||
"argv": [
|
||||
"env",
|
||||
"WEB_TEST_PORT=5380",
|
||||
"node",
|
||||
"node_modules/@playwright/test/cli.js",
|
||||
"test",
|
||||
"--config",
|
||||
"playwright.config.ts",
|
||||
"tests/e2e/mesh-editor-coverage-ui-production.spec.ts",
|
||||
"--grep",
|
||||
"mesh editor panel ",
|
||||
"--workers=1",
|
||||
"--max-failures=1"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"chromium"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build",
|
||||
"web-build",
|
||||
"authoring-lint"
|
||||
],
|
||||
"timeoutSeconds": 90,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "chromium-subdivide",
|
||||
"argv": [
|
||||
"env",
|
||||
"WEB_TEST_PORT=5380",
|
||||
"node",
|
||||
"node_modules/@playwright/test/cli.js",
|
||||
"test",
|
||||
"--config",
|
||||
"playwright.config.ts",
|
||||
"tests/e2e/mesh-editor-coverage-ui-production.spec.ts",
|
||||
"--grep",
|
||||
"mesh editor subdivide ",
|
||||
"--workers=1",
|
||||
"--max-failures=1"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"chromium",
|
||||
"positive",
|
||||
"negative",
|
||||
"undo_redo",
|
||||
"save_reopen",
|
||||
"determinism"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build",
|
||||
"web-build",
|
||||
"authoring-lint"
|
||||
],
|
||||
"timeoutSeconds": 90,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "chromium-triangulate",
|
||||
"argv": [
|
||||
"env",
|
||||
"WEB_TEST_PORT=5380",
|
||||
"node",
|
||||
"node_modules/@playwright/test/cli.js",
|
||||
"test",
|
||||
"--config",
|
||||
"playwright.config.ts",
|
||||
"tests/e2e/mesh-editor-coverage-ui-production.spec.ts",
|
||||
"--grep",
|
||||
"mesh editor triangulate ",
|
||||
"--workers=1",
|
||||
"--max-failures=1"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"chromium",
|
||||
"positive",
|
||||
"negative",
|
||||
"undo_redo",
|
||||
"save_reopen",
|
||||
"determinism"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build",
|
||||
"web-build",
|
||||
"authoring-lint"
|
||||
],
|
||||
"timeoutSeconds": 90,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "chromium-normals",
|
||||
"argv": [
|
||||
"env",
|
||||
"WEB_TEST_PORT=5380",
|
||||
"node",
|
||||
"node_modules/@playwright/test/cli.js",
|
||||
"test",
|
||||
"--config",
|
||||
"playwright.config.ts",
|
||||
"tests/e2e/mesh-editor-coverage-ui-production.spec.ts",
|
||||
"--grep",
|
||||
"mesh editor normals ",
|
||||
"--workers=1",
|
||||
"--max-failures=1"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"chromium",
|
||||
"positive",
|
||||
"negative",
|
||||
"undo_redo",
|
||||
"save_reopen",
|
||||
"determinism"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build",
|
||||
"web-build",
|
||||
"authoring-lint"
|
||||
],
|
||||
"timeoutSeconds": 90,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "chromium-bridge",
|
||||
"argv": [
|
||||
"env",
|
||||
"WEB_TEST_PORT=5380",
|
||||
"node",
|
||||
"node_modules/@playwright/test/cli.js",
|
||||
"test",
|
||||
"--config",
|
||||
"playwright.config.ts",
|
||||
"tests/e2e/mesh-editor-coverage-ui-production.spec.ts",
|
||||
"--grep",
|
||||
"mesh editor bridge ",
|
||||
"--workers=1",
|
||||
"--max-failures=1"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"chromium",
|
||||
"positive",
|
||||
"negative",
|
||||
"undo_redo",
|
||||
"save_reopen",
|
||||
"determinism"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build",
|
||||
"web-build",
|
||||
"authoring-lint"
|
||||
],
|
||||
"timeoutSeconds": 90,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "chromium-delete",
|
||||
"argv": [
|
||||
"env",
|
||||
"WEB_TEST_PORT=5380",
|
||||
"node",
|
||||
"node_modules/@playwright/test/cli.js",
|
||||
"test",
|
||||
"--config",
|
||||
"playwright.config.ts",
|
||||
"tests/e2e/mesh-editor-coverage-ui-production.spec.ts",
|
||||
"--grep",
|
||||
"mesh editor delete ",
|
||||
"--workers=1",
|
||||
"--max-failures=1"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"chromium",
|
||||
"positive",
|
||||
"negative",
|
||||
"undo_redo",
|
||||
"save_reopen",
|
||||
"determinism"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build",
|
||||
"web-build",
|
||||
"authoring-lint"
|
||||
],
|
||||
"timeoutSeconds": 90,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "chromium-uv",
|
||||
"argv": [
|
||||
"env",
|
||||
"WEB_TEST_PORT=5380",
|
||||
"node",
|
||||
"node_modules/@playwright/test/cli.js",
|
||||
"test",
|
||||
"--config",
|
||||
"playwright.config.ts",
|
||||
"tests/e2e/mesh-editor-coverage-ui-production.spec.ts",
|
||||
"--grep",
|
||||
"mesh editor uv ",
|
||||
"--workers=1",
|
||||
"--max-failures=1"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"chromium",
|
||||
"positive",
|
||||
"negative",
|
||||
"undo_redo",
|
||||
"save_reopen",
|
||||
"determinism"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build",
|
||||
"web-build",
|
||||
"authoring-lint"
|
||||
],
|
||||
"timeoutSeconds": 90,
|
||||
"continueOnFailure": true
|
||||
}
|
||||
],
|
||||
"cases": [
|
||||
{
|
||||
"id": "mesh-editor-subdivide-edge-positive",
|
||||
"kind": "positive",
|
||||
"checkId": "chromium-subdivide",
|
||||
"receipt": "unallocated/subdivide-edge-positive.json",
|
||||
"unitIds": [
|
||||
"web-command:meshSubdivide"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "mesh-editor-subdivide-edge-negative",
|
||||
"kind": "negative",
|
||||
"checkId": "chromium-subdivide",
|
||||
"receipt": "unallocated/subdivide-edge-negative.json",
|
||||
"unitIds": [
|
||||
"web-command:meshSubdivide"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "mesh-editor-subdivide-edge-undo_redo",
|
||||
"kind": "undo_redo",
|
||||
"checkId": "chromium-subdivide",
|
||||
"receipt": "unallocated/subdivide-edge-undo_redo.json",
|
||||
"unitIds": [
|
||||
"web-command:meshSubdivide"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "mesh-editor-subdivide-edge-save_reopen",
|
||||
"kind": "save_reopen",
|
||||
"checkId": "chromium-subdivide",
|
||||
"receipt": "unallocated/subdivide-edge-save_reopen.json",
|
||||
"unitIds": [
|
||||
"web-command:meshSubdivide"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "mesh-editor-subdivide-edge-determinism",
|
||||
"kind": "determinism",
|
||||
"checkId": "chromium-subdivide",
|
||||
"receipt": "unallocated/subdivide-edge-determinism.json",
|
||||
"unitIds": [
|
||||
"web-command:meshSubdivide"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "mesh-editor-subdivide-face-positive",
|
||||
"kind": "positive",
|
||||
"checkId": "chromium-subdivide",
|
||||
"receipt": "unallocated/subdivide-face-positive.json",
|
||||
"unitIds": [
|
||||
"web-command:meshSubdivide"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "mesh-editor-subdivide-face-negative",
|
||||
"kind": "negative",
|
||||
"checkId": "chromium-subdivide",
|
||||
"receipt": "unallocated/subdivide-face-negative.json",
|
||||
"unitIds": [
|
||||
"web-command:meshSubdivide"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "mesh-editor-subdivide-face-undo_redo",
|
||||
"kind": "undo_redo",
|
||||
"checkId": "chromium-subdivide",
|
||||
"receipt": "unallocated/subdivide-face-undo_redo.json",
|
||||
"unitIds": [
|
||||
"web-command:meshSubdivide"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "mesh-editor-subdivide-face-save_reopen",
|
||||
"kind": "save_reopen",
|
||||
"checkId": "chromium-subdivide",
|
||||
"receipt": "unallocated/subdivide-face-save_reopen.json",
|
||||
"unitIds": [
|
||||
"web-command:meshSubdivide"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "mesh-editor-subdivide-face-determinism",
|
||||
"kind": "determinism",
|
||||
"checkId": "chromium-subdivide",
|
||||
"receipt": "unallocated/subdivide-face-determinism.json",
|
||||
"unitIds": [
|
||||
"web-command:meshSubdivide"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "mesh-editor-triangulate-positive",
|
||||
"kind": "positive",
|
||||
"checkId": "chromium-triangulate",
|
||||
"receipt": "unallocated/triangulate-positive.json",
|
||||
"unitIds": [
|
||||
"web-command:meshTriangulate"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "mesh-editor-triangulate-negative",
|
||||
"kind": "negative",
|
||||
"checkId": "chromium-triangulate",
|
||||
"receipt": "unallocated/triangulate-negative.json",
|
||||
"unitIds": [
|
||||
"web-command:meshTriangulate"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "mesh-editor-triangulate-undo_redo",
|
||||
"kind": "undo_redo",
|
||||
"checkId": "chromium-triangulate",
|
||||
"receipt": "unallocated/triangulate-undo_redo.json",
|
||||
"unitIds": [
|
||||
"web-command:meshTriangulate"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "mesh-editor-triangulate-save_reopen",
|
||||
"kind": "save_reopen",
|
||||
"checkId": "chromium-triangulate",
|
||||
"receipt": "unallocated/triangulate-save_reopen.json",
|
||||
"unitIds": [
|
||||
"web-command:meshTriangulate"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "mesh-editor-triangulate-determinism",
|
||||
"kind": "determinism",
|
||||
"checkId": "chromium-triangulate",
|
||||
"receipt": "unallocated/triangulate-determinism.json",
|
||||
"unitIds": [
|
||||
"web-command:meshTriangulate"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "mesh-editor-normals-positive",
|
||||
"kind": "positive",
|
||||
"checkId": "chromium-normals",
|
||||
"receipt": "unallocated/normals-positive.json",
|
||||
"unitIds": [
|
||||
"web-command:meshRecalculateNormals"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "mesh-editor-normals-negative",
|
||||
"kind": "negative",
|
||||
"checkId": "chromium-normals",
|
||||
"receipt": "unallocated/normals-negative.json",
|
||||
"unitIds": [
|
||||
"web-command:meshRecalculateNormals"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "mesh-editor-normals-undo_redo",
|
||||
"kind": "undo_redo",
|
||||
"checkId": "chromium-normals",
|
||||
"receipt": "unallocated/normals-undo_redo.json",
|
||||
"unitIds": [
|
||||
"web-command:meshRecalculateNormals"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "mesh-editor-normals-save_reopen",
|
||||
"kind": "save_reopen",
|
||||
"checkId": "chromium-normals",
|
||||
"receipt": "unallocated/normals-save_reopen.json",
|
||||
"unitIds": [
|
||||
"web-command:meshRecalculateNormals"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "mesh-editor-normals-determinism",
|
||||
"kind": "determinism",
|
||||
"checkId": "chromium-normals",
|
||||
"receipt": "unallocated/normals-determinism.json",
|
||||
"unitIds": [
|
||||
"web-command:meshRecalculateNormals"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "mesh-editor-bridge-positive",
|
||||
"kind": "positive",
|
||||
"checkId": "chromium-bridge",
|
||||
"receipt": "unallocated/bridge-positive.json",
|
||||
"unitIds": [
|
||||
"web-command:meshBridgeLoops"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "mesh-editor-bridge-negative",
|
||||
"kind": "negative",
|
||||
"checkId": "chromium-bridge",
|
||||
"receipt": "unallocated/bridge-negative.json",
|
||||
"unitIds": [
|
||||
"web-command:meshBridgeLoops"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "mesh-editor-bridge-undo_redo",
|
||||
"kind": "undo_redo",
|
||||
"checkId": "chromium-bridge",
|
||||
"receipt": "unallocated/bridge-undo_redo.json",
|
||||
"unitIds": [
|
||||
"web-command:meshBridgeLoops"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "mesh-editor-bridge-save_reopen",
|
||||
"kind": "save_reopen",
|
||||
"checkId": "chromium-bridge",
|
||||
"receipt": "unallocated/bridge-save_reopen.json",
|
||||
"unitIds": [
|
||||
"web-command:meshBridgeLoops"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "mesh-editor-bridge-determinism",
|
||||
"kind": "determinism",
|
||||
"checkId": "chromium-bridge",
|
||||
"receipt": "unallocated/bridge-determinism.json",
|
||||
"unitIds": [
|
||||
"web-command:meshBridgeLoops"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "mesh-editor-delete-vert-positive",
|
||||
"kind": "positive",
|
||||
"checkId": "chromium-delete",
|
||||
"receipt": "unallocated/delete-vert-positive.json",
|
||||
"unitIds": [
|
||||
"web-command:meshDeleteElements"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "mesh-editor-delete-vert-negative",
|
||||
"kind": "negative",
|
||||
"checkId": "chromium-delete",
|
||||
"receipt": "unallocated/delete-vert-negative.json",
|
||||
"unitIds": [
|
||||
"web-command:meshDeleteElements"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "mesh-editor-delete-vert-undo_redo",
|
||||
"kind": "undo_redo",
|
||||
"checkId": "chromium-delete",
|
||||
"receipt": "unallocated/delete-vert-undo_redo.json",
|
||||
"unitIds": [
|
||||
"web-command:meshDeleteElements"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "mesh-editor-delete-vert-save_reopen",
|
||||
"kind": "save_reopen",
|
||||
"checkId": "chromium-delete",
|
||||
"receipt": "unallocated/delete-vert-save_reopen.json",
|
||||
"unitIds": [
|
||||
"web-command:meshDeleteElements"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "mesh-editor-delete-vert-determinism",
|
||||
"kind": "determinism",
|
||||
"checkId": "chromium-delete",
|
||||
"receipt": "unallocated/delete-vert-determinism.json",
|
||||
"unitIds": [
|
||||
"web-command:meshDeleteElements"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "mesh-editor-delete-edge-positive",
|
||||
"kind": "positive",
|
||||
"checkId": "chromium-delete",
|
||||
"receipt": "unallocated/delete-edge-positive.json",
|
||||
"unitIds": [
|
||||
"web-command:meshDeleteElements"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "mesh-editor-delete-edge-negative",
|
||||
"kind": "negative",
|
||||
"checkId": "chromium-delete",
|
||||
"receipt": "unallocated/delete-edge-negative.json",
|
||||
"unitIds": [
|
||||
"web-command:meshDeleteElements"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "mesh-editor-delete-edge-undo_redo",
|
||||
"kind": "undo_redo",
|
||||
"checkId": "chromium-delete",
|
||||
"receipt": "unallocated/delete-edge-undo_redo.json",
|
||||
"unitIds": [
|
||||
"web-command:meshDeleteElements"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "mesh-editor-delete-edge-save_reopen",
|
||||
"kind": "save_reopen",
|
||||
"checkId": "chromium-delete",
|
||||
"receipt": "unallocated/delete-edge-save_reopen.json",
|
||||
"unitIds": [
|
||||
"web-command:meshDeleteElements"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "mesh-editor-delete-edge-determinism",
|
||||
"kind": "determinism",
|
||||
"checkId": "chromium-delete",
|
||||
"receipt": "unallocated/delete-edge-determinism.json",
|
||||
"unitIds": [
|
||||
"web-command:meshDeleteElements"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "mesh-editor-delete-face-positive",
|
||||
"kind": "positive",
|
||||
"checkId": "chromium-delete",
|
||||
"receipt": "unallocated/delete-face-positive.json",
|
||||
"unitIds": [
|
||||
"web-command:meshDeleteElements"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "mesh-editor-delete-face-negative",
|
||||
"kind": "negative",
|
||||
"checkId": "chromium-delete",
|
||||
"receipt": "unallocated/delete-face-negative.json",
|
||||
"unitIds": [
|
||||
"web-command:meshDeleteElements"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "mesh-editor-delete-face-undo_redo",
|
||||
"kind": "undo_redo",
|
||||
"checkId": "chromium-delete",
|
||||
"receipt": "unallocated/delete-face-undo_redo.json",
|
||||
"unitIds": [
|
||||
"web-command:meshDeleteElements"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "mesh-editor-delete-face-save_reopen",
|
||||
"kind": "save_reopen",
|
||||
"checkId": "chromium-delete",
|
||||
"receipt": "unallocated/delete-face-save_reopen.json",
|
||||
"unitIds": [
|
||||
"web-command:meshDeleteElements"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "mesh-editor-delete-face-determinism",
|
||||
"kind": "determinism",
|
||||
"checkId": "chromium-delete",
|
||||
"receipt": "unallocated/delete-face-determinism.json",
|
||||
"unitIds": [
|
||||
"web-command:meshDeleteElements"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "mesh-editor-uv-planar-positive",
|
||||
"kind": "positive",
|
||||
"checkId": "chromium-uv",
|
||||
"receipt": "unallocated/uv-planar-positive.json",
|
||||
"unitIds": [
|
||||
"web-command:meshUVProject"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "mesh-editor-uv-planar-negative",
|
||||
"kind": "negative",
|
||||
"checkId": "chromium-uv",
|
||||
"receipt": "unallocated/uv-planar-negative.json",
|
||||
"unitIds": [
|
||||
"web-command:meshUVProject"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "mesh-editor-uv-planar-undo_redo",
|
||||
"kind": "undo_redo",
|
||||
"checkId": "chromium-uv",
|
||||
"receipt": "unallocated/uv-planar-undo_redo.json",
|
||||
"unitIds": [
|
||||
"web-command:meshUVProject"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "mesh-editor-uv-planar-save_reopen",
|
||||
"kind": "save_reopen",
|
||||
"checkId": "chromium-uv",
|
||||
"receipt": "unallocated/uv-planar-save_reopen.json",
|
||||
"unitIds": [
|
||||
"web-command:meshUVProject"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "mesh-editor-uv-planar-determinism",
|
||||
"kind": "determinism",
|
||||
"checkId": "chromium-uv",
|
||||
"receipt": "unallocated/uv-planar-determinism.json",
|
||||
"unitIds": [
|
||||
"web-command:meshUVProject"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "mesh-editor-uv-cube-positive",
|
||||
"kind": "positive",
|
||||
"checkId": "chromium-uv",
|
||||
"receipt": "unallocated/uv-cube-positive.json",
|
||||
"unitIds": [
|
||||
"web-command:meshUVProject"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "mesh-editor-uv-cube-negative",
|
||||
"kind": "negative",
|
||||
"checkId": "chromium-uv",
|
||||
"receipt": "unallocated/uv-cube-negative.json",
|
||||
"unitIds": [
|
||||
"web-command:meshUVProject"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "mesh-editor-uv-cube-undo_redo",
|
||||
"kind": "undo_redo",
|
||||
"checkId": "chromium-uv",
|
||||
"receipt": "unallocated/uv-cube-undo_redo.json",
|
||||
"unitIds": [
|
||||
"web-command:meshUVProject"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "mesh-editor-uv-cube-save_reopen",
|
||||
"kind": "save_reopen",
|
||||
"checkId": "chromium-uv",
|
||||
"receipt": "unallocated/uv-cube-save_reopen.json",
|
||||
"unitIds": [
|
||||
"web-command:meshUVProject"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "mesh-editor-uv-cube-determinism",
|
||||
"kind": "determinism",
|
||||
"checkId": "chromium-uv",
|
||||
"receipt": "unallocated/uv-cube-determinism.json",
|
||||
"unitIds": [
|
||||
"web-command:meshUVProject"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "mesh-editor-uv-cylinder-positive",
|
||||
"kind": "positive",
|
||||
"checkId": "chromium-uv",
|
||||
"receipt": "unallocated/uv-cylinder-positive.json",
|
||||
"unitIds": [
|
||||
"web-command:meshUVProject"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "mesh-editor-uv-cylinder-negative",
|
||||
"kind": "negative",
|
||||
"checkId": "chromium-uv",
|
||||
"receipt": "unallocated/uv-cylinder-negative.json",
|
||||
"unitIds": [
|
||||
"web-command:meshUVProject"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "mesh-editor-uv-cylinder-undo_redo",
|
||||
"kind": "undo_redo",
|
||||
"checkId": "chromium-uv",
|
||||
"receipt": "unallocated/uv-cylinder-undo_redo.json",
|
||||
"unitIds": [
|
||||
"web-command:meshUVProject"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "mesh-editor-uv-cylinder-save_reopen",
|
||||
"kind": "save_reopen",
|
||||
"checkId": "chromium-uv",
|
||||
"receipt": "unallocated/uv-cylinder-save_reopen.json",
|
||||
"unitIds": [
|
||||
"web-command:meshUVProject"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "mesh-editor-uv-cylinder-determinism",
|
||||
"kind": "determinism",
|
||||
"checkId": "chromium-uv",
|
||||
"receipt": "unallocated/uv-cylinder-determinism.json",
|
||||
"unitIds": [
|
||||
"web-command:meshUVProject"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "mesh-editor-uv-sphere-positive",
|
||||
"kind": "positive",
|
||||
"checkId": "chromium-uv",
|
||||
"receipt": "unallocated/uv-sphere-positive.json",
|
||||
"unitIds": [
|
||||
"web-command:meshUVProject"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "mesh-editor-uv-sphere-negative",
|
||||
"kind": "negative",
|
||||
"checkId": "chromium-uv",
|
||||
"receipt": "unallocated/uv-sphere-negative.json",
|
||||
"unitIds": [
|
||||
"web-command:meshUVProject"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "mesh-editor-uv-sphere-undo_redo",
|
||||
"kind": "undo_redo",
|
||||
"checkId": "chromium-uv",
|
||||
"receipt": "unallocated/uv-sphere-undo_redo.json",
|
||||
"unitIds": [
|
||||
"web-command:meshUVProject"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "mesh-editor-uv-sphere-save_reopen",
|
||||
"kind": "save_reopen",
|
||||
"checkId": "chromium-uv",
|
||||
"receipt": "unallocated/uv-sphere-save_reopen.json",
|
||||
"unitIds": [
|
||||
"web-command:meshUVProject"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "mesh-editor-uv-sphere-determinism",
|
||||
"kind": "determinism",
|
||||
"checkId": "chromium-uv",
|
||||
"receipt": "unallocated/uv-sphere-determinism.json",
|
||||
"unitIds": [
|
||||
"web-command:meshUVProject"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
184
my-tools/local-workflows/MESH-EXTENDED-AUTHORING.json
Normal file
184
my-tools/local-workflows/MESH-EXTENDED-AUTHORING.json
Normal file
@@ -0,0 +1,184 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P1424-001",
|
||||
"job": "MESH-EXTENDED-AUTHORING",
|
||||
"parentSha256": "46a3ce65d56747da8684af422a1a94540612c767a6dcc42da7939930731399d5",
|
||||
"acceptance": "pending independent local validation",
|
||||
"result": {
|
||||
"status": "ready",
|
||||
"summary": "Primitive creation and mesh editing use compiled native Main",
|
||||
"workflow": "Create a cube, extrude one face through meshEdit, reject malformed primitive input, then verify undo/redo, save/reopen and deterministic replay",
|
||||
"sourceUnits": [
|
||||
"web-command:createPrimitive",
|
||||
"web-command:meshEdit"
|
||||
],
|
||||
"routeIds": [
|
||||
"web-command:createPrimitive",
|
||||
"web-command:meshEdit"
|
||||
],
|
||||
"sourceReferences": [
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"blender-5.2.0/source/blender/editors/object/object_ops.cc"
|
||||
],
|
||||
"changedFiles": [
|
||||
"web/tests/e2e/wbv2-mesh-extended-authoring-production.spec.ts",
|
||||
"my-tools/prepare_wbv2_mesh_extended_workflow.py"
|
||||
],
|
||||
"dependencies": [
|
||||
".emscripten-web",
|
||||
"blender-5.2.0/source/blender/editors/object/object_ops.cc",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"build_web_blender6/CMakeCache.txt",
|
||||
"my-tools/build_local_webengine.py",
|
||||
"my-tools/prepare_wbv2_mesh_extended_workflow.py",
|
||||
"tests/files/web/basic_scene.blend",
|
||||
"tools/web/incremental-web-build.mjs",
|
||||
"tools/web/sync-web-engine-runtime.mjs",
|
||||
"web/app/src/workers/web-engine.worker.ts",
|
||||
"web/package.json",
|
||||
"web/playwright.config.ts",
|
||||
"web/protocol/core-scene-commands.ts",
|
||||
"web/protocol/mesh-authoring-commands.ts",
|
||||
"web/protocol/web-engine.ts",
|
||||
"web/tests/e2e/wbv2-mesh-extended-authoring-production.spec.ts",
|
||||
"web/tests/fixtures/native-ui-workflow.ts",
|
||||
"web/tsconfig.json"
|
||||
],
|
||||
"artifacts": [
|
||||
"build_blender_native/bin/blender",
|
||||
"build_web_blender6/bin/web_engine.wasm",
|
||||
"build_web_blender6/bin/web_engine.js",
|
||||
"web/app/public/vendor/blender/web_engine.wasm",
|
||||
"web/app/public/vendor/blender/web_engine.js",
|
||||
"web/app/public/wasm-module-manifest.json"
|
||||
],
|
||||
"checks": [
|
||||
{
|
||||
"id": "wasm-source-build",
|
||||
"argv": [
|
||||
"python3",
|
||||
"my-tools/build_local_webengine.py"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"source_build"
|
||||
],
|
||||
"timeoutSeconds": 1200,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "web-build",
|
||||
"argv": [
|
||||
"node",
|
||||
"tools/web/incremental-web-build.mjs"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"typecheck"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build"
|
||||
],
|
||||
"timeoutSeconds": 300,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "authoring-lint",
|
||||
"argv": [
|
||||
"node",
|
||||
"node_modules/eslint/bin/eslint.js",
|
||||
"app/src/app/App.tsx"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"lint"
|
||||
],
|
||||
"timeoutSeconds": 90,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "chromium-authoring",
|
||||
"argv": [
|
||||
"env",
|
||||
"WEB_TEST_PORT=5374",
|
||||
"node",
|
||||
"node_modules/@playwright/test/cli.js",
|
||||
"test",
|
||||
"--config",
|
||||
"playwright.config.ts",
|
||||
"tests/e2e/wbv2-mesh-extended-authoring-production.spec.ts",
|
||||
"--workers=1",
|
||||
"--max-failures=1"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"chromium",
|
||||
"positive",
|
||||
"negative",
|
||||
"undo_redo",
|
||||
"save_reopen",
|
||||
"determinism"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build",
|
||||
"web-build",
|
||||
"authoring-lint"
|
||||
],
|
||||
"timeoutSeconds": 180,
|
||||
"continueOnFailure": true
|
||||
}
|
||||
],
|
||||
"cases": [
|
||||
{
|
||||
"id": "mesh-extended-positive",
|
||||
"kind": "positive",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/positive.json",
|
||||
"unitIds": [
|
||||
"web-command:createPrimitive",
|
||||
"web-command:meshEdit"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "mesh-extended-negative",
|
||||
"kind": "negative",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/negative.json",
|
||||
"unitIds": [
|
||||
"web-command:createPrimitive"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "mesh-extended-undo_redo",
|
||||
"kind": "undo_redo",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/undo_redo.json",
|
||||
"unitIds": [
|
||||
"web-command:meshEdit"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "mesh-extended-save_reopen",
|
||||
"kind": "save_reopen",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/save_reopen.json",
|
||||
"unitIds": [
|
||||
"web-command:createPrimitive",
|
||||
"web-command:meshEdit"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "mesh-extended-determinism",
|
||||
"kind": "determinism",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/determinism.json",
|
||||
"unitIds": [
|
||||
"web-command:createPrimitive",
|
||||
"web-command:meshEdit"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
174
my-tools/local-workflows/METABALL-ELEMENTS-AUTHORING.json
Normal file
174
my-tools/local-workflows/METABALL-ELEMENTS-AUTHORING.json
Normal file
@@ -0,0 +1,174 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P1424-001",
|
||||
"job": "METABALL-ELEMENTS-AUTHORING",
|
||||
"parentSha256": "46a3ce65d56747da8684af422a1a94540612c767a6dcc42da7939930731399d5",
|
||||
"acceptance": "pending independent local validation",
|
||||
"result": {
|
||||
"status": "ready",
|
||||
"summary": "Metaball element edits persist in native Main",
|
||||
"workflow": "Edit active Metaball element position and radius, reject malformed values, and verify undo/redo/save/reopen/determinism",
|
||||
"sourceUnits": [
|
||||
"web-command:setMetaballElements"
|
||||
],
|
||||
"routeIds": [
|
||||
"web-command:setMetaballElements"
|
||||
],
|
||||
"sourceReferences": [
|
||||
"blender-5.2.0/source/blender/blenkernel/intern/mball.cc",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp"
|
||||
],
|
||||
"changedFiles": [
|
||||
"web/tests/e2e/wbv2-metaball-elements-production.spec.ts",
|
||||
"my-tools/prepare_wbv2_metaball_workflow.py"
|
||||
],
|
||||
"dependencies": [
|
||||
".emscripten-web",
|
||||
"blender-5.2.0/source/blender/blenkernel/intern/mball.cc",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"build_web_blender6/CMakeCache.txt",
|
||||
"my-tools/build_local_webengine.py",
|
||||
"my-tools/prepare_wbv2_metaball_workflow.py",
|
||||
"tests/files/web/nonmesh_scene.blend",
|
||||
"tools/web/incremental-web-build.mjs",
|
||||
"tools/web/sync-web-engine-runtime.mjs",
|
||||
"web/app/src/app/App.tsx",
|
||||
"web/app/src/workers/web-engine.worker.ts",
|
||||
"web/package.json",
|
||||
"web/playwright.config.ts",
|
||||
"web/protocol/web-engine.ts",
|
||||
"web/tests/e2e/wbv2-metaball-elements-production.spec.ts",
|
||||
"web/tests/fixtures/native-ui-workflow.ts",
|
||||
"web/tsconfig.json"
|
||||
],
|
||||
"artifacts": [
|
||||
"build_blender_native/bin/blender",
|
||||
"build_web_blender6/bin/web_engine.wasm",
|
||||
"build_web_blender6/bin/web_engine.js"
|
||||
],
|
||||
"checks": [
|
||||
{
|
||||
"id": "wasm-source-build",
|
||||
"argv": [
|
||||
"python3",
|
||||
"my-tools/build_local_webengine.py"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"source_build"
|
||||
],
|
||||
"timeoutSeconds": 1200,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "web-build",
|
||||
"argv": [
|
||||
"node",
|
||||
"tools/web/incremental-web-build.mjs"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"typecheck"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build"
|
||||
],
|
||||
"timeoutSeconds": 300,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "authoring-lint",
|
||||
"argv": [
|
||||
"node",
|
||||
"node_modules/eslint/bin/eslint.js",
|
||||
"app/src/app/App.tsx"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"lint"
|
||||
],
|
||||
"timeoutSeconds": 60,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "chromium-authoring",
|
||||
"argv": [
|
||||
"env",
|
||||
"WEB_TEST_PORT=5372",
|
||||
"node",
|
||||
"node_modules/@playwright/test/cli.js",
|
||||
"test",
|
||||
"--config",
|
||||
"playwright.config.ts",
|
||||
"tests/e2e/wbv2-metaball-elements-production.spec.ts",
|
||||
"--workers=1",
|
||||
"--max-failures=1"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"chromium",
|
||||
"positive",
|
||||
"negative",
|
||||
"undo_redo",
|
||||
"save_reopen",
|
||||
"determinism"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build",
|
||||
"web-build"
|
||||
],
|
||||
"timeoutSeconds": 120,
|
||||
"continueOnFailure": true
|
||||
}
|
||||
],
|
||||
"cases": [
|
||||
{
|
||||
"id": "metaball-elements-positive",
|
||||
"kind": "positive",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/positive.json",
|
||||
"unitIds": [
|
||||
"web-command:setMetaballElements"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "metaball-elements-negative",
|
||||
"kind": "negative",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/negative.json",
|
||||
"unitIds": [
|
||||
"web-command:setMetaballElements"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "metaball-elements-undo_redo",
|
||||
"kind": "undo_redo",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/undo_redo.json",
|
||||
"unitIds": [
|
||||
"web-command:setMetaballElements"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "metaball-elements-save_reopen",
|
||||
"kind": "save_reopen",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/save_reopen.json",
|
||||
"unitIds": [
|
||||
"web-command:setMetaballElements"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "metaball-elements-determinism",
|
||||
"kind": "determinism",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/determinism.json",
|
||||
"unitIds": [
|
||||
"web-command:setMetaballElements"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
808
my-tools/local-workflows/MODIFIER-STACK-AUTHORING.json
Normal file
808
my-tools/local-workflows/MODIFIER-STACK-AUTHORING.json
Normal file
@@ -0,0 +1,808 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P1424-001",
|
||||
"job": "MODIFIER-STACK-AUTHORING",
|
||||
"parentSha256": "46a3ce65d56747da8684af422a1a94540612c767a6dcc42da7939930731399d5",
|
||||
"acceptance": "pending independent local validation",
|
||||
"result": {
|
||||
"status": "ready",
|
||||
"summary": "Modifier stack editing uses original Blender RNA accessors and retains the active data owner",
|
||||
"workflow": "Add, remove and reorder modifiers; edit supported BEVEL, ARRAY, MIRROR, SOLIDIFY and SUBSURF parameters; validate native Main, invalid input rollback, history, save/reopen and deterministic replay",
|
||||
"sourceUnits": [
|
||||
"web-command:addModifier",
|
||||
"web-command:removeModifier",
|
||||
"web-command:moveModifier",
|
||||
"web-command:setModifierParameters",
|
||||
"web-command:setModifierParameters",
|
||||
"web-command:setModifierParameters",
|
||||
"web-command:setModifierParameters",
|
||||
"web-command:setModifierParameters"
|
||||
],
|
||||
"routeIds": [
|
||||
"web-command:addModifier",
|
||||
"web-command:removeModifier",
|
||||
"web-command:moveModifier",
|
||||
"web-command:setModifierParameters",
|
||||
"web-command:setModifierParameters",
|
||||
"web-command:setModifierParameters",
|
||||
"web-command:setModifierParameters",
|
||||
"web-command:setModifierParameters"
|
||||
],
|
||||
"sourceReferences": [
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"blender-5.2.0/source/blender/makesrna/intern/rna_modifier.cc",
|
||||
"blender-5.2.0/source/blender/editors/object/object_modifier.cc",
|
||||
"blender-5.2.0/source/blender/web_engine/extract_modifier_accessors.py",
|
||||
"blender-5.2.0/source/blender/web_engine/extract_id_property_rna.py",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_modifier_properties.hh",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.h",
|
||||
"blender-5.2.0/source/blender/web_engine/CMakeLists.txt"
|
||||
],
|
||||
"changedFiles": [
|
||||
"web/tests/e2e/modifier-stack-ui-production.spec.ts",
|
||||
"web/tests/fixtures/modifier-stack-main-snapshots.py",
|
||||
"my-tools/prepare_wbv2_modifier_stack_workflow.py",
|
||||
"web/app/src/app/App.tsx",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"blender-5.2.0/source/blender/makesrna/intern/rna_modifier.cc",
|
||||
"blender-5.2.0/source/blender/editors/object/object_modifier.cc",
|
||||
"blender-5.2.0/source/blender/web_engine/extract_modifier_accessors.py",
|
||||
"blender-5.2.0/source/blender/web_engine/extract_id_property_rna.py",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_modifier_properties.hh",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.h",
|
||||
"blender-5.2.0/source/blender/web_engine/CMakeLists.txt",
|
||||
"web/app/src/app/ModifierParameterField.tsx",
|
||||
"web/app/src/app/ModifierParameterField.css",
|
||||
"web/app/src/app/app-shell.css",
|
||||
"web/protocol/modifier.ts",
|
||||
"web/protocol/scene-ir.ts",
|
||||
"web/tests/fixtures/create-modifier-stack-input.py",
|
||||
"my-tools/test_wbv2_modifier_accessors.py"
|
||||
],
|
||||
"dependencies": [
|
||||
".emscripten-web",
|
||||
"blender-5.2.0/source/blender/editors/object/object_modifier.cc",
|
||||
"blender-5.2.0/source/blender/makesrna/intern/rna_modifier.cc",
|
||||
"blender-5.2.0/source/blender/web_engine/CMakeLists.txt",
|
||||
"blender-5.2.0/source/blender/web_engine/extract_id_property_rna.py",
|
||||
"blender-5.2.0/source/blender/web_engine/extract_modifier_accessors.py",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.h",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_modifier_properties.hh",
|
||||
"build_web_blender6/CMakeCache.txt",
|
||||
"build_web_blender6/source/blender/makesrna/intern/rna_modifier_gen.cc",
|
||||
"my-tools/build_local_webengine.py",
|
||||
"my-tools/prepare_wbv2_modifier_stack_workflow.py",
|
||||
"my-tools/test_wbv2_modifier_accessors.py",
|
||||
"tests/files/web/modifier_stack_scene.blend",
|
||||
"tools/web/incremental-web-build.mjs",
|
||||
"tools/web/sync-web-engine-runtime.mjs",
|
||||
"web/app/src/app/App.tsx",
|
||||
"web/app/src/app/ModifierParameterField.css",
|
||||
"web/app/src/app/ModifierParameterField.tsx",
|
||||
"web/app/src/app/app-shell.css",
|
||||
"web/app/src/engine-client/WebEngineClient.ts",
|
||||
"web/app/src/workers/web-engine.worker.ts",
|
||||
"web/app/vite.config.ts",
|
||||
"web/package.json",
|
||||
"web/playwright.config.ts",
|
||||
"web/protocol/modifier.ts",
|
||||
"web/protocol/scene-ir.ts",
|
||||
"web/protocol/web-engine.ts",
|
||||
"web/tests/e2e/modifier-stack-ui-production.spec.ts",
|
||||
"web/tests/fixtures/create-modifier-stack-input.py",
|
||||
"web/tests/fixtures/modifier-stack-main-snapshots.py",
|
||||
"web/tests/fixtures/native-ui-workflow.ts",
|
||||
"web/tsconfig.json"
|
||||
],
|
||||
"artifacts": [
|
||||
"build_web_blender6/bin/web_engine.wasm",
|
||||
"build_web_blender6/bin/web_engine.js",
|
||||
"build_blender_native/bin/blender"
|
||||
],
|
||||
"checks": [
|
||||
{
|
||||
"id": "wasm-source-build",
|
||||
"argv": [
|
||||
"python3",
|
||||
"my-tools/build_local_webengine.py"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"source_build"
|
||||
],
|
||||
"timeoutSeconds": 1200,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "web-build",
|
||||
"argv": [
|
||||
"node",
|
||||
"tools/web/incremental-web-build.mjs"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"typecheck"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build"
|
||||
],
|
||||
"timeoutSeconds": 300,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "authoring-lint",
|
||||
"argv": [
|
||||
"node",
|
||||
"node_modules/eslint/bin/eslint.js",
|
||||
"app/src/app/App.tsx",
|
||||
"tests/e2e/modifier-stack-ui-production.spec.ts"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"lint"
|
||||
],
|
||||
"timeoutSeconds": 90,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "chromium-panel",
|
||||
"argv": [
|
||||
"env",
|
||||
"WEB_TEST_PORT=5382",
|
||||
"node",
|
||||
"node_modules/@playwright/test/cli.js",
|
||||
"test",
|
||||
"--config",
|
||||
"playwright.config.ts",
|
||||
"tests/e2e/modifier-stack-ui-production.spec.ts",
|
||||
"--grep",
|
||||
"modifier stack panel ",
|
||||
"--workers=1",
|
||||
"--max-failures=1"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"chromium"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build",
|
||||
"web-build",
|
||||
"authoring-lint"
|
||||
],
|
||||
"timeoutSeconds": 75,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "chromium-add",
|
||||
"argv": [
|
||||
"env",
|
||||
"WEB_TEST_PORT=5382",
|
||||
"node",
|
||||
"node_modules/@playwright/test/cli.js",
|
||||
"test",
|
||||
"--config",
|
||||
"playwright.config.ts",
|
||||
"tests/e2e/modifier-stack-ui-production.spec.ts",
|
||||
"--grep",
|
||||
"modifier stack add ",
|
||||
"--workers=1",
|
||||
"--max-failures=1"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"chromium",
|
||||
"positive",
|
||||
"negative",
|
||||
"undo_redo",
|
||||
"save_reopen",
|
||||
"determinism"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build",
|
||||
"web-build",
|
||||
"authoring-lint"
|
||||
],
|
||||
"timeoutSeconds": 75,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "chromium-remove",
|
||||
"argv": [
|
||||
"env",
|
||||
"WEB_TEST_PORT=5382",
|
||||
"node",
|
||||
"node_modules/@playwright/test/cli.js",
|
||||
"test",
|
||||
"--config",
|
||||
"playwright.config.ts",
|
||||
"tests/e2e/modifier-stack-ui-production.spec.ts",
|
||||
"--grep",
|
||||
"modifier stack remove ",
|
||||
"--workers=1",
|
||||
"--max-failures=1"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"chromium",
|
||||
"positive",
|
||||
"negative",
|
||||
"undo_redo",
|
||||
"save_reopen",
|
||||
"determinism"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build",
|
||||
"web-build",
|
||||
"authoring-lint"
|
||||
],
|
||||
"timeoutSeconds": 75,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "chromium-move",
|
||||
"argv": [
|
||||
"env",
|
||||
"WEB_TEST_PORT=5382",
|
||||
"node",
|
||||
"node_modules/@playwright/test/cli.js",
|
||||
"test",
|
||||
"--config",
|
||||
"playwright.config.ts",
|
||||
"tests/e2e/modifier-stack-ui-production.spec.ts",
|
||||
"--grep",
|
||||
"modifier stack move ",
|
||||
"--workers=1",
|
||||
"--max-failures=1"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"chromium",
|
||||
"positive",
|
||||
"negative",
|
||||
"undo_redo",
|
||||
"save_reopen",
|
||||
"determinism"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build",
|
||||
"web-build",
|
||||
"authoring-lint"
|
||||
],
|
||||
"timeoutSeconds": 75,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "chromium-parameters-bevel",
|
||||
"argv": [
|
||||
"env",
|
||||
"WEB_TEST_PORT=5382",
|
||||
"node",
|
||||
"node_modules/@playwright/test/cli.js",
|
||||
"test",
|
||||
"--config",
|
||||
"playwright.config.ts",
|
||||
"tests/e2e/modifier-stack-ui-production.spec.ts",
|
||||
"--grep",
|
||||
"modifier stack parameters bevel ",
|
||||
"--workers=1",
|
||||
"--max-failures=1"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"chromium",
|
||||
"positive",
|
||||
"negative",
|
||||
"undo_redo",
|
||||
"save_reopen",
|
||||
"determinism"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build",
|
||||
"web-build",
|
||||
"authoring-lint"
|
||||
],
|
||||
"timeoutSeconds": 75,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "chromium-parameters-array",
|
||||
"argv": [
|
||||
"env",
|
||||
"WEB_TEST_PORT=5382",
|
||||
"node",
|
||||
"node_modules/@playwright/test/cli.js",
|
||||
"test",
|
||||
"--config",
|
||||
"playwright.config.ts",
|
||||
"tests/e2e/modifier-stack-ui-production.spec.ts",
|
||||
"--grep",
|
||||
"modifier stack parameters array ",
|
||||
"--workers=1",
|
||||
"--max-failures=1"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"chromium",
|
||||
"positive",
|
||||
"negative",
|
||||
"undo_redo",
|
||||
"save_reopen",
|
||||
"determinism"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build",
|
||||
"web-build",
|
||||
"authoring-lint"
|
||||
],
|
||||
"timeoutSeconds": 75,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "chromium-parameters-mirror",
|
||||
"argv": [
|
||||
"env",
|
||||
"WEB_TEST_PORT=5382",
|
||||
"node",
|
||||
"node_modules/@playwright/test/cli.js",
|
||||
"test",
|
||||
"--config",
|
||||
"playwright.config.ts",
|
||||
"tests/e2e/modifier-stack-ui-production.spec.ts",
|
||||
"--grep",
|
||||
"modifier stack parameters mirror ",
|
||||
"--workers=1",
|
||||
"--max-failures=1"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"chromium",
|
||||
"positive",
|
||||
"negative",
|
||||
"undo_redo",
|
||||
"save_reopen",
|
||||
"determinism"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build",
|
||||
"web-build",
|
||||
"authoring-lint"
|
||||
],
|
||||
"timeoutSeconds": 75,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "chromium-parameters-solidify",
|
||||
"argv": [
|
||||
"env",
|
||||
"WEB_TEST_PORT=5382",
|
||||
"node",
|
||||
"node_modules/@playwright/test/cli.js",
|
||||
"test",
|
||||
"--config",
|
||||
"playwright.config.ts",
|
||||
"tests/e2e/modifier-stack-ui-production.spec.ts",
|
||||
"--grep",
|
||||
"modifier stack parameters solidify ",
|
||||
"--workers=1",
|
||||
"--max-failures=1"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"chromium",
|
||||
"positive",
|
||||
"negative",
|
||||
"undo_redo",
|
||||
"save_reopen",
|
||||
"determinism"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build",
|
||||
"web-build",
|
||||
"authoring-lint"
|
||||
],
|
||||
"timeoutSeconds": 75,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "chromium-parameters-subsurf",
|
||||
"argv": [
|
||||
"env",
|
||||
"WEB_TEST_PORT=5382",
|
||||
"node",
|
||||
"node_modules/@playwright/test/cli.js",
|
||||
"test",
|
||||
"--config",
|
||||
"playwright.config.ts",
|
||||
"tests/e2e/modifier-stack-ui-production.spec.ts",
|
||||
"--grep",
|
||||
"modifier stack parameters subsurf ",
|
||||
"--workers=1",
|
||||
"--max-failures=1"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"chromium",
|
||||
"positive",
|
||||
"negative",
|
||||
"undo_redo",
|
||||
"save_reopen",
|
||||
"determinism"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build",
|
||||
"web-build",
|
||||
"authoring-lint"
|
||||
],
|
||||
"timeoutSeconds": 75,
|
||||
"continueOnFailure": true
|
||||
}
|
||||
],
|
||||
"cases": [
|
||||
{
|
||||
"id": "modifier-add-positive",
|
||||
"kind": "positive",
|
||||
"checkId": "chromium-add",
|
||||
"receipt": "unallocated/add-positive.json",
|
||||
"unitIds": [
|
||||
"web-command:addModifier"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "modifier-add-negative",
|
||||
"kind": "negative",
|
||||
"checkId": "chromium-add",
|
||||
"receipt": "unallocated/add-negative.json",
|
||||
"unitIds": [
|
||||
"web-command:addModifier"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "modifier-add-undo_redo",
|
||||
"kind": "undo_redo",
|
||||
"checkId": "chromium-add",
|
||||
"receipt": "unallocated/add-undo_redo.json",
|
||||
"unitIds": [
|
||||
"web-command:addModifier"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "modifier-add-save_reopen",
|
||||
"kind": "save_reopen",
|
||||
"checkId": "chromium-add",
|
||||
"receipt": "unallocated/add-save_reopen.json",
|
||||
"unitIds": [
|
||||
"web-command:addModifier"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "modifier-add-determinism",
|
||||
"kind": "determinism",
|
||||
"checkId": "chromium-add",
|
||||
"receipt": "unallocated/add-determinism.json",
|
||||
"unitIds": [
|
||||
"web-command:addModifier"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "modifier-remove-positive",
|
||||
"kind": "positive",
|
||||
"checkId": "chromium-remove",
|
||||
"receipt": "unallocated/remove-positive.json",
|
||||
"unitIds": [
|
||||
"web-command:removeModifier"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "modifier-remove-negative",
|
||||
"kind": "negative",
|
||||
"checkId": "chromium-remove",
|
||||
"receipt": "unallocated/remove-negative.json",
|
||||
"unitIds": [
|
||||
"web-command:removeModifier"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "modifier-remove-undo_redo",
|
||||
"kind": "undo_redo",
|
||||
"checkId": "chromium-remove",
|
||||
"receipt": "unallocated/remove-undo_redo.json",
|
||||
"unitIds": [
|
||||
"web-command:removeModifier"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "modifier-remove-save_reopen",
|
||||
"kind": "save_reopen",
|
||||
"checkId": "chromium-remove",
|
||||
"receipt": "unallocated/remove-save_reopen.json",
|
||||
"unitIds": [
|
||||
"web-command:removeModifier"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "modifier-remove-determinism",
|
||||
"kind": "determinism",
|
||||
"checkId": "chromium-remove",
|
||||
"receipt": "unallocated/remove-determinism.json",
|
||||
"unitIds": [
|
||||
"web-command:removeModifier"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "modifier-move-positive",
|
||||
"kind": "positive",
|
||||
"checkId": "chromium-move",
|
||||
"receipt": "unallocated/move-positive.json",
|
||||
"unitIds": [
|
||||
"web-command:moveModifier"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "modifier-move-negative",
|
||||
"kind": "negative",
|
||||
"checkId": "chromium-move",
|
||||
"receipt": "unallocated/move-negative.json",
|
||||
"unitIds": [
|
||||
"web-command:moveModifier"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "modifier-move-undo_redo",
|
||||
"kind": "undo_redo",
|
||||
"checkId": "chromium-move",
|
||||
"receipt": "unallocated/move-undo_redo.json",
|
||||
"unitIds": [
|
||||
"web-command:moveModifier"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "modifier-move-save_reopen",
|
||||
"kind": "save_reopen",
|
||||
"checkId": "chromium-move",
|
||||
"receipt": "unallocated/move-save_reopen.json",
|
||||
"unitIds": [
|
||||
"web-command:moveModifier"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "modifier-move-determinism",
|
||||
"kind": "determinism",
|
||||
"checkId": "chromium-move",
|
||||
"receipt": "unallocated/move-determinism.json",
|
||||
"unitIds": [
|
||||
"web-command:moveModifier"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "modifier-parameters-bevel-positive",
|
||||
"kind": "positive",
|
||||
"checkId": "chromium-parameters-bevel",
|
||||
"receipt": "unallocated/parameters-bevel-positive.json",
|
||||
"unitIds": [
|
||||
"web-command:setModifierParameters"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "modifier-parameters-bevel-negative",
|
||||
"kind": "negative",
|
||||
"checkId": "chromium-parameters-bevel",
|
||||
"receipt": "unallocated/parameters-bevel-negative.json",
|
||||
"unitIds": [
|
||||
"web-command:setModifierParameters"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "modifier-parameters-bevel-undo_redo",
|
||||
"kind": "undo_redo",
|
||||
"checkId": "chromium-parameters-bevel",
|
||||
"receipt": "unallocated/parameters-bevel-undo_redo.json",
|
||||
"unitIds": [
|
||||
"web-command:setModifierParameters"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "modifier-parameters-bevel-save_reopen",
|
||||
"kind": "save_reopen",
|
||||
"checkId": "chromium-parameters-bevel",
|
||||
"receipt": "unallocated/parameters-bevel-save_reopen.json",
|
||||
"unitIds": [
|
||||
"web-command:setModifierParameters"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "modifier-parameters-bevel-determinism",
|
||||
"kind": "determinism",
|
||||
"checkId": "chromium-parameters-bevel",
|
||||
"receipt": "unallocated/parameters-bevel-determinism.json",
|
||||
"unitIds": [
|
||||
"web-command:setModifierParameters"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "modifier-parameters-array-positive",
|
||||
"kind": "positive",
|
||||
"checkId": "chromium-parameters-array",
|
||||
"receipt": "unallocated/parameters-array-positive.json",
|
||||
"unitIds": [
|
||||
"web-command:setModifierParameters"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "modifier-parameters-array-negative",
|
||||
"kind": "negative",
|
||||
"checkId": "chromium-parameters-array",
|
||||
"receipt": "unallocated/parameters-array-negative.json",
|
||||
"unitIds": [
|
||||
"web-command:setModifierParameters"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "modifier-parameters-array-undo_redo",
|
||||
"kind": "undo_redo",
|
||||
"checkId": "chromium-parameters-array",
|
||||
"receipt": "unallocated/parameters-array-undo_redo.json",
|
||||
"unitIds": [
|
||||
"web-command:setModifierParameters"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "modifier-parameters-array-save_reopen",
|
||||
"kind": "save_reopen",
|
||||
"checkId": "chromium-parameters-array",
|
||||
"receipt": "unallocated/parameters-array-save_reopen.json",
|
||||
"unitIds": [
|
||||
"web-command:setModifierParameters"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "modifier-parameters-array-determinism",
|
||||
"kind": "determinism",
|
||||
"checkId": "chromium-parameters-array",
|
||||
"receipt": "unallocated/parameters-array-determinism.json",
|
||||
"unitIds": [
|
||||
"web-command:setModifierParameters"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "modifier-parameters-mirror-positive",
|
||||
"kind": "positive",
|
||||
"checkId": "chromium-parameters-mirror",
|
||||
"receipt": "unallocated/parameters-mirror-positive.json",
|
||||
"unitIds": [
|
||||
"web-command:setModifierParameters"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "modifier-parameters-mirror-negative",
|
||||
"kind": "negative",
|
||||
"checkId": "chromium-parameters-mirror",
|
||||
"receipt": "unallocated/parameters-mirror-negative.json",
|
||||
"unitIds": [
|
||||
"web-command:setModifierParameters"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "modifier-parameters-mirror-undo_redo",
|
||||
"kind": "undo_redo",
|
||||
"checkId": "chromium-parameters-mirror",
|
||||
"receipt": "unallocated/parameters-mirror-undo_redo.json",
|
||||
"unitIds": [
|
||||
"web-command:setModifierParameters"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "modifier-parameters-mirror-save_reopen",
|
||||
"kind": "save_reopen",
|
||||
"checkId": "chromium-parameters-mirror",
|
||||
"receipt": "unallocated/parameters-mirror-save_reopen.json",
|
||||
"unitIds": [
|
||||
"web-command:setModifierParameters"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "modifier-parameters-mirror-determinism",
|
||||
"kind": "determinism",
|
||||
"checkId": "chromium-parameters-mirror",
|
||||
"receipt": "unallocated/parameters-mirror-determinism.json",
|
||||
"unitIds": [
|
||||
"web-command:setModifierParameters"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "modifier-parameters-solidify-positive",
|
||||
"kind": "positive",
|
||||
"checkId": "chromium-parameters-solidify",
|
||||
"receipt": "unallocated/parameters-solidify-positive.json",
|
||||
"unitIds": [
|
||||
"web-command:setModifierParameters"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "modifier-parameters-solidify-negative",
|
||||
"kind": "negative",
|
||||
"checkId": "chromium-parameters-solidify",
|
||||
"receipt": "unallocated/parameters-solidify-negative.json",
|
||||
"unitIds": [
|
||||
"web-command:setModifierParameters"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "modifier-parameters-solidify-undo_redo",
|
||||
"kind": "undo_redo",
|
||||
"checkId": "chromium-parameters-solidify",
|
||||
"receipt": "unallocated/parameters-solidify-undo_redo.json",
|
||||
"unitIds": [
|
||||
"web-command:setModifierParameters"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "modifier-parameters-solidify-save_reopen",
|
||||
"kind": "save_reopen",
|
||||
"checkId": "chromium-parameters-solidify",
|
||||
"receipt": "unallocated/parameters-solidify-save_reopen.json",
|
||||
"unitIds": [
|
||||
"web-command:setModifierParameters"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "modifier-parameters-solidify-determinism",
|
||||
"kind": "determinism",
|
||||
"checkId": "chromium-parameters-solidify",
|
||||
"receipt": "unallocated/parameters-solidify-determinism.json",
|
||||
"unitIds": [
|
||||
"web-command:setModifierParameters"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "modifier-parameters-subsurf-positive",
|
||||
"kind": "positive",
|
||||
"checkId": "chromium-parameters-subsurf",
|
||||
"receipt": "unallocated/parameters-subsurf-positive.json",
|
||||
"unitIds": [
|
||||
"web-command:setModifierParameters"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "modifier-parameters-subsurf-negative",
|
||||
"kind": "negative",
|
||||
"checkId": "chromium-parameters-subsurf",
|
||||
"receipt": "unallocated/parameters-subsurf-negative.json",
|
||||
"unitIds": [
|
||||
"web-command:setModifierParameters"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "modifier-parameters-subsurf-undo_redo",
|
||||
"kind": "undo_redo",
|
||||
"checkId": "chromium-parameters-subsurf",
|
||||
"receipt": "unallocated/parameters-subsurf-undo_redo.json",
|
||||
"unitIds": [
|
||||
"web-command:setModifierParameters"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "modifier-parameters-subsurf-save_reopen",
|
||||
"kind": "save_reopen",
|
||||
"checkId": "chromium-parameters-subsurf",
|
||||
"receipt": "unallocated/parameters-subsurf-save_reopen.json",
|
||||
"unitIds": [
|
||||
"web-command:setModifierParameters"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "modifier-parameters-subsurf-determinism",
|
||||
"kind": "determinism",
|
||||
"checkId": "chromium-parameters-subsurf",
|
||||
"receipt": "unallocated/parameters-subsurf-determinism.json",
|
||||
"unitIds": [
|
||||
"web-command:setModifierParameters"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
332
my-tools/local-workflows/NATIVE-OPERATOR-BRIDGE.json
Normal file
332
my-tools/local-workflows/NATIVE-OPERATOR-BRIDGE.json
Normal file
@@ -0,0 +1,332 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P1424-001",
|
||||
"parentSha256": "46a3ce65d56747da8684af422a1a94540612c767a6dcc42da7939930731399d5",
|
||||
"job": "NATIVE-OPERATOR-BRIDGE",
|
||||
"acceptance": "pending fresh validation",
|
||||
"result": {
|
||||
"status": "ready",
|
||||
"summary": "Native operator discovery, cube invocation, context rejection and HTTP voxel remesh",
|
||||
"workflow": "Discover native cube operator, invoke it, reject invalid properties and desktop-only file context, verify history/reopen/replay against desktop Blender; separately verify bounded server voxel remesh",
|
||||
"sourceUnits": [
|
||||
"web-command:createPrimitive",
|
||||
"operator:WM_OT_open_mainfile",
|
||||
"operator:OBJECT_OT_voxel_remesh"
|
||||
],
|
||||
"routeIds": [
|
||||
"web-command:createPrimitive",
|
||||
"operator:WM_OT_open_mainfile",
|
||||
"operator:OBJECT_OT_voxel_remesh"
|
||||
],
|
||||
"sourceReferences": [
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp",
|
||||
"blender-5.2.0/source/blender/editors/object/object_remesh.cc",
|
||||
"blender-5.2.0/source/blender/blenkernel/intern/mesh_remesh_voxel.cc"
|
||||
],
|
||||
"changedFiles": [
|
||||
"web/tests/e2e/native-operator-bridge.spec.ts",
|
||||
"web/tests/fixtures/operator-bridge-main.py",
|
||||
"my-tools/prepare_wbv2_native_operator_bridge_workflow.py"
|
||||
],
|
||||
"dependencies": [
|
||||
".emscripten-web",
|
||||
"blender-5.2.0/source/blender/blenkernel/intern/mesh_remesh_voxel.cc",
|
||||
"blender-5.2.0/source/blender/editors/object/object_remesh.cc",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"build_web_blender6/CMakeCache.txt",
|
||||
"my-tools/build_local_webengine.py",
|
||||
"my-tools/local-workflows/SCULPT-ADVANCED-AUTHORING.json",
|
||||
"my-tools/local-workflows/WEBUI-SCULPT.json",
|
||||
"my-tools/prepare_wbv2_native_operator_bridge_workflow.py",
|
||||
"my-tools/prepare_wbv2_sculpt_advanced_workflow.py",
|
||||
"my-tools/prepare_wbv2_sculpt_workflow.py",
|
||||
"tests/files/web/basic_scene.blend",
|
||||
"tools/web/deployment-http-server.mjs",
|
||||
"tools/web/incremental-web-build.mjs",
|
||||
"tools/web/server-operator-job-server.mjs",
|
||||
"tools/web/server-operator-job.py",
|
||||
"tools/web/server_operator_remesh.py",
|
||||
"tools/web/sync-web-engine-runtime.mjs",
|
||||
"web/app/src/app/App.tsx",
|
||||
"web/app/src/engine-client/WebEngineClient.ts",
|
||||
"web/app/src/workers/web-engine.worker.ts",
|
||||
"web/app/vite.config.ts",
|
||||
"web/package.json",
|
||||
"web/playwright.config.ts",
|
||||
"web/protocol/blender-operator.ts",
|
||||
"web/protocol/paint.ts",
|
||||
"web/protocol/scene-ir.ts",
|
||||
"web/protocol/sculpt.ts",
|
||||
"web/protocol/server-operator-job.ts",
|
||||
"web/protocol/web-engine.ts",
|
||||
"web/tests/e2e/native-operator-bridge.spec.ts",
|
||||
"web/tests/e2e/sculpt-authoring-ui-production.spec.ts",
|
||||
"web/tests/e2e/sculpt-remesh-native.spec.ts",
|
||||
"web/tests/fixtures/native-ui-workflow.ts",
|
||||
"web/tests/fixtures/operator-bridge-main.py",
|
||||
"web/tests/fixtures/sculpt-remesh-main-snapshots.py",
|
||||
"web/tsconfig.json"
|
||||
],
|
||||
"artifacts": [
|
||||
"build_web_blender6/bin/web_engine.wasm",
|
||||
"build_web_blender6/bin/web_engine.js",
|
||||
"build_blender_native/bin/blender",
|
||||
"web/app/public/vendor/blender/web_engine.wasm"
|
||||
],
|
||||
"checks": [
|
||||
{
|
||||
"id": "wasm-source-build",
|
||||
"argv": [
|
||||
"python3",
|
||||
"my-tools/build_local_webengine.py"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"source_build"
|
||||
],
|
||||
"timeoutSeconds": 1200,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "web-build",
|
||||
"argv": [
|
||||
"node",
|
||||
"tools/web/incremental-web-build.mjs"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"typecheck"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build"
|
||||
],
|
||||
"timeoutSeconds": 300,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "authoring-lint",
|
||||
"argv": [
|
||||
"node",
|
||||
"node_modules/eslint/bin/eslint.js",
|
||||
"app/src/app/App.tsx",
|
||||
"protocol/paint.ts",
|
||||
"tests/e2e/sculpt-authoring-ui-production.spec.ts"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"lint"
|
||||
],
|
||||
"timeoutSeconds": 90,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "chromium-remesh",
|
||||
"argv": [
|
||||
"env",
|
||||
"WEB_TEST_PORT=5392",
|
||||
"node",
|
||||
"node_modules/@playwright/test/cli.js",
|
||||
"test",
|
||||
"tests/e2e/sculpt-remesh-native.spec.ts",
|
||||
"--workers=1",
|
||||
"--max-failures=1"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"chromium",
|
||||
"positive",
|
||||
"negative",
|
||||
"undo_redo",
|
||||
"save_reopen",
|
||||
"determinism"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build",
|
||||
"web-build",
|
||||
"authoring-lint"
|
||||
],
|
||||
"timeoutSeconds": 180,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "chromium-bridge",
|
||||
"argv": [
|
||||
"env",
|
||||
"WEB_TEST_PORT=5394",
|
||||
"node",
|
||||
"node_modules/@playwright/test/cli.js",
|
||||
"test",
|
||||
"tests/e2e/native-operator-bridge.spec.ts",
|
||||
"--workers=1",
|
||||
"--max-failures=1"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"chromium",
|
||||
"positive",
|
||||
"negative",
|
||||
"undo_redo",
|
||||
"save_reopen",
|
||||
"determinism"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build",
|
||||
"web-build",
|
||||
"authoring-lint"
|
||||
],
|
||||
"timeoutSeconds": 180
|
||||
}
|
||||
],
|
||||
"cases": [
|
||||
{
|
||||
"id": "sculpt-remesh-positive",
|
||||
"kind": "positive",
|
||||
"checkId": "chromium-remesh",
|
||||
"receipt": "unallocated/sculpt-remesh-positive.json",
|
||||
"unitIds": [
|
||||
"operator:OBJECT_OT_voxel_remesh"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "sculpt-remesh-negative",
|
||||
"kind": "negative",
|
||||
"checkId": "chromium-remesh",
|
||||
"receipt": "unallocated/sculpt-remesh-negative.json",
|
||||
"unitIds": [
|
||||
"operator:OBJECT_OT_voxel_remesh"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "sculpt-remesh-undo_redo",
|
||||
"kind": "undo_redo",
|
||||
"checkId": "chromium-remesh",
|
||||
"receipt": "unallocated/sculpt-remesh-undo_redo.json",
|
||||
"unitIds": [
|
||||
"operator:OBJECT_OT_voxel_remesh"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "sculpt-remesh-save_reopen",
|
||||
"kind": "save_reopen",
|
||||
"checkId": "chromium-remesh",
|
||||
"receipt": "unallocated/sculpt-remesh-save_reopen.json",
|
||||
"unitIds": [
|
||||
"operator:OBJECT_OT_voxel_remesh"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "sculpt-remesh-determinism",
|
||||
"kind": "determinism",
|
||||
"checkId": "chromium-remesh",
|
||||
"receipt": "unallocated/sculpt-remesh-determinism.json",
|
||||
"unitIds": [
|
||||
"operator:OBJECT_OT_voxel_remesh"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "native-operator-bridge-cube-positive",
|
||||
"kind": "positive",
|
||||
"checkId": "chromium-bridge",
|
||||
"receipt": "unallocated/native-operator-bridge-cube-positive.json",
|
||||
"unitIds": [
|
||||
"web-command:createPrimitive",
|
||||
"operator:WM_OT_open_mainfile"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "native-operator-bridge-cube-negative",
|
||||
"kind": "negative",
|
||||
"checkId": "chromium-bridge",
|
||||
"receipt": "unallocated/native-operator-bridge-cube-negative.json",
|
||||
"unitIds": [
|
||||
"web-command:createPrimitive",
|
||||
"operator:WM_OT_open_mainfile"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "native-operator-bridge-cube-undo_redo",
|
||||
"kind": "undo_redo",
|
||||
"checkId": "chromium-bridge",
|
||||
"receipt": "unallocated/native-operator-bridge-cube-undo_redo.json",
|
||||
"unitIds": [
|
||||
"web-command:createPrimitive",
|
||||
"operator:WM_OT_open_mainfile"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "native-operator-bridge-cube-save_reopen",
|
||||
"kind": "save_reopen",
|
||||
"checkId": "chromium-bridge",
|
||||
"receipt": "unallocated/native-operator-bridge-cube-save_reopen.json",
|
||||
"unitIds": [
|
||||
"web-command:createPrimitive",
|
||||
"operator:WM_OT_open_mainfile"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "native-operator-bridge-cube-determinism",
|
||||
"kind": "determinism",
|
||||
"checkId": "chromium-bridge",
|
||||
"receipt": "unallocated/native-operator-bridge-cube-determinism.json",
|
||||
"unitIds": [
|
||||
"web-command:createPrimitive",
|
||||
"operator:WM_OT_open_mainfile"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "native-operator-bridge-plane-positive",
|
||||
"kind": "positive",
|
||||
"checkId": "chromium-bridge",
|
||||
"receipt": "unallocated/native-operator-bridge-plane-positive.json",
|
||||
"unitIds": [
|
||||
"web-command:createPrimitive",
|
||||
"operator:WM_OT_open_mainfile"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "native-operator-bridge-plane-negative",
|
||||
"kind": "negative",
|
||||
"checkId": "chromium-bridge",
|
||||
"receipt": "unallocated/native-operator-bridge-plane-negative.json",
|
||||
"unitIds": [
|
||||
"web-command:createPrimitive",
|
||||
"operator:WM_OT_open_mainfile"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "native-operator-bridge-plane-undo_redo",
|
||||
"kind": "undo_redo",
|
||||
"checkId": "chromium-bridge",
|
||||
"receipt": "unallocated/native-operator-bridge-plane-undo_redo.json",
|
||||
"unitIds": [
|
||||
"web-command:createPrimitive",
|
||||
"operator:WM_OT_open_mainfile"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "native-operator-bridge-plane-save_reopen",
|
||||
"kind": "save_reopen",
|
||||
"checkId": "chromium-bridge",
|
||||
"receipt": "unallocated/native-operator-bridge-plane-save_reopen.json",
|
||||
"unitIds": [
|
||||
"web-command:createPrimitive",
|
||||
"operator:WM_OT_open_mainfile"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "native-operator-bridge-plane-determinism",
|
||||
"kind": "determinism",
|
||||
"checkId": "chromium-bridge",
|
||||
"receipt": "unallocated/native-operator-bridge-plane-determinism.json",
|
||||
"unitIds": [
|
||||
"web-command:createPrimitive",
|
||||
"operator:WM_OT_open_mainfile"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
325
my-tools/local-workflows/NODE-GRAPH-AUTHORING.json
Normal file
325
my-tools/local-workflows/NODE-GRAPH-AUTHORING.json
Normal file
@@ -0,0 +1,325 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P1424-001",
|
||||
"job": "NODE-GRAPH-AUTHORING",
|
||||
"parentSha256": "46a3ce65d56747da8684af422a1a94540612c767a6dcc42da7939930731399d5",
|
||||
"acceptance": "pending independent local validation",
|
||||
"result": {
|
||||
"status": "ready",
|
||||
"summary": "Independent native writes required for both node graph routes",
|
||||
"workflow": "Author Geometry Nodes and Shader graphs; each route must independently mutate Main and pass rejection, history, persistence and replay",
|
||||
"sourceUnits": [
|
||||
"web-command:setGeometryNodeGraph",
|
||||
"web-command:setShaderGraph"
|
||||
],
|
||||
"routeIds": [
|
||||
"web-command:setGeometryNodeGraph",
|
||||
"web-command:setShaderGraph"
|
||||
],
|
||||
"sourceReferences": [
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_headless_fallback.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_rna_fallback.cpp",
|
||||
"blender-5.2.0/source/blender/nodes/intern/node_common.cc",
|
||||
"blender-5.2.0/source/blender/nodes/intern/node_socket.cc",
|
||||
"blender-5.2.0/source/blender/nodes/intern/node_geometry_exec.cc",
|
||||
"blender-5.2.0/source/blender/nodes/intern/socket_usage_inference.cc",
|
||||
"blender-5.2.0/source/blender/nodes/intern/socket_value_inference.cc",
|
||||
"blender-5.2.0/source/blender/nodes/geometry/node_geometry_util.cc",
|
||||
"blender-5.2.0/source/blender/nodes/geometry/nodes/node_geo_transform_geometry.cc",
|
||||
"blender-5.2.0/source/blender/makesrna/intern/rna_ID.cc"
|
||||
],
|
||||
"changedFiles": [
|
||||
"web/tests/e2e/wbv2-node-graph-authoring-production.spec.ts",
|
||||
"my-tools/prepare_wbv2_node_graph_workflow.py",
|
||||
"web/protocol/geometry-node-commands.ts",
|
||||
"web/tests/fixtures/node-graph-main-snapshots.py",
|
||||
"blender-5.2.0/source/blender/web_engine/extract_id_property_rna.py",
|
||||
"blender-5.2.0/source/blender/web_engine/CMakeLists.txt",
|
||||
"blender-5.2.0/source/blender/nodes/CMakeLists.txt",
|
||||
"blender-5.2.0/source/blender/makesrna/intern/CMakeLists.txt"
|
||||
],
|
||||
"dependencies": [
|
||||
".emscripten-web",
|
||||
"blender-5.2.0/source/blender/makesrna/intern/CMakeLists.txt",
|
||||
"blender-5.2.0/source/blender/makesrna/intern/rna_ID.cc",
|
||||
"blender-5.2.0/source/blender/nodes/CMakeLists.txt",
|
||||
"blender-5.2.0/source/blender/nodes/geometry/node_geometry_util.cc",
|
||||
"blender-5.2.0/source/blender/nodes/geometry/nodes/node_geo_transform_geometry.cc",
|
||||
"blender-5.2.0/source/blender/nodes/intern/node_common.cc",
|
||||
"blender-5.2.0/source/blender/nodes/intern/node_geometry_exec.cc",
|
||||
"blender-5.2.0/source/blender/nodes/intern/node_socket.cc",
|
||||
"blender-5.2.0/source/blender/nodes/intern/socket_usage_inference.cc",
|
||||
"blender-5.2.0/source/blender/nodes/intern/socket_value_inference.cc",
|
||||
"blender-5.2.0/source/blender/web_engine/CMakeLists.txt",
|
||||
"blender-5.2.0/source/blender/web_engine/extract_id_property_rna.py",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_headless_fallback.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_rna_fallback.cpp",
|
||||
"build_web_blender6/CMakeCache.txt",
|
||||
"my-tools/build_local_webengine.py",
|
||||
"my-tools/prepare_wbv2_node_graph_workflow.py",
|
||||
"tests/files/web/basic_scene.blend",
|
||||
"tests/files/web/m12_glb_main_v1/pbr.blend",
|
||||
"tests/files/web/modifier_geometry_nodes_scene.blend",
|
||||
"tools/web/incremental-web-build.mjs",
|
||||
"tools/web/sync-web-engine-runtime.mjs",
|
||||
"web/app/src/app/App.tsx",
|
||||
"web/app/src/engine-client/WebEngineClient.ts",
|
||||
"web/app/src/workers/web-engine.worker.ts",
|
||||
"web/app/vite.config.ts",
|
||||
"web/package.json",
|
||||
"web/playwright.config.ts",
|
||||
"web/protocol/geometry-node-commands.ts",
|
||||
"web/protocol/geometry-nodes.ts",
|
||||
"web/protocol/scene-ir.ts",
|
||||
"web/protocol/shader-graph-commands.ts",
|
||||
"web/protocol/shader-graph.ts",
|
||||
"web/protocol/web-engine.ts",
|
||||
"web/tests/e2e/wbv2-node-graph-authoring-production.spec.ts",
|
||||
"web/tests/fixtures/native-ui-workflow.ts",
|
||||
"web/tests/fixtures/node-graph-main-snapshots.py",
|
||||
"web/tsconfig.json"
|
||||
],
|
||||
"artifacts": [
|
||||
"build_web_blender6/bin/web_engine.wasm",
|
||||
"build_web_blender6/bin/web_engine.js",
|
||||
"build_blender_native/bin/blender"
|
||||
],
|
||||
"checks": [
|
||||
{
|
||||
"id": "wasm-source-build",
|
||||
"argv": [
|
||||
"python3",
|
||||
"my-tools/build_local_webengine.py"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"source_build"
|
||||
],
|
||||
"timeoutSeconds": 1200,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "web-build",
|
||||
"argv": [
|
||||
"node",
|
||||
"tools/web/incremental-web-build.mjs"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"typecheck"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build"
|
||||
],
|
||||
"timeoutSeconds": 300,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "authoring-lint",
|
||||
"argv": [
|
||||
"node",
|
||||
"node_modules/eslint/bin/eslint.js",
|
||||
"app/src/app/App.tsx",
|
||||
"protocol/geometry-node-commands.ts",
|
||||
"tests/e2e/wbv2-node-graph-authoring-production.spec.ts"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"lint"
|
||||
],
|
||||
"timeoutSeconds": 90,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "chromium-panel",
|
||||
"argv": [
|
||||
"env",
|
||||
"WEB_TEST_PORT=5375",
|
||||
"node",
|
||||
"node_modules/@playwright/test/cli.js",
|
||||
"test",
|
||||
"--config",
|
||||
"playwright.config.ts",
|
||||
"tests/e2e/wbv2-node-graph-authoring-production.spec.ts",
|
||||
"--grep",
|
||||
"node graph panel",
|
||||
"--workers=1",
|
||||
"--max-failures=1"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"chromium"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build",
|
||||
"web-build",
|
||||
"authoring-lint"
|
||||
],
|
||||
"timeoutSeconds": 60,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "chromium-geometry",
|
||||
"argv": [
|
||||
"env",
|
||||
"WEB_TEST_PORT=5375",
|
||||
"node",
|
||||
"node_modules/@playwright/test/cli.js",
|
||||
"test",
|
||||
"--config",
|
||||
"playwright.config.ts",
|
||||
"tests/e2e/wbv2-node-graph-authoring-production.spec.ts",
|
||||
"--grep",
|
||||
"node graph geometry",
|
||||
"--workers=1",
|
||||
"--max-failures=1"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"chromium",
|
||||
"positive",
|
||||
"negative",
|
||||
"undo_redo",
|
||||
"save_reopen",
|
||||
"determinism"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build",
|
||||
"web-build",
|
||||
"authoring-lint"
|
||||
],
|
||||
"timeoutSeconds": 75,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "chromium-shader",
|
||||
"argv": [
|
||||
"env",
|
||||
"WEB_TEST_PORT=5375",
|
||||
"node",
|
||||
"node_modules/@playwright/test/cli.js",
|
||||
"test",
|
||||
"--config",
|
||||
"playwright.config.ts",
|
||||
"tests/e2e/wbv2-node-graph-authoring-production.spec.ts",
|
||||
"--grep",
|
||||
"node graph shader",
|
||||
"--workers=1",
|
||||
"--max-failures=1"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"chromium",
|
||||
"positive",
|
||||
"negative",
|
||||
"undo_redo",
|
||||
"save_reopen",
|
||||
"determinism"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build",
|
||||
"web-build",
|
||||
"authoring-lint"
|
||||
],
|
||||
"timeoutSeconds": 75,
|
||||
"continueOnFailure": true
|
||||
}
|
||||
],
|
||||
"cases": [
|
||||
{
|
||||
"id": "node-graph-geometry-positive",
|
||||
"kind": "positive",
|
||||
"checkId": "chromium-geometry",
|
||||
"receipt": "unallocated/geometry-positive.json",
|
||||
"unitIds": [
|
||||
"web-command:setGeometryNodeGraph"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "node-graph-geometry-negative",
|
||||
"kind": "negative",
|
||||
"checkId": "chromium-geometry",
|
||||
"receipt": "unallocated/geometry-negative.json",
|
||||
"unitIds": [
|
||||
"web-command:setGeometryNodeGraph"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "node-graph-geometry-undo_redo",
|
||||
"kind": "undo_redo",
|
||||
"checkId": "chromium-geometry",
|
||||
"receipt": "unallocated/geometry-undo_redo.json",
|
||||
"unitIds": [
|
||||
"web-command:setGeometryNodeGraph"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "node-graph-geometry-save_reopen",
|
||||
"kind": "save_reopen",
|
||||
"checkId": "chromium-geometry",
|
||||
"receipt": "unallocated/geometry-save_reopen.json",
|
||||
"unitIds": [
|
||||
"web-command:setGeometryNodeGraph"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "node-graph-geometry-determinism",
|
||||
"kind": "determinism",
|
||||
"checkId": "chromium-geometry",
|
||||
"receipt": "unallocated/geometry-determinism.json",
|
||||
"unitIds": [
|
||||
"web-command:setGeometryNodeGraph"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "node-graph-shader-positive",
|
||||
"kind": "positive",
|
||||
"checkId": "chromium-shader",
|
||||
"receipt": "unallocated/shader-positive.json",
|
||||
"unitIds": [
|
||||
"web-command:setShaderGraph"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "node-graph-shader-negative",
|
||||
"kind": "negative",
|
||||
"checkId": "chromium-shader",
|
||||
"receipt": "unallocated/shader-negative.json",
|
||||
"unitIds": [
|
||||
"web-command:setShaderGraph"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "node-graph-shader-undo_redo",
|
||||
"kind": "undo_redo",
|
||||
"checkId": "chromium-shader",
|
||||
"receipt": "unallocated/shader-undo_redo.json",
|
||||
"unitIds": [
|
||||
"web-command:setShaderGraph"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "node-graph-shader-save_reopen",
|
||||
"kind": "save_reopen",
|
||||
"checkId": "chromium-shader",
|
||||
"receipt": "unallocated/shader-save_reopen.json",
|
||||
"unitIds": [
|
||||
"web-command:setShaderGraph"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "node-graph-shader-determinism",
|
||||
"kind": "determinism",
|
||||
"checkId": "chromium-shader",
|
||||
"receipt": "unallocated/shader-determinism.json",
|
||||
"unitIds": [
|
||||
"web-command:setShaderGraph"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
319
my-tools/local-workflows/OBJECT-EDITOR-COVERAGE.json
Normal file
319
my-tools/local-workflows/OBJECT-EDITOR-COVERAGE.json
Normal file
@@ -0,0 +1,319 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P1424-001",
|
||||
"job": "OBJECT-EDITOR-COVERAGE",
|
||||
"parentSha256": "46a3ce65d56747da8684af422a1a94540612c767a6dcc42da7939930731399d5",
|
||||
"acceptance": "pending independent local validation",
|
||||
"result": {
|
||||
"status": "ready",
|
||||
"summary": "Object editor controls with native Main readback and inherited collection visibility",
|
||||
"workflow": "Clear object location, rotation and scale; create camera, light, empty and armature data; change object selection and collection viewport/render visibility with persistence and history",
|
||||
"sourceUnits": [
|
||||
"web-command:clearObjectTransform",
|
||||
"web-command:createObjectData",
|
||||
"web-command:setObjectSelection",
|
||||
"web-command:setCollectionVisibility"
|
||||
],
|
||||
"routeIds": [
|
||||
"web-command:clearObjectTransform",
|
||||
"web-command:createObjectData",
|
||||
"web-command:setObjectSelection",
|
||||
"web-command:setCollectionVisibility"
|
||||
],
|
||||
"sourceReferences": [
|
||||
"blender-5.2.0/source/blender/blenkernel/intern/object.cc",
|
||||
"blender-5.2.0/source/blender/blenkernel/intern/collection.cc",
|
||||
"blender-5.2.0/source/blender/blenkernel/intern/layer.cc",
|
||||
"blender-5.2.0/source/blender/blenkernel/intern/idtype.cc",
|
||||
"blender-5.2.0/source/blender/makesdna/DNA_collection_types.h",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp"
|
||||
],
|
||||
"changedFiles": [
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"my-tools/diagnose_local_object_editor.mjs",
|
||||
"my-tools/diagnose_local_save_stability.mjs",
|
||||
"my-tools/prepare_wbv2_object_editor_workflow.py",
|
||||
"my-tools/wbv2_runtime_contract.py",
|
||||
"my-tools/test_wbv2_runtime_contract.py",
|
||||
"web/app/src/three-adapter/viewport.ts",
|
||||
"web/tests/e2e/object-editor-ui-production.spec.ts",
|
||||
"web/tests/e2e/viewport-render-budget.spec.ts",
|
||||
"web/tests/fixtures/create-object-editor-input.py",
|
||||
"web/tests/fixtures/object-editor-main-snapshots.py",
|
||||
"tests/files/web/object_editor_scene.blend",
|
||||
"tests/files/web/object_editor_visibility_scene.blend"
|
||||
],
|
||||
"dependencies": [
|
||||
".emscripten-web",
|
||||
"blender-5.2.0/source/blender/blenkernel/intern/collection.cc",
|
||||
"blender-5.2.0/source/blender/blenkernel/intern/idtype.cc",
|
||||
"blender-5.2.0/source/blender/blenkernel/intern/layer.cc",
|
||||
"blender-5.2.0/source/blender/blenkernel/intern/object.cc",
|
||||
"blender-5.2.0/source/blender/makesdna/DNA_collection_types.h",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"build_web_blender6/CMakeCache.txt",
|
||||
"my-tools/build_local_webengine.py",
|
||||
"my-tools/diagnose_local_object_editor.mjs",
|
||||
"my-tools/diagnose_local_save_stability.mjs",
|
||||
"my-tools/prepare_wbv2_object_editor_workflow.py",
|
||||
"my-tools/test_wbv2_runtime_contract.py",
|
||||
"my-tools/wbv2_runtime_contract.py",
|
||||
"tests/files/web/basic_scene.blend",
|
||||
"tests/files/web/nonmesh_scene.blend",
|
||||
"tests/files/web/object_editor_scene.blend",
|
||||
"tests/files/web/object_editor_visibility_scene.blend",
|
||||
"tools/web/incremental-web-build.mjs",
|
||||
"tools/web/run-incremental-typecheck.mjs",
|
||||
"tools/web/sync-web-engine-runtime.mjs",
|
||||
"tools/web/web-build-fingerprint.mjs",
|
||||
"web/app/src/app/App.tsx",
|
||||
"web/app/src/capabilities/blender-feature-route-catalog.json",
|
||||
"web/app/src/engine-client/WebEngineClient.ts",
|
||||
"web/app/src/three-adapter/viewport.ts",
|
||||
"web/app/src/workers/web-engine.worker.ts",
|
||||
"web/app/vite.config.ts",
|
||||
"web/package.json",
|
||||
"web/playwright.config.ts",
|
||||
"web/protocol/scene-ir.ts",
|
||||
"web/protocol/web-engine.ts",
|
||||
"web/tests/e2e/object-editor-ui-production.spec.ts",
|
||||
"web/tests/e2e/viewport-render-budget.spec.ts",
|
||||
"web/tests/fixtures/create-object-editor-input.py",
|
||||
"web/tests/fixtures/native-ui-workflow.ts",
|
||||
"web/tests/fixtures/object-editor-main-snapshots.py",
|
||||
"web/tsconfig.json"
|
||||
],
|
||||
"artifacts": [
|
||||
"build_blender_native/bin/blender",
|
||||
"build_web_blender6/bin/web_engine.wasm",
|
||||
"build_web_blender6/bin/web_engine.js",
|
||||
"web/app/public/vendor/blender/web_engine.wasm",
|
||||
"web/app/public/vendor/blender/web_engine.js",
|
||||
"web/app/public/wasm-module-manifest.json"
|
||||
],
|
||||
"checks": [
|
||||
{
|
||||
"id": "wasm-source-build",
|
||||
"argv": [
|
||||
"python3",
|
||||
"my-tools/build_local_webengine.py"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"source_build"
|
||||
],
|
||||
"timeoutSeconds": 1200,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "native-minimal",
|
||||
"argv": [
|
||||
"node",
|
||||
"my-tools/diagnose_local_object_editor.mjs"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"unit"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build"
|
||||
],
|
||||
"timeoutSeconds": 30,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "native-collection-paths",
|
||||
"argv": [
|
||||
"node",
|
||||
"my-tools/diagnose_local_object_editor.mjs",
|
||||
"--hierarchy"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"unit"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build"
|
||||
],
|
||||
"timeoutSeconds": 30,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "native-save-stability",
|
||||
"argv": [
|
||||
"node",
|
||||
"my-tools/diagnose_local_save_stability.mjs"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"unit"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build"
|
||||
],
|
||||
"timeoutSeconds": 30,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "web-build",
|
||||
"argv": [
|
||||
"node",
|
||||
"tools/web/incremental-web-build.mjs"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"typecheck"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build",
|
||||
"native-minimal",
|
||||
"native-collection-paths",
|
||||
"native-save-stability"
|
||||
],
|
||||
"timeoutSeconds": 300,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "authoring-lint",
|
||||
"argv": [
|
||||
"node",
|
||||
"node_modules/eslint/bin/eslint.js",
|
||||
"app/src/app/App.tsx"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"lint"
|
||||
],
|
||||
"timeoutSeconds": 60,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "chromium-viewport",
|
||||
"argv": [
|
||||
"env",
|
||||
"WEB_TEST_PORT=5361",
|
||||
"node",
|
||||
"node_modules/@playwright/test/cli.js",
|
||||
"test",
|
||||
"--config",
|
||||
"playwright.config.ts",
|
||||
"tests/e2e/viewport-render-budget.spec.ts",
|
||||
"--workers=1",
|
||||
"--max-failures=1"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"chromium",
|
||||
"unit"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build",
|
||||
"web-build"
|
||||
],
|
||||
"timeoutSeconds": 100,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "chromium-authoring",
|
||||
"argv": [
|
||||
"env",
|
||||
"BLENDER_BIN=/home/mes123456/workinf_Blender_Wasm/build_blender_native/bin/blender",
|
||||
"WEB_TEST_PORT=5360",
|
||||
"node",
|
||||
"node_modules/@playwright/test/cli.js",
|
||||
"test",
|
||||
"--config",
|
||||
"playwright.config.ts",
|
||||
"tests/e2e/object-editor-ui-production.spec.ts",
|
||||
"--workers=1",
|
||||
"--max-failures=1"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"chromium",
|
||||
"positive",
|
||||
"negative",
|
||||
"undo_redo",
|
||||
"save_reopen",
|
||||
"determinism"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build",
|
||||
"web-build",
|
||||
"native-minimal",
|
||||
"native-collection-paths",
|
||||
"chromium-viewport"
|
||||
],
|
||||
"timeoutSeconds": 180,
|
||||
"continueOnFailure": true
|
||||
}
|
||||
],
|
||||
"cases": [
|
||||
{
|
||||
"id": "object-editor-positive",
|
||||
"kind": "positive",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/positive.json",
|
||||
"unitIds": [
|
||||
"web-command:clearObjectTransform",
|
||||
"web-command:createObjectData",
|
||||
"web-command:setObjectSelection",
|
||||
"web-command:setCollectionVisibility"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "object-editor-negative",
|
||||
"kind": "negative",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/negative.json",
|
||||
"unitIds": [
|
||||
"web-command:clearObjectTransform",
|
||||
"web-command:createObjectData",
|
||||
"web-command:setObjectSelection",
|
||||
"web-command:setCollectionVisibility"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "object-editor-undo_redo",
|
||||
"kind": "undo_redo",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/undo_redo.json",
|
||||
"unitIds": [
|
||||
"web-command:clearObjectTransform",
|
||||
"web-command:createObjectData",
|
||||
"web-command:setObjectSelection",
|
||||
"web-command:setCollectionVisibility"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "object-editor-save_reopen",
|
||||
"kind": "save_reopen",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/save_reopen.json",
|
||||
"unitIds": [
|
||||
"web-command:clearObjectTransform",
|
||||
"web-command:createObjectData",
|
||||
"web-command:setObjectSelection",
|
||||
"web-command:setCollectionVisibility"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "object-editor-determinism",
|
||||
"kind": "determinism",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/determinism.json",
|
||||
"unitIds": [
|
||||
"web-command:clearObjectTransform",
|
||||
"web-command:createObjectData",
|
||||
"web-command:setObjectSelection",
|
||||
"web-command:setCollectionVisibility"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
86
my-tools/local-workflows/OPERATOR-MACRO-COMPOSER.json
Normal file
86
my-tools/local-workflows/OPERATOR-MACRO-COMPOSER.json
Normal file
@@ -0,0 +1,86 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P1424-001",
|
||||
"job": "OPERATOR-MACRO-COMPOSER",
|
||||
"parentSha256": "46a3ce65d56747da8684af422a1a94540612c767a6dcc42da7939930731399d5",
|
||||
"acceptance": "deferred until user use; no behavioral acceptance claimed",
|
||||
"result": {
|
||||
"status": "ready",
|
||||
"contractKind": "compilation_only",
|
||||
"summary": "Native operator macro catalog and invocation dispatch; implementation phase only.",
|
||||
"workflow": "Native operator macro catalog and invocation dispatch; implementation phase only.",
|
||||
"sourceUnits": [
|
||||
"operator-macro:ARMATURE_OT_extrude_move",
|
||||
"operator-macro:MESH_OT_duplicate_move"
|
||||
],
|
||||
"routeIds": [
|
||||
"operator-macro:ARMATURE_OT_extrude_move",
|
||||
"operator-macro:MESH_OT_duplicate_move"
|
||||
],
|
||||
"sourceReferences": [
|
||||
"blender-5.2.0/source/blender/windowmanager/intern/wm_operator_type.cc",
|
||||
"blender-5.2.0/source/blender/windowmanager/intern/wm_operators.cc"
|
||||
],
|
||||
"changedFiles": [
|
||||
"my-tools/prepare_wbv2_operator_macro_workflow.py",
|
||||
"web/app/src/engine-client/WebEngineClient.ts",
|
||||
"web/app/src/app/App.tsx"
|
||||
],
|
||||
"dependencies": [
|
||||
".emscripten-web",
|
||||
"blender-5.2.0/source/blender/windowmanager/intern/wm_operator_type.cc",
|
||||
"blender-5.2.0/source/blender/windowmanager/intern/wm_operators.cc",
|
||||
"build_web_blender6/CMakeCache.txt",
|
||||
"my-tools/build_local_webengine.py",
|
||||
"my-tools/prepare_wbv2_operator_macro_workflow.py",
|
||||
"my-tools/wbv2_compilation_recipe.py",
|
||||
"tools/web/incremental-web-build.mjs",
|
||||
"tools/web/run-incremental-typecheck.mjs",
|
||||
"tools/web/sync-web-engine-runtime.mjs",
|
||||
"web/app/src/app/App.tsx",
|
||||
"web/app/src/engine-client/WebEngineClient.ts",
|
||||
"web/app/src/workers/web-engine.worker.ts",
|
||||
"web/app/vite.config.ts",
|
||||
"web/package.json",
|
||||
"web/protocol/blender-operator.ts",
|
||||
"web/protocol/scene-ir.ts",
|
||||
"web/protocol/web-engine.ts",
|
||||
"web/tsconfig.json"
|
||||
],
|
||||
"artifacts": [
|
||||
"build_web_blender6/bin/web_engine.wasm",
|
||||
"build_web_blender6/bin/web_engine.js",
|
||||
"build_blender_native/bin/blender"
|
||||
],
|
||||
"checks": [
|
||||
{
|
||||
"id": "wasm-source-build",
|
||||
"argv": [
|
||||
"python3",
|
||||
"my-tools/build_local_webengine.py"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"source_build"
|
||||
],
|
||||
"timeoutSeconds": 1800
|
||||
},
|
||||
{
|
||||
"id": "web-build",
|
||||
"argv": [
|
||||
"node",
|
||||
"tools/web/incremental-web-build.mjs"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"typecheck"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build"
|
||||
],
|
||||
"timeoutSeconds": 180
|
||||
}
|
||||
],
|
||||
"cases": []
|
||||
}
|
||||
}
|
||||
88
my-tools/local-workflows/OPERATOR-ROUTE-PALETTE.json
Normal file
88
my-tools/local-workflows/OPERATOR-ROUTE-PALETTE.json
Normal file
@@ -0,0 +1,88 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P1424-001",
|
||||
"job": "OPERATOR-ROUTE-PALETTE",
|
||||
"parentSha256": "46a3ce65d56747da8684af422a1a94540612c767a6dcc42da7939930731399d5",
|
||||
"acceptance": "deferred until user use; no behavioral acceptance claimed",
|
||||
"result": {
|
||||
"status": "ready",
|
||||
"contractKind": "compilation_only",
|
||||
"summary": "Feature route catalog and operator palette dispatch through the existing WebEngine client; implementation phase only.",
|
||||
"workflow": "Feature route catalog and operator palette dispatch through the existing WebEngine client; implementation phase only.",
|
||||
"sourceUnits": [
|
||||
"operator:OBJECT_OT_voxel_remesh",
|
||||
"web-command:renderFrame",
|
||||
"web-command:setCameraView"
|
||||
],
|
||||
"routeIds": [
|
||||
"operator:OBJECT_OT_voxel_remesh",
|
||||
"web-command:renderFrame",
|
||||
"web-command:setCameraView"
|
||||
],
|
||||
"sourceReferences": [
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/windowmanager/intern/wm_operators.cc"
|
||||
],
|
||||
"changedFiles": [
|
||||
"my-tools/prepare_wbv2_operator_palette_workflow.py",
|
||||
"web/app/src/app/App.tsx",
|
||||
"web/protocol/blender-operator.ts"
|
||||
],
|
||||
"dependencies": [
|
||||
".emscripten-web",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/windowmanager/intern/wm_operators.cc",
|
||||
"build_web_blender6/CMakeCache.txt",
|
||||
"my-tools/build_local_webengine.py",
|
||||
"my-tools/prepare_wbv2_operator_palette_workflow.py",
|
||||
"my-tools/wbv2_compilation_recipe.py",
|
||||
"tools/web/incremental-web-build.mjs",
|
||||
"tools/web/run-incremental-typecheck.mjs",
|
||||
"tools/web/sync-web-engine-runtime.mjs",
|
||||
"web/app/src/app/App.tsx",
|
||||
"web/app/src/engine-client/WebEngineClient.ts",
|
||||
"web/app/src/workers/web-engine.worker.ts",
|
||||
"web/app/vite.config.ts",
|
||||
"web/package.json",
|
||||
"web/protocol/blender-operator.ts",
|
||||
"web/protocol/scene-ir.ts",
|
||||
"web/protocol/web-engine.ts",
|
||||
"web/tsconfig.json"
|
||||
],
|
||||
"artifacts": [
|
||||
"build_web_blender6/bin/web_engine.wasm",
|
||||
"build_web_blender6/bin/web_engine.js",
|
||||
"build_blender_native/bin/blender"
|
||||
],
|
||||
"checks": [
|
||||
{
|
||||
"id": "wasm-source-build",
|
||||
"argv": [
|
||||
"python3",
|
||||
"my-tools/build_local_webengine.py"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"source_build"
|
||||
],
|
||||
"timeoutSeconds": 1800
|
||||
},
|
||||
{
|
||||
"id": "web-build",
|
||||
"argv": [
|
||||
"node",
|
||||
"tools/web/incremental-web-build.mjs"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"typecheck"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build"
|
||||
],
|
||||
"timeoutSeconds": 180
|
||||
}
|
||||
],
|
||||
"cases": []
|
||||
}
|
||||
}
|
||||
139
my-tools/local-workflows/PHYSICS-SIMULATION-COVERAGE.json
Normal file
139
my-tools/local-workflows/PHYSICS-SIMULATION-COVERAGE.json
Normal file
@@ -0,0 +1,139 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P1424-001",
|
||||
"job": "PHYSICS-SIMULATION-COVERAGE",
|
||||
"parentSha256": "46a3ce65d56747da8684af422a1a94540612c767a6dcc42da7939930731399d5",
|
||||
"acceptance": "deferred until user use; no behavioral acceptance claimed",
|
||||
"result": {
|
||||
"status": "ready",
|
||||
"contractKind": "compilation_only",
|
||||
"summary": "Edit rigid body, Cloth and Fluid native settings; configure existing particle caches from the Physics panel and retain real Main data when saving. Reuse native data creation and serialization callbacks. Browser Bullet simulation is not enabled; solver execution and runtime acceptance remain separate unfinished work.",
|
||||
"workflow": "Edit rigid body, Cloth and Fluid native settings; configure existing particle caches from the Physics panel and retain real Main data when saving. Reuse native data creation and serialization callbacks. Browser Bullet simulation is not enabled; solver execution and runtime acceptance remain separate unfinished work.",
|
||||
"sourceUnits": [
|
||||
"web-command:setClothSettings",
|
||||
"web-command:setFluidSettings",
|
||||
"web-command:setParticleCache",
|
||||
"web-command:setRigidBodySettings",
|
||||
"web-command:setSimulationPlayback"
|
||||
],
|
||||
"routeIds": [
|
||||
"web-command:setClothSettings",
|
||||
"web-command:setFluidSettings",
|
||||
"web-command:setParticleCache",
|
||||
"web-command:setRigidBodySettings",
|
||||
"web-command:setSimulationPlayback"
|
||||
],
|
||||
"sourceReferences": [
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_physics_authoring.cpp",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_cloth.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_fluid.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_particlesystem.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_util.cc",
|
||||
"blender-5.2.0/source/blender/blenkernel/intern/rigidbody.cc",
|
||||
"blender-5.2.0/source/blender/blenkernel/intern/fluid.cc",
|
||||
"blender-5.2.0/source/blender/makesrna/intern/rna_cloth.cc",
|
||||
"blender-5.2.0/source/blender/makesrna/intern/rna_fluid.cc",
|
||||
"blender-5.2.0/source/blender/makesdna/DNA_pointcache_types.h"
|
||||
],
|
||||
"changedFiles": [
|
||||
"my-tools/wbv2_compilation_recipe.py",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_physics_authoring.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_physics_authoring.hh",
|
||||
"web/app/src/app/PhysicsSettingsEditor.tsx",
|
||||
"web/app/src/app/PhysicsSettingsEditor.css",
|
||||
"web/protocol/physics-simulation.ts",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_physics_authoring.cpp",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_cloth.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_fluid.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_particlesystem.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_util.cc",
|
||||
"blender-5.2.0/source/blender/blenkernel/intern/rigidbody.cc",
|
||||
"blender-5.2.0/source/blender/blenkernel/intern/fluid.cc",
|
||||
"blender-5.2.0/source/blender/makesrna/intern/rna_cloth.cc",
|
||||
"blender-5.2.0/source/blender/makesrna/intern/rna_fluid.cc",
|
||||
"blender-5.2.0/source/blender/makesdna/DNA_pointcache_types.h",
|
||||
"my-tools/prepare_wbv2_physics_workflow.py",
|
||||
"web/app/src/app/App.tsx",
|
||||
"web/app/src/app/app-shell.css",
|
||||
"blender-5.2.0/source/blender/web_engine/CMakeLists.txt",
|
||||
"blender-5.2.0/source/blender/modifiers/CMakeLists.txt"
|
||||
],
|
||||
"dependencies": [
|
||||
".emscripten-web",
|
||||
"blender-5.2.0/source/blender/blenkernel/intern/fluid.cc",
|
||||
"blender-5.2.0/source/blender/blenkernel/intern/rigidbody.cc",
|
||||
"blender-5.2.0/source/blender/makesdna/DNA_pointcache_types.h",
|
||||
"blender-5.2.0/source/blender/makesrna/intern/rna_cloth.cc",
|
||||
"blender-5.2.0/source/blender/makesrna/intern/rna_fluid.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/CMakeLists.txt",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_cloth.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_fluid.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_particlesystem.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_util.cc",
|
||||
"blender-5.2.0/source/blender/web_engine/CMakeLists.txt",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_physics_authoring.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_physics_authoring.hh",
|
||||
"build_web_blender6/CMakeCache.txt",
|
||||
"my-tools/build_local_webengine.py",
|
||||
"my-tools/prepare_wbv2_physics_workflow.py",
|
||||
"my-tools/wbv2_compilation_recipe.py",
|
||||
"tools/web/incremental-web-build.mjs",
|
||||
"tools/web/run-incremental-typecheck.mjs",
|
||||
"tools/web/sync-web-engine-runtime.mjs",
|
||||
"web/app/src/app/App.tsx",
|
||||
"web/app/src/app/PhysicsSettingsEditor.css",
|
||||
"web/app/src/app/PhysicsSettingsEditor.tsx",
|
||||
"web/app/src/app/app-shell.css",
|
||||
"web/app/src/engine-client/WebEngineClient.ts",
|
||||
"web/app/src/workers/web-engine.worker.ts",
|
||||
"web/app/vite.config.ts",
|
||||
"web/package.json",
|
||||
"web/protocol/physics-commands.ts",
|
||||
"web/protocol/physics-simulation.ts",
|
||||
"web/protocol/scene-ir.ts",
|
||||
"web/protocol/web-engine.ts",
|
||||
"web/tsconfig.json"
|
||||
],
|
||||
"artifacts": [
|
||||
"build_web_blender6/bin/web_engine.wasm",
|
||||
"build_web_blender6/bin/web_engine.js",
|
||||
"build_blender_native/bin/blender"
|
||||
],
|
||||
"checks": [
|
||||
{
|
||||
"id": "wasm-source-build",
|
||||
"argv": [
|
||||
"python3",
|
||||
"my-tools/build_local_webengine.py"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"source_build"
|
||||
],
|
||||
"timeoutSeconds": 1800
|
||||
},
|
||||
{
|
||||
"id": "web-build",
|
||||
"argv": [
|
||||
"node",
|
||||
"tools/web/incremental-web-build.mjs"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"typecheck"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build"
|
||||
],
|
||||
"timeoutSeconds": 180
|
||||
}
|
||||
],
|
||||
"cases": []
|
||||
}
|
||||
}
|
||||
96
my-tools/local-workflows/RENDER-CAMERA-LIGHT-COVERAGE.json
Normal file
96
my-tools/local-workflows/RENDER-CAMERA-LIGHT-COVERAGE.json
Normal file
@@ -0,0 +1,96 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P1424-001",
|
||||
"job": "RENDER-CAMERA-LIGHT-COVERAGE",
|
||||
"parentSha256": "46a3ce65d56747da8684af422a1a94540612c767a6dcc42da7939930731399d5",
|
||||
"acceptance": "deferred until user use; no behavioral acceptance claimed",
|
||||
"result": {
|
||||
"status": "ready",
|
||||
"contractKind": "compilation_only",
|
||||
"summary": "Render frame and animation dispatch with native camera, render pass and light linking settings; implementation phase only.",
|
||||
"workflow": "Render frame and animation dispatch with native camera, render pass and light linking settings; implementation phase only.",
|
||||
"sourceUnits": [
|
||||
"web-command:renderAnimation",
|
||||
"web-command:renderFrame",
|
||||
"web-command:setCameraView",
|
||||
"web-command:setLightLinking",
|
||||
"web-command:setRenderPasses"
|
||||
],
|
||||
"routeIds": [
|
||||
"web-command:renderAnimation",
|
||||
"web-command:renderFrame",
|
||||
"web-command:setCameraView",
|
||||
"web-command:setLightLinking",
|
||||
"web-command:setRenderPasses"
|
||||
],
|
||||
"sourceReferences": [
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"blender-5.2.0/source/blender/render/intern/render_result.cc",
|
||||
"blender-5.2.0/source/blender/render/intern/engine.cc"
|
||||
],
|
||||
"changedFiles": [
|
||||
"my-tools/prepare_wbv2_render_workflow.py",
|
||||
"web/app/src/app/App.tsx",
|
||||
"web/protocol/web-engine.ts"
|
||||
],
|
||||
"dependencies": [
|
||||
".emscripten-web",
|
||||
"blender-5.2.0/source/blender/render/intern/engine.cc",
|
||||
"blender-5.2.0/source/blender/render/intern/render_result.cc",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"build_web_blender6/CMakeCache.txt",
|
||||
"my-tools/build_local_webengine.py",
|
||||
"my-tools/prepare_wbv2_render_workflow.py",
|
||||
"my-tools/wbv2_compilation_recipe.py",
|
||||
"tools/web/incremental-web-build.mjs",
|
||||
"tools/web/run-incremental-typecheck.mjs",
|
||||
"tools/web/sync-web-engine-runtime.mjs",
|
||||
"web/app/src/app/App.tsx",
|
||||
"web/app/src/engine-client/WebEngineClient.ts",
|
||||
"web/app/src/workers/web-engine.worker.ts",
|
||||
"web/app/vite.config.ts",
|
||||
"web/package.json",
|
||||
"web/protocol/render-compositor-commands.ts",
|
||||
"web/protocol/scene-ir.ts",
|
||||
"web/protocol/web-engine.ts",
|
||||
"web/tsconfig.json"
|
||||
],
|
||||
"artifacts": [
|
||||
"build_web_blender6/bin/web_engine.wasm",
|
||||
"build_web_blender6/bin/web_engine.js",
|
||||
"build_blender_native/bin/blender"
|
||||
],
|
||||
"checks": [
|
||||
{
|
||||
"id": "wasm-source-build",
|
||||
"argv": [
|
||||
"python3",
|
||||
"my-tools/build_local_webengine.py"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"source_build"
|
||||
],
|
||||
"timeoutSeconds": 1800
|
||||
},
|
||||
{
|
||||
"id": "web-build",
|
||||
"argv": [
|
||||
"node",
|
||||
"tools/web/incremental-web-build.mjs"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"typecheck"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build"
|
||||
],
|
||||
"timeoutSeconds": 180
|
||||
}
|
||||
],
|
||||
"cases": []
|
||||
}
|
||||
}
|
||||
227
my-tools/local-workflows/RIG-POSE-AUTHORING.json
Normal file
227
my-tools/local-workflows/RIG-POSE-AUTHORING.json
Normal file
@@ -0,0 +1,227 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P1424-001",
|
||||
"job": "RIG-POSE-AUTHORING",
|
||||
"parentSha256": "46a3ce65d56747da8684af422a1a94540612c767a6dcc42da7939930731399d5",
|
||||
"acceptance": "pending fresh validation",
|
||||
"result": {
|
||||
"status": "ready",
|
||||
"summary": "Native bone replacement and pose TRS with independent desktop state",
|
||||
"workflow": "Replace a bone hierarchy and edit pose TRS independently; reject missing parents/bones, undo/redo, save/reopen and replay; compare with desktop Blender edits",
|
||||
"routeIds": [
|
||||
"web-command:setArmatureBones",
|
||||
"web-command:setPoseBoneTransform"
|
||||
],
|
||||
"sourceUnits": [
|
||||
"web-command:setArmatureBones",
|
||||
"web-command:setPoseBoneTransform"
|
||||
],
|
||||
"sourceReferences": [
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_rna_fallback.cpp",
|
||||
"blender-5.2.0/source/blender/makesrna/intern/rna_pose.cc",
|
||||
"blender-5.2.0/source/blender/blenkernel/intern/armature.cc",
|
||||
"blender-5.2.0/source/blender/editors/armature/armature_edit.cc"
|
||||
],
|
||||
"dependencies": [
|
||||
".emscripten-web",
|
||||
"blender-5.2.0/source/blender/blenkernel/intern/armature.cc",
|
||||
"blender-5.2.0/source/blender/editors/armature/armature_edit.cc",
|
||||
"blender-5.2.0/source/blender/makesrna/intern/rna_pose.cc",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_rna_fallback.cpp",
|
||||
"build_web_blender6/CMakeCache.txt",
|
||||
"my-tools/build_local_webengine.py",
|
||||
"my-tools/prepare_wbv2_rig_pose_workflow.py",
|
||||
"tests/files/web/pose_constraint_scene.blend",
|
||||
"tools/web/incremental-web-build.mjs",
|
||||
"tools/web/sync-web-engine-runtime.mjs",
|
||||
"web/app/src/app/App.tsx",
|
||||
"web/app/src/engine-client/WebEngineClient.ts",
|
||||
"web/app/src/workers/web-engine.worker.ts",
|
||||
"web/app/vite.config.ts",
|
||||
"web/package.json",
|
||||
"web/playwright.config.ts",
|
||||
"web/protocol/scene-ir.ts",
|
||||
"web/protocol/web-engine.ts",
|
||||
"web/tests/e2e/rig-pose-authoring-native.spec.ts",
|
||||
"web/tests/fixtures/rig-pose-authoring-main.py",
|
||||
"web/tsconfig.json"
|
||||
],
|
||||
"changedFiles": [
|
||||
"web/tests/e2e/rig-pose-authoring-native.spec.ts",
|
||||
"web/tests/fixtures/rig-pose-authoring-main.py",
|
||||
"my-tools/prepare_wbv2_rig_pose_workflow.py"
|
||||
],
|
||||
"artifacts": [
|
||||
"build_web_blender6/bin/web_engine.wasm",
|
||||
"build_web_blender6/bin/web_engine.js",
|
||||
"web/app/public/vendor/blender/web_engine.wasm",
|
||||
"build_blender_native/bin/blender"
|
||||
],
|
||||
"checks": [
|
||||
{
|
||||
"id": "wasm-source-build",
|
||||
"argv": [
|
||||
"python3",
|
||||
"my-tools/build_local_webengine.py"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"source_build"
|
||||
],
|
||||
"timeoutSeconds": 1800
|
||||
},
|
||||
{
|
||||
"id": "web-build",
|
||||
"argv": [
|
||||
"node",
|
||||
"tools/web/incremental-web-build.mjs"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"typecheck"
|
||||
],
|
||||
"timeoutSeconds": 300,
|
||||
"dependsOn": [
|
||||
"wasm-source-build"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "authoring-lint",
|
||||
"argv": [
|
||||
"node",
|
||||
"node_modules/eslint/bin/eslint.js",
|
||||
"tests/e2e/rig-pose-authoring-native.spec.ts"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"lint"
|
||||
],
|
||||
"timeoutSeconds": 90
|
||||
},
|
||||
{
|
||||
"id": "chromium-rig",
|
||||
"argv": [
|
||||
"env",
|
||||
"WEB_TEST_PORT=5393",
|
||||
"node",
|
||||
"node_modules/@playwright/test/cli.js",
|
||||
"test",
|
||||
"tests/e2e/rig-pose-authoring-native.spec.ts",
|
||||
"--workers=1",
|
||||
"--max-failures=1"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"chromium",
|
||||
"positive",
|
||||
"negative",
|
||||
"undo_redo",
|
||||
"save_reopen",
|
||||
"determinism"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build",
|
||||
"web-build",
|
||||
"authoring-lint"
|
||||
],
|
||||
"timeoutSeconds": 180
|
||||
}
|
||||
],
|
||||
"cases": [
|
||||
{
|
||||
"id": "rig-bones-positive",
|
||||
"kind": "positive",
|
||||
"checkId": "chromium-rig",
|
||||
"receipt": "unallocated/rig-bones-positive.json",
|
||||
"unitIds": [
|
||||
"web-command:setArmatureBones"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "rig-bones-negative",
|
||||
"kind": "negative",
|
||||
"checkId": "chromium-rig",
|
||||
"receipt": "unallocated/rig-bones-negative.json",
|
||||
"unitIds": [
|
||||
"web-command:setArmatureBones"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "rig-bones-undo_redo",
|
||||
"kind": "undo_redo",
|
||||
"checkId": "chromium-rig",
|
||||
"receipt": "unallocated/rig-bones-undo_redo.json",
|
||||
"unitIds": [
|
||||
"web-command:setArmatureBones"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "rig-bones-save_reopen",
|
||||
"kind": "save_reopen",
|
||||
"checkId": "chromium-rig",
|
||||
"receipt": "unallocated/rig-bones-save_reopen.json",
|
||||
"unitIds": [
|
||||
"web-command:setArmatureBones"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "rig-bones-determinism",
|
||||
"kind": "determinism",
|
||||
"checkId": "chromium-rig",
|
||||
"receipt": "unallocated/rig-bones-determinism.json",
|
||||
"unitIds": [
|
||||
"web-command:setArmatureBones"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "rig-pose-positive",
|
||||
"kind": "positive",
|
||||
"checkId": "chromium-rig",
|
||||
"receipt": "unallocated/rig-pose-positive.json",
|
||||
"unitIds": [
|
||||
"web-command:setPoseBoneTransform"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "rig-pose-negative",
|
||||
"kind": "negative",
|
||||
"checkId": "chromium-rig",
|
||||
"receipt": "unallocated/rig-pose-negative.json",
|
||||
"unitIds": [
|
||||
"web-command:setPoseBoneTransform"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "rig-pose-undo_redo",
|
||||
"kind": "undo_redo",
|
||||
"checkId": "chromium-rig",
|
||||
"receipt": "unallocated/rig-pose-undo_redo.json",
|
||||
"unitIds": [
|
||||
"web-command:setPoseBoneTransform"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "rig-pose-save_reopen",
|
||||
"kind": "save_reopen",
|
||||
"checkId": "chromium-rig",
|
||||
"receipt": "unallocated/rig-pose-save_reopen.json",
|
||||
"unitIds": [
|
||||
"web-command:setPoseBoneTransform"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "rig-pose-determinism",
|
||||
"kind": "determinism",
|
||||
"checkId": "chromium-rig",
|
||||
"receipt": "unallocated/rig-pose-determinism.json",
|
||||
"unitIds": [
|
||||
"web-command:setPoseBoneTransform"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
188
my-tools/local-workflows/RNA-DATABLOCK-REFLECTION.json
Normal file
188
my-tools/local-workflows/RNA-DATABLOCK-REFLECTION.json
Normal file
@@ -0,0 +1,188 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P1424-001",
|
||||
"job": "RNA-DATABLOCK-REFLECTION",
|
||||
"parentSha256": "46a3ce65d56747da8684af422a1a94540612c767a6dcc42da7939930731399d5",
|
||||
"acceptance": "pending independent local validation",
|
||||
"result": {
|
||||
"status": "ready",
|
||||
"summary": "Native RNA data-block and property reflection uses Blender RNA metadata; implementation phase only.",
|
||||
"workflow": "Native RNA data-block and property reflection uses Blender RNA metadata; implementation phase only.",
|
||||
"sourceUnits": [
|
||||
"rna-struct:Action",
|
||||
"rna-struct:BlenderRNA",
|
||||
"rna-struct:Object"
|
||||
],
|
||||
"routeIds": [
|
||||
"rna-struct:Action",
|
||||
"rna-struct:BlenderRNA",
|
||||
"rna-struct:Object"
|
||||
],
|
||||
"sourceReferences": [
|
||||
"blender-5.2.0/source/blender/makesrna/intern/rna_access.cc",
|
||||
"blender-5.2.0/source/blender/makesrna/intern/makesrna.cc",
|
||||
"blender-5.2.0/source/blender/web_engine/web_rna_fallback.cpp"
|
||||
],
|
||||
"changedFiles": [
|
||||
"my-tools/prepare_wbv2_rna_reflection_workflow.py",
|
||||
"web/app/src/engine-client/WebEngineClient.ts",
|
||||
"web/app/src/app/App.tsx",
|
||||
"web/tests/e2e/rna-datablock-reflection-native.spec.ts"
|
||||
],
|
||||
"dependencies": [
|
||||
".emscripten-web",
|
||||
"blender-5.2.0/source/blender/makesrna/intern/makesrna.cc",
|
||||
"blender-5.2.0/source/blender/makesrna/intern/rna_access.cc",
|
||||
"blender-5.2.0/source/blender/web_engine/web_rna_fallback.cpp",
|
||||
"build_web_blender6/CMakeCache.txt",
|
||||
"my-tools/build_local_webengine.py",
|
||||
"my-tools/prepare_wbv2_rna_reflection_workflow.py",
|
||||
"my-tools/wbv2_compilation_recipe.py",
|
||||
"tools/web/incremental-web-build.mjs",
|
||||
"tools/web/run-incremental-typecheck.mjs",
|
||||
"tools/web/sync-web-engine-runtime.mjs",
|
||||
"web/app/src/app/App.tsx",
|
||||
"web/app/src/engine-client/WebEngineClient.ts",
|
||||
"web/app/src/workers/web-engine.worker.ts",
|
||||
"web/app/vite.config.ts",
|
||||
"web/package.json",
|
||||
"web/protocol/scene-ir.ts",
|
||||
"web/protocol/web-engine.ts",
|
||||
"web/tsconfig.json",
|
||||
"web/tests/e2e/rna-datablock-reflection-native.spec.ts"
|
||||
],
|
||||
"artifacts": [
|
||||
"build_web_blender6/bin/web_engine.wasm",
|
||||
"build_web_blender6/bin/web_engine.js",
|
||||
"build_blender_native/bin/blender"
|
||||
],
|
||||
"checks": [
|
||||
{
|
||||
"id": "wasm-source-build",
|
||||
"argv": [
|
||||
"python3",
|
||||
"my-tools/build_local_webengine.py"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"source_build"
|
||||
],
|
||||
"timeoutSeconds": 1800
|
||||
},
|
||||
{
|
||||
"id": "web-build",
|
||||
"argv": [
|
||||
"node",
|
||||
"tools/web/incremental-web-build.mjs"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"typecheck"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build"
|
||||
],
|
||||
"timeoutSeconds": 180
|
||||
},
|
||||
{
|
||||
"id": "authoring-lint",
|
||||
"argv": [
|
||||
"node",
|
||||
"node_modules/eslint/bin/eslint.js",
|
||||
"app/src/app/App.tsx",
|
||||
"tests/e2e/rna-datablock-reflection-native.spec.ts"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"lint"
|
||||
],
|
||||
"timeoutSeconds": 90,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "chromium-authoring",
|
||||
"argv": [
|
||||
"node",
|
||||
"node_modules/@playwright/test/cli.js",
|
||||
"test",
|
||||
"tests/e2e/rna-datablock-reflection-native.spec.ts",
|
||||
"--workers=1",
|
||||
"--max-failures=1"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"chromium",
|
||||
"positive",
|
||||
"negative",
|
||||
"undo_redo",
|
||||
"save_reopen",
|
||||
"determinism"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build",
|
||||
"web-build",
|
||||
"authoring-lint"
|
||||
],
|
||||
"timeoutSeconds": 180,
|
||||
"continueOnFailure": true
|
||||
}
|
||||
],
|
||||
"cases": [
|
||||
{
|
||||
"id": "rna-datablock-reflection-positive",
|
||||
"kind": "positive",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/rna-datablock-reflection-positive.json",
|
||||
"unitIds": [
|
||||
"rna-struct:Action",
|
||||
"rna-struct:BlenderRNA",
|
||||
"rna-struct:Object"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "rna-datablock-reflection-negative",
|
||||
"kind": "negative",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/rna-datablock-reflection-negative.json",
|
||||
"unitIds": [
|
||||
"rna-struct:Action",
|
||||
"rna-struct:BlenderRNA",
|
||||
"rna-struct:Object"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "rna-datablock-reflection-undo_redo",
|
||||
"kind": "undo_redo",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/rna-datablock-reflection-undo_redo.json",
|
||||
"unitIds": [
|
||||
"rna-struct:Action",
|
||||
"rna-struct:BlenderRNA",
|
||||
"rna-struct:Object"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "rna-datablock-reflection-save_reopen",
|
||||
"kind": "save_reopen",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/rna-datablock-reflection-save_reopen.json",
|
||||
"unitIds": [
|
||||
"rna-struct:Action",
|
||||
"rna-struct:BlenderRNA",
|
||||
"rna-struct:Object"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "rna-datablock-reflection-determinism",
|
||||
"kind": "determinism",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/rna-datablock-reflection-determinism.json",
|
||||
"unitIds": [
|
||||
"rna-struct:Action",
|
||||
"rna-struct:BlenderRNA",
|
||||
"rna-struct:Object"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
188
my-tools/local-workflows/RNA-REFLECTION-EXTENDED.json
Normal file
188
my-tools/local-workflows/RNA-REFLECTION-EXTENDED.json
Normal file
@@ -0,0 +1,188 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P1424-001",
|
||||
"job": "RNA-REFLECTION-EXTENDED",
|
||||
"parentSha256": "46a3ce65d56747da8684af422a1a94540612c767a6dcc42da7939930731399d5",
|
||||
"acceptance": "pending independent local validation",
|
||||
"result": {
|
||||
"status": "ready",
|
||||
"summary": "Native RNA array, enum and collection access uses Blender RNA metadata; implementation phase only.",
|
||||
"workflow": "Native RNA array, enum and collection access uses Blender RNA metadata; implementation phase only.",
|
||||
"sourceUnits": [
|
||||
"rna-struct:BlenderRNA",
|
||||
"rna-struct:Mesh",
|
||||
"rna-struct:Object"
|
||||
],
|
||||
"routeIds": [
|
||||
"rna-struct:BlenderRNA",
|
||||
"rna-struct:Mesh",
|
||||
"rna-struct:Object"
|
||||
],
|
||||
"sourceReferences": [
|
||||
"blender-5.2.0/source/blender/makesrna/intern/rna_access.cc",
|
||||
"blender-5.2.0/source/blender/makesrna/intern/rna_define.cc",
|
||||
"blender-5.2.0/source/blender/web_engine/web_rna_fallback.cpp"
|
||||
],
|
||||
"changedFiles": [
|
||||
"my-tools/prepare_wbv2_rna_extended_workflow.py",
|
||||
"web/app/src/engine-client/WebEngineClient.ts",
|
||||
"web/app/src/app/App.tsx",
|
||||
"web/tests/e2e/rna-reflection-extended-native.spec.ts"
|
||||
],
|
||||
"dependencies": [
|
||||
".emscripten-web",
|
||||
"blender-5.2.0/source/blender/makesrna/intern/rna_access.cc",
|
||||
"blender-5.2.0/source/blender/makesrna/intern/rna_define.cc",
|
||||
"blender-5.2.0/source/blender/web_engine/web_rna_fallback.cpp",
|
||||
"build_web_blender6/CMakeCache.txt",
|
||||
"my-tools/build_local_webengine.py",
|
||||
"my-tools/prepare_wbv2_rna_extended_workflow.py",
|
||||
"my-tools/wbv2_compilation_recipe.py",
|
||||
"tools/web/incremental-web-build.mjs",
|
||||
"tools/web/run-incremental-typecheck.mjs",
|
||||
"tools/web/sync-web-engine-runtime.mjs",
|
||||
"web/app/src/app/App.tsx",
|
||||
"web/app/src/engine-client/WebEngineClient.ts",
|
||||
"web/app/src/workers/web-engine.worker.ts",
|
||||
"web/app/vite.config.ts",
|
||||
"web/package.json",
|
||||
"web/protocol/scene-ir.ts",
|
||||
"web/protocol/web-engine.ts",
|
||||
"web/tsconfig.json",
|
||||
"web/tests/e2e/rna-reflection-extended-native.spec.ts"
|
||||
],
|
||||
"artifacts": [
|
||||
"build_web_blender6/bin/web_engine.wasm",
|
||||
"build_web_blender6/bin/web_engine.js",
|
||||
"build_blender_native/bin/blender"
|
||||
],
|
||||
"checks": [
|
||||
{
|
||||
"id": "wasm-source-build",
|
||||
"argv": [
|
||||
"python3",
|
||||
"my-tools/build_local_webengine.py"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"source_build"
|
||||
],
|
||||
"timeoutSeconds": 1800
|
||||
},
|
||||
{
|
||||
"id": "web-build",
|
||||
"argv": [
|
||||
"node",
|
||||
"tools/web/incremental-web-build.mjs"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"typecheck"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build"
|
||||
],
|
||||
"timeoutSeconds": 180
|
||||
},
|
||||
{
|
||||
"id": "authoring-lint",
|
||||
"argv": [
|
||||
"node",
|
||||
"node_modules/eslint/bin/eslint.js",
|
||||
"app/src/app/App.tsx",
|
||||
"tests/e2e/rna-reflection-extended-native.spec.ts"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"lint"
|
||||
],
|
||||
"timeoutSeconds": 90,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "chromium-authoring",
|
||||
"argv": [
|
||||
"node",
|
||||
"node_modules/@playwright/test/cli.js",
|
||||
"test",
|
||||
"tests/e2e/rna-reflection-extended-native.spec.ts",
|
||||
"--workers=1",
|
||||
"--max-failures=1"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"chromium",
|
||||
"positive",
|
||||
"negative",
|
||||
"undo_redo",
|
||||
"save_reopen",
|
||||
"determinism"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build",
|
||||
"web-build",
|
||||
"authoring-lint"
|
||||
],
|
||||
"timeoutSeconds": 180,
|
||||
"continueOnFailure": true
|
||||
}
|
||||
],
|
||||
"cases": [
|
||||
{
|
||||
"id": "rna-reflection-extended-positive",
|
||||
"kind": "positive",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/rna-reflection-extended-positive.json",
|
||||
"unitIds": [
|
||||
"rna-struct:BlenderRNA",
|
||||
"rna-struct:Mesh",
|
||||
"rna-struct:Object"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "rna-reflection-extended-negative",
|
||||
"kind": "negative",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/rna-reflection-extended-negative.json",
|
||||
"unitIds": [
|
||||
"rna-struct:BlenderRNA",
|
||||
"rna-struct:Mesh",
|
||||
"rna-struct:Object"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "rna-reflection-extended-undo_redo",
|
||||
"kind": "undo_redo",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/rna-reflection-extended-undo_redo.json",
|
||||
"unitIds": [
|
||||
"rna-struct:BlenderRNA",
|
||||
"rna-struct:Mesh",
|
||||
"rna-struct:Object"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "rna-reflection-extended-save_reopen",
|
||||
"kind": "save_reopen",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/rna-reflection-extended-save_reopen.json",
|
||||
"unitIds": [
|
||||
"rna-struct:BlenderRNA",
|
||||
"rna-struct:Mesh",
|
||||
"rna-struct:Object"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "rna-reflection-extended-determinism",
|
||||
"kind": "determinism",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/rna-reflection-extended-determinism.json",
|
||||
"unitIds": [
|
||||
"rna-struct:BlenderRNA",
|
||||
"rna-struct:Mesh",
|
||||
"rna-struct:Object"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
384
my-tools/local-workflows/SCULPT-ADVANCED-AUTHORING.json
Normal file
384
my-tools/local-workflows/SCULPT-ADVANCED-AUTHORING.json
Normal file
@@ -0,0 +1,384 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P1424-001",
|
||||
"job": "SCULPT-ADVANCED-AUTHORING",
|
||||
"parentSha256": "46a3ce65d56747da8684af422a1a94540612c767a6dcc42da7939930731399d5",
|
||||
"acceptance": "pending fresh validation",
|
||||
"result": {
|
||||
"status": "ready",
|
||||
"summary": "Stroke, mesh attributes and original desktop voxel remesh with fresh per-route evidence",
|
||||
"workflow": "Apply DRAW, masks and face sets; remesh the active mesh through bounded HTTP Blender; verify each route independently with rejection, undo/redo, persistence and replay",
|
||||
"sourceUnits": [
|
||||
"web-command:sculptStroke",
|
||||
"web-command:setSculptMeshAttributes",
|
||||
"operator:OBJECT_OT_voxel_remesh"
|
||||
],
|
||||
"routeIds": [
|
||||
"web-command:sculptStroke",
|
||||
"web-command:setSculptMeshAttributes",
|
||||
"operator:OBJECT_OT_voxel_remesh"
|
||||
],
|
||||
"sourceReferences": [
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp",
|
||||
"blender-5.2.0/source/blender/editors/object/object_remesh.cc",
|
||||
"blender-5.2.0/source/blender/blenkernel/intern/mesh_remesh_voxel.cc"
|
||||
],
|
||||
"changedFiles": [
|
||||
"my-tools/prepare_wbv2_sculpt_advanced_workflow.py",
|
||||
"web/tests/e2e/sculpt-remesh-native.spec.ts",
|
||||
"web/tests/fixtures/sculpt-remesh-main-snapshots.py"
|
||||
],
|
||||
"dependencies": [
|
||||
".emscripten-web",
|
||||
"blender-5.2.0/source/blender/blenkernel/intern/mesh_remesh_voxel.cc",
|
||||
"blender-5.2.0/source/blender/editors/object/object_remesh.cc",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"build_web_blender6/CMakeCache.txt",
|
||||
"my-tools/build_local_webengine.py",
|
||||
"my-tools/local-workflows/WEBUI-SCULPT.json",
|
||||
"my-tools/prepare_wbv2_sculpt_advanced_workflow.py",
|
||||
"my-tools/prepare_wbv2_sculpt_workflow.py",
|
||||
"tests/files/web/basic_scene.blend",
|
||||
"tools/web/deployment-http-server.mjs",
|
||||
"tools/web/incremental-web-build.mjs",
|
||||
"tools/web/server-operator-job-server.mjs",
|
||||
"tools/web/server-operator-job.py",
|
||||
"tools/web/server_operator_remesh.py",
|
||||
"tools/web/sync-web-engine-runtime.mjs",
|
||||
"web/app/src/app/App.tsx",
|
||||
"web/app/src/engine-client/WebEngineClient.ts",
|
||||
"web/app/src/workers/web-engine.worker.ts",
|
||||
"web/app/vite.config.ts",
|
||||
"web/package.json",
|
||||
"web/playwright.config.ts",
|
||||
"web/protocol/blender-operator.ts",
|
||||
"web/protocol/paint.ts",
|
||||
"web/protocol/scene-ir.ts",
|
||||
"web/protocol/sculpt.ts",
|
||||
"web/protocol/server-operator-job.ts",
|
||||
"web/protocol/web-engine.ts",
|
||||
"web/tests/e2e/sculpt-authoring-ui-production.spec.ts",
|
||||
"web/tests/e2e/sculpt-remesh-native.spec.ts",
|
||||
"web/tests/fixtures/native-ui-workflow.ts",
|
||||
"web/tests/fixtures/sculpt-remesh-main-snapshots.py",
|
||||
"web/tsconfig.json"
|
||||
],
|
||||
"artifacts": [
|
||||
"build_web_blender6/bin/web_engine.wasm",
|
||||
"build_web_blender6/bin/web_engine.js",
|
||||
"build_blender_native/bin/blender",
|
||||
"web/app/public/vendor/blender/web_engine.wasm"
|
||||
],
|
||||
"checks": [
|
||||
{
|
||||
"id": "wasm-source-build",
|
||||
"argv": [
|
||||
"python3",
|
||||
"my-tools/build_local_webengine.py"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"source_build"
|
||||
],
|
||||
"timeoutSeconds": 1200,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "web-build",
|
||||
"argv": [
|
||||
"node",
|
||||
"tools/web/incremental-web-build.mjs"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"typecheck"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build"
|
||||
],
|
||||
"timeoutSeconds": 300,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "authoring-lint",
|
||||
"argv": [
|
||||
"node",
|
||||
"node_modules/eslint/bin/eslint.js",
|
||||
"app/src/app/App.tsx",
|
||||
"protocol/paint.ts",
|
||||
"tests/e2e/sculpt-authoring-ui-production.spec.ts"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"lint"
|
||||
],
|
||||
"timeoutSeconds": 90,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "chromium-panel",
|
||||
"argv": [
|
||||
"env",
|
||||
"WEB_TEST_PORT=5376",
|
||||
"node",
|
||||
"node_modules/@playwright/test/cli.js",
|
||||
"test",
|
||||
"--config",
|
||||
"playwright.config.ts",
|
||||
"tests/e2e/sculpt-authoring-ui-production.spec.ts",
|
||||
"--grep",
|
||||
"sculpt panel",
|
||||
"--workers=1",
|
||||
"--max-failures=1"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"chromium"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build",
|
||||
"web-build",
|
||||
"authoring-lint"
|
||||
],
|
||||
"timeoutSeconds": 60,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "chromium-stroke",
|
||||
"argv": [
|
||||
"env",
|
||||
"WEB_TEST_PORT=5376",
|
||||
"node",
|
||||
"node_modules/@playwright/test/cli.js",
|
||||
"test",
|
||||
"--config",
|
||||
"playwright.config.ts",
|
||||
"tests/e2e/sculpt-authoring-ui-production.spec.ts",
|
||||
"--grep",
|
||||
"sculpt stroke",
|
||||
"--workers=1",
|
||||
"--max-failures=1"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"chromium",
|
||||
"positive",
|
||||
"negative",
|
||||
"undo_redo",
|
||||
"save_reopen",
|
||||
"determinism"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build",
|
||||
"web-build",
|
||||
"authoring-lint"
|
||||
],
|
||||
"timeoutSeconds": 60,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "chromium-attributes",
|
||||
"argv": [
|
||||
"env",
|
||||
"WEB_TEST_PORT=5376",
|
||||
"node",
|
||||
"node_modules/@playwright/test/cli.js",
|
||||
"test",
|
||||
"--config",
|
||||
"playwright.config.ts",
|
||||
"tests/e2e/sculpt-authoring-ui-production.spec.ts",
|
||||
"--grep",
|
||||
"sculpt attributes",
|
||||
"--workers=1",
|
||||
"--max-failures=1"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"chromium",
|
||||
"positive",
|
||||
"negative",
|
||||
"undo_redo",
|
||||
"save_reopen",
|
||||
"determinism"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build",
|
||||
"web-build",
|
||||
"authoring-lint"
|
||||
],
|
||||
"timeoutSeconds": 60,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "chromium-remesh",
|
||||
"argv": [
|
||||
"env",
|
||||
"WEB_TEST_PORT=5392",
|
||||
"node",
|
||||
"node_modules/@playwright/test/cli.js",
|
||||
"test",
|
||||
"tests/e2e/sculpt-remesh-native.spec.ts",
|
||||
"--workers=1",
|
||||
"--max-failures=1"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"chromium",
|
||||
"positive",
|
||||
"negative",
|
||||
"undo_redo",
|
||||
"save_reopen",
|
||||
"determinism"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build",
|
||||
"web-build",
|
||||
"authoring-lint"
|
||||
],
|
||||
"timeoutSeconds": 180,
|
||||
"continueOnFailure": true
|
||||
}
|
||||
],
|
||||
"cases": [
|
||||
{
|
||||
"id": "sculpt-stroke-positive",
|
||||
"kind": "positive",
|
||||
"checkId": "chromium-stroke",
|
||||
"receipt": "unallocated/stroke-positive.json",
|
||||
"unitIds": [
|
||||
"web-command:sculptStroke"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "sculpt-stroke-negative",
|
||||
"kind": "negative",
|
||||
"checkId": "chromium-stroke",
|
||||
"receipt": "unallocated/stroke-negative.json",
|
||||
"unitIds": [
|
||||
"web-command:sculptStroke"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "sculpt-stroke-undo_redo",
|
||||
"kind": "undo_redo",
|
||||
"checkId": "chromium-stroke",
|
||||
"receipt": "unallocated/stroke-undo_redo.json",
|
||||
"unitIds": [
|
||||
"web-command:sculptStroke"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "sculpt-stroke-save_reopen",
|
||||
"kind": "save_reopen",
|
||||
"checkId": "chromium-stroke",
|
||||
"receipt": "unallocated/stroke-save_reopen.json",
|
||||
"unitIds": [
|
||||
"web-command:sculptStroke"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "sculpt-stroke-determinism",
|
||||
"kind": "determinism",
|
||||
"checkId": "chromium-stroke",
|
||||
"receipt": "unallocated/stroke-determinism.json",
|
||||
"unitIds": [
|
||||
"web-command:sculptStroke"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "sculpt-attributes-positive",
|
||||
"kind": "positive",
|
||||
"checkId": "chromium-attributes",
|
||||
"receipt": "unallocated/attributes-positive.json",
|
||||
"unitIds": [
|
||||
"web-command:setSculptMeshAttributes"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "sculpt-attributes-negative",
|
||||
"kind": "negative",
|
||||
"checkId": "chromium-attributes",
|
||||
"receipt": "unallocated/attributes-negative.json",
|
||||
"unitIds": [
|
||||
"web-command:setSculptMeshAttributes"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "sculpt-attributes-undo_redo",
|
||||
"kind": "undo_redo",
|
||||
"checkId": "chromium-attributes",
|
||||
"receipt": "unallocated/attributes-undo_redo.json",
|
||||
"unitIds": [
|
||||
"web-command:setSculptMeshAttributes"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "sculpt-attributes-save_reopen",
|
||||
"kind": "save_reopen",
|
||||
"checkId": "chromium-attributes",
|
||||
"receipt": "unallocated/attributes-save_reopen.json",
|
||||
"unitIds": [
|
||||
"web-command:setSculptMeshAttributes"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "sculpt-attributes-determinism",
|
||||
"kind": "determinism",
|
||||
"checkId": "chromium-attributes",
|
||||
"receipt": "unallocated/attributes-determinism.json",
|
||||
"unitIds": [
|
||||
"web-command:setSculptMeshAttributes"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "sculpt-remesh-positive",
|
||||
"kind": "positive",
|
||||
"checkId": "chromium-remesh",
|
||||
"receipt": "unallocated/sculpt-remesh-positive.json",
|
||||
"unitIds": [
|
||||
"operator:OBJECT_OT_voxel_remesh"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "sculpt-remesh-negative",
|
||||
"kind": "negative",
|
||||
"checkId": "chromium-remesh",
|
||||
"receipt": "unallocated/sculpt-remesh-negative.json",
|
||||
"unitIds": [
|
||||
"operator:OBJECT_OT_voxel_remesh"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "sculpt-remesh-undo_redo",
|
||||
"kind": "undo_redo",
|
||||
"checkId": "chromium-remesh",
|
||||
"receipt": "unallocated/sculpt-remesh-undo_redo.json",
|
||||
"unitIds": [
|
||||
"operator:OBJECT_OT_voxel_remesh"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "sculpt-remesh-save_reopen",
|
||||
"kind": "save_reopen",
|
||||
"checkId": "chromium-remesh",
|
||||
"receipt": "unallocated/sculpt-remesh-save_reopen.json",
|
||||
"unitIds": [
|
||||
"operator:OBJECT_OT_voxel_remesh"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "sculpt-remesh-determinism",
|
||||
"kind": "determinism",
|
||||
"checkId": "chromium-remesh",
|
||||
"receipt": "unallocated/sculpt-remesh-determinism.json",
|
||||
"unitIds": [
|
||||
"operator:OBJECT_OT_voxel_remesh"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
183
my-tools/local-workflows/SEQUENCER-AUTHORING.json
Normal file
183
my-tools/local-workflows/SEQUENCER-AUTHORING.json
Normal file
@@ -0,0 +1,183 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P1424-001",
|
||||
"job": "SEQUENCER-AUTHORING",
|
||||
"parentSha256": "46a3ce65d56747da8684af422a1a94540612c767a6dcc42da7939930731399d5",
|
||||
"acceptance": "pending independent local validation",
|
||||
"result": {
|
||||
"status": "ready",
|
||||
"summary": "Move, rename, mute, lock and change channels of existing flat image, movie, sound and scene strips without reopening their media or replacing native strip data. Blender's native translation keeps strip animation aligned. Structural and source changes retain the existing construction path; behavior verification is deferred until all features are implemented.",
|
||||
"workflow": "Move, rename, mute, lock and change channels of existing flat image, movie, sound and scene strips without reopening their media or replacing native strip data. Blender's native translation keeps strip animation aligned. Structural and source changes retain the existing construction path; behavior verification is deferred until all features are implemented.",
|
||||
"sourceUnits": [
|
||||
"web-command:setSequencerStrips"
|
||||
],
|
||||
"routeIds": [
|
||||
"web-command:setSequencerStrips"
|
||||
],
|
||||
"sourceReferences": [
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/sequencer/intern/strip_transform.cc",
|
||||
"blender-5.2.0/source/blender/sequencer/intern/strip_relations.cc",
|
||||
"blender-5.2.0/source/blender/sequencer/intern/strip_edit.cc",
|
||||
"blender-5.2.0/source/blender/sequencer/intern/strip_add.cc",
|
||||
"blender-5.2.0/source/blender/sequencer/intern/animation.cc",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_sequencer_animation.cpp"
|
||||
],
|
||||
"changedFiles": [
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"my-tools/prepare_wbv2_sequencer_full_workflow.py"
|
||||
],
|
||||
"dependencies": [
|
||||
".emscripten-web",
|
||||
"blender-5.2.0/source/blender/sequencer/SEQ_animation.hh",
|
||||
"blender-5.2.0/source/blender/sequencer/SEQ_relations.hh",
|
||||
"blender-5.2.0/source/blender/sequencer/intern/animation.cc",
|
||||
"blender-5.2.0/source/blender/sequencer/intern/strip_add.cc",
|
||||
"blender-5.2.0/source/blender/sequencer/intern/strip_edit.cc",
|
||||
"blender-5.2.0/source/blender/sequencer/intern/strip_relations.cc",
|
||||
"blender-5.2.0/source/blender/sequencer/intern/strip_transform.cc",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_sequencer_animation.cpp",
|
||||
"build_web_blender6/CMakeCache.txt",
|
||||
"my-tools/build_local_webengine.py",
|
||||
"my-tools/prepare_wbv2_sequencer_full_workflow.py",
|
||||
"my-tools/wbv2_compilation_recipe.py",
|
||||
"tests/files/web/sequencer_scene.blend",
|
||||
"tools/web/incremental-web-build.mjs",
|
||||
"tools/web/run-incremental-typecheck.mjs",
|
||||
"tools/web/sync-web-engine-runtime.mjs",
|
||||
"web/app/src/engine-client/WebEngineClient.ts",
|
||||
"web/app/src/workers/web-engine.worker.ts",
|
||||
"web/app/vite.config.ts",
|
||||
"web/package.json",
|
||||
"web/protocol/scene-ir.ts",
|
||||
"web/protocol/sequencer.ts",
|
||||
"web/protocol/web-engine.ts",
|
||||
"web/tsconfig.json"
|
||||
],
|
||||
"artifacts": [
|
||||
"build_web_blender6/bin/web_engine.wasm",
|
||||
"build_web_blender6/bin/web_engine.js",
|
||||
"build_blender_native/bin/blender"
|
||||
],
|
||||
"checks": [
|
||||
{
|
||||
"id": "wasm-source-build",
|
||||
"argv": [
|
||||
"python3",
|
||||
"my-tools/build_local_webengine.py"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"source_build"
|
||||
],
|
||||
"timeoutSeconds": 1800
|
||||
},
|
||||
{
|
||||
"id": "web-build",
|
||||
"argv": [
|
||||
"node",
|
||||
"tools/web/incremental-web-build.mjs"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"typecheck"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build"
|
||||
],
|
||||
"timeoutSeconds": 180
|
||||
},
|
||||
{
|
||||
"id": "authoring-lint",
|
||||
"argv": [
|
||||
"node",
|
||||
"node_modules/eslint/bin/eslint.js",
|
||||
"app/src/app/App.tsx"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"lint"
|
||||
],
|
||||
"timeoutSeconds": 90,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "chromium-authoring",
|
||||
"argv": [
|
||||
"node",
|
||||
"node_modules/@playwright/test/cli.js",
|
||||
"test",
|
||||
"tests/e2e/sequencer-authoring-ui-production.spec.ts",
|
||||
"--workers=1",
|
||||
"--max-failures=1"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"chromium",
|
||||
"positive",
|
||||
"negative",
|
||||
"undo_redo",
|
||||
"save_reopen",
|
||||
"determinism"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build",
|
||||
"web-build",
|
||||
"authoring-lint"
|
||||
],
|
||||
"timeoutSeconds": 180,
|
||||
"continueOnFailure": true
|
||||
}
|
||||
],
|
||||
"cases": [
|
||||
{
|
||||
"id": "sequencer-authoring-positive",
|
||||
"kind": "positive",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/sequencer-authoring-positive.json",
|
||||
"unitIds": [
|
||||
"web-command:setSequencerStrips"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "sequencer-authoring-negative",
|
||||
"kind": "negative",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/sequencer-authoring-negative.json",
|
||||
"unitIds": [
|
||||
"web-command:setSequencerStrips"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "sequencer-authoring-undo_redo",
|
||||
"kind": "undo_redo",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/sequencer-authoring-undo_redo.json",
|
||||
"unitIds": [
|
||||
"web-command:setSequencerStrips"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "sequencer-authoring-save_reopen",
|
||||
"kind": "save_reopen",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/sequencer-authoring-save_reopen.json",
|
||||
"unitIds": [
|
||||
"web-command:setSequencerStrips"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "sequencer-authoring-determinism",
|
||||
"kind": "determinism",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/sequencer-authoring-determinism.json",
|
||||
"unitIds": [
|
||||
"web-command:setSequencerStrips"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
97
my-tools/local-workflows/SEQUENCER-COMPOSITOR-COVERAGE.json
Normal file
97
my-tools/local-workflows/SEQUENCER-COMPOSITOR-COVERAGE.json
Normal file
@@ -0,0 +1,97 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P1424-001",
|
||||
"job": "SEQUENCER-COMPOSITOR-COVERAGE",
|
||||
"parentSha256": "46a3ce65d56747da8684af422a1a94540612c767a6dcc42da7939930731399d5",
|
||||
"acceptance": "deferred until user use; no behavioral acceptance claimed",
|
||||
"result": {
|
||||
"status": "ready",
|
||||
"contractKind": "compilation_only",
|
||||
"summary": "Native sequencer strip modifier, transition, color balance and compositor graph authoring; implementation phase only.",
|
||||
"workflow": "Native sequencer strip modifier, transition, color balance and compositor graph authoring; implementation phase only.",
|
||||
"sourceUnits": [
|
||||
"web-command:setCompositorNodeGraph",
|
||||
"web-command:setSequencerColorBalance",
|
||||
"web-command:setSequencerStripModifiers",
|
||||
"web-command:setSequencerTransitions"
|
||||
],
|
||||
"routeIds": [
|
||||
"web-command:setCompositorNodeGraph",
|
||||
"web-command:setSequencerColorBalance",
|
||||
"web-command:setSequencerStripModifiers",
|
||||
"web-command:setSequencerTransitions"
|
||||
],
|
||||
"sourceReferences": [
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"blender-5.2.0/source/blender/sequencer/intern/modifiers/modifier.cc",
|
||||
"blender-5.2.0/source/blender/compositor/cached_resources/intern/cached_mask.cc"
|
||||
],
|
||||
"changedFiles": [
|
||||
"my-tools/prepare_wbv2_sequencer_compositor_workflow.py",
|
||||
"web/app/src/app/App.tsx",
|
||||
"web/protocol/sequencer.ts",
|
||||
"web/protocol/compositor-commands.ts"
|
||||
],
|
||||
"dependencies": [
|
||||
".emscripten-web",
|
||||
"blender-5.2.0/source/blender/compositor/cached_resources/intern/cached_mask.cc",
|
||||
"blender-5.2.0/source/blender/sequencer/intern/modifiers/modifier.cc",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"build_web_blender6/CMakeCache.txt",
|
||||
"my-tools/build_local_webengine.py",
|
||||
"my-tools/prepare_wbv2_sequencer_compositor_workflow.py",
|
||||
"my-tools/wbv2_compilation_recipe.py",
|
||||
"tools/web/incremental-web-build.mjs",
|
||||
"tools/web/run-incremental-typecheck.mjs",
|
||||
"tools/web/sync-web-engine-runtime.mjs",
|
||||
"web/app/src/app/App.tsx",
|
||||
"web/app/src/engine-client/WebEngineClient.ts",
|
||||
"web/app/src/workers/web-engine.worker.ts",
|
||||
"web/app/vite.config.ts",
|
||||
"web/package.json",
|
||||
"web/protocol/compositor-commands.ts",
|
||||
"web/protocol/render-compositor-commands.ts",
|
||||
"web/protocol/scene-ir.ts",
|
||||
"web/protocol/sequencer.ts",
|
||||
"web/protocol/web-engine.ts",
|
||||
"web/tsconfig.json"
|
||||
],
|
||||
"artifacts": [
|
||||
"build_web_blender6/bin/web_engine.wasm",
|
||||
"build_web_blender6/bin/web_engine.js",
|
||||
"build_blender_native/bin/blender"
|
||||
],
|
||||
"checks": [
|
||||
{
|
||||
"id": "wasm-source-build",
|
||||
"argv": [
|
||||
"python3",
|
||||
"my-tools/build_local_webengine.py"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"source_build"
|
||||
],
|
||||
"timeoutSeconds": 1800
|
||||
},
|
||||
{
|
||||
"id": "web-build",
|
||||
"argv": [
|
||||
"node",
|
||||
"tools/web/incremental-web-build.mjs"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"typecheck"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build"
|
||||
],
|
||||
"timeoutSeconds": 180
|
||||
}
|
||||
],
|
||||
"cases": []
|
||||
}
|
||||
}
|
||||
233
my-tools/local-workflows/SEQUENCER-SCENE-AUTHORING.json
Normal file
233
my-tools/local-workflows/SEQUENCER-SCENE-AUTHORING.json
Normal file
@@ -0,0 +1,233 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P1424-001",
|
||||
"job": "SEQUENCER-SCENE-AUTHORING",
|
||||
"parentSha256": "46a3ce65d56747da8684af422a1a94540612c767a6dcc42da7939930731399d5",
|
||||
"acceptance": "pending independent local validation",
|
||||
"result": {
|
||||
"status": "ready",
|
||||
"summary": "Source scene selection with native View Layer initialization and preserved effect ranges",
|
||||
"workflow": "Select another scene, create a scene strip, move, mute and remove it while preserving source-scene and existing media references through undo, redo and save/reopen",
|
||||
"sourceUnits": [
|
||||
"web-command:setSequencerStrips"
|
||||
],
|
||||
"routeIds": [
|
||||
"web-command:setSequencerStrips"
|
||||
],
|
||||
"sourceReferences": [
|
||||
"blender-5.2.0/source/blender/blenkernel/intern/idtype.cc",
|
||||
"blender-5.2.0/source/blender/blenkernel/intern/sound.cc",
|
||||
"blender-5.2.0/source/blender/editors/space_sequencer/sequencer_add_menu_scene.cc",
|
||||
"blender-5.2.0/source/blender/sequencer/intern/sequencer.cc",
|
||||
"blender-5.2.0/source/blender/sequencer/intern/strip_add.cc",
|
||||
"blender-5.2.0/source/blender/sequencer/intern/strip_edit.cc",
|
||||
"blender-5.2.0/source/blender/sequencer/intern/strip_time.cc",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_headless_fallback.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp"
|
||||
],
|
||||
"changedFiles": [
|
||||
"blender-5.2.0/source/blender/blenkernel/intern/idtype.cc",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_headless_fallback.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"my-tools/diagnose_local_scene_strips.mjs",
|
||||
"my-tools/prepare_wbv2_scene_strip_workflow.py",
|
||||
"tests/files/web/sequencer_scene_source.blend",
|
||||
"web/app/src/app/App.tsx",
|
||||
"web/tests/e2e/scene-strip-ui-production.spec.ts",
|
||||
"web/tests/fixtures/create-sequencer-scene-input.py",
|
||||
"web/tests/fixtures/scene-strip-main-snapshots.py"
|
||||
],
|
||||
"dependencies": [
|
||||
".emscripten-web",
|
||||
"blender-5.2.0/source/blender/blenkernel/intern/idtype.cc",
|
||||
"blender-5.2.0/source/blender/blenkernel/intern/sound.cc",
|
||||
"blender-5.2.0/source/blender/editors/space_sequencer/sequencer_add_menu_scene.cc",
|
||||
"blender-5.2.0/source/blender/sequencer/intern/sequencer.cc",
|
||||
"blender-5.2.0/source/blender/sequencer/intern/strip_add.cc",
|
||||
"blender-5.2.0/source/blender/sequencer/intern/strip_edit.cc",
|
||||
"blender-5.2.0/source/blender/sequencer/intern/strip_time.cc",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_headless_fallback.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"build_web_blender6/CMakeCache.txt",
|
||||
"my-tools/build_local_webengine.py",
|
||||
"my-tools/diagnose_local_scene_strips.mjs",
|
||||
"my-tools/local-workflows/SEQUENCER-STILL-AUTHORING.json",
|
||||
"my-tools/prepare_wbv2_scene_strip_workflow.py",
|
||||
"my-tools/wbv2_runtime_contract.py",
|
||||
"tests/files/web/sequencer_scene.blend",
|
||||
"tests/files/web/sequencer_scene_source.blend",
|
||||
"tools/web/incremental-web-build.mjs",
|
||||
"tools/web/run-incremental-typecheck.mjs",
|
||||
"tools/web/sync-web-engine-runtime.mjs",
|
||||
"tools/web/web-build-fingerprint.mjs",
|
||||
"web/app/src/app/App.tsx",
|
||||
"web/app/src/capabilities/blender-feature-route-catalog.json",
|
||||
"web/app/src/engine-client/WebEngineClient.ts",
|
||||
"web/app/src/sequencer/SequencerTimeline.ts",
|
||||
"web/app/src/three-adapter/viewport.ts",
|
||||
"web/app/src/workers/web-engine.worker.ts",
|
||||
"web/app/vite.config.ts",
|
||||
"web/package.json",
|
||||
"web/playwright.config.ts",
|
||||
"web/protocol/scene-ir.ts",
|
||||
"web/protocol/sequencer.ts",
|
||||
"web/protocol/web-engine.ts",
|
||||
"web/tests/e2e/scene-strip-ui-production.spec.ts",
|
||||
"web/tests/fixtures/create-sequencer-scene-input.py",
|
||||
"web/tests/fixtures/native-ui-workflow.ts",
|
||||
"web/tests/fixtures/scene-strip-main-snapshots.py",
|
||||
"web/tsconfig.json"
|
||||
],
|
||||
"artifacts": [
|
||||
"build_blender_native/bin/blender",
|
||||
"build_web_blender6/bin/web_engine.wasm",
|
||||
"build_web_blender6/bin/web_engine.js",
|
||||
"web/app/public/vendor/blender/web_engine.wasm",
|
||||
"web/app/public/vendor/blender/web_engine.js",
|
||||
"web/app/public/wasm-module-manifest.json"
|
||||
],
|
||||
"checks": [
|
||||
{
|
||||
"id": "wasm-source-build",
|
||||
"argv": [
|
||||
"python3",
|
||||
"my-tools/build_local_webengine.py"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"source_build"
|
||||
],
|
||||
"timeoutSeconds": 1200,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "native-minimal",
|
||||
"argv": [
|
||||
"node",
|
||||
"my-tools/diagnose_local_scene_strips.mjs"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"unit"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build"
|
||||
],
|
||||
"timeoutSeconds": 30,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "web-build",
|
||||
"argv": [
|
||||
"node",
|
||||
"tools/web/incremental-web-build.mjs"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"typecheck"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build",
|
||||
"native-minimal"
|
||||
],
|
||||
"timeoutSeconds": 300,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "authoring-lint",
|
||||
"argv": [
|
||||
"node",
|
||||
"node_modules/eslint/bin/eslint.js",
|
||||
"app/src/app/App.tsx"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"lint"
|
||||
],
|
||||
"timeoutSeconds": 60,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "chromium-authoring",
|
||||
"argv": [
|
||||
"env",
|
||||
"BLENDER_BIN=/home/mes123456/workinf_Blender_Wasm/build_blender_native/bin/blender",
|
||||
"WEB_TEST_PORT=5364",
|
||||
"node",
|
||||
"node_modules/@playwright/test/cli.js",
|
||||
"test",
|
||||
"--config",
|
||||
"playwright.config.ts",
|
||||
"tests/e2e/scene-strip-ui-production.spec.ts",
|
||||
"--workers=1",
|
||||
"--max-failures=1"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"chromium",
|
||||
"positive",
|
||||
"negative",
|
||||
"undo_redo",
|
||||
"save_reopen",
|
||||
"determinism"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build",
|
||||
"web-build",
|
||||
"native-minimal"
|
||||
],
|
||||
"timeoutSeconds": 180,
|
||||
"continueOnFailure": true
|
||||
}
|
||||
],
|
||||
"cases": [
|
||||
{
|
||||
"id": "scene-strip-positive",
|
||||
"kind": "positive",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/positive.json",
|
||||
"unitIds": [
|
||||
"web-command:setSequencerStrips"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "scene-strip-negative",
|
||||
"kind": "negative",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/negative.json",
|
||||
"unitIds": [
|
||||
"web-command:setSequencerStrips"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "scene-strip-undo_redo",
|
||||
"kind": "undo_redo",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/undo_redo.json",
|
||||
"unitIds": [
|
||||
"web-command:setSequencerStrips"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "scene-strip-save_reopen",
|
||||
"kind": "save_reopen",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/save_reopen.json",
|
||||
"unitIds": [
|
||||
"web-command:setSequencerStrips"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "scene-strip-determinism",
|
||||
"kind": "determinism",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/determinism.json",
|
||||
"unitIds": [
|
||||
"web-command:setSequencerStrips"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
222
my-tools/local-workflows/SEQUENCER-STILL-AUTHORING.json
Normal file
222
my-tools/local-workflows/SEQUENCER-STILL-AUTHORING.json
Normal file
@@ -0,0 +1,222 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P1424-001",
|
||||
"job": "SEQUENCER-STILL-AUTHORING",
|
||||
"parentSha256": "46a3ce65d56747da8684af422a1a94540612c767a6dcc42da7939930731399d5",
|
||||
"acceptance": "pending independent local validation",
|
||||
"result": {
|
||||
"status": "ready",
|
||||
"summary": "Native sequencer authoring requires independent behavioral validation",
|
||||
"workflow": "Move, trim, split, mute and remove a still-image strip; preserve sound and effect resources; create and remove a META strip in native Main",
|
||||
"sourceUnits": [
|
||||
"web-command:setSequencerStrips"
|
||||
],
|
||||
"routeIds": [
|
||||
"web-command:setSequencerStrips"
|
||||
],
|
||||
"sourceReferences": [
|
||||
"blender-5.2.0/source/blender/sequencer/intern/sequencer.cc",
|
||||
"blender-5.2.0/source/blender/sequencer/intern/strip_add.cc",
|
||||
"blender-5.2.0/source/blender/sequencer/intern/strip_edit.cc",
|
||||
"blender-5.2.0/source/blender/blenkernel/intern/idtype.cc",
|
||||
"blender-5.2.0/source/blender/blenkernel/intern/sound.cc",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_headless_fallback.cpp"
|
||||
],
|
||||
"changedFiles": [
|
||||
"web/app/src/app/App.tsx",
|
||||
"web/tests/e2e/sequencer-authoring-ui-production.spec.ts",
|
||||
"web/tests/fixtures/sequencer-main-snapshots.py",
|
||||
"my-tools/diagnose_local_sequencer.mjs",
|
||||
"my-tools/prepare_wbv2_sequencer_workflow.py",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"blender-5.2.0/source/blender/blenkernel/intern/idtype.cc",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_headless_fallback.cpp"
|
||||
],
|
||||
"dependencies": [
|
||||
".emscripten-web",
|
||||
"blender-5.2.0/source/blender/blenkernel/intern/idtype.cc",
|
||||
"blender-5.2.0/source/blender/blenkernel/intern/sound.cc",
|
||||
"blender-5.2.0/source/blender/sequencer/intern/sequencer.cc",
|
||||
"blender-5.2.0/source/blender/sequencer/intern/strip_add.cc",
|
||||
"blender-5.2.0/source/blender/sequencer/intern/strip_edit.cc",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_headless_fallback.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"build_web_blender6/CMakeCache.txt",
|
||||
"my-tools/build_local_webengine.py",
|
||||
"my-tools/diagnose_local_sequencer.mjs",
|
||||
"my-tools/prepare_wbv2_sequencer_workflow.py",
|
||||
"tests/files/web/sequencer_scene.blend",
|
||||
"tools/web/incremental-web-build.mjs",
|
||||
"tools/web/run-incremental-typecheck.mjs",
|
||||
"tools/web/sync-web-engine-runtime.mjs",
|
||||
"tools/web/web-build-fingerprint.mjs",
|
||||
"web/app/src/app/App.tsx",
|
||||
"web/app/src/capabilities/blender-feature-route-catalog.json",
|
||||
"web/app/src/engine-client/WebEngineClient.ts",
|
||||
"web/app/src/sequencer/SequencerTimeline.ts",
|
||||
"web/app/src/workers/web-engine.worker.ts",
|
||||
"web/app/vite.config.ts",
|
||||
"web/package.json",
|
||||
"web/playwright.config.ts",
|
||||
"web/protocol/scene-ir.ts",
|
||||
"web/protocol/sequencer.ts",
|
||||
"web/protocol/web-engine.ts",
|
||||
"web/tests/e2e/sequencer-authoring-ui-production.spec.ts",
|
||||
"web/tests/fixtures/native-ui-workflow.ts",
|
||||
"web/tests/fixtures/sequencer-main-snapshots.py",
|
||||
"web/tsconfig.json"
|
||||
],
|
||||
"artifacts": [
|
||||
"build_blender_native/bin/blender",
|
||||
"build_web_blender6/bin/web_engine.wasm",
|
||||
"build_web_blender6/bin/web_engine.js",
|
||||
"web/app/public/vendor/blender/web_engine.wasm",
|
||||
"web/app/public/vendor/blender/web_engine.js",
|
||||
"web/app/public/wasm-module-manifest.json"
|
||||
],
|
||||
"checks": [
|
||||
{
|
||||
"id": "wasm-source-build",
|
||||
"argv": [
|
||||
"python3",
|
||||
"my-tools/build_local_webengine.py"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"source_build"
|
||||
],
|
||||
"timeoutSeconds": 1200,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "native-minimal",
|
||||
"argv": [
|
||||
"node",
|
||||
"my-tools/diagnose_local_sequencer.mjs"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"unit"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build"
|
||||
],
|
||||
"timeoutSeconds": 30,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "web-build",
|
||||
"argv": [
|
||||
"node",
|
||||
"tools/web/incremental-web-build.mjs"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"typecheck"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build",
|
||||
"native-minimal"
|
||||
],
|
||||
"timeoutSeconds": 300,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "authoring-lint",
|
||||
"argv": [
|
||||
"node",
|
||||
"node_modules/eslint/bin/eslint.js",
|
||||
"app/src/app/App.tsx"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"lint"
|
||||
],
|
||||
"timeoutSeconds": 60,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "chromium-authoring",
|
||||
"argv": [
|
||||
"env",
|
||||
"BLENDER_BIN=/home/mes123456/workinf_Blender_Wasm/build_blender_native/bin/blender",
|
||||
"WEB_TEST_PORT=5358",
|
||||
"node",
|
||||
"node_modules/@playwright/test/cli.js",
|
||||
"test",
|
||||
"--config",
|
||||
"playwright.config.ts",
|
||||
"tests/e2e/sequencer-authoring-ui-production.spec.ts",
|
||||
"--workers=1",
|
||||
"--max-failures=1"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"chromium",
|
||||
"positive",
|
||||
"negative",
|
||||
"undo_redo",
|
||||
"save_reopen",
|
||||
"determinism"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build",
|
||||
"web-build",
|
||||
"native-minimal"
|
||||
],
|
||||
"timeoutSeconds": 180,
|
||||
"continueOnFailure": true
|
||||
}
|
||||
],
|
||||
"cases": [
|
||||
{
|
||||
"id": "sequencer-authoring-positive",
|
||||
"kind": "positive",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/positive.json",
|
||||
"unitIds": [
|
||||
"web-command:setSequencerStrips"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "sequencer-authoring-negative",
|
||||
"kind": "negative",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/negative.json",
|
||||
"unitIds": [
|
||||
"web-command:setSequencerStrips"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "sequencer-authoring-undo_redo",
|
||||
"kind": "undo_redo",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/undo_redo.json",
|
||||
"unitIds": [
|
||||
"web-command:setSequencerStrips"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "sequencer-authoring-save_reopen",
|
||||
"kind": "save_reopen",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/save_reopen.json",
|
||||
"unitIds": [
|
||||
"web-command:setSequencerStrips"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "sequencer-authoring-determinism",
|
||||
"kind": "determinism",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/determinism.json",
|
||||
"unitIds": [
|
||||
"web-command:setSequencerStrips"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
228
my-tools/local-workflows/SERVER-OPERATOR-JOB.json
Normal file
228
my-tools/local-workflows/SERVER-OPERATOR-JOB.json
Normal file
@@ -0,0 +1,228 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P1424-001",
|
||||
"job": "SERVER-OPERATOR-JOB",
|
||||
"parentSha256": "46a3ce65d56747da8684af422a1a94540612c767a6dcc42da7939930731399d5",
|
||||
"acceptance": "pending fresh validation",
|
||||
"result": {
|
||||
"artifacts": [
|
||||
"build_blender_native/bin/blender",
|
||||
"build_web_blender6/bin/web_engine.js",
|
||||
"build_web_blender6/bin/web_engine.wasm",
|
||||
"web/app/public/vendor/blender/web_engine.wasm"
|
||||
],
|
||||
"cases": [
|
||||
{
|
||||
"id": "server-http-positive",
|
||||
"kind": "positive",
|
||||
"checkId": "chromium-server-job",
|
||||
"receipt": "unallocated/server-http-positive.json",
|
||||
"unitIds": [
|
||||
"operator:OBJECT_OT_add",
|
||||
"operator:WM_OT_open_mainfile",
|
||||
"operator:WM_OT_save_as_mainfile"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "server-http-negative",
|
||||
"kind": "negative",
|
||||
"checkId": "chromium-server-job",
|
||||
"receipt": "unallocated/server-http-negative.json",
|
||||
"unitIds": [
|
||||
"operator:OBJECT_OT_add",
|
||||
"operator:WM_OT_open_mainfile",
|
||||
"operator:WM_OT_save_as_mainfile"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "server-http-undo_redo",
|
||||
"kind": "undo_redo",
|
||||
"checkId": "chromium-server-job",
|
||||
"receipt": "unallocated/server-http-undo_redo.json",
|
||||
"unitIds": [
|
||||
"operator:OBJECT_OT_add",
|
||||
"operator:WM_OT_open_mainfile",
|
||||
"operator:WM_OT_save_as_mainfile"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "server-http-save_reopen",
|
||||
"kind": "save_reopen",
|
||||
"checkId": "chromium-server-job",
|
||||
"receipt": "unallocated/server-http-save_reopen.json",
|
||||
"unitIds": [
|
||||
"operator:OBJECT_OT_add",
|
||||
"operator:WM_OT_open_mainfile",
|
||||
"operator:WM_OT_save_as_mainfile"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "server-http-determinism",
|
||||
"kind": "determinism",
|
||||
"checkId": "chromium-server-job",
|
||||
"receipt": "unallocated/server-http-determinism.json",
|
||||
"unitIds": [
|
||||
"operator:OBJECT_OT_add",
|
||||
"operator:WM_OT_open_mainfile",
|
||||
"operator:WM_OT_save_as_mainfile"
|
||||
]
|
||||
}
|
||||
],
|
||||
"changedFiles": [
|
||||
"web/tests/e2e/server-operator-native.spec.ts",
|
||||
"my-tools/prepare_wbv2_server_operator_job_workflow.py"
|
||||
],
|
||||
"checks": [
|
||||
{
|
||||
"argv": [
|
||||
"env",
|
||||
"EM_CONFIG=/home/mes123456/workinf_Blender_Wasm/.emscripten-web",
|
||||
"EM_LLVM_ROOT=/home/mes123456/workinf_Blender_Wasm/.emsdk/upstream/bin",
|
||||
"EM_BINARYEN_ROOT=/home/mes123456/workinf_Blender_Wasm/.emsdk/upstream",
|
||||
"EM_NODE_JS=/home/mes123456/workinf_Blender_Wasm/.emsdk/node/24.19.0_64bit/bin/node",
|
||||
"EM_LLVM_ADD_VERSION=",
|
||||
"EM_CLANG_ADD_VERSION=",
|
||||
"cmake",
|
||||
"--build",
|
||||
"build_web_blender6",
|
||||
"--target",
|
||||
"web_engine",
|
||||
"--parallel",
|
||||
"4"
|
||||
],
|
||||
"cwd": ".",
|
||||
"id": "wasm-source-build",
|
||||
"kinds": [
|
||||
"source_build"
|
||||
],
|
||||
"timeoutSeconds": 1200,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"argv": [
|
||||
"node",
|
||||
"tools/web/incremental-web-build.mjs"
|
||||
],
|
||||
"cwd": ".",
|
||||
"id": "web-build",
|
||||
"kinds": [
|
||||
"typecheck"
|
||||
],
|
||||
"timeoutSeconds": 300,
|
||||
"continueOnFailure": true,
|
||||
"dependsOn": [
|
||||
"wasm-source-build"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "authoring-lint",
|
||||
"argv": [
|
||||
"node",
|
||||
"node_modules/eslint/bin/eslint.js",
|
||||
"app/src/app/App.tsx",
|
||||
"tests/e2e/server-operator-native.spec.ts"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"lint"
|
||||
],
|
||||
"timeoutSeconds": 90,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "chromium-server-job",
|
||||
"argv": [
|
||||
"env",
|
||||
"WEB_TEST_PORT=5407",
|
||||
"node",
|
||||
"node_modules/@playwright/test/cli.js",
|
||||
"test",
|
||||
"tests/e2e/server-operator-native.spec.ts",
|
||||
"--grep",
|
||||
"catalog Add Object",
|
||||
"--workers=1",
|
||||
"--max-failures=1"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"chromium",
|
||||
"positive",
|
||||
"negative",
|
||||
"undo_redo",
|
||||
"save_reopen",
|
||||
"determinism"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build",
|
||||
"web-build",
|
||||
"authoring-lint"
|
||||
],
|
||||
"timeoutSeconds": 180
|
||||
}
|
||||
],
|
||||
"dependencies": [
|
||||
".emscripten-web",
|
||||
"blender-5.2.0/source/blender/editors/object/object_ops.cc",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"blender-5.2.0/source/blender/windowmanager/intern/wm_operators.cc",
|
||||
"build_web_blender6/CMakeCache.txt",
|
||||
"docs/web/deployment-contract.json",
|
||||
"my-tools/prepare_wbv2_server_operator_job_workflow.py",
|
||||
"tests/files/web/generated/WBV2-P2-003-MESH.EDIT_CORE.blend",
|
||||
"tests/files/web/generated/WBV2-P24-001-OBJECT_OPERATIONS.MOVE_COLLECTION.blend",
|
||||
"tests/files/web/generated/WBV2-P4-001-MODIFIER.DECLARED_SLICES.blend",
|
||||
"tests/files/web/generated/WBV2P3005Library.blend",
|
||||
"tools/web/check-deployment-http.mjs",
|
||||
"tools/web/deployment-http-server.mjs",
|
||||
"tools/web/emscripten-env.sh",
|
||||
"tools/web/incremental-web-build.mjs",
|
||||
"tools/web/run-incremental-typecheck.mjs",
|
||||
"tools/web/server-job-isolation.mjs",
|
||||
"tools/web/server-job-process.mjs",
|
||||
"tools/web/server-job-resource-budget.mjs",
|
||||
"tools/web/server-operator-job-server.mjs",
|
||||
"tools/web/server-operator-job.py",
|
||||
"tools/web/web-build-fingerprint.mjs",
|
||||
"web/app/src/app/App.tsx",
|
||||
"web/app/src/capabilities/blender-feature-route-catalog.json",
|
||||
"web/app/src/engine-client/WebEngineClient.ts",
|
||||
"web/app/src/workers/web-engine.worker.ts",
|
||||
"web/app/vite.config.ts",
|
||||
"web/package.json",
|
||||
"web/playwright.config.ts",
|
||||
"web/protocol/blender-operator.ts",
|
||||
"web/protocol/scene-ir.ts",
|
||||
"web/protocol/server-operator-job.ts",
|
||||
"web/protocol/web-engine.ts",
|
||||
"web/tests/e2e/server-blend-cross-abi.spec.ts",
|
||||
"web/tests/e2e/server-operator-native.spec.ts",
|
||||
"web/tests/e2e/server-operator-polling.spec.ts",
|
||||
"web/tests/fixtures/server-main-snapshots.py",
|
||||
"web/tests/fixtures/server-operator-runner.py",
|
||||
"web/tests/unit/server-job-process.test.mjs",
|
||||
"web/tests/unit/server-job-resource-budget.test.mjs",
|
||||
"web/tests/unit/server-operator-http.test.mjs",
|
||||
"web/tsconfig.json"
|
||||
],
|
||||
"routeIds": [
|
||||
"operator:OBJECT_OT_add",
|
||||
"operator:WM_OT_open_mainfile",
|
||||
"operator:WM_OT_save_as_mainfile"
|
||||
],
|
||||
"sourceReferences": [
|
||||
"blender-5.2.0/source/blender/editors/object/object_ops.cc",
|
||||
"blender-5.2.0/source/blender/windowmanager/intern/wm_operators.cc",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp"
|
||||
],
|
||||
"sourceUnits": [
|
||||
"operator:OBJECT_OT_add",
|
||||
"operator:WM_OT_open_mainfile",
|
||||
"operator:WM_OT_save_as_mainfile"
|
||||
],
|
||||
"status": "ready",
|
||||
"summary": "Disposable HTTP Blender operator job mutates Main and writes fresh server receipts",
|
||||
"workflow": "Submit catalog Add Object through a disposable deployment, poll native Blender, reject malformed properties, verify Main history, save/reopen and deterministic replay"
|
||||
}
|
||||
}
|
||||
94
my-tools/local-workflows/TRACKING-MASK-COVERAGE.json
Normal file
94
my-tools/local-workflows/TRACKING-MASK-COVERAGE.json
Normal file
@@ -0,0 +1,94 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P1424-001",
|
||||
"job": "TRACKING-MASK-COVERAGE",
|
||||
"parentSha256": "46a3ce65d56747da8684af422a1a94540612c767a6dcc42da7939930731399d5",
|
||||
"acceptance": "deferred until user use; no behavioral acceptance claimed",
|
||||
"result": {
|
||||
"status": "ready",
|
||||
"contractKind": "compilation_only",
|
||||
"summary": "Native tracking marker, solve and mask spline/point authoring through WebEngine Main; implementation phase only.",
|
||||
"workflow": "Native tracking marker, solve and mask spline/point authoring through WebEngine Main; implementation phase only.",
|
||||
"sourceUnits": [
|
||||
"web-command:setMaskPoint",
|
||||
"web-command:setMaskSpline",
|
||||
"web-command:setTrackingMarkers",
|
||||
"web-command:setTrackingSolve"
|
||||
],
|
||||
"routeIds": [
|
||||
"web-command:setMaskPoint",
|
||||
"web-command:setMaskSpline",
|
||||
"web-command:setTrackingMarkers",
|
||||
"web-command:setTrackingSolve"
|
||||
],
|
||||
"sourceReferences": [
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"blender-5.2.0/source/blender/blenkernel/intern/movieclip.cc",
|
||||
"blender-5.2.0/source/blender/editors/mask/mask_ops.cc"
|
||||
],
|
||||
"changedFiles": [
|
||||
"my-tools/prepare_wbv2_tracking_mask_workflow.py",
|
||||
"web/app/src/app/App.tsx",
|
||||
"web/protocol/web-engine.ts"
|
||||
],
|
||||
"dependencies": [
|
||||
".emscripten-web",
|
||||
"blender-5.2.0/source/blender/blenkernel/intern/movieclip.cc",
|
||||
"blender-5.2.0/source/blender/editors/mask/mask_ops.cc",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"build_web_blender6/CMakeCache.txt",
|
||||
"my-tools/build_local_webengine.py",
|
||||
"my-tools/prepare_wbv2_tracking_mask_workflow.py",
|
||||
"my-tools/wbv2_compilation_recipe.py",
|
||||
"tools/web/incremental-web-build.mjs",
|
||||
"tools/web/run-incremental-typecheck.mjs",
|
||||
"tools/web/sync-web-engine-runtime.mjs",
|
||||
"web/app/src/app/App.tsx",
|
||||
"web/app/src/engine-client/WebEngineClient.ts",
|
||||
"web/app/src/workers/web-engine.worker.ts",
|
||||
"web/app/vite.config.ts",
|
||||
"web/package.json",
|
||||
"web/protocol/scene-ir.ts",
|
||||
"web/protocol/tracking-mask.ts",
|
||||
"web/protocol/web-engine.ts",
|
||||
"web/tsconfig.json"
|
||||
],
|
||||
"artifacts": [
|
||||
"build_web_blender6/bin/web_engine.wasm",
|
||||
"build_web_blender6/bin/web_engine.js",
|
||||
"build_blender_native/bin/blender"
|
||||
],
|
||||
"checks": [
|
||||
{
|
||||
"id": "wasm-source-build",
|
||||
"argv": [
|
||||
"python3",
|
||||
"my-tools/build_local_webengine.py"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"source_build"
|
||||
],
|
||||
"timeoutSeconds": 1800
|
||||
},
|
||||
{
|
||||
"id": "web-build",
|
||||
"argv": [
|
||||
"node",
|
||||
"tools/web/incremental-web-build.mjs"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"typecheck"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build"
|
||||
],
|
||||
"timeoutSeconds": 180
|
||||
}
|
||||
],
|
||||
"cases": []
|
||||
}
|
||||
}
|
||||
203
my-tools/local-workflows/WEBUI-FONT-ASSETS.json
Normal file
203
my-tools/local-workflows/WEBUI-FONT-ASSETS.json
Normal file
@@ -0,0 +1,203 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P1424-001",
|
||||
"job": "WEBUI-FONT-ASSETS",
|
||||
"parentSha256": "46a3ce65d56747da8684af422a1a94540612c767a6dcc42da7939930731399d5",
|
||||
"acceptance": "pending independent local validation",
|
||||
"result": {
|
||||
"status": "ready",
|
||||
"summary": "Prepared local native authoring workflow; independent behavioral validation is mandatory",
|
||||
"workflow": "Edit font layout, import a packed browser font and link it to text; reject missing links and preserve native Main through history and reopening",
|
||||
"sourceUnits": [
|
||||
"web-command:setFontAdvanced",
|
||||
"web-command:importVFont",
|
||||
"web-command:setFontLinks"
|
||||
],
|
||||
"routeIds": [
|
||||
"web-command:setFontAdvanced",
|
||||
"web-command:importVFont",
|
||||
"web-command:setFontLinks"
|
||||
],
|
||||
"sourceReferences": [
|
||||
"blender-5.2.0/source/blender/makesrna/intern/rna_curve.cc",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp"
|
||||
],
|
||||
"changedFiles": [
|
||||
"web/tests/e2e/font-assets-ui-production.spec.ts",
|
||||
"web/tests/fixtures/font-main-snapshots.py",
|
||||
"web/tests/fixtures/native-ui-workflow.ts",
|
||||
"web/app/src/app/App.tsx"
|
||||
],
|
||||
"dependencies": [
|
||||
".emscripten-web",
|
||||
"blender-5.2.0/release/datafiles/bfont.pfb",
|
||||
"blender-5.2.0/source/blender/makesrna/intern/rna_curve.cc",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"build_web_blender6/CMakeCache.txt",
|
||||
"my-tools/build_local_webengine.py",
|
||||
"my-tools/prepare_wbv2_authoring_batch.py",
|
||||
"tests/files/web/nonmesh_scene.blend",
|
||||
"tools/web/incremental-web-build.mjs",
|
||||
"tools/web/run-incremental-typecheck.mjs",
|
||||
"tools/web/sync-web-engine-runtime.mjs",
|
||||
"tools/web/web-build-fingerprint.mjs",
|
||||
"web/app/src/app/App.tsx",
|
||||
"web/app/src/capabilities/blender-feature-route-catalog.json",
|
||||
"web/app/src/engine-client/WebEngineClient.ts",
|
||||
"web/app/src/fonts/external-vfont-import.ts",
|
||||
"web/app/src/workers/web-engine.worker.ts",
|
||||
"web/app/vite.config.ts",
|
||||
"web/package.json",
|
||||
"web/playwright.config.ts",
|
||||
"web/protocol/animation-render-commands.ts",
|
||||
"web/protocol/nonmesh-geometry-commands.ts",
|
||||
"web/protocol/scene-ir.ts",
|
||||
"web/protocol/web-engine.ts",
|
||||
"web/tests/e2e/font-assets-ui-production.spec.ts",
|
||||
"web/tests/fixtures/font-main-snapshots.py",
|
||||
"web/tests/fixtures/native-ui-workflow.ts",
|
||||
"web/tsconfig.json"
|
||||
],
|
||||
"artifacts": [
|
||||
"build_blender_native/bin/blender",
|
||||
"build_web_blender6/bin/web_engine.wasm",
|
||||
"build_web_blender6/bin/web_engine.js",
|
||||
"web/app/public/vendor/blender/web_engine.wasm",
|
||||
"web/app/public/vendor/blender/web_engine.js",
|
||||
"web/app/public/wasm-module-manifest.json"
|
||||
],
|
||||
"checks": [
|
||||
{
|
||||
"id": "wasm-source-build",
|
||||
"argv": [
|
||||
"python3",
|
||||
"my-tools/build_local_webengine.py"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"source_build"
|
||||
],
|
||||
"timeoutSeconds": 1200,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "web-build",
|
||||
"argv": [
|
||||
"node",
|
||||
"tools/web/incremental-web-build.mjs"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"typecheck"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build"
|
||||
],
|
||||
"timeoutSeconds": 300,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "authoring-lint",
|
||||
"argv": [
|
||||
"node",
|
||||
"node_modules/eslint/bin/eslint.js",
|
||||
"app/src/app/App.tsx"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"lint"
|
||||
],
|
||||
"timeoutSeconds": 60,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "chromium-authoring",
|
||||
"argv": [
|
||||
"env",
|
||||
"BLENDER_BIN=/home/mes123456/workinf_Blender_Wasm/build_blender_native/bin/blender",
|
||||
"WEB_TEST_PORT=5357",
|
||||
"node",
|
||||
"node_modules/@playwright/test/cli.js",
|
||||
"test",
|
||||
"--config",
|
||||
"playwright.config.ts",
|
||||
"tests/e2e/font-assets-ui-production.spec.ts",
|
||||
"--workers=1",
|
||||
"--max-failures=1"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"chromium",
|
||||
"positive",
|
||||
"negative",
|
||||
"undo_redo",
|
||||
"save_reopen",
|
||||
"determinism"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build",
|
||||
"web-build"
|
||||
],
|
||||
"timeoutSeconds": 180,
|
||||
"continueOnFailure": true
|
||||
}
|
||||
],
|
||||
"cases": [
|
||||
{
|
||||
"id": "font-assets-positive",
|
||||
"kind": "positive",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/positive.json",
|
||||
"unitIds": [
|
||||
"web-command:setFontAdvanced",
|
||||
"web-command:importVFont",
|
||||
"web-command:setFontLinks"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "font-assets-negative",
|
||||
"kind": "negative",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/negative.json",
|
||||
"unitIds": [
|
||||
"web-command:setFontLinks"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "font-assets-undo_redo",
|
||||
"kind": "undo_redo",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/undo_redo.json",
|
||||
"unitIds": [
|
||||
"web-command:setFontLinks"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "font-assets-save_reopen",
|
||||
"kind": "save_reopen",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/save_reopen.json",
|
||||
"unitIds": [
|
||||
"web-command:setFontAdvanced",
|
||||
"web-command:importVFont",
|
||||
"web-command:setFontLinks"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "font-assets-determinism",
|
||||
"kind": "determinism",
|
||||
"checkId": "chromium-authoring",
|
||||
"receipt": "unallocated/determinism.json",
|
||||
"unitIds": [
|
||||
"web-command:setFontAdvanced",
|
||||
"web-command:importVFont",
|
||||
"web-command:setFontLinks"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
194
my-tools/local-workflows/WEBUI-NLA-STRIP.json
Normal file
194
my-tools/local-workflows/WEBUI-NLA-STRIP.json
Normal file
@@ -0,0 +1,194 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P1424-001",
|
||||
"job": "WEBUI-NLA-STRIP",
|
||||
"parentSha256": "46a3ce65d56747da8684af422a1a94540612c767a6dcc42da7939930731399d5",
|
||||
"acceptance": "pending native Main and Chromium validation",
|
||||
"result": {
|
||||
"status": "ready",
|
||||
"summary": "Existing native NLA strip movement with Timeline UI and fresh native Main acceptance receipts",
|
||||
"workflow": "Select an NLA track and strip, edit frame start, reject overlapping strips, undo/redo and save/reopen the native Main",
|
||||
"sourceUnits": [
|
||||
"rna-struct:NlaStrip"
|
||||
],
|
||||
"routeIds": [
|
||||
"rna-struct:NlaStrip"
|
||||
],
|
||||
"sourceReferences": [
|
||||
"blender-5.2.0/source/blender/makesrna/intern/rna_nla.cc",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp"
|
||||
],
|
||||
"changedFiles": [
|
||||
"web/tests/e2e/nla-strip-ui-production.spec.ts",
|
||||
"web/tests/fixtures/nla-main-snapshots.py"
|
||||
],
|
||||
"dependencies": [
|
||||
".emscripten-web",
|
||||
"blender-5.2.0/source/blender/makesrna/intern/rna_nla.cc",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"build_web_blender6/CMakeCache.txt",
|
||||
"my-tools/prepare_wbv2_nla_workflow.py",
|
||||
"tests/files/web/nla_time_mapping_scene.blend",
|
||||
"tools/web/incremental-web-build.mjs",
|
||||
"tools/web/run-incremental-typecheck.mjs",
|
||||
"tools/web/web-build-fingerprint.mjs",
|
||||
"web/app/src/app/App.tsx",
|
||||
"web/app/src/capabilities/blender-feature-route-catalog.json",
|
||||
"web/app/src/engine-client/WebEngineClient.ts",
|
||||
"web/app/src/workers/web-engine.worker.ts",
|
||||
"web/app/vite.config.ts",
|
||||
"web/package.json",
|
||||
"web/playwright.config.ts",
|
||||
"web/protocol/animation-render-commands.ts",
|
||||
"web/protocol/nla.ts",
|
||||
"web/protocol/scene-ir.ts",
|
||||
"web/protocol/web-engine.ts",
|
||||
"web/tests/e2e/nla-strip-ui-production.spec.ts",
|
||||
"web/tests/fixtures/nla-main-snapshots.py",
|
||||
"web/tsconfig.json"
|
||||
],
|
||||
"artifacts": [
|
||||
"build_blender_native/bin/blender",
|
||||
"build_web_blender6/bin/web_engine.wasm",
|
||||
"build_web_blender6/bin/web_engine.js",
|
||||
"web/app/public/vendor/blender/web_engine.wasm"
|
||||
],
|
||||
"checks": [
|
||||
{
|
||||
"argv": [
|
||||
"env",
|
||||
"EM_CONFIG=/home/mes123456/workinf_Blender_Wasm/.emscripten-web",
|
||||
"EM_LLVM_ROOT=/home/mes123456/workinf_Blender_Wasm/.emsdk/upstream/bin",
|
||||
"EM_BINARYEN_ROOT=/home/mes123456/workinf_Blender_Wasm/.emsdk/upstream",
|
||||
"EM_NODE_JS=/home/mes123456/workinf_Blender_Wasm/.emsdk/node/24.19.0_64bit/bin/node",
|
||||
"EM_LLVM_ADD_VERSION=",
|
||||
"EM_CLANG_ADD_VERSION=",
|
||||
"cmake",
|
||||
"--build",
|
||||
"build_web_blender6",
|
||||
"--target",
|
||||
"web_engine",
|
||||
"--parallel",
|
||||
"4"
|
||||
],
|
||||
"cwd": ".",
|
||||
"id": "wasm-source-build",
|
||||
"kinds": [
|
||||
"source_build"
|
||||
],
|
||||
"timeoutSeconds": 1200,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"argv": [
|
||||
"node",
|
||||
"tools/web/incremental-web-build.mjs"
|
||||
],
|
||||
"cwd": ".",
|
||||
"id": "web-build",
|
||||
"kinds": [
|
||||
"typecheck"
|
||||
],
|
||||
"timeoutSeconds": 300,
|
||||
"continueOnFailure": true,
|
||||
"dependsOn": [
|
||||
"wasm-source-build"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "nla-ui-lint",
|
||||
"kinds": [
|
||||
"lint"
|
||||
],
|
||||
"argv": [
|
||||
"node",
|
||||
"node_modules/eslint/bin/eslint.js",
|
||||
"app/src/app/App.tsx"
|
||||
],
|
||||
"cwd": "web",
|
||||
"timeoutSeconds": 60,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "chromium-nla-ui",
|
||||
"kinds": [
|
||||
"chromium",
|
||||
"positive",
|
||||
"negative",
|
||||
"undo_redo",
|
||||
"save_reopen",
|
||||
"determinism"
|
||||
],
|
||||
"argv": [
|
||||
"env",
|
||||
"BLENDER_BIN=/home/mes123456/workinf_Blender_Wasm/build_blender_native/bin/blender",
|
||||
"WEB_TEST_PORT=5337",
|
||||
"node",
|
||||
"node_modules/@playwright/test/cli.js",
|
||||
"test",
|
||||
"--config",
|
||||
"playwright.config.ts",
|
||||
"tests/e2e/nla-strip-ui-production.spec.ts",
|
||||
"--workers=1",
|
||||
"--max-failures=1"
|
||||
],
|
||||
"cwd": "web",
|
||||
"dependsOn": [
|
||||
"wasm-source-build",
|
||||
"web-build"
|
||||
],
|
||||
"timeoutSeconds": 120,
|
||||
"continueOnFailure": true
|
||||
}
|
||||
],
|
||||
"cases": [
|
||||
{
|
||||
"id": "nla-strip-positive",
|
||||
"kind": "positive",
|
||||
"checkId": "chromium-nla-ui",
|
||||
"receipt": "unallocated/nla-strip-positive.json",
|
||||
"unitIds": [
|
||||
"rna-struct:NlaStrip"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "nla-strip-negative",
|
||||
"kind": "negative",
|
||||
"checkId": "chromium-nla-ui",
|
||||
"receipt": "unallocated/nla-strip-negative.json",
|
||||
"unitIds": [
|
||||
"rna-struct:NlaStrip"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "nla-strip-undo_redo",
|
||||
"kind": "undo_redo",
|
||||
"checkId": "chromium-nla-ui",
|
||||
"receipt": "unallocated/nla-strip-undo_redo.json",
|
||||
"unitIds": [
|
||||
"rna-struct:NlaStrip"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "nla-strip-save_reopen",
|
||||
"kind": "save_reopen",
|
||||
"checkId": "chromium-nla-ui",
|
||||
"receipt": "unallocated/nla-strip-save_reopen.json",
|
||||
"unitIds": [
|
||||
"rna-struct:NlaStrip"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "nla-strip-determinism",
|
||||
"kind": "determinism",
|
||||
"checkId": "chromium-nla-ui",
|
||||
"receipt": "unallocated/nla-strip-determinism.json",
|
||||
"unitIds": [
|
||||
"rna-struct:NlaStrip"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
457
my-tools/local-workflows/WEBUI-NONMESH-ADVANCED.json
Normal file
457
my-tools/local-workflows/WEBUI-NONMESH-ADVANCED.json
Normal file
@@ -0,0 +1,457 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P1424-001",
|
||||
"job": "WEBUI-NONMESH-ADVANCED",
|
||||
"parentSha256": "46a3ce65d56747da8684af422a1a94540612c767a6dcc42da7939930731399d5",
|
||||
"acceptance": "pending independent local validation",
|
||||
"result": {
|
||||
"status": "ready",
|
||||
"summary": "Non-mesh panel edits use native geometry and retain the active data owner",
|
||||
"workflow": "Edit Bezier handles, replace Curve splines, toggle Surface topology and delete non-mesh data; validate each route through desktop Main readback, rejection, history, persistence and replay",
|
||||
"sourceUnits": [
|
||||
"web-command:setCurveHandle",
|
||||
"web-command:setCurveSplines",
|
||||
"web-command:setSurfaceTopology",
|
||||
"web-command:deleteNonMeshData"
|
||||
],
|
||||
"routeIds": [
|
||||
"web-command:setCurveHandle",
|
||||
"web-command:setCurveSplines",
|
||||
"web-command:setSurfaceTopology",
|
||||
"web-command:deleteNonMeshData"
|
||||
],
|
||||
"sourceReferences": [
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp",
|
||||
"blender-5.2.0/source/blender/blenkernel/intern/curve.cc"
|
||||
],
|
||||
"changedFiles": [
|
||||
"web/tests/e2e/nonmesh-advanced-ui-production.spec.ts",
|
||||
"web/tests/fixtures/nonmesh-advanced-main-snapshots.py",
|
||||
"my-tools/prepare_wbv2_nonmesh_workflow.py",
|
||||
"web/app/src/app/App.tsx",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp"
|
||||
],
|
||||
"dependencies": [
|
||||
".emscripten-web",
|
||||
"blender-5.2.0/source/blender/blenkernel/intern/curve.cc",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"build_web_blender6/CMakeCache.txt",
|
||||
"my-tools/build_local_webengine.py",
|
||||
"my-tools/prepare_wbv2_nonmesh_workflow.py",
|
||||
"tests/files/web/nonmesh_scene.blend",
|
||||
"tools/web/incremental-web-build.mjs",
|
||||
"tools/web/sync-web-engine-runtime.mjs",
|
||||
"web/app/src/app/App.tsx",
|
||||
"web/app/src/engine-client/WebEngineClient.ts",
|
||||
"web/app/src/workers/web-engine.worker.ts",
|
||||
"web/app/vite.config.ts",
|
||||
"web/package.json",
|
||||
"web/playwright.config.ts",
|
||||
"web/protocol/nonmesh-binary.ts",
|
||||
"web/protocol/nonmesh-geometry-commands.ts",
|
||||
"web/protocol/scene-ir.ts",
|
||||
"web/protocol/web-engine.ts",
|
||||
"web/tests/e2e/nonmesh-advanced-ui-production.spec.ts",
|
||||
"web/tests/fixtures/native-ui-workflow.ts",
|
||||
"web/tests/fixtures/nonmesh-advanced-main-snapshots.py",
|
||||
"web/tsconfig.json"
|
||||
],
|
||||
"artifacts": [
|
||||
"build_web_blender6/bin/web_engine.wasm",
|
||||
"build_web_blender6/bin/web_engine.js",
|
||||
"build_blender_native/bin/blender"
|
||||
],
|
||||
"checks": [
|
||||
{
|
||||
"id": "wasm-source-build",
|
||||
"argv": [
|
||||
"python3",
|
||||
"my-tools/build_local_webengine.py"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"source_build"
|
||||
],
|
||||
"timeoutSeconds": 1200,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "web-build",
|
||||
"argv": [
|
||||
"node",
|
||||
"tools/web/incremental-web-build.mjs"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"typecheck"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build"
|
||||
],
|
||||
"timeoutSeconds": 300,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "authoring-lint",
|
||||
"argv": [
|
||||
"node",
|
||||
"node_modules/eslint/bin/eslint.js",
|
||||
"app/src/app/App.tsx",
|
||||
"tests/e2e/nonmesh-advanced-ui-production.spec.ts"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"lint"
|
||||
],
|
||||
"timeoutSeconds": 90,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "chromium-panel",
|
||||
"argv": [
|
||||
"env",
|
||||
"WEB_TEST_PORT=5379",
|
||||
"node",
|
||||
"node_modules/@playwright/test/cli.js",
|
||||
"test",
|
||||
"--config",
|
||||
"playwright.config.ts",
|
||||
"tests/e2e/nonmesh-advanced-ui-production.spec.ts",
|
||||
"--grep",
|
||||
"nonmesh panel ",
|
||||
"--workers=1",
|
||||
"--max-failures=1"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"chromium"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build",
|
||||
"web-build",
|
||||
"authoring-lint"
|
||||
],
|
||||
"timeoutSeconds": 75,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "chromium-handle",
|
||||
"argv": [
|
||||
"env",
|
||||
"WEB_TEST_PORT=5379",
|
||||
"node",
|
||||
"node_modules/@playwright/test/cli.js",
|
||||
"test",
|
||||
"--config",
|
||||
"playwright.config.ts",
|
||||
"tests/e2e/nonmesh-advanced-ui-production.spec.ts",
|
||||
"--grep",
|
||||
"nonmesh handle ",
|
||||
"--workers=1",
|
||||
"--max-failures=1"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"chromium",
|
||||
"positive",
|
||||
"negative",
|
||||
"undo_redo",
|
||||
"save_reopen",
|
||||
"determinism"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build",
|
||||
"web-build",
|
||||
"authoring-lint"
|
||||
],
|
||||
"timeoutSeconds": 75,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "chromium-splines",
|
||||
"argv": [
|
||||
"env",
|
||||
"WEB_TEST_PORT=5379",
|
||||
"node",
|
||||
"node_modules/@playwright/test/cli.js",
|
||||
"test",
|
||||
"--config",
|
||||
"playwright.config.ts",
|
||||
"tests/e2e/nonmesh-advanced-ui-production.spec.ts",
|
||||
"--grep",
|
||||
"nonmesh splines ",
|
||||
"--workers=1",
|
||||
"--max-failures=1"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"chromium",
|
||||
"positive",
|
||||
"negative",
|
||||
"undo_redo",
|
||||
"save_reopen",
|
||||
"determinism"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build",
|
||||
"web-build",
|
||||
"authoring-lint"
|
||||
],
|
||||
"timeoutSeconds": 75,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "chromium-surface",
|
||||
"argv": [
|
||||
"env",
|
||||
"WEB_TEST_PORT=5379",
|
||||
"node",
|
||||
"node_modules/@playwright/test/cli.js",
|
||||
"test",
|
||||
"--config",
|
||||
"playwright.config.ts",
|
||||
"tests/e2e/nonmesh-advanced-ui-production.spec.ts",
|
||||
"--grep",
|
||||
"nonmesh surface ",
|
||||
"--workers=1",
|
||||
"--max-failures=1"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"chromium",
|
||||
"positive",
|
||||
"negative",
|
||||
"undo_redo",
|
||||
"save_reopen",
|
||||
"determinism"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build",
|
||||
"web-build",
|
||||
"authoring-lint"
|
||||
],
|
||||
"timeoutSeconds": 75,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "chromium-delete",
|
||||
"argv": [
|
||||
"env",
|
||||
"WEB_TEST_PORT=5379",
|
||||
"node",
|
||||
"node_modules/@playwright/test/cli.js",
|
||||
"test",
|
||||
"--config",
|
||||
"playwright.config.ts",
|
||||
"tests/e2e/nonmesh-advanced-ui-production.spec.ts",
|
||||
"--grep",
|
||||
"nonmesh delete ",
|
||||
"--workers=1",
|
||||
"--max-failures=1"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"chromium",
|
||||
"positive",
|
||||
"negative",
|
||||
"undo_redo",
|
||||
"save_reopen",
|
||||
"determinism"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build",
|
||||
"web-build",
|
||||
"authoring-lint"
|
||||
],
|
||||
"timeoutSeconds": 75,
|
||||
"continueOnFailure": true
|
||||
}
|
||||
],
|
||||
"cases": [
|
||||
{
|
||||
"id": "nonmesh-handle-positive",
|
||||
"kind": "positive",
|
||||
"checkId": "chromium-handle",
|
||||
"receipt": "unallocated/handle-positive.json",
|
||||
"unitIds": [
|
||||
"web-command:setCurveHandle"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "nonmesh-handle-negative",
|
||||
"kind": "negative",
|
||||
"checkId": "chromium-handle",
|
||||
"receipt": "unallocated/handle-negative.json",
|
||||
"unitIds": [
|
||||
"web-command:setCurveHandle"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "nonmesh-handle-undo_redo",
|
||||
"kind": "undo_redo",
|
||||
"checkId": "chromium-handle",
|
||||
"receipt": "unallocated/handle-undo_redo.json",
|
||||
"unitIds": [
|
||||
"web-command:setCurveHandle"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "nonmesh-handle-save_reopen",
|
||||
"kind": "save_reopen",
|
||||
"checkId": "chromium-handle",
|
||||
"receipt": "unallocated/handle-save_reopen.json",
|
||||
"unitIds": [
|
||||
"web-command:setCurveHandle"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "nonmesh-handle-determinism",
|
||||
"kind": "determinism",
|
||||
"checkId": "chromium-handle",
|
||||
"receipt": "unallocated/handle-determinism.json",
|
||||
"unitIds": [
|
||||
"web-command:setCurveHandle"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "nonmesh-splines-positive",
|
||||
"kind": "positive",
|
||||
"checkId": "chromium-splines",
|
||||
"receipt": "unallocated/splines-positive.json",
|
||||
"unitIds": [
|
||||
"web-command:setCurveSplines"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "nonmesh-splines-negative",
|
||||
"kind": "negative",
|
||||
"checkId": "chromium-splines",
|
||||
"receipt": "unallocated/splines-negative.json",
|
||||
"unitIds": [
|
||||
"web-command:setCurveSplines"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "nonmesh-splines-undo_redo",
|
||||
"kind": "undo_redo",
|
||||
"checkId": "chromium-splines",
|
||||
"receipt": "unallocated/splines-undo_redo.json",
|
||||
"unitIds": [
|
||||
"web-command:setCurveSplines"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "nonmesh-splines-save_reopen",
|
||||
"kind": "save_reopen",
|
||||
"checkId": "chromium-splines",
|
||||
"receipt": "unallocated/splines-save_reopen.json",
|
||||
"unitIds": [
|
||||
"web-command:setCurveSplines"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "nonmesh-splines-determinism",
|
||||
"kind": "determinism",
|
||||
"checkId": "chromium-splines",
|
||||
"receipt": "unallocated/splines-determinism.json",
|
||||
"unitIds": [
|
||||
"web-command:setCurveSplines"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "nonmesh-surface-positive",
|
||||
"kind": "positive",
|
||||
"checkId": "chromium-surface",
|
||||
"receipt": "unallocated/surface-positive.json",
|
||||
"unitIds": [
|
||||
"web-command:setSurfaceTopology"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "nonmesh-surface-negative",
|
||||
"kind": "negative",
|
||||
"checkId": "chromium-surface",
|
||||
"receipt": "unallocated/surface-negative.json",
|
||||
"unitIds": [
|
||||
"web-command:setSurfaceTopology"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "nonmesh-surface-undo_redo",
|
||||
"kind": "undo_redo",
|
||||
"checkId": "chromium-surface",
|
||||
"receipt": "unallocated/surface-undo_redo.json",
|
||||
"unitIds": [
|
||||
"web-command:setSurfaceTopology"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "nonmesh-surface-save_reopen",
|
||||
"kind": "save_reopen",
|
||||
"checkId": "chromium-surface",
|
||||
"receipt": "unallocated/surface-save_reopen.json",
|
||||
"unitIds": [
|
||||
"web-command:setSurfaceTopology"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "nonmesh-surface-determinism",
|
||||
"kind": "determinism",
|
||||
"checkId": "chromium-surface",
|
||||
"receipt": "unallocated/surface-determinism.json",
|
||||
"unitIds": [
|
||||
"web-command:setSurfaceTopology"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "nonmesh-delete-positive",
|
||||
"kind": "positive",
|
||||
"checkId": "chromium-delete",
|
||||
"receipt": "unallocated/delete-positive.json",
|
||||
"unitIds": [
|
||||
"web-command:deleteNonMeshData"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "nonmesh-delete-negative",
|
||||
"kind": "negative",
|
||||
"checkId": "chromium-delete",
|
||||
"receipt": "unallocated/delete-negative.json",
|
||||
"unitIds": [
|
||||
"web-command:deleteNonMeshData"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "nonmesh-delete-undo_redo",
|
||||
"kind": "undo_redo",
|
||||
"checkId": "chromium-delete",
|
||||
"receipt": "unallocated/delete-undo_redo.json",
|
||||
"unitIds": [
|
||||
"web-command:deleteNonMeshData"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "nonmesh-delete-save_reopen",
|
||||
"kind": "save_reopen",
|
||||
"checkId": "chromium-delete",
|
||||
"receipt": "unallocated/delete-save_reopen.json",
|
||||
"unitIds": [
|
||||
"web-command:deleteNonMeshData"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "nonmesh-delete-determinism",
|
||||
"kind": "determinism",
|
||||
"checkId": "chromium-delete",
|
||||
"receipt": "unallocated/delete-determinism.json",
|
||||
"unitIds": [
|
||||
"web-command:deleteNonMeshData"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
285
my-tools/local-workflows/WEBUI-OPERATOR-PALETTE.json
Normal file
285
my-tools/local-workflows/WEBUI-OPERATOR-PALETTE.json
Normal file
@@ -0,0 +1,285 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P1424-001",
|
||||
"job": "WEBUI-OPERATOR-PALETTE",
|
||||
"parentSha256": "46a3ce65d56747da8684af422a1a94540612c767a6dcc42da7939930731399d5",
|
||||
"acceptance": "pending fresh validation",
|
||||
"result": {
|
||||
"status": "ready",
|
||||
"summary": "F3 search, native property editing and persistence with same-file reopen",
|
||||
"workflow": "Search a native cube operator through F3, reject an oversized name, create geometry, undo/redo, reopen and replay after reloading the app; retain the separate server remesh behavior checks",
|
||||
"sourceUnits": [
|
||||
"web-command:createPrimitive",
|
||||
"operator:WM_OT_open_mainfile",
|
||||
"operator:OBJECT_OT_voxel_remesh"
|
||||
],
|
||||
"routeIds": [
|
||||
"web-command:createPrimitive",
|
||||
"operator:WM_OT_open_mainfile",
|
||||
"operator:OBJECT_OT_voxel_remesh"
|
||||
],
|
||||
"sourceReferences": [
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp",
|
||||
"blender-5.2.0/source/blender/editors/object/object_remesh.cc",
|
||||
"blender-5.2.0/source/blender/blenkernel/intern/mesh_remesh_voxel.cc"
|
||||
],
|
||||
"changedFiles": [
|
||||
"web/tests/e2e/operator-palette-native.spec.ts",
|
||||
"my-tools/prepare_wbv2_webui_operator_palette_workflow.py",
|
||||
"web/app/src/app/App.tsx"
|
||||
],
|
||||
"dependencies": [
|
||||
".emscripten-web",
|
||||
"blender-5.2.0/source/blender/blenkernel/intern/mesh_remesh_voxel.cc",
|
||||
"blender-5.2.0/source/blender/editors/object/object_remesh.cc",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"build_web_blender6/CMakeCache.txt",
|
||||
"my-tools/build_local_webengine.py",
|
||||
"my-tools/local-workflows/NATIVE-OPERATOR-BRIDGE.json",
|
||||
"my-tools/local-workflows/SCULPT-ADVANCED-AUTHORING.json",
|
||||
"my-tools/local-workflows/WEBUI-SCULPT.json",
|
||||
"my-tools/prepare_wbv2_native_operator_bridge_workflow.py",
|
||||
"my-tools/prepare_wbv2_sculpt_advanced_workflow.py",
|
||||
"my-tools/prepare_wbv2_sculpt_workflow.py",
|
||||
"my-tools/prepare_wbv2_webui_operator_palette_workflow.py",
|
||||
"tests/files/web/basic_scene.blend",
|
||||
"tools/web/deployment-http-server.mjs",
|
||||
"tools/web/incremental-web-build.mjs",
|
||||
"tools/web/server-operator-job-server.mjs",
|
||||
"tools/web/server-operator-job.py",
|
||||
"tools/web/server_operator_remesh.py",
|
||||
"tools/web/sync-web-engine-runtime.mjs",
|
||||
"web/app/src/app/App.tsx",
|
||||
"web/app/src/engine-client/WebEngineClient.ts",
|
||||
"web/app/src/workers/web-engine.worker.ts",
|
||||
"web/app/vite.config.ts",
|
||||
"web/package.json",
|
||||
"web/playwright.config.ts",
|
||||
"web/protocol/blender-operator.ts",
|
||||
"web/protocol/paint.ts",
|
||||
"web/protocol/scene-ir.ts",
|
||||
"web/protocol/sculpt.ts",
|
||||
"web/protocol/server-operator-job.ts",
|
||||
"web/protocol/web-engine.ts",
|
||||
"web/tests/e2e/native-operator-bridge.spec.ts",
|
||||
"web/tests/e2e/operator-palette-native.spec.ts",
|
||||
"web/tests/e2e/sculpt-authoring-ui-production.spec.ts",
|
||||
"web/tests/e2e/sculpt-remesh-native.spec.ts",
|
||||
"web/tests/fixtures/native-ui-workflow.ts",
|
||||
"web/tests/fixtures/operator-bridge-main.py",
|
||||
"web/tests/fixtures/sculpt-remesh-main-snapshots.py",
|
||||
"web/tsconfig.json"
|
||||
],
|
||||
"artifacts": [
|
||||
"build_web_blender6/bin/web_engine.wasm",
|
||||
"build_web_blender6/bin/web_engine.js",
|
||||
"build_blender_native/bin/blender",
|
||||
"web/app/public/vendor/blender/web_engine.wasm"
|
||||
],
|
||||
"checks": [
|
||||
{
|
||||
"id": "wasm-source-build",
|
||||
"argv": [
|
||||
"python3",
|
||||
"my-tools/build_local_webengine.py"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"source_build"
|
||||
],
|
||||
"timeoutSeconds": 1200,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "web-build",
|
||||
"argv": [
|
||||
"node",
|
||||
"tools/web/incremental-web-build.mjs"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"typecheck"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build"
|
||||
],
|
||||
"timeoutSeconds": 300,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "authoring-lint",
|
||||
"argv": [
|
||||
"node",
|
||||
"node_modules/eslint/bin/eslint.js",
|
||||
"app/src/app/App.tsx",
|
||||
"protocol/paint.ts",
|
||||
"tests/e2e/sculpt-authoring-ui-production.spec.ts"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"lint"
|
||||
],
|
||||
"timeoutSeconds": 90,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "chromium-remesh",
|
||||
"argv": [
|
||||
"env",
|
||||
"WEB_TEST_PORT=5392",
|
||||
"node",
|
||||
"node_modules/@playwright/test/cli.js",
|
||||
"test",
|
||||
"tests/e2e/sculpt-remesh-native.spec.ts",
|
||||
"--workers=1",
|
||||
"--max-failures=1"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"chromium",
|
||||
"positive",
|
||||
"negative",
|
||||
"undo_redo",
|
||||
"save_reopen",
|
||||
"determinism"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build",
|
||||
"web-build",
|
||||
"authoring-lint"
|
||||
],
|
||||
"timeoutSeconds": 180,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "chromium-palette",
|
||||
"argv": [
|
||||
"env",
|
||||
"WEB_TEST_PORT=5395",
|
||||
"node",
|
||||
"node_modules/@playwright/test/cli.js",
|
||||
"test",
|
||||
"tests/e2e/operator-palette-native.spec.ts",
|
||||
"--workers=1",
|
||||
"--max-failures=1"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"chromium",
|
||||
"positive",
|
||||
"negative",
|
||||
"undo_redo",
|
||||
"save_reopen",
|
||||
"determinism"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build",
|
||||
"web-build",
|
||||
"authoring-lint"
|
||||
],
|
||||
"timeoutSeconds": 180
|
||||
}
|
||||
],
|
||||
"cases": [
|
||||
{
|
||||
"id": "sculpt-remesh-positive",
|
||||
"kind": "positive",
|
||||
"checkId": "chromium-remesh",
|
||||
"receipt": "unallocated/sculpt-remesh-positive.json",
|
||||
"unitIds": [
|
||||
"operator:OBJECT_OT_voxel_remesh"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "sculpt-remesh-negative",
|
||||
"kind": "negative",
|
||||
"checkId": "chromium-remesh",
|
||||
"receipt": "unallocated/sculpt-remesh-negative.json",
|
||||
"unitIds": [
|
||||
"operator:OBJECT_OT_voxel_remesh"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "sculpt-remesh-undo_redo",
|
||||
"kind": "undo_redo",
|
||||
"checkId": "chromium-remesh",
|
||||
"receipt": "unallocated/sculpt-remesh-undo_redo.json",
|
||||
"unitIds": [
|
||||
"operator:OBJECT_OT_voxel_remesh"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "sculpt-remesh-save_reopen",
|
||||
"kind": "save_reopen",
|
||||
"checkId": "chromium-remesh",
|
||||
"receipt": "unallocated/sculpt-remesh-save_reopen.json",
|
||||
"unitIds": [
|
||||
"operator:OBJECT_OT_voxel_remesh"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "sculpt-remesh-determinism",
|
||||
"kind": "determinism",
|
||||
"checkId": "chromium-remesh",
|
||||
"receipt": "unallocated/sculpt-remesh-determinism.json",
|
||||
"unitIds": [
|
||||
"operator:OBJECT_OT_voxel_remesh"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "operator-palette-positive",
|
||||
"kind": "positive",
|
||||
"checkId": "chromium-palette",
|
||||
"receipt": "unallocated/operator-palette-positive.json",
|
||||
"unitIds": [
|
||||
"web-command:createPrimitive",
|
||||
"operator:WM_OT_open_mainfile"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "operator-palette-negative",
|
||||
"kind": "negative",
|
||||
"checkId": "chromium-palette",
|
||||
"receipt": "unallocated/operator-palette-negative.json",
|
||||
"unitIds": [
|
||||
"web-command:createPrimitive",
|
||||
"operator:WM_OT_open_mainfile"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "operator-palette-undo_redo",
|
||||
"kind": "undo_redo",
|
||||
"checkId": "chromium-palette",
|
||||
"receipt": "unallocated/operator-palette-undo_redo.json",
|
||||
"unitIds": [
|
||||
"web-command:createPrimitive",
|
||||
"operator:WM_OT_open_mainfile"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "operator-palette-save_reopen",
|
||||
"kind": "save_reopen",
|
||||
"checkId": "chromium-palette",
|
||||
"receipt": "unallocated/operator-palette-save_reopen.json",
|
||||
"unitIds": [
|
||||
"web-command:createPrimitive",
|
||||
"operator:WM_OT_open_mainfile"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "operator-palette-determinism",
|
||||
"kind": "determinism",
|
||||
"checkId": "chromium-palette",
|
||||
"receipt": "unallocated/operator-palette-determinism.json",
|
||||
"unitIds": [
|
||||
"web-command:createPrimitive",
|
||||
"operator:WM_OT_open_mainfile"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
292
my-tools/local-workflows/WEBUI-SCULPT.json
Normal file
292
my-tools/local-workflows/WEBUI-SCULPT.json
Normal file
@@ -0,0 +1,292 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P1424-001",
|
||||
"job": "WEBUI-SCULPT",
|
||||
"parentSha256": "46a3ce65d56747da8684af422a1a94540612c767a6dcc42da7939930731399d5",
|
||||
"acceptance": "pending independent local validation",
|
||||
"result": {
|
||||
"status": "ready",
|
||||
"summary": "Sculpt panel separates persisted face sets from transient active-face state",
|
||||
"workflow": "Apply a DRAW stroke; edit mask and face sets in the panel; independently verify each native route through rejection, history, save/reopen and replay",
|
||||
"sourceUnits": [
|
||||
"web-command:sculptStroke",
|
||||
"web-command:setSculptMeshAttributes"
|
||||
],
|
||||
"routeIds": [
|
||||
"web-command:sculptStroke",
|
||||
"web-command:setSculptMeshAttributes"
|
||||
],
|
||||
"sourceReferences": [
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp"
|
||||
],
|
||||
"changedFiles": [
|
||||
"web/tests/e2e/sculpt-authoring-ui-production.spec.ts",
|
||||
"web/protocol/paint.ts",
|
||||
"my-tools/prepare_wbv2_sculpt_workflow.py"
|
||||
],
|
||||
"dependencies": [
|
||||
".emscripten-web",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"build_web_blender6/CMakeCache.txt",
|
||||
"my-tools/build_local_webengine.py",
|
||||
"my-tools/prepare_wbv2_sculpt_workflow.py",
|
||||
"tests/files/web/basic_scene.blend",
|
||||
"tools/web/incremental-web-build.mjs",
|
||||
"tools/web/sync-web-engine-runtime.mjs",
|
||||
"web/app/src/app/App.tsx",
|
||||
"web/app/src/engine-client/WebEngineClient.ts",
|
||||
"web/app/src/workers/web-engine.worker.ts",
|
||||
"web/app/vite.config.ts",
|
||||
"web/package.json",
|
||||
"web/playwright.config.ts",
|
||||
"web/protocol/paint.ts",
|
||||
"web/protocol/scene-ir.ts",
|
||||
"web/protocol/sculpt.ts",
|
||||
"web/protocol/web-engine.ts",
|
||||
"web/tests/e2e/sculpt-authoring-ui-production.spec.ts",
|
||||
"web/tests/fixtures/native-ui-workflow.ts",
|
||||
"web/tsconfig.json"
|
||||
],
|
||||
"artifacts": [
|
||||
"build_web_blender6/bin/web_engine.wasm",
|
||||
"build_web_blender6/bin/web_engine.js"
|
||||
],
|
||||
"checks": [
|
||||
{
|
||||
"id": "wasm-source-build",
|
||||
"argv": [
|
||||
"python3",
|
||||
"my-tools/build_local_webengine.py"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"source_build"
|
||||
],
|
||||
"timeoutSeconds": 1200,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "web-build",
|
||||
"argv": [
|
||||
"node",
|
||||
"tools/web/incremental-web-build.mjs"
|
||||
],
|
||||
"cwd": ".",
|
||||
"kinds": [
|
||||
"typecheck"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build"
|
||||
],
|
||||
"timeoutSeconds": 300,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "authoring-lint",
|
||||
"argv": [
|
||||
"node",
|
||||
"node_modules/eslint/bin/eslint.js",
|
||||
"app/src/app/App.tsx",
|
||||
"protocol/paint.ts",
|
||||
"tests/e2e/sculpt-authoring-ui-production.spec.ts"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"lint"
|
||||
],
|
||||
"timeoutSeconds": 90,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "chromium-panel",
|
||||
"argv": [
|
||||
"env",
|
||||
"WEB_TEST_PORT=5376",
|
||||
"node",
|
||||
"node_modules/@playwright/test/cli.js",
|
||||
"test",
|
||||
"--config",
|
||||
"playwright.config.ts",
|
||||
"tests/e2e/sculpt-authoring-ui-production.spec.ts",
|
||||
"--grep",
|
||||
"sculpt panel",
|
||||
"--workers=1",
|
||||
"--max-failures=1"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"chromium"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build",
|
||||
"web-build",
|
||||
"authoring-lint"
|
||||
],
|
||||
"timeoutSeconds": 60,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "chromium-stroke",
|
||||
"argv": [
|
||||
"env",
|
||||
"WEB_TEST_PORT=5376",
|
||||
"node",
|
||||
"node_modules/@playwright/test/cli.js",
|
||||
"test",
|
||||
"--config",
|
||||
"playwright.config.ts",
|
||||
"tests/e2e/sculpt-authoring-ui-production.spec.ts",
|
||||
"--grep",
|
||||
"sculpt stroke",
|
||||
"--workers=1",
|
||||
"--max-failures=1"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"chromium",
|
||||
"positive",
|
||||
"negative",
|
||||
"undo_redo",
|
||||
"save_reopen",
|
||||
"determinism"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build",
|
||||
"web-build",
|
||||
"authoring-lint"
|
||||
],
|
||||
"timeoutSeconds": 60,
|
||||
"continueOnFailure": true
|
||||
},
|
||||
{
|
||||
"id": "chromium-attributes",
|
||||
"argv": [
|
||||
"env",
|
||||
"WEB_TEST_PORT=5376",
|
||||
"node",
|
||||
"node_modules/@playwright/test/cli.js",
|
||||
"test",
|
||||
"--config",
|
||||
"playwright.config.ts",
|
||||
"tests/e2e/sculpt-authoring-ui-production.spec.ts",
|
||||
"--grep",
|
||||
"sculpt attributes",
|
||||
"--workers=1",
|
||||
"--max-failures=1"
|
||||
],
|
||||
"cwd": "web",
|
||||
"kinds": [
|
||||
"chromium",
|
||||
"positive",
|
||||
"negative",
|
||||
"undo_redo",
|
||||
"save_reopen",
|
||||
"determinism"
|
||||
],
|
||||
"dependsOn": [
|
||||
"wasm-source-build",
|
||||
"web-build",
|
||||
"authoring-lint"
|
||||
],
|
||||
"timeoutSeconds": 60,
|
||||
"continueOnFailure": true
|
||||
}
|
||||
],
|
||||
"cases": [
|
||||
{
|
||||
"id": "sculpt-stroke-positive",
|
||||
"kind": "positive",
|
||||
"checkId": "chromium-stroke",
|
||||
"receipt": "unallocated/stroke-positive.json",
|
||||
"unitIds": [
|
||||
"web-command:sculptStroke"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "sculpt-stroke-negative",
|
||||
"kind": "negative",
|
||||
"checkId": "chromium-stroke",
|
||||
"receipt": "unallocated/stroke-negative.json",
|
||||
"unitIds": [
|
||||
"web-command:sculptStroke"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "sculpt-stroke-undo_redo",
|
||||
"kind": "undo_redo",
|
||||
"checkId": "chromium-stroke",
|
||||
"receipt": "unallocated/stroke-undo_redo.json",
|
||||
"unitIds": [
|
||||
"web-command:sculptStroke"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "sculpt-stroke-save_reopen",
|
||||
"kind": "save_reopen",
|
||||
"checkId": "chromium-stroke",
|
||||
"receipt": "unallocated/stroke-save_reopen.json",
|
||||
"unitIds": [
|
||||
"web-command:sculptStroke"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "sculpt-stroke-determinism",
|
||||
"kind": "determinism",
|
||||
"checkId": "chromium-stroke",
|
||||
"receipt": "unallocated/stroke-determinism.json",
|
||||
"unitIds": [
|
||||
"web-command:sculptStroke"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "sculpt-attributes-positive",
|
||||
"kind": "positive",
|
||||
"checkId": "chromium-attributes",
|
||||
"receipt": "unallocated/attributes-positive.json",
|
||||
"unitIds": [
|
||||
"web-command:setSculptMeshAttributes"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "sculpt-attributes-negative",
|
||||
"kind": "negative",
|
||||
"checkId": "chromium-attributes",
|
||||
"receipt": "unallocated/attributes-negative.json",
|
||||
"unitIds": [
|
||||
"web-command:setSculptMeshAttributes"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "sculpt-attributes-undo_redo",
|
||||
"kind": "undo_redo",
|
||||
"checkId": "chromium-attributes",
|
||||
"receipt": "unallocated/attributes-undo_redo.json",
|
||||
"unitIds": [
|
||||
"web-command:setSculptMeshAttributes"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "sculpt-attributes-save_reopen",
|
||||
"kind": "save_reopen",
|
||||
"checkId": "chromium-attributes",
|
||||
"receipt": "unallocated/attributes-save_reopen.json",
|
||||
"unitIds": [
|
||||
"web-command:setSculptMeshAttributes"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "sculpt-attributes-determinism",
|
||||
"kind": "determinism",
|
||||
"checkId": "chromium-attributes",
|
||||
"receipt": "unallocated/attributes-determinism.json",
|
||||
"unitIds": [
|
||||
"web-command:setSculptMeshAttributes"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
78
my-tools/prepare_behavior_pending.py
Normal file
78
my-tools/prepare_behavior_pending.py
Normal file
@@ -0,0 +1,78 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Prepare actionable repair tasks from declared workflow inputs and failures."""
|
||||
import json
|
||||
from pathlib import Path
|
||||
from wbv2_autopilot import ROOT, read_json, write_json
|
||||
|
||||
REQUIRED = {
|
||||
"positive": ["before", "after"],
|
||||
"negative": ["before", "after"],
|
||||
"undo_redo": ["before", "after", "undo", "redo"],
|
||||
"save_reopen": ["saved", "reopened"],
|
||||
"determinism": ["first", "second"],
|
||||
}
|
||||
|
||||
|
||||
def prepare(root=ROOT):
|
||||
root = Path(root)
|
||||
backlog = read_json(root / "tests/golden/WBV2/web-product-backlog.json", {})
|
||||
records = read_json(root / "tests/golden/WBV2/autopilot/state.json", {}).get("jobs", {})
|
||||
tasks = []
|
||||
for job in backlog.get("tasks", []):
|
||||
identifier = job["id"]
|
||||
path = root / "my-tools/local-workflows" / (identifier + ".json")
|
||||
if not path.is_file():
|
||||
path = root / "tests/golden/WBV2/autopilot/local-plans" / (identifier + ".json")
|
||||
contract = read_json(path, {})
|
||||
result = contract.get("result", {})
|
||||
record = records.get(identifier, {})
|
||||
incomplete = result.get("contractKind") == "compilation_only" or not result.get("cases")
|
||||
failed = record.get("state") in {"blocked", "provider_blocked", "needs_reconcile"} or (
|
||||
record.get("state") == "retry_pending" and bool(record.get("reason")))
|
||||
if not incomplete and not failed:
|
||||
continue
|
||||
declared = sorted(set(result.get("dependencies", [])))
|
||||
fixtures = [p for p in declared if p.endswith(".blend") and (root / p).is_file()]
|
||||
specs = sorted({p for check in result.get("checks", []) for p in check.get("argv", [])
|
||||
if p.endswith(".spec.ts")})
|
||||
specs = [p if p.startswith("web/") else "web/" + p for p in specs]
|
||||
category = "behavior_contract_missing" if incomplete else "runtime_failure"
|
||||
reason = record.get("reason") or category
|
||||
if not incomplete and "receipt" in reason:
|
||||
category = "receipt_producer_mismatch"
|
||||
if not incomplete and not specs:
|
||||
category = "receipt_producer_missing"
|
||||
tasks.append({
|
||||
"job": identifier, "module": job.get("module"), "workflow": job.get("title"),
|
||||
"state": "behavior_pending" if incomplete else "repair_required",
|
||||
"category": category, "reason": reason,
|
||||
"fixtures": fixtures, "fixtureSelectionRequired": not bool(fixtures),
|
||||
"routeIds": result.get("routeIds", []),
|
||||
"sourceUnits": result.get("sourceUnits", []),
|
||||
"sourceReferences": result.get("sourceReferences", []),
|
||||
"candidateTests": [p for p in specs if (root / p).is_file()],
|
||||
"missingTests": [p for p in specs if not (root / p).is_file()],
|
||||
"requiredObservations": REQUIRED,
|
||||
"nextActions": [
|
||||
"Inspect the declared native route and fixture data",
|
||||
"Implement assertions and independent replay for this workflow",
|
||||
"Publish receipts only after assertions; bind exact caseId, kind and unitIds",
|
||||
],
|
||||
"runDirectory": record.get("runDirectory"),
|
||||
})
|
||||
destination = root / "tests/golden/WBV2/autopilot/behavior-pending.json"
|
||||
document = {"schemaVersion": 2, "policy": "repair plan only; no contract or acceptance mutation", "tasks": tasks}
|
||||
if read_json(destination, {}) != document:
|
||||
write_json(destination, document)
|
||||
return document
|
||||
|
||||
|
||||
def main():
|
||||
document = prepare()
|
||||
print(json.dumps({"tasks": len(document["tasks"]),
|
||||
"behaviorPending": sum(t["state"] == "behavior_pending" for t in document["tasks"]),
|
||||
"repairRequired": sum(t["state"] == "repair_required" for t in document["tasks"])}))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
87
my-tools/prepare_wbv2_animation_workflow.py
Normal file
87
my-tools/prepare_wbv2_animation_workflow.py
Normal file
@@ -0,0 +1,87 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Admit the five animation routes after native behavioral checks."""
|
||||
|
||||
import hashlib
|
||||
import json
|
||||
import pathlib
|
||||
import subprocess
|
||||
from wbv2_execution_phase import implementation_only
|
||||
|
||||
ROOT = pathlib.Path(__file__).resolve().parents[1]
|
||||
JOB = "ANIMATION-FCURVE-DRIVER-COVERAGE"
|
||||
|
||||
|
||||
def main():
|
||||
context = json.loads(subprocess.check_output(
|
||||
["node", "tools/web/print-task-context.mjs"], cwd=ROOT, text=True))
|
||||
if not implementation_only(ROOT):
|
||||
subprocess.run(["node", "tools/web/check-task-context.mjs"], cwd=ROOT,
|
||||
check=True, stdout=subprocess.DEVNULL)
|
||||
template = ROOT / "my-tools/local-workflows/ACTION-MARKER-AUTHORING.json"
|
||||
document = json.loads(template.read_text())
|
||||
parent = ROOT / context["sourceDocuments"]["parentManifest"]
|
||||
document.update(task=context["task"], job=JOB,
|
||||
parentSha256=hashlib.sha256(parent.read_bytes()).hexdigest())
|
||||
result = document["result"]
|
||||
result["summary"] = "Animation routes verified against evaluated desktop Main behavior"
|
||||
result["workflow"] = "Edit FCurve points, object drivers, layered Action groups and absolute Keying Sets, then bake evaluated object transforms with history and persistence"
|
||||
commands = ["setFCurveKeyframes", "setDriverExpression", "setActionGroups", "setKeyingSet", "bakeAnimation"]
|
||||
units = [f"web-command:{command}" for command in commands]
|
||||
result["sourceUnits"] = units
|
||||
result["routeIds"] = units
|
||||
result["sourceReferences"] = [
|
||||
"blender-5.2.0/source/blender/blenkernel/intern/anim_sys.cc",
|
||||
"blender-5.2.0/source/blender/blenkernel/intern/fcurve_driver.cc",
|
||||
"blender-5.2.0/source/blender/animrig/intern/action.cc",
|
||||
"blender-5.2.0/source/blender/animrig/intern/evaluation.cc",
|
||||
"blender-5.2.0/source/blender/makesrna/intern/rna_access.cc",
|
||||
"blender-5.2.0/source/blender/makesrna/intern/rna_path.cc",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_rna_fallback.cpp",
|
||||
]
|
||||
result["changedFiles"] = [
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_rna_fallback.cpp",
|
||||
"web/app/src/app/App.tsx",
|
||||
"web/tests/e2e/animation-authoring-ui-production.spec.ts",
|
||||
"web/tests/fixtures/animation-authoring-main-snapshots.py",
|
||||
"my-tools/diagnose_local_animation_authoring.mjs",
|
||||
"my-tools/prepare_wbv2_animation_workflow.py",
|
||||
"tools/web/inspect-workflow-controls.mjs",
|
||||
]
|
||||
replaced = {
|
||||
"my-tools/prepare_wbv2_authoring_batch.py": "my-tools/prepare_wbv2_animation_workflow.py",
|
||||
"web/tests/e2e/action-marker-ui-production.spec.ts": "web/tests/e2e/animation-authoring-ui-production.spec.ts",
|
||||
"web/tests/fixtures/action-main-snapshots.py": "web/tests/fixtures/animation-authoring-main-snapshots.py",
|
||||
}
|
||||
result["dependencies"] = sorted(set(replaced.get(value, value) for value in result["dependencies"]) |
|
||||
set(result["sourceReferences"]) | set(result["changedFiles"]) | {
|
||||
str(template.relative_to(ROOT)), "my-tools/wbv2_runtime_contract.py",
|
||||
"web/app/src/three-adapter/viewport.ts",
|
||||
})
|
||||
for check in result["checks"]:
|
||||
check["argv"] = [value.replace("action-marker-ui-production.spec.ts", "animation-authoring-ui-production.spec.ts")
|
||||
.replace("WEB_TEST_PORT=5357", "WEB_TEST_PORT=5365") for value in check["argv"]]
|
||||
if check["id"] == "web-build":
|
||||
check["dependsOn"] = ["wasm-source-build", "native-animation"]
|
||||
result["checks"].insert(1, {
|
||||
"id": "native-animation", "argv": ["env", f"BLENDER_BIN={ROOT / 'build_blender_native/bin/blender'}",
|
||||
"node", "my-tools/diagnose_local_animation_authoring.mjs", "--indexed-path"],
|
||||
"cwd": ".", "kinds": ["unit"], "dependsOn": ["wasm-source-build"],
|
||||
"timeoutSeconds": 60, "continueOnFailure": True,
|
||||
})
|
||||
for case in result["cases"]:
|
||||
case.update(id=f"animation-authoring-{case['kind']}",
|
||||
receipt=f"unallocated/{case['kind']}.json", unitIds=units)
|
||||
missing = [path for path in result["dependencies"] if not (ROOT / path).is_file()]
|
||||
if missing:
|
||||
raise RuntimeError("Missing local dependency: " + ", ".join(missing))
|
||||
target = ROOT / "my-tools/local-workflows" / f"{JOB}.json"
|
||||
target.write_text(json.dumps(document, indent=2) + "\n")
|
||||
print(json.dumps({"job": JOB, "contract": str(target.relative_to(ROOT)), "state": "prepared", "routes": len(units)}))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
74
my-tools/prepare_wbv2_armature_workflow.py
Normal file
74
my-tools/prepare_wbv2_armature_workflow.py
Normal file
@@ -0,0 +1,74 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Prepare independent native bone, hierarchy and constraint workflow checks."""
|
||||
|
||||
import hashlib
|
||||
import json
|
||||
import pathlib
|
||||
import subprocess
|
||||
from wbv2_execution_phase import implementation_only
|
||||
|
||||
ROOT = pathlib.Path(__file__).resolve().parents[1]
|
||||
JOB = "ARMATURE-EDITOR-COVERAGE"
|
||||
PREPARATION_INPUTS = [
|
||||
"web/tests/e2e/armature-editor-coverage-ui-production.spec.ts",
|
||||
"web/tests/fixtures/armature-authoring-main-snapshots.py",
|
||||
"tests/files/web/pose_constraint_scene.blend",
|
||||
]
|
||||
|
||||
|
||||
def main():
|
||||
context = json.loads(subprocess.check_output(["node", "tools/web/print-task-context.mjs"], cwd=ROOT, text=True))
|
||||
if not implementation_only(ROOT):
|
||||
subprocess.run(["node", "tools/web/check-task-context.mjs"], cwd=ROOT, check=True, stdout=subprocess.DEVNULL)
|
||||
test_path, reader, fixture = PREPARATION_INPUTS
|
||||
sources = ["blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.h",
|
||||
"blender-5.2.0/source/blender/blenkernel/intern/armature.cc",
|
||||
"blender-5.2.0/source/blender/blenkernel/BKE_armature.hh"]
|
||||
changed = [test_path, reader, "my-tools/prepare_wbv2_armature_workflow.py", "web/app/src/app/App.tsx",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp"]
|
||||
deps = sorted(set(sources + changed + [
|
||||
".emscripten-web", "build_web_blender6/CMakeCache.txt", "my-tools/build_local_webengine.py",
|
||||
"tools/web/incremental-web-build.mjs", "tools/web/sync-web-engine-runtime.mjs", fixture,
|
||||
"web/tests/fixtures/native-ui-workflow.ts", "web/protocol/web-engine.ts", "web/protocol/scene-ir.ts",
|
||||
"web/app/src/workers/web-engine.worker.ts", "web/app/src/engine-client/WebEngineClient.ts",
|
||||
"web/app/vite.config.ts", "web/tsconfig.json", "web/package.json", "web/playwright.config.ts",
|
||||
]))
|
||||
missing = [path for path in deps if not (ROOT / path).is_file()]
|
||||
if missing:
|
||||
raise RuntimeError(f"Missing dependencies: {missing}")
|
||||
checks = [
|
||||
{"id": "wasm-source-build", "argv": ["python3", "my-tools/build_local_webengine.py"], "cwd": ".", "kinds": ["source_build"], "timeoutSeconds": 1200, "continueOnFailure": True},
|
||||
{"id": "web-build", "argv": ["node", "tools/web/incremental-web-build.mjs"], "cwd": ".", "kinds": ["typecheck"], "dependsOn": ["wasm-source-build"], "timeoutSeconds": 300, "continueOnFailure": True},
|
||||
{"id": "authoring-lint", "argv": ["node", "node_modules/eslint/bin/eslint.js", "app/src/app/App.tsx", test_path.removeprefix("web/")], "cwd": "web", "kinds": ["lint"], "timeoutSeconds": 90, "continueOnFailure": True},
|
||||
]
|
||||
kinds = ["positive", "negative", "undo_redo", "save_reopen", "determinism"]
|
||||
commands = {"edit": "armatureEditOperations", "roll": "setBoneRoll", "symmetry": "setBoneSymmetry",
|
||||
"parent": "setBoneParenting", "constraint": "setPoseConstraint"}
|
||||
cases = []
|
||||
for route in ["panel", *commands]:
|
||||
identifier = f"chromium-{route}"
|
||||
checks.append({"id": identifier, "argv": ["env", "WEB_TEST_PORT=5378", "node", "node_modules/@playwright/test/cli.js", "test", "--config", "playwright.config.ts", test_path.removeprefix("web/"), "--grep", f"armature {route} ", "--workers=1", "--max-failures=1"], "cwd": "web", "kinds": ["chromium", *(kinds if route in commands else [])], "dependsOn": ["wasm-source-build", "web-build", "authoring-lint"], "timeoutSeconds": 75, "continueOnFailure": True})
|
||||
if route in commands:
|
||||
cases.extend({"id": f"armature-{route}-{kind}", "kind": kind, "checkId": identifier,
|
||||
"receipt": f"unallocated/{route}-{kind}.json", "unitIds": [f"web-command:{commands[route]}"]} for kind in kinds)
|
||||
units = [f"web-command:{command}" for command in commands.values()]
|
||||
result = {"status": "ready", "summary": "Selected-bone authoring with shared native transaction recovery",
|
||||
"workflow": "Edit bones, roll, mirror state, parenting and targeted pose constraints; retain the selected armature and verify each route through desktop Main readback, rejection, history, persistence and replay",
|
||||
"sourceUnits": units, "routeIds": units, "sourceReferences": sources, "changedFiles": changed,
|
||||
"dependencies": deps, "artifacts": ["build_web_blender6/bin/web_engine.wasm", "build_web_blender6/bin/web_engine.js", "build_blender_native/bin/blender"],
|
||||
"checks": checks, "cases": cases}
|
||||
document = {"schemaVersion": 1, "task": context["task"], "job": JOB,
|
||||
"parentSha256": hashlib.sha256((ROOT / context["sourceDocuments"]["parentManifest"]).read_bytes()).hexdigest(),
|
||||
"acceptance": "pending independent local validation", "result": result}
|
||||
target = ROOT / "my-tools/local-workflows" / f"{JOB}.json"
|
||||
temporary = target.with_suffix(".json.tmp")
|
||||
temporary.write_text(json.dumps(document, indent=2) + "\n")
|
||||
temporary.replace(target)
|
||||
print(json.dumps({"job": JOB, "state": "prepared", "checks": len(checks), "cases": len(cases)}))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
10
my-tools/prepare_wbv2_asset_library_workflow.py
Normal file
10
my-tools/prepare_wbv2_asset_library_workflow.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from wbv2_compilation_recipe import prepare
|
||||
|
||||
JOB = "ASSET-LIBRARY-COVERAGE"
|
||||
|
||||
if __name__ == "__main__":
|
||||
prepare(JOB, "Native asset marking, catalog and library link/override/reload routes use Blender asset APIs; implementation phase only.",
|
||||
["operator:ASSET_OT_mark", "operator:ASSET_OT_catalog_new", "operator:ASSET_OT_library_reload_listing"],
|
||||
["blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp", "blender-5.2.0/source/blender/web_engine/web_engine_api.cpp", "blender-5.2.0/source/blender/editors/asset/intern/asset_ops.cc", "blender-5.2.0/source/blender/asset_system/intern/asset_library.cc"],
|
||||
["my-tools/prepare_wbv2_asset_library_workflow.py", "web/app/src/app/App.tsx", "web/protocol/web-engine.ts"],
|
||||
["web/protocol/asset-library-io.ts", "web/protocol/web-engine.ts"])
|
||||
78
my-tools/prepare_wbv2_authoring_batch.py
Normal file
78
my-tools/prepare_wbv2_authoring_batch.py
Normal file
@@ -0,0 +1,78 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Prepare bounded font and animation contracts from the supplied native entries."""
|
||||
import copy
|
||||
import json
|
||||
|
||||
from wbv2_autopilot import Autopilot, ROOT, contained, queue_context, write_json
|
||||
|
||||
|
||||
WORKFLOWS = {
|
||||
"WEBUI-FONT-ASSETS": {
|
||||
"slug": "font-assets", "test": "font-assets-ui-production.spec.ts", "reader": "font-main-snapshots.py", "fixture": "nonmesh_scene.blend",
|
||||
"units": ["web-command:setFontAdvanced", "web-command:importVFont", "web-command:setFontLinks"],
|
||||
"negative": ["web-command:setFontLinks"], "history": ["web-command:setFontLinks"],
|
||||
"source": ["blender-5.2.0/source/blender/makesrna/intern/rna_curve.cc"],
|
||||
"assets": ["blender-5.2.0/release/datafiles/bfont.pfb", "web/app/src/fonts/external-vfont-import.ts"],
|
||||
"workflow": "Edit font layout, import a packed browser font and link it to text; reject missing links and preserve native Main through history and reopening",
|
||||
},
|
||||
"ACTION-MARKER-AUTHORING": {
|
||||
"slug": "action-marker", "test": "action-marker-ui-production.spec.ts", "reader": "action-main-snapshots.py", "fixture": "animation_scene.blend",
|
||||
"units": ["web-command:createAction", "web-command:removeAction", "web-command:setKeyframe", "web-command:setFCurveKeyframes", "web-command:setTimelineMarkers"],
|
||||
"negative": ["web-command:setTimelineMarkers"], "history": ["web-command:setTimelineMarkers"],
|
||||
"source": ["blender-5.2.0/source/blender/makesrna/intern/rna_action.cc", "blender-5.2.0/source/blender/makesrna/intern/rna_timeline.cc"],
|
||||
"assets": [],
|
||||
"workflow": "Create and remove Actions, edit keyframes and their handles, and add, rename, move and delete timeline markers through native Main",
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
def main():
|
||||
runner = Autopilot()
|
||||
context = queue_context(ROOT)
|
||||
jobs = {job["id"]: job for job in runner.jobs(context)}
|
||||
results = []
|
||||
for identifier, spec in WORKFLOWS.items():
|
||||
if identifier not in jobs:
|
||||
raise ValueError("workflow is not in the authorized backlog")
|
||||
test = "web/tests/e2e/" + spec["test"]
|
||||
reader = "web/tests/fixtures/" + spec["reader"]
|
||||
references = spec["source"] + ["blender-5.2.0/source/blender/web_engine/web_engine_api.cpp", "blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp", "blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp"]
|
||||
dependencies = sorted(set(jobs[identifier]["ownedPaths"] + references + spec["assets"] + [
|
||||
test, reader, "web/tests/fixtures/native-ui-workflow.ts", "tests/files/web/" + spec["fixture"],
|
||||
"web/app/src/engine-client/WebEngineClient.ts", "web/app/src/workers/web-engine.worker.ts",
|
||||
"web/protocol/scene-ir.ts", "web/protocol/web-engine.ts", "web/protocol/animation-render-commands.ts", "web/protocol/nonmesh-geometry-commands.ts",
|
||||
"web/app/vite.config.ts", "web/app/src/capabilities/blender-feature-route-catalog.json", "web/playwright.config.ts", "web/package.json", "web/tsconfig.json",
|
||||
"my-tools/build_local_webengine.py", "tools/web/sync-web-engine-runtime.mjs", "tools/web/incremental-web-build.mjs", "tools/web/run-incremental-typecheck.mjs", "tools/web/web-build-fingerprint.mjs",
|
||||
".emscripten-web", "build_web_blender6/CMakeCache.txt", "my-tools/prepare_wbv2_authoring_batch.py",
|
||||
]))
|
||||
behavior = ["positive", "negative", "undo_redo", "save_reopen", "determinism"]
|
||||
result = {
|
||||
"status": "ready", "summary": "Prepared local native authoring workflow; independent behavioral validation is mandatory", "workflow": spec["workflow"],
|
||||
"sourceUnits": spec["units"], "routeIds": spec["units"], "sourceReferences": references,
|
||||
"changedFiles": [test, reader, "web/tests/fixtures/native-ui-workflow.ts", "web/app/src/app/App.tsx"] + (["blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp", "blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp"] if identifier == "ACTION-MARKER-AUTHORING" else []),
|
||||
"dependencies": dependencies,
|
||||
"artifacts": ["build_blender_native/bin/blender", "build_web_blender6/bin/web_engine.wasm", "build_web_blender6/bin/web_engine.js", "web/app/public/vendor/blender/web_engine.wasm", "web/app/public/vendor/blender/web_engine.js", "web/app/public/wasm-module-manifest.json"],
|
||||
"checks": [
|
||||
{"id": "wasm-source-build", "argv": ["python3", "my-tools/build_local_webengine.py"], "cwd": ".", "kinds": ["source_build"], "timeoutSeconds": 1200, "continueOnFailure": True},
|
||||
{"id": "web-build", "argv": ["node", "tools/web/incremental-web-build.mjs"], "cwd": ".", "kinds": ["typecheck"], "dependsOn": ["wasm-source-build"], "timeoutSeconds": 300, "continueOnFailure": True},
|
||||
{"id": "authoring-lint", "argv": ["node", "node_modules/eslint/bin/eslint.js", "app/src/app/App.tsx"], "cwd": "web", "kinds": ["lint"], "timeoutSeconds": 60, "continueOnFailure": True},
|
||||
{"id": "chromium-authoring", "argv": ["env", "BLENDER_BIN=" + str(ROOT / "build_blender_native/bin/blender"), "WEB_TEST_PORT=5357", "node", "node_modules/@playwright/test/cli.js", "test", "--config", "playwright.config.ts", "tests/e2e/" + spec["test"], "--workers=1", "--max-failures=1"], "cwd": "web", "kinds": ["chromium", *behavior], "dependsOn": ["wasm-source-build", "web-build"], "timeoutSeconds": 180, "continueOnFailure": True},
|
||||
],
|
||||
"cases": [{"id": spec["slug"] + "-" + kind, "kind": kind, "checkId": "chromium-authoring", "receipt": "unallocated/" + kind + ".json", "unitIds": spec["negative"] if kind == "negative" else spec["history"] if kind == "undo_redo" else spec["units"]} for kind in behavior],
|
||||
}
|
||||
for relative in dependencies + result["artifacts"]:
|
||||
if not contained(ROOT, relative).is_file():
|
||||
raise ValueError("missing local workflow prerequisite: " + relative)
|
||||
probe = runner.directory / "contract-admission" / identifier
|
||||
validated = copy.deepcopy(result)
|
||||
for case in validated["cases"]:
|
||||
case["receipt"] = str((probe / "cases" / (case["id"] + ".json")).relative_to(ROOT))
|
||||
runner.validate_result(validated, probe)
|
||||
destination = ROOT / "my-tools/local-workflows" / (identifier + ".json")
|
||||
write_json(destination, {"schemaVersion": 1, "task": context["task"], "job": identifier, "parentSha256": context["parentSha256"], "acceptance": "pending independent local validation", "result": result})
|
||||
results.append({"job": identifier, "contract": str(destination.relative_to(ROOT)), "checks": len(result["checks"]), "cases": len(result["cases"])})
|
||||
print(json.dumps({"prepared": results, "modelRequests": 0}))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
10
my-tools/prepare_wbv2_browser_equivalent_workflow.py
Normal file
10
my-tools/prepare_wbv2_browser_equivalent_workflow.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from wbv2_compilation_recipe import prepare
|
||||
|
||||
JOB = "BROWSER-EQUIVALENT-RUNTIME"
|
||||
|
||||
if __name__ == "__main__":
|
||||
prepare(JOB, "Browser-equivalent feature route invocation reuses existing native WebEngine command paths; implementation phase only.",
|
||||
["web-command:createPrimitive", "web-command:applyObjectTransform", "web-command:renderFrame"],
|
||||
["blender-5.2.0/source/blender/web_engine/web_engine_api.cpp", "blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp"],
|
||||
["my-tools/prepare_wbv2_browser_equivalent_workflow.py", "web/app/src/app/App.tsx", "web/protocol/web-engine.ts"],
|
||||
["web/protocol/scene-ir.ts"])
|
||||
34
my-tools/prepare_wbv2_curve_surface_workflow.py
Normal file
34
my-tools/prepare_wbv2_curve_surface_workflow.py
Normal file
@@ -0,0 +1,34 @@
|
||||
#!/usr/bin/env python3
|
||||
import hashlib
|
||||
import json
|
||||
import pathlib
|
||||
import subprocess
|
||||
from wbv2_execution_phase import implementation_only
|
||||
|
||||
ROOT = pathlib.Path(__file__).resolve().parents[1]
|
||||
JOB = "CURVE-SURFACE-COVERAGE"
|
||||
|
||||
def main():
|
||||
context = json.loads(subprocess.check_output(["node", "tools/web/print-task-context.mjs"], cwd=ROOT, text=True))
|
||||
if not implementation_only(ROOT):
|
||||
subprocess.run(["node", "tools/web/check-task-context.mjs"], cwd=ROOT, check=True, stdout=subprocess.DEVNULL)
|
||||
parent = ROOT / context["sourceDocuments"]["parentManifest"]
|
||||
source_refs = [
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"blender-5.2.0/source/blender/blenkernel/intern/curve.cc",
|
||||
]
|
||||
changed = ["web/tests/e2e/wbv2-curve-surface-coverage-production.spec.ts", "my-tools/prepare_wbv2_curve_surface_workflow.py"]
|
||||
deps = sorted(set(source_refs + changed + [".emscripten-web", "build_web_blender6/CMakeCache.txt", "my-tools/build_local_webengine.py", "tools/web/incremental-web-build.mjs", "tools/web/sync-web-engine-runtime.mjs", "tests/files/web/nonmesh_scene.blend", "web/app/src/app/App.tsx", "web/app/src/workers/web-engine.worker.ts", "web/protocol/nonmesh-geometry-commands.ts", "web/protocol/web-engine.ts", "web/tests/fixtures/native-ui-workflow.ts", "web/tsconfig.json", "web/package.json", "web/playwright.config.ts"]))
|
||||
missing = [item for item in deps if not (ROOT / item).is_file()]
|
||||
if missing: raise RuntimeError("Missing dependency: " + ", ".join(missing))
|
||||
kinds = ["positive", "negative", "undo_redo", "save_reopen", "determinism"]
|
||||
units = {"positive": ["web-command:setCurveBevel", "web-command:setCurveTaper", "web-command:convertCurveType", "web-command:setSurfaceResolution"], "negative": ["web-command:setCurveBevel"], "undo_redo": ["web-command:setSurfaceResolution"], "save_reopen": ["web-command:setSurfaceResolution"], "determinism": ["web-command:setCurveBevel"]}
|
||||
checks = [{"id": "wasm-source-build", "argv": ["python3", "my-tools/build_local_webengine.py"], "cwd": ".", "kinds": ["source_build"], "timeoutSeconds": 1200, "continueOnFailure": True}, {"id": "web-build", "argv": ["node", "tools/web/incremental-web-build.mjs"], "cwd": ".", "kinds": ["typecheck"], "dependsOn": ["wasm-source-build"], "timeoutSeconds": 300, "continueOnFailure": True}, {"id": "authoring-lint", "argv": ["node", "node_modules/eslint/bin/eslint.js", "app/src/app/App.tsx"], "cwd": "web", "kinds": ["lint"], "timeoutSeconds": 90, "continueOnFailure": True}, {"id": "chromium-authoring", "argv": ["env", "WEB_TEST_PORT=5373", "node", "node_modules/@playwright/test/cli.js", "test", "--config", "playwright.config.ts", "tests/e2e/wbv2-curve-surface-coverage-production.spec.ts", "--workers=1", "--max-failures=1"], "cwd": "web", "kinds": ["chromium", *kinds], "dependsOn": ["wasm-source-build", "web-build", "authoring-lint"], "timeoutSeconds": 180, "continueOnFailure": True}]
|
||||
result = {"status": "ready", "summary": "Curve bevel/taper/conversion and surface resolution use native Main", "workflow": "Mutate curve bevel and taper, convert curve to surface, set surface resolution, then verify rejection, undo/redo, save/reopen and deterministic replay", "sourceUnits": sorted({unit for values in units.values() for unit in values}), "routeIds": sorted({unit for values in units.values() for unit in values}), "sourceReferences": source_refs, "changedFiles": changed, "dependencies": deps, "artifacts": ["build_blender_native/bin/blender", "build_web_blender6/bin/web_engine.wasm", "build_web_blender6/bin/web_engine.js", "web/app/public/vendor/blender/web_engine.wasm", "web/app/public/vendor/blender/web_engine.js", "web/app/public/wasm-module-manifest.json"], "checks": checks, "cases": [{"id": f"curve-surface-{kind}", "kind": kind, "checkId": "chromium-authoring", "receipt": f"unallocated/{kind}.json", "unitIds": units[kind]} for kind in kinds]}
|
||||
contract = {"schemaVersion": 1, "task": context["task"], "job": JOB, "parentSha256": hashlib.sha256(parent.read_bytes()).hexdigest(), "acceptance": "pending independent local validation", "result": result}
|
||||
target = ROOT / "my-tools/local-workflows" / f"{JOB}.json"
|
||||
target.write_text(json.dumps(contract, indent=2) + "\n")
|
||||
print(json.dumps({"job": JOB, "state": "prepared", "contract": str(target.relative_to(ROOT))}))
|
||||
|
||||
if __name__ == "__main__": main()
|
||||
10
my-tools/prepare_wbv2_feature_dashboard_workflow.py
Normal file
10
my-tools/prepare_wbv2_feature_dashboard_workflow.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from wbv2_compilation_recipe import prepare
|
||||
|
||||
JOB = "FEATURE-COVERAGE-DASHBOARD"
|
||||
|
||||
if __name__ == "__main__":
|
||||
prepare(JOB, "Feature route inventory and implementation gap dashboard consumes source-bound route metadata; implementation phase only.",
|
||||
["web-command:createPrimitive", "web-command:renderFrame", "operator:OBJECT_OT_voxel_remesh"],
|
||||
["blender-5.2.0/source/blender/web_engine/web_engine_api.cpp"],
|
||||
["my-tools/prepare_wbv2_feature_dashboard_workflow.py", "web/app/src/app/App.tsx"],
|
||||
["web/protocol/blender-operator.ts", "web/protocol/web-engine.ts"])
|
||||
39
my-tools/prepare_wbv2_grease_pencil_workflow.py
Normal file
39
my-tools/prepare_wbv2_grease_pencil_workflow.py
Normal file
@@ -0,0 +1,39 @@
|
||||
"""Compile Grease Pencil Main editing with original modifier serialization."""
|
||||
|
||||
from wbv2_compilation_recipe import ROOT, prepare
|
||||
|
||||
|
||||
JOB = "GREASE-PENCIL-COVERAGE"
|
||||
PREPARATION_INPUTS = [
|
||||
"my-tools/wbv2_compilation_recipe.py",
|
||||
"blender-5.2.0/source/blender/modifiers/CMakeLists.txt",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_util.cc",
|
||||
"blender-5.2.0/source/blender/web_engine/CMakeLists.txt",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"web/app/src/app/App.tsx",
|
||||
]
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
modifiers = sorted(str(path.relative_to(ROOT)) for path in
|
||||
(ROOT / "blender-5.2.0/source/blender/modifiers/intern").glob("MOD_grease_pencil*.cc"))
|
||||
sources = modifiers + [
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_lineart.cc",
|
||||
"blender-5.2.0/source/blender/editors/grease_pencil/intern/grease_pencil_geom.cc",
|
||||
"blender-5.2.0/source/blender/editors/grease_pencil/intern/grease_pencil_lineart.cc",
|
||||
"blender-5.2.0/source/blender/editors/grease_pencil/intern/grease_pencil_edit.cc",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
]
|
||||
prepare(
|
||||
JOB,
|
||||
"Grease Pencil drawing, material, selection and interpolation Main commands retain "
|
||||
"all 26 original GP/Lineart modifier types when saving. Original callbacks are "
|
||||
"compiled into WASM; user behavior verification is deferred.",
|
||||
["web-command:setGreasePencilDrawing", "web-command:setGreasePencilMaterial",
|
||||
"web-command:setGreasePencilSelection", "web-command:setGreasePencilInterpolate"],
|
||||
sources,
|
||||
PREPARATION_INPUTS + modifiers + ["my-tools/prepare_wbv2_grease_pencil_workflow.py",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_lineart.cc"],
|
||||
["tests/files/web/modifier_grease_pencil_scene.blend"],
|
||||
)
|
||||
79
my-tools/prepare_wbv2_io_route_workflow.py
Normal file
79
my-tools/prepare_wbv2_io_route_workflow.py
Normal file
@@ -0,0 +1,79 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Prepare the bounded OBJ workflow using live Chromium and desktop Main reads."""
|
||||
from wbv2_autopilot import ROOT, queue_context, write_json
|
||||
|
||||
JOB = "IO-ROUTE-COMPLETION"
|
||||
PREPARATION_INPUTS = [
|
||||
"web/tests/e2e/io-format-operator-production.spec.ts",
|
||||
"web/tests/fixtures/io-route-main-snapshots.py",
|
||||
"tests/files/web/basic_scene.blend",
|
||||
"tests/files/web/m12_obj_multi_v1/multi-object.obj",
|
||||
]
|
||||
KINDS = ["positive", "negative", "undo_redo", "save_reopen", "determinism"]
|
||||
UNITS = ["operator:WM_OT_obj_export", "operator:WM_OT_obj_import", "operator:WM_OT_open_mainfile"]
|
||||
|
||||
|
||||
def main():
|
||||
context = queue_context(ROOT)
|
||||
sources = [
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"blender-5.2.0/source/blender/windowmanager/intern/wm_files.cc",
|
||||
"blender-5.2.0/source/blender/io/wavefront_obj/exporter/obj_exporter.cc",
|
||||
"blender-5.2.0/source/blender/io/wavefront_obj/importer/obj_importer.cc",
|
||||
]
|
||||
changed = [*PREPARATION_INPUTS[:2], "my-tools/prepare_wbv2_io_route_workflow.py"]
|
||||
dependencies = sorted(set(sources + changed + PREPARATION_INPUTS + [
|
||||
"blender-5.2.0/source/blender/io/CMakeLists.txt",
|
||||
"blender-5.2.0/source/blender/web_engine/CMakeLists.txt",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.h",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_headless_fallback.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_rna_fallback.cpp",
|
||||
"blender-5.2.0/source/blender/nodes/shader/node_shader_util.cc",
|
||||
"tests/files/web/m12_obj_multi_v1/multi-object.mtl",
|
||||
"my-tools/build_local_webengine.py", "tools/web/incremental-web-build.mjs",
|
||||
"tools/web/sync-web-engine-runtime.mjs", ".emscripten-web",
|
||||
"build_web_blender6/CMakeCache.txt", "web/app/vite.config.ts",
|
||||
"web/package.json", "web/tsconfig.json", "web/playwright.config.ts",
|
||||
"web/protocol/scene-ir.ts", "web/protocol/web-engine.ts",
|
||||
"web/app/src/app/App.tsx", "web/app/src/workers/web-engine.worker.ts",
|
||||
"web/app/src/engine-client/WebEngineClient.ts",
|
||||
]))
|
||||
for entry in dependencies:
|
||||
if not (ROOT / entry).is_file():
|
||||
raise FileNotFoundError(entry)
|
||||
checks = [
|
||||
{"id": "wasm-source-build", "argv": ["python3", "my-tools/build_local_webengine.py"],
|
||||
"cwd": ".", "kinds": ["source_build"], "timeoutSeconds": 1800},
|
||||
{"id": "web-build", "argv": ["node", "tools/web/incremental-web-build.mjs"],
|
||||
"cwd": ".", "kinds": ["typecheck"], "dependsOn": ["wasm-source-build"], "timeoutSeconds": 300},
|
||||
{"id": "authoring-lint", "argv": ["node", "node_modules/eslint/bin/eslint.js", "app/src/app/App.tsx"],
|
||||
"cwd": "web", "kinds": ["lint"], "timeoutSeconds": 90},
|
||||
{"id": "chromium-authoring", "argv": ["env", "WEB_TEST_PORT=5391", "node",
|
||||
"node_modules/@playwright/test/cli.js", "test", "tests/e2e/io-format-operator-production.spec.ts",
|
||||
"--workers=1", "--max-failures=1"], "cwd": "web", "kinds": ["chromium", *KINDS],
|
||||
"dependsOn": ["wasm-source-build", "web-build", "authoring-lint"], "timeoutSeconds": 180},
|
||||
]
|
||||
result = {
|
||||
"status": "ready",
|
||||
"summary": "Native OBJ geometry import/export; external materials and other formats remain outside this bounded workflow.",
|
||||
"workflow": "Import OBJ into Main, reject empty geometry without mutation, export OBJ, undo/redo, save/reopen and independently replay; compare browser blends and exported geometry with desktop Blender.",
|
||||
"sourceUnits": UNITS, "routeIds": UNITS, "sourceReferences": sources,
|
||||
"changedFiles": changed, "dependencies": dependencies,
|
||||
"artifacts": ["build_blender_native/bin/blender", "build_web_blender6/bin/web_engine.wasm",
|
||||
"build_web_blender6/bin/web_engine.js", "web/app/public/vendor/blender/web_engine.wasm",
|
||||
"web/app/public/vendor/blender/web_engine.js", "web/app/public/wasm-module-manifest.json"],
|
||||
"checks": checks,
|
||||
"cases": [{"id": "io-route-completion-" + kind, "kind": kind,
|
||||
"checkId": "chromium-authoring", "receipt": "unallocated/io-route-completion-" + kind + ".json",
|
||||
"unitIds": UNITS} for kind in KINDS],
|
||||
}
|
||||
target = ROOT / "my-tools/local-workflows" / (JOB + ".json")
|
||||
write_json(target, {"schemaVersion": 1, "task": context["task"], "job": JOB,
|
||||
"parentSha256": context["parentSha256"],
|
||||
"acceptance": "pending independent local validation", "result": result})
|
||||
print(target.relative_to(ROOT))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
48
my-tools/prepare_wbv2_local_workflow.py
Normal file
48
my-tools/prepare_wbv2_local_workflow.py
Normal file
@@ -0,0 +1,48 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Convert a reviewed workflow result to a local-only validation contract."""
|
||||
import argparse
|
||||
import copy
|
||||
import json
|
||||
|
||||
from wbv2_autopilot import ROOT, contained, queue_context, read_json, sha, write_json
|
||||
from wbv2_validation import prepare_validation_command
|
||||
|
||||
|
||||
def prepare(root, job, result_path):
|
||||
context = queue_context(root)
|
||||
source = contained(root, result_path)
|
||||
result = copy.deepcopy(read_json(source))
|
||||
if result.get("status") != "ready":
|
||||
raise ValueError("only a prepared implementation can become a local contract")
|
||||
# Bind only the units actually declared by positive behavioral cases.
|
||||
units = sorted({unit for case in result["cases"] if case["kind"] == "positive" for unit in case["unitIds"]})
|
||||
if not units or not set(units).issubset(result["sourceUnits"]):
|
||||
raise ValueError("positive cases do not bind declared source units")
|
||||
result["sourceUnits"] = units
|
||||
result["routeIds"] = units
|
||||
for check in result["checks"]:
|
||||
prepare_validation_command(root, check["argv"], check["cwd"])
|
||||
return {
|
||||
"schemaVersion": 1,
|
||||
"task": context["task"],
|
||||
"job": job,
|
||||
"parentSha256": sha(contained(root, context["parentManifest"])),
|
||||
"origin": {"path": result_path, "sha256": sha(source)},
|
||||
"acceptance": "pending independent local compilation and runtime validation",
|
||||
"result": result,
|
||||
}
|
||||
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(description=__doc__)
|
||||
parser.add_argument("--job", required=True)
|
||||
parser.add_argument("--result", required=True)
|
||||
args = parser.parse_args()
|
||||
contract = prepare(ROOT, args.job, args.result)
|
||||
destination = contained(ROOT, f"tests/golden/WBV2/autopilot/local-plans/{args.job}.json")
|
||||
write_json(destination, contract)
|
||||
print(json.dumps({"job": args.job, "contract": str(destination.relative_to(ROOT)), "checks": len(contract["result"]["checks"]), "sourceUnits": contract["result"]["sourceUnits"], "modelRequests": 0}))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
80
my-tools/prepare_wbv2_mesh_editor_workflow.py
Normal file
80
my-tools/prepare_wbv2_mesh_editor_workflow.py
Normal file
@@ -0,0 +1,80 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Prepare source-backed mesh/UV routes with independent native state evidence."""
|
||||
|
||||
import hashlib
|
||||
import json
|
||||
import pathlib
|
||||
import subprocess
|
||||
from wbv2_execution_phase import implementation_only
|
||||
|
||||
ROOT = pathlib.Path(__file__).resolve().parents[1]
|
||||
JOB = "MESH-EDITOR-COVERAGE"
|
||||
PREPARATION_INPUTS = [
|
||||
"web/tests/e2e/mesh-editor-coverage-ui-production.spec.ts",
|
||||
"web/tests/fixtures/mesh-editor-main-snapshots.py",
|
||||
"tests/files/web/mesh_editor_scene.blend",
|
||||
]
|
||||
|
||||
|
||||
def main():
|
||||
context = json.loads(subprocess.check_output(["node", "tools/web/print-task-context.mjs"], cwd=ROOT, text=True))
|
||||
if not implementation_only(ROOT):
|
||||
subprocess.run(["node", "tools/web/check-task-context.mjs"], cwd=ROOT, check=True, stdout=subprocess.DEVNULL)
|
||||
test_path, reader, fixture = PREPARATION_INPUTS
|
||||
sources = ["blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.h",
|
||||
"blender-5.2.0/source/blender/makesrna/intern/rna_mesh.cc"]
|
||||
changed = [test_path, reader, "my-tools/prepare_wbv2_mesh_editor_workflow.py", "web/app/src/app/App.tsx",
|
||||
"web/tests/fixtures/create-mesh-editor-input.py", fixture,
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.h"]
|
||||
dependencies = sorted(set(sources + changed + [
|
||||
".emscripten-web", "build_web_blender6/CMakeCache.txt", "my-tools/build_local_webengine.py",
|
||||
"tools/web/incremental-web-build.mjs", "tools/web/sync-web-engine-runtime.mjs",
|
||||
"tests/files/web/basic_scene.blend", "web/tests/fixtures/native-ui-workflow.ts",
|
||||
"web/protocol/web-engine.ts", "web/protocol/scene-ir.ts", "web/protocol/mesh-authoring-commands.ts",
|
||||
"web/app/src/workers/web-engine.worker.ts", "web/app/src/engine-client/WebEngineClient.ts",
|
||||
"web/app/vite.config.ts", "web/tsconfig.json", "web/package.json", "web/playwright.config.ts",
|
||||
]))
|
||||
missing = [path for path in dependencies if not (ROOT / path).is_file()]
|
||||
if missing:
|
||||
raise RuntimeError(f"Missing dependencies: {missing}")
|
||||
checks = [
|
||||
{"id": "wasm-source-build", "argv": ["python3", "my-tools/build_local_webengine.py"], "cwd": ".", "kinds": ["source_build"], "timeoutSeconds": 1200, "continueOnFailure": True},
|
||||
{"id": "web-build", "argv": ["node", "tools/web/incremental-web-build.mjs"], "cwd": ".", "kinds": ["typecheck"], "dependsOn": ["wasm-source-build"], "timeoutSeconds": 300, "continueOnFailure": True},
|
||||
{"id": "authoring-lint", "argv": ["node", "node_modules/eslint/bin/eslint.js", "app/src/app/App.tsx", test_path.removeprefix("web/")], "cwd": "web", "kinds": ["lint"], "timeoutSeconds": 90, "continueOnFailure": True},
|
||||
]
|
||||
kinds = ["positive", "negative", "undo_redo", "save_reopen", "determinism"]
|
||||
commands = {"subdivide": "meshSubdivide", "triangulate": "meshTriangulate", "normals": "meshRecalculateNormals",
|
||||
"bridge": "meshBridgeLoops", "delete": "meshDeleteElements", "uv": "meshUVProject"}
|
||||
variants = {"subdivide": ["edge", "face"], "delete": ["vert", "edge", "face"],
|
||||
"uv": ["planar", "cube", "cylinder", "sphere"]}
|
||||
cases = []
|
||||
for route in ["panel", *commands]:
|
||||
identifier = f"chromium-{route}"
|
||||
checks.append({"id": identifier, "argv": ["env", "WEB_TEST_PORT=5380", "node", "node_modules/@playwright/test/cli.js", "test", "--config", "playwright.config.ts", test_path.removeprefix("web/"), "--grep", f"mesh editor {route} ", "--workers=1", "--max-failures=1"], "cwd": "web", "kinds": ["chromium", *(kinds if route in commands else [])], "dependsOn": ["wasm-source-build", "web-build", "authoring-lint"], "timeoutSeconds": 90, "continueOnFailure": True})
|
||||
if route in commands:
|
||||
for variant in variants.get(route, [""]):
|
||||
label = f"{route}-{variant}" if variant else route
|
||||
cases.extend({"id": f"mesh-editor-{label}-{kind}", "kind": kind, "checkId": identifier,
|
||||
"receipt": f"unallocated/{label}-{kind}.json", "unitIds": [f"web-command:{commands[route]}"]} for kind in kinds)
|
||||
units = [f"web-command:{command}" for command in commands.values()]
|
||||
result = {"status": "ready", "summary": "Mesh selection and UV seams reach native Blender transactions",
|
||||
"workflow": "Subdivide selected edges/faces, triangulate, repair normals, bridge loops, delete vertices/edges/faces, and project selected UVs with edge seams; verify native Main recovery and preserve unrelated geometry",
|
||||
"sourceUnits": units, "routeIds": units, "sourceReferences": sources, "changedFiles": changed,
|
||||
"dependencies": dependencies, "artifacts": ["build_web_blender6/bin/web_engine.wasm", "build_web_blender6/bin/web_engine.js", "build_blender_native/bin/blender"],
|
||||
"checks": checks, "cases": cases}
|
||||
document = {"schemaVersion": 1, "task": context["task"], "job": JOB,
|
||||
"parentSha256": hashlib.sha256((ROOT / context["sourceDocuments"]["parentManifest"]).read_bytes()).hexdigest(),
|
||||
"acceptance": "pending independent local validation", "result": result}
|
||||
target = ROOT / "my-tools/local-workflows" / f"{JOB}.json"
|
||||
temporary = target.with_suffix(".json.tmp")
|
||||
temporary.write_text(json.dumps(document, indent=2) + "\n")
|
||||
temporary.replace(target)
|
||||
print(json.dumps({"job": JOB, "state": "prepared", "checks": len(checks), "cases": len(cases)}))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
29
my-tools/prepare_wbv2_mesh_extended_workflow.py
Normal file
29
my-tools/prepare_wbv2_mesh_extended_workflow.py
Normal file
@@ -0,0 +1,29 @@
|
||||
#!/usr/bin/env python3
|
||||
import hashlib
|
||||
import json
|
||||
import pathlib
|
||||
import subprocess
|
||||
from wbv2_execution_phase import implementation_only
|
||||
|
||||
ROOT = pathlib.Path(__file__).resolve().parents[1]
|
||||
JOB = "MESH-EXTENDED-AUTHORING"
|
||||
UNITS = {"positive": ["web-command:createPrimitive", "web-command:meshEdit"], "negative": ["web-command:createPrimitive"], "undo_redo": ["web-command:meshEdit"], "save_reopen": ["web-command:createPrimitive", "web-command:meshEdit"], "determinism": ["web-command:createPrimitive", "web-command:meshEdit"]}
|
||||
|
||||
def main():
|
||||
context = json.loads(subprocess.check_output(["node", "tools/web/print-task-context.mjs"], cwd=ROOT, text=True))
|
||||
if not implementation_only(ROOT):
|
||||
subprocess.run(["node", "tools/web/check-task-context.mjs"], cwd=ROOT, check=True, stdout=subprocess.DEVNULL)
|
||||
parent = ROOT / context["sourceDocuments"]["parentManifest"]
|
||||
source_refs = ["blender-5.2.0/source/blender/web_engine/web_engine_api.cpp", "blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp", "blender-5.2.0/source/blender/editors/object/object_ops.cc"]
|
||||
changed = ["web/tests/e2e/wbv2-mesh-extended-authoring-production.spec.ts", "my-tools/prepare_wbv2_mesh_extended_workflow.py"]
|
||||
deps = sorted(set(source_refs + changed + [".emscripten-web", "build_web_blender6/CMakeCache.txt", "my-tools/build_local_webengine.py", "tools/web/incremental-web-build.mjs", "tools/web/sync-web-engine-runtime.mjs", "tests/files/web/basic_scene.blend", "web/protocol/core-scene-commands.ts", "web/protocol/mesh-authoring-commands.ts", "web/protocol/web-engine.ts", "web/app/src/workers/web-engine.worker.ts", "web/tests/fixtures/native-ui-workflow.ts", "web/tsconfig.json", "web/package.json", "web/playwright.config.ts"]))
|
||||
missing = [item for item in deps if not (ROOT / item).is_file()]
|
||||
if missing: raise RuntimeError("Missing dependency: " + ", ".join(missing))
|
||||
kinds = list(UNITS)
|
||||
checks = [{"id": "wasm-source-build", "argv": ["python3", "my-tools/build_local_webengine.py"], "cwd": ".", "kinds": ["source_build"], "timeoutSeconds": 1200, "continueOnFailure": True}, {"id": "web-build", "argv": ["node", "tools/web/incremental-web-build.mjs"], "cwd": ".", "kinds": ["typecheck"], "dependsOn": ["wasm-source-build"], "timeoutSeconds": 300, "continueOnFailure": True}, {"id": "authoring-lint", "argv": ["node", "node_modules/eslint/bin/eslint.js", "app/src/app/App.tsx"], "cwd": "web", "kinds": ["lint"], "timeoutSeconds": 90, "continueOnFailure": True}, {"id": "chromium-authoring", "argv": ["env", "WEB_TEST_PORT=5374", "node", "node_modules/@playwright/test/cli.js", "test", "--config", "playwright.config.ts", "tests/e2e/wbv2-mesh-extended-authoring-production.spec.ts", "--workers=1", "--max-failures=1"], "cwd": "web", "kinds": ["chromium", *kinds], "dependsOn": ["wasm-source-build", "web-build", "authoring-lint"], "timeoutSeconds": 180, "continueOnFailure": True}]
|
||||
result = {"status": "ready", "summary": "Primitive creation and mesh editing use compiled native Main", "workflow": "Create a cube, extrude one face through meshEdit, reject malformed primitive input, then verify undo/redo, save/reopen and deterministic replay", "sourceUnits": sorted({unit for values in UNITS.values() for unit in values}), "routeIds": sorted({unit for values in UNITS.values() for unit in values}), "sourceReferences": source_refs, "changedFiles": changed, "dependencies": deps, "artifacts": ["build_blender_native/bin/blender", "build_web_blender6/bin/web_engine.wasm", "build_web_blender6/bin/web_engine.js", "web/app/public/vendor/blender/web_engine.wasm", "web/app/public/vendor/blender/web_engine.js", "web/app/public/wasm-module-manifest.json"], "checks": checks, "cases": [{"id": f"mesh-extended-{kind}", "kind": kind, "checkId": "chromium-authoring", "receipt": f"unallocated/{kind}.json", "unitIds": UNITS[kind]} for kind in kinds]}
|
||||
target = ROOT / "my-tools/local-workflows" / f"{JOB}.json"
|
||||
target.write_text(json.dumps({"schemaVersion": 1, "task": context["task"], "job": JOB, "parentSha256": hashlib.sha256(parent.read_bytes()).hexdigest(), "acceptance": "pending independent local validation", "result": result}, indent=2) + "\n")
|
||||
print(json.dumps({"job": JOB, "state": "prepared", "contract": str(target.relative_to(ROOT))}))
|
||||
|
||||
if __name__ == "__main__": main()
|
||||
60
my-tools/prepare_wbv2_metaball_workflow.py
Normal file
60
my-tools/prepare_wbv2_metaball_workflow.py
Normal file
@@ -0,0 +1,60 @@
|
||||
#!/usr/bin/env python3
|
||||
import hashlib
|
||||
import json
|
||||
import pathlib
|
||||
import subprocess
|
||||
from wbv2_execution_phase import implementation_only
|
||||
|
||||
ROOT = pathlib.Path(__file__).resolve().parents[1]
|
||||
JOB = "METABALL-ELEMENTS-AUTHORING"
|
||||
|
||||
|
||||
def main():
|
||||
context = json.loads(subprocess.check_output(["node", "tools/web/print-task-context.mjs"], cwd=ROOT, text=True))
|
||||
if not implementation_only(ROOT):
|
||||
subprocess.run(["node", "tools/web/check-task-context.mjs"], cwd=ROOT, check=True, stdout=subprocess.DEVNULL)
|
||||
parent = ROOT / context["sourceDocuments"]["parentManifest"]
|
||||
source_refs = [
|
||||
"blender-5.2.0/source/blender/blenkernel/intern/mball.cc",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
]
|
||||
changed = ["web/tests/e2e/wbv2-metaball-elements-production.spec.ts", "my-tools/prepare_wbv2_metaball_workflow.py"]
|
||||
deps = sorted(set(source_refs + changed + [
|
||||
".emscripten-web", "build_web_blender6/CMakeCache.txt", "my-tools/build_local_webengine.py",
|
||||
"tools/web/incremental-web-build.mjs", "tools/web/sync-web-engine-runtime.mjs",
|
||||
"web/tests/fixtures/native-ui-workflow.ts", "tests/files/web/nonmesh_scene.blend",
|
||||
"web/app/src/app/App.tsx", "web/app/src/workers/web-engine.worker.ts", "web/protocol/web-engine.ts",
|
||||
"web/tsconfig.json", "web/package.json", "web/playwright.config.ts",
|
||||
]))
|
||||
missing = [path for path in deps if not (ROOT / path).is_file()]
|
||||
if missing:
|
||||
raise RuntimeError("Missing dependency: " + ", ".join(missing))
|
||||
kinds = ["positive", "negative", "undo_redo", "save_reopen", "determinism"]
|
||||
checks = [
|
||||
{"id": "wasm-source-build", "argv": ["python3", "my-tools/build_local_webengine.py"], "cwd": ".", "kinds": ["source_build"], "timeoutSeconds": 1200, "continueOnFailure": True},
|
||||
{"id": "web-build", "argv": ["node", "tools/web/incremental-web-build.mjs"], "cwd": ".", "kinds": ["typecheck"], "dependsOn": ["wasm-source-build"], "timeoutSeconds": 300, "continueOnFailure": True},
|
||||
{"id": "authoring-lint", "argv": ["node", "node_modules/eslint/bin/eslint.js", "app/src/app/App.tsx"], "cwd": "web", "kinds": ["lint"], "timeoutSeconds": 60, "continueOnFailure": True},
|
||||
{"id": "chromium-authoring", "argv": ["env", "WEB_TEST_PORT=5372", "node", "node_modules/@playwright/test/cli.js", "test", "--config", "playwright.config.ts", "tests/e2e/wbv2-metaball-elements-production.spec.ts", "--workers=1", "--max-failures=1"], "cwd": "web", "kinds": ["chromium", *kinds], "dependsOn": ["wasm-source-build", "web-build"], "timeoutSeconds": 120, "continueOnFailure": True},
|
||||
]
|
||||
result = {"status": "ready", "summary": "Metaball element edits persist in native Main", "workflow": "Edit active Metaball element position and radius, reject malformed values, and verify undo/redo/save/reopen/determinism", "sourceUnits": ["web-command:setMetaballElements"], "routeIds": ["web-command:setMetaballElements"], "sourceReferences": source_refs, "changedFiles": changed, "dependencies": deps, "artifacts": ["build_blender_native/bin/blender", "build_web_blender6/bin/web_engine.wasm", "build_web_blender6/bin/web_engine.js"], "checks": checks, "cases": [{"id": f"metaball-elements-{kind}", "kind": kind, "checkId": "chromium-authoring", "receipt": f"unallocated/{kind}.json", "unitIds": ["web-command:setMetaballElements"]} for kind in kinds]}
|
||||
doc = {"schemaVersion": 1, "task": context["task"], "job": JOB, "parentSha256": hashlib.sha256(parent.read_bytes()).hexdigest(), "acceptance": "pending independent local validation", "result": result}
|
||||
backlog_path = ROOT / "tests/golden/WBV2/web-product-backlog.json"
|
||||
backlog = json.loads(backlog_path.read_text())
|
||||
parent_job = next(job for job in backlog["tasks"] if job["id"] == "CURVE-SURFACE-COVERAGE")
|
||||
if not any(job["id"] == JOB for job in backlog["tasks"]):
|
||||
backlog["tasks"].append({
|
||||
"id": JOB, "parentJob": parent_job["id"], "module": parent_job["module"],
|
||||
"title": "Verify Metaball element editing in native Main",
|
||||
"status": "pending", "commands": ["setMetaballElements"],
|
||||
"ownedPaths": parent_job["ownedPaths"], "implementation": result["workflow"],
|
||||
"resultPath": f"tests/golden/WBV2/product-migration/{JOB}-result.json",
|
||||
})
|
||||
backlog_path.write_text(json.dumps(backlog, indent=2, ensure_ascii=False) + "\n")
|
||||
path = ROOT / "my-tools/local-workflows" / f"{JOB}.json"
|
||||
path.write_text(json.dumps(doc, indent=2) + "\n")
|
||||
print(json.dumps({"job": JOB, "state": "prepared", "contract": str(path.relative_to(ROOT))}))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
40
my-tools/prepare_wbv2_modifier_stack_workflow.py
Normal file
40
my-tools/prepare_wbv2_modifier_stack_workflow.py
Normal file
@@ -0,0 +1,40 @@
|
||||
"""Prepare native modifier stack authoring and bounded Blender RNA parameters."""
|
||||
import hashlib
|
||||
import json
|
||||
import pathlib
|
||||
import subprocess
|
||||
from wbv2_execution_phase import implementation_only
|
||||
ROOT = pathlib.Path(__file__).resolve().parents[1]
|
||||
JOB = 'MODIFIER-STACK-AUTHORING'
|
||||
PREPARATION_INPUTS = ['web/tests/e2e/modifier-stack-ui-production.spec.ts', 'web/tests/fixtures/modifier-stack-main-snapshots.py', 'tests/files/web/modifier_stack_scene.blend']
|
||||
|
||||
def main():
|
||||
context = json.loads(subprocess.check_output(['node', 'tools/web/print-task-context.mjs'], cwd=ROOT, text=True))
|
||||
if not implementation_only(ROOT):
|
||||
subprocess.run(['node', 'tools/web/check-task-context.mjs'], cwd=ROOT, check=True, stdout=subprocess.DEVNULL)
|
||||
test_path, reader, fixture = PREPARATION_INPUTS
|
||||
sources = ['blender-5.2.0/source/blender/web_engine/web_engine_api.cpp', 'blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp', 'blender-5.2.0/source/blender/makesrna/intern/rna_modifier.cc', 'blender-5.2.0/source/blender/editors/object/object_modifier.cc', 'blender-5.2.0/source/blender/web_engine/extract_modifier_accessors.py', 'blender-5.2.0/source/blender/web_engine/extract_id_property_rna.py', 'blender-5.2.0/source/blender/web_engine/web_engine_modifier_properties.hh', 'blender-5.2.0/source/blender/web_engine/web_engine_main_state.h', 'blender-5.2.0/source/blender/web_engine/CMakeLists.txt']
|
||||
changed = [test_path, reader, 'my-tools/prepare_wbv2_modifier_stack_workflow.py', 'web/app/src/app/App.tsx', 'blender-5.2.0/source/blender/web_engine/web_engine_api.cpp', 'blender-5.2.0/source/blender/web_engine/web_engine_api.cpp', 'blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp', 'blender-5.2.0/source/blender/makesrna/intern/rna_modifier.cc', 'blender-5.2.0/source/blender/editors/object/object_modifier.cc', 'blender-5.2.0/source/blender/web_engine/extract_modifier_accessors.py', 'blender-5.2.0/source/blender/web_engine/extract_id_property_rna.py', 'blender-5.2.0/source/blender/web_engine/web_engine_modifier_properties.hh', 'blender-5.2.0/source/blender/web_engine/web_engine_main_state.h', 'blender-5.2.0/source/blender/web_engine/CMakeLists.txt', 'web/app/src/app/ModifierParameterField.tsx', 'web/app/src/app/ModifierParameterField.css', 'web/app/src/app/app-shell.css', 'web/protocol/modifier.ts', 'web/protocol/scene-ir.ts', 'web/tests/fixtures/create-modifier-stack-input.py', 'my-tools/test_wbv2_modifier_accessors.py']
|
||||
dependencies = sorted(set(sources + changed + ['.emscripten-web', 'build_web_blender6/CMakeCache.txt', 'my-tools/build_local_webengine.py', 'tools/web/incremental-web-build.mjs', 'tools/web/sync-web-engine-runtime.mjs', fixture, 'web/tests/fixtures/native-ui-workflow.ts', 'web/protocol/web-engine.ts', 'web/protocol/scene-ir.ts', 'web/protocol/modifier.ts', 'build_web_blender6/source/blender/makesrna/intern/rna_modifier_gen.cc', 'web/app/src/workers/web-engine.worker.ts', 'web/app/src/engine-client/WebEngineClient.ts', 'web/app/vite.config.ts', 'web/tsconfig.json', 'web/package.json', 'web/playwright.config.ts']))
|
||||
missing = [path for path in dependencies if not (ROOT / path).is_file()]
|
||||
if missing:
|
||||
raise RuntimeError(f'Missing dependencies: {missing}')
|
||||
checks = [{'id': 'wasm-source-build', 'argv': ['python3', 'my-tools/build_local_webengine.py'], 'cwd': '.', 'kinds': ['source_build'], 'timeoutSeconds': 1200, 'continueOnFailure': True}, {'id': 'web-build', 'argv': ['node', 'tools/web/incremental-web-build.mjs'], 'cwd': '.', 'kinds': ['typecheck'], 'dependsOn': ['wasm-source-build'], 'timeoutSeconds': 300, 'continueOnFailure': True}, {'id': 'authoring-lint', 'argv': ['node', 'node_modules/eslint/bin/eslint.js', 'app/src/app/App.tsx', test_path.removeprefix('web/')], 'cwd': 'web', 'kinds': ['lint'], 'timeoutSeconds': 90, 'continueOnFailure': True}]
|
||||
kinds = ['positive', 'negative', 'undo_redo', 'save_reopen', 'determinism']
|
||||
commands = {'add': 'addModifier', 'remove': 'removeModifier', 'move': 'moveModifier', 'parameters-bevel': 'setModifierParameters', 'parameters-array': 'setModifierParameters', 'parameters-mirror': 'setModifierParameters', 'parameters-solidify': 'setModifierParameters', 'parameters-subsurf': 'setModifierParameters'}
|
||||
cases = []
|
||||
for route in ['panel', *commands]:
|
||||
identifier = f'chromium-{route}'
|
||||
checks.append({'id': identifier, 'argv': ['env', 'WEB_TEST_PORT=5382', 'node', 'node_modules/@playwright/test/cli.js', 'test', '--config', 'playwright.config.ts', test_path.removeprefix('web/'), '--grep', f'modifier stack {route.replace('-', ' ', 1)} ', '--workers=1', '--max-failures=1'], 'cwd': 'web', 'kinds': ['chromium', *(kinds if route in commands else [])], 'dependsOn': ['wasm-source-build', 'web-build', 'authoring-lint'], 'timeoutSeconds': 75, 'continueOnFailure': True})
|
||||
if route in commands:
|
||||
cases.extend(({'id': f'modifier-{route}-{kind}', 'kind': kind, 'checkId': identifier, 'receipt': f'unallocated/{route}-{kind}.json', 'unitIds': [f'web-command:{commands[route]}']} for kind in kinds))
|
||||
units = [f'web-command:{command}' for command in commands.values()]
|
||||
result = {'status': 'ready', 'summary': 'Modifier stack editing uses original Blender RNA accessors and retains the active data owner', 'workflow': 'Add, remove and reorder modifiers; edit supported BEVEL, ARRAY, MIRROR, SOLIDIFY and SUBSURF parameters; validate native Main, invalid input rollback, history, save/reopen and deterministic replay', 'sourceUnits': units, 'routeIds': units, 'sourceReferences': sources, 'changedFiles': changed, 'dependencies': dependencies, 'artifacts': ['build_web_blender6/bin/web_engine.wasm', 'build_web_blender6/bin/web_engine.js', 'build_blender_native/bin/blender'], 'checks': checks, 'cases': cases}
|
||||
document = {'schemaVersion': 1, 'task': context['task'], 'job': JOB, 'parentSha256': hashlib.sha256((ROOT / context['sourceDocuments']['parentManifest']).read_bytes()).hexdigest(), 'acceptance': 'pending independent local validation', 'result': result}
|
||||
target = ROOT / 'my-tools/local-workflows' / f'{JOB}.json'
|
||||
temporary = target.with_suffix('.json.tmp')
|
||||
temporary.write_text(json.dumps(document, indent=2) + '\n')
|
||||
temporary.replace(target)
|
||||
print(json.dumps({'job': JOB, 'state': 'prepared', 'checks': len(checks), 'cases': len(cases)}))
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
47
my-tools/prepare_wbv2_native_operator_bridge_workflow.py
Normal file
47
my-tools/prepare_wbv2_native_operator_bridge_workflow.py
Normal file
@@ -0,0 +1,47 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Bind actual bridge and server-remesh tests, preserving the declared route scope."""
|
||||
import copy
|
||||
from wbv2_autopilot import ROOT, queue_context, read_json, write_json
|
||||
|
||||
JOB = "NATIVE-OPERATOR-BRIDGE"
|
||||
PREPARATION_INPUTS = [
|
||||
"web/tests/e2e/native-operator-bridge.spec.ts",
|
||||
"web/tests/fixtures/operator-bridge-main.py",
|
||||
"my-tools/local-workflows/SCULPT-ADVANCED-AUTHORING.json",
|
||||
]
|
||||
KINDS = ["positive", "negative", "undo_redo", "save_reopen", "determinism"]
|
||||
UNITS = ["web-command:createPrimitive", "operator:WM_OT_open_mainfile"]
|
||||
|
||||
|
||||
def main():
|
||||
context = queue_context(ROOT)
|
||||
sculpt = read_json(ROOT / PREPARATION_INPUTS[2])["result"]
|
||||
result = copy.deepcopy(sculpt)
|
||||
result["sourceUnits"] = [*UNITS, "operator:OBJECT_OT_voxel_remesh"]
|
||||
result["routeIds"] = result["sourceUnits"]
|
||||
result["summary"] = "Native operator discovery, cube invocation, context rejection and HTTP voxel remesh"
|
||||
result["workflow"] = "Discover native cube operator, invoke it, reject invalid properties and desktop-only file context, verify history/reopen/replay against desktop Blender; separately verify bounded server voxel remesh"
|
||||
result["changedFiles"] = PREPARATION_INPUTS[:2] + ["my-tools/prepare_wbv2_native_operator_bridge_workflow.py"]
|
||||
result["dependencies"] = sorted(set(result["dependencies"] + PREPARATION_INPUTS + result["changedFiles"]))
|
||||
result["checks"] = [check for check in result["checks"] if check["id"] in {"wasm-source-build", "web-build", "authoring-lint", "chromium-remesh"}]
|
||||
result["checks"].append({
|
||||
"id": "chromium-bridge", "argv": ["env", "WEB_TEST_PORT=5394", "node",
|
||||
"node_modules/@playwright/test/cli.js", "test", "tests/e2e/native-operator-bridge.spec.ts",
|
||||
"--workers=1", "--max-failures=1"], "cwd": "web", "kinds": ["chromium", *KINDS],
|
||||
"dependsOn": ["wasm-source-build", "web-build", "authoring-lint"], "timeoutSeconds": 180,
|
||||
})
|
||||
result["cases"] = [case for case in result["cases"] if case["checkId"] == "chromium-remesh"]
|
||||
result["cases"] += [{"id": f"native-operator-bridge-{primitive}-{kind}", "kind": kind,
|
||||
"checkId": "chromium-bridge", "receipt": f"unallocated/native-operator-bridge-{primitive}-{kind}.json",
|
||||
"unitIds": UNITS} for primitive in ("cube", "plane") for kind in KINDS]
|
||||
for entry in result["dependencies"]:
|
||||
if not (ROOT / entry).is_file():
|
||||
raise FileNotFoundError(entry)
|
||||
path = ROOT / "my-tools/local-workflows" / (JOB + ".json")
|
||||
write_json(path, {"schemaVersion": 1, "task": context["task"], "parentSha256": context["parentSha256"],
|
||||
"job": JOB, "acceptance": "pending fresh validation", "result": result})
|
||||
print(path.relative_to(ROOT))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
72
my-tools/prepare_wbv2_nla_workflow.py
Normal file
72
my-tools/prepare_wbv2_nla_workflow.py
Normal file
@@ -0,0 +1,72 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Register the existing native NLA Timeline workflow for local acceptance."""
|
||||
import copy
|
||||
import json
|
||||
|
||||
from wbv2_autopilot import Autopilot, ROOT, contained, queue_context, read_json, write_json
|
||||
|
||||
|
||||
def main():
|
||||
runner = Autopilot()
|
||||
context = queue_context(ROOT)
|
||||
identifier = "WEBUI-NLA-STRIP"
|
||||
job = next(job for job in runner.jobs(context) if job["id"] == identifier)
|
||||
base = read_json(runner.directory / "local-plans/SERVER-OPERATOR-HTTP-PROVIDER.json")
|
||||
if base["task"] != context["task"] or base["parentSha256"] != context["parentSha256"]:
|
||||
raise ValueError("existing build contract is not bound to the current task")
|
||||
build = copy.deepcopy(next(check for check in base["result"]["checks"] if check["id"] == "wasm-source-build"))
|
||||
web = copy.deepcopy(next(check for check in base["result"]["checks"] if check["id"] == "web-build"))
|
||||
behavior = ["positive", "negative", "undo_redo", "save_reopen", "determinism"]
|
||||
source_references = [
|
||||
"blender-5.2.0/source/blender/makesrna/intern/rna_nla.cc",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
]
|
||||
test = "web/tests/e2e/nla-strip-ui-production.spec.ts"
|
||||
fixture_reader = "web/tests/fixtures/nla-main-snapshots.py"
|
||||
fixture = "tests/files/web/nla_time_mapping_scene.blend"
|
||||
result = {
|
||||
"status": "ready",
|
||||
"summary": "Existing native NLA strip movement with Timeline UI and fresh native Main acceptance receipts",
|
||||
"workflow": "Select an NLA track and strip, edit frame start, reject overlapping strips, undo/redo and save/reopen the native Main",
|
||||
"sourceUnits": ["rna-struct:NlaStrip"],
|
||||
"routeIds": ["rna-struct:NlaStrip"],
|
||||
"sourceReferences": source_references,
|
||||
"changedFiles": [test, fixture_reader],
|
||||
"dependencies": sorted(set(job["ownedPaths"] + source_references + [
|
||||
test, fixture_reader, fixture,
|
||||
"web/app/src/engine-client/WebEngineClient.ts",
|
||||
"web/app/src/workers/web-engine.worker.ts",
|
||||
"web/app/src/capabilities/blender-feature-route-catalog.json",
|
||||
"web/protocol/web-engine.ts", "web/protocol/scene-ir.ts",
|
||||
"web/app/vite.config.ts", "web/playwright.config.ts", "web/tsconfig.json", "web/package.json",
|
||||
"tools/web/incremental-web-build.mjs", "tools/web/run-incremental-typecheck.mjs",
|
||||
"tools/web/web-build-fingerprint.mjs", "build_web_blender6/CMakeCache.txt",
|
||||
".emscripten-web", "my-tools/prepare_wbv2_nla_workflow.py",
|
||||
])),
|
||||
"artifacts": ["build_blender_native/bin/blender", "build_web_blender6/bin/web_engine.wasm", "build_web_blender6/bin/web_engine.js", "web/app/public/vendor/blender/web_engine.wasm"],
|
||||
"checks": [build, web, {
|
||||
"id": "nla-ui-lint", "kinds": ["lint"], "argv": ["node", "node_modules/eslint/bin/eslint.js", "app/src/app/App.tsx"], "cwd": "web", "timeoutSeconds": 60, "continueOnFailure": True,
|
||||
}, {
|
||||
"id": "chromium-nla-ui", "kinds": ["chromium", *behavior],
|
||||
"argv": ["env", "BLENDER_BIN=" + str(ROOT / "build_blender_native/bin/blender"), "WEB_TEST_PORT=5337", "node", "node_modules/@playwright/test/cli.js", "test", "--config", "playwright.config.ts", "tests/e2e/nla-strip-ui-production.spec.ts", "--workers=1", "--max-failures=1"],
|
||||
"cwd": "web", "dependsOn": [build["id"], web["id"]], "timeoutSeconds": 120, "continueOnFailure": True,
|
||||
}],
|
||||
"cases": [{"id": "nla-strip-" + kind, "kind": kind, "checkId": "chromium-nla-ui", "receipt": "unallocated/nla-strip-" + kind + ".json", "unitIds": ["rna-struct:NlaStrip"]} for kind in behavior],
|
||||
}
|
||||
for path in result["dependencies"] + result["artifacts"]:
|
||||
if not contained(ROOT, path).is_file():
|
||||
raise ValueError("required local dependency missing: " + path)
|
||||
probe = runner.directory / "nla-contract-validation"
|
||||
validated = copy.deepcopy(result)
|
||||
for case in validated["cases"]:
|
||||
case["receipt"] = str((probe / "cases" / (case["id"] + ".json")).relative_to(ROOT))
|
||||
runner.validate_result(validated, probe)
|
||||
contract = {"schemaVersion": 1, "task": context["task"], "job": identifier, "parentSha256": context["parentSha256"], "acceptance": "pending native Main and Chromium validation", "result": result}
|
||||
destination = ROOT / "my-tools/local-workflows" / (identifier + ".json")
|
||||
write_json(destination, contract)
|
||||
print(json.dumps({"job": identifier, "contract": str(destination.relative_to(ROOT)), "checks": len(result["checks"]), "modelRequests": 0}))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
81
my-tools/prepare_wbv2_node_graph_workflow.py
Normal file
81
my-tools/prepare_wbv2_node_graph_workflow.py
Normal file
@@ -0,0 +1,81 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Keep Geometry and Shader acceptance independent within the node workflow."""
|
||||
|
||||
import hashlib
|
||||
import json
|
||||
import pathlib
|
||||
import subprocess
|
||||
from wbv2_execution_phase import implementation_only
|
||||
|
||||
ROOT = pathlib.Path(__file__).resolve().parents[1]
|
||||
JOB = "NODE-GRAPH-AUTHORING"
|
||||
|
||||
|
||||
def main():
|
||||
context = json.loads(subprocess.check_output(["node", "tools/web/print-task-context.mjs"], cwd=ROOT, text=True))
|
||||
if not implementation_only(ROOT):
|
||||
subprocess.run(["node", "tools/web/check-task-context.mjs"], cwd=ROOT, check=True, stdout=subprocess.DEVNULL)
|
||||
test_path = "web/tests/e2e/wbv2-node-graph-authoring-production.spec.ts"
|
||||
sources = ["blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_headless_fallback.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_rna_fallback.cpp",
|
||||
"blender-5.2.0/source/blender/nodes/intern/node_common.cc",
|
||||
"blender-5.2.0/source/blender/nodes/intern/node_socket.cc",
|
||||
"blender-5.2.0/source/blender/nodes/intern/node_geometry_exec.cc",
|
||||
"blender-5.2.0/source/blender/nodes/intern/socket_usage_inference.cc",
|
||||
"blender-5.2.0/source/blender/nodes/intern/socket_value_inference.cc",
|
||||
"blender-5.2.0/source/blender/nodes/geometry/node_geometry_util.cc",
|
||||
"blender-5.2.0/source/blender/nodes/geometry/nodes/node_geo_transform_geometry.cc",
|
||||
"blender-5.2.0/source/blender/makesrna/intern/rna_ID.cc"]
|
||||
changed = [test_path, "my-tools/prepare_wbv2_node_graph_workflow.py",
|
||||
"web/protocol/geometry-node-commands.ts", "web/tests/fixtures/node-graph-main-snapshots.py",
|
||||
"blender-5.2.0/source/blender/web_engine/extract_id_property_rna.py",
|
||||
"blender-5.2.0/source/blender/web_engine/CMakeLists.txt",
|
||||
"blender-5.2.0/source/blender/nodes/CMakeLists.txt",
|
||||
"blender-5.2.0/source/blender/makesrna/intern/CMakeLists.txt"]
|
||||
deps = sorted(set(sources + changed + [
|
||||
".emscripten-web", "build_web_blender6/CMakeCache.txt", "my-tools/build_local_webengine.py",
|
||||
"tools/web/incremental-web-build.mjs", "tools/web/sync-web-engine-runtime.mjs",
|
||||
"tests/files/web/m12_glb_main_v1/pbr.blend", "tests/files/web/modifier_geometry_nodes_scene.blend",
|
||||
"tests/files/web/basic_scene.blend", "web/tests/fixtures/native-ui-workflow.ts",
|
||||
"web/protocol/geometry-nodes.ts", "web/protocol/shader-graph.ts", "web/protocol/shader-graph-commands.ts",
|
||||
"web/protocol/web-engine.ts", "web/protocol/scene-ir.ts", "web/app/src/workers/web-engine.worker.ts",
|
||||
"web/app/src/engine-client/WebEngineClient.ts", "web/app/src/app/App.tsx",
|
||||
"web/app/vite.config.ts", "web/tsconfig.json", "web/package.json", "web/playwright.config.ts",
|
||||
]))
|
||||
missing = [path for path in deps if not (ROOT / path).is_file()]
|
||||
if missing:
|
||||
raise RuntimeError(f"Missing dependencies: {missing}")
|
||||
checks = [
|
||||
{"id": "wasm-source-build", "argv": ["python3", "my-tools/build_local_webengine.py"], "cwd": ".", "kinds": ["source_build"], "timeoutSeconds": 1200, "continueOnFailure": True},
|
||||
{"id": "web-build", "argv": ["node", "tools/web/incremental-web-build.mjs"], "cwd": ".", "kinds": ["typecheck"], "dependsOn": ["wasm-source-build"], "timeoutSeconds": 300, "continueOnFailure": True},
|
||||
{"id": "authoring-lint", "argv": ["node", "node_modules/eslint/bin/eslint.js", "app/src/app/App.tsx", "protocol/geometry-node-commands.ts", test_path.removeprefix("web/")], "cwd": "web", "kinds": ["lint"], "timeoutSeconds": 90, "continueOnFailure": True},
|
||||
{"id": "chromium-panel", "argv": ["env", "WEB_TEST_PORT=5375", "node", "node_modules/@playwright/test/cli.js", "test", "--config", "playwright.config.ts", test_path.removeprefix("web/"), "--grep", "node graph panel", "--workers=1", "--max-failures=1"], "cwd": "web", "kinds": ["chromium"], "dependsOn": ["wasm-source-build", "web-build", "authoring-lint"], "timeoutSeconds": 60, "continueOnFailure": True},
|
||||
]
|
||||
kinds = ["positive", "negative", "undo_redo", "save_reopen", "determinism"]
|
||||
units = {"geometry": "web-command:setGeometryNodeGraph", "shader": "web-command:setShaderGraph"}
|
||||
cases = []
|
||||
for route, unit in units.items():
|
||||
check_id = f"chromium-{route}"
|
||||
checks.append({"id": check_id, "argv": ["env", "WEB_TEST_PORT=5375", "node", "node_modules/@playwright/test/cli.js", "test", "--config", "playwright.config.ts", test_path.removeprefix("web/"), "--grep", f"node graph {route}", "--workers=1", "--max-failures=1"], "cwd": "web", "kinds": ["chromium", *kinds], "dependsOn": ["wasm-source-build", "web-build", "authoring-lint"], "timeoutSeconds": 75, "continueOnFailure": True})
|
||||
cases.extend({"id": f"node-graph-{route}-{kind}", "kind": kind, "checkId": check_id,
|
||||
"receipt": f"unallocated/{route}-{kind}.json", "unitIds": [unit]} for kind in kinds)
|
||||
result = {"status": "ready", "summary": "Independent native writes required for both node graph routes",
|
||||
"workflow": "Author Geometry Nodes and Shader graphs; each route must independently mutate Main and pass rejection, history, persistence and replay",
|
||||
"sourceUnits": list(units.values()), "routeIds": list(units.values()),
|
||||
"sourceReferences": sources, "changedFiles": changed, "dependencies": deps,
|
||||
"artifacts": ["build_web_blender6/bin/web_engine.wasm", "build_web_blender6/bin/web_engine.js", "build_blender_native/bin/blender"],
|
||||
"checks": checks, "cases": cases}
|
||||
contract = {"schemaVersion": 1, "task": context["task"], "job": JOB,
|
||||
"parentSha256": hashlib.sha256((ROOT / context["sourceDocuments"]["parentManifest"]).read_bytes()).hexdigest(),
|
||||
"acceptance": "pending independent local validation", "result": result}
|
||||
target = ROOT / "my-tools/local-workflows" / f"{JOB}.json"
|
||||
temporary = target.with_suffix(".json.tmp")
|
||||
temporary.write_text(json.dumps(contract, indent=2) + "\n")
|
||||
temporary.replace(target)
|
||||
print(json.dumps({"job": JOB, "state": "prepared", "checks": len(checks), "cases": len(cases)}))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
72
my-tools/prepare_wbv2_nonmesh_workflow.py
Normal file
72
my-tools/prepare_wbv2_nonmesh_workflow.py
Normal file
@@ -0,0 +1,72 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Prepare bounded non-mesh workflows with fresh native Main readback."""
|
||||
|
||||
import hashlib
|
||||
import json
|
||||
import pathlib
|
||||
import subprocess
|
||||
from wbv2_execution_phase import implementation_only
|
||||
|
||||
ROOT = pathlib.Path(__file__).resolve().parents[1]
|
||||
JOB = "WEBUI-NONMESH-ADVANCED"
|
||||
PREPARATION_INPUTS = [
|
||||
"web/tests/e2e/nonmesh-advanced-ui-production.spec.ts",
|
||||
"web/tests/fixtures/nonmesh-advanced-main-snapshots.py",
|
||||
"tests/files/web/nonmesh_scene.blend",
|
||||
]
|
||||
|
||||
|
||||
def main():
|
||||
context = json.loads(subprocess.check_output(["node", "tools/web/print-task-context.mjs"], cwd=ROOT, text=True))
|
||||
if not implementation_only(ROOT):
|
||||
subprocess.run(["node", "tools/web/check-task-context.mjs"], cwd=ROOT, check=True, stdout=subprocess.DEVNULL)
|
||||
test_path, reader, fixture = PREPARATION_INPUTS
|
||||
sources = ["blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp",
|
||||
"blender-5.2.0/source/blender/blenkernel/intern/curve.cc"]
|
||||
changed = [test_path, reader, "my-tools/prepare_wbv2_nonmesh_workflow.py", "web/app/src/app/App.tsx",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp"]
|
||||
dependencies = sorted(set(sources + changed + [
|
||||
".emscripten-web", "build_web_blender6/CMakeCache.txt", "my-tools/build_local_webengine.py",
|
||||
"tools/web/incremental-web-build.mjs", "tools/web/sync-web-engine-runtime.mjs", fixture,
|
||||
"web/tests/fixtures/native-ui-workflow.ts", "web/protocol/web-engine.ts", "web/protocol/scene-ir.ts",
|
||||
"web/protocol/nonmesh-geometry-commands.ts", "web/protocol/nonmesh-binary.ts",
|
||||
"web/app/src/workers/web-engine.worker.ts", "web/app/src/engine-client/WebEngineClient.ts",
|
||||
"web/app/vite.config.ts", "web/tsconfig.json", "web/package.json", "web/playwright.config.ts",
|
||||
]))
|
||||
missing = [path for path in dependencies if not (ROOT / path).is_file()]
|
||||
if missing:
|
||||
raise RuntimeError(f"Missing dependencies: {missing}")
|
||||
checks = [
|
||||
{"id": "wasm-source-build", "argv": ["python3", "my-tools/build_local_webengine.py"], "cwd": ".", "kinds": ["source_build"], "timeoutSeconds": 1200, "continueOnFailure": True},
|
||||
{"id": "web-build", "argv": ["node", "tools/web/incremental-web-build.mjs"], "cwd": ".", "kinds": ["typecheck"], "dependsOn": ["wasm-source-build"], "timeoutSeconds": 300, "continueOnFailure": True},
|
||||
{"id": "authoring-lint", "argv": ["node", "node_modules/eslint/bin/eslint.js", "app/src/app/App.tsx", test_path.removeprefix("web/")], "cwd": "web", "kinds": ["lint"], "timeoutSeconds": 90, "continueOnFailure": True},
|
||||
]
|
||||
kinds = ["positive", "negative", "undo_redo", "save_reopen", "determinism"]
|
||||
commands = {"handle": "setCurveHandle", "splines": "setCurveSplines", "surface": "setSurfaceTopology", "delete": "deleteNonMeshData"}
|
||||
cases = []
|
||||
for route in ["panel", *commands]:
|
||||
identifier = f"chromium-{route}"
|
||||
checks.append({"id": identifier, "argv": ["env", "WEB_TEST_PORT=5379", "node", "node_modules/@playwright/test/cli.js", "test", "--config", "playwright.config.ts", test_path.removeprefix("web/"), "--grep", f"nonmesh {route} ", "--workers=1", "--max-failures=1"], "cwd": "web", "kinds": ["chromium", *(kinds if route in commands else [])], "dependsOn": ["wasm-source-build", "web-build", "authoring-lint"], "timeoutSeconds": 75, "continueOnFailure": True})
|
||||
if route in commands:
|
||||
cases.extend({"id": f"nonmesh-{route}-{kind}", "kind": kind, "checkId": identifier,
|
||||
"receipt": f"unallocated/{route}-{kind}.json", "unitIds": [f"web-command:{commands[route]}"]} for kind in kinds)
|
||||
units = [f"web-command:{command}" for command in commands.values()]
|
||||
result = {"status": "ready", "summary": "Non-mesh panel edits use native geometry and retain the active data owner",
|
||||
"workflow": "Edit Bezier handles, replace Curve splines, toggle Surface topology and delete non-mesh data; validate each route through desktop Main readback, rejection, history, persistence and replay",
|
||||
"sourceUnits": units, "routeIds": units, "sourceReferences": sources, "changedFiles": changed,
|
||||
"dependencies": dependencies, "artifacts": ["build_web_blender6/bin/web_engine.wasm", "build_web_blender6/bin/web_engine.js", "build_blender_native/bin/blender"],
|
||||
"checks": checks, "cases": cases}
|
||||
document = {"schemaVersion": 1, "task": context["task"], "job": JOB,
|
||||
"parentSha256": hashlib.sha256((ROOT / context["sourceDocuments"]["parentManifest"]).read_bytes()).hexdigest(),
|
||||
"acceptance": "pending independent local validation", "result": result}
|
||||
target = ROOT / "my-tools/local-workflows" / f"{JOB}.json"
|
||||
temporary = target.with_suffix(".json.tmp")
|
||||
temporary.write_text(json.dumps(document, indent=2) + "\n")
|
||||
temporary.replace(target)
|
||||
print(json.dumps({"job": JOB, "state": "prepared", "checks": len(checks), "cases": len(cases)}))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
126
my-tools/prepare_wbv2_object_editor_workflow.py
Normal file
126
my-tools/prepare_wbv2_object_editor_workflow.py
Normal file
@@ -0,0 +1,126 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Prepare the complete Object editor group for independent local validation."""
|
||||
|
||||
import hashlib
|
||||
import json
|
||||
import pathlib
|
||||
import subprocess
|
||||
from wbv2_execution_phase import implementation_only
|
||||
|
||||
|
||||
ROOT = pathlib.Path(__file__).resolve().parents[1]
|
||||
JOB = "OBJECT-EDITOR-COVERAGE"
|
||||
COMMANDS = ("clearObjectTransform", "createObjectData", "setObjectSelection", "setCollectionVisibility")
|
||||
KINDS = ("positive", "negative", "undo_redo", "save_reopen", "determinism")
|
||||
|
||||
|
||||
def main():
|
||||
context = json.loads(subprocess.check_output(
|
||||
["node", "tools/web/print-task-context.mjs"], cwd=ROOT, text=True))
|
||||
if not implementation_only(ROOT):
|
||||
subprocess.run(["node", "tools/web/check-task-context.mjs"], cwd=ROOT,
|
||||
check=True, stdout=subprocess.DEVNULL)
|
||||
parent = ROOT / context["sourceDocuments"]["parentManifest"]
|
||||
source_references = [
|
||||
"blender-5.2.0/source/blender/blenkernel/intern/object.cc",
|
||||
"blender-5.2.0/source/blender/blenkernel/intern/collection.cc",
|
||||
"blender-5.2.0/source/blender/blenkernel/intern/layer.cc",
|
||||
"blender-5.2.0/source/blender/blenkernel/intern/idtype.cc",
|
||||
"blender-5.2.0/source/blender/makesdna/DNA_collection_types.h",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp",
|
||||
]
|
||||
changed_files = [
|
||||
source_references[-1],
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"my-tools/diagnose_local_object_editor.mjs",
|
||||
"my-tools/diagnose_local_save_stability.mjs",
|
||||
"my-tools/prepare_wbv2_object_editor_workflow.py",
|
||||
"my-tools/wbv2_runtime_contract.py",
|
||||
"my-tools/test_wbv2_runtime_contract.py",
|
||||
"web/app/src/three-adapter/viewport.ts",
|
||||
"web/tests/e2e/object-editor-ui-production.spec.ts",
|
||||
"web/tests/e2e/viewport-render-budget.spec.ts",
|
||||
"web/tests/fixtures/create-object-editor-input.py",
|
||||
"web/tests/fixtures/object-editor-main-snapshots.py",
|
||||
"tests/files/web/object_editor_scene.blend",
|
||||
"tests/files/web/object_editor_visibility_scene.blend",
|
||||
]
|
||||
dependencies = sorted(set(source_references + changed_files + [
|
||||
".emscripten-web", "build_web_blender6/CMakeCache.txt",
|
||||
"tests/files/web/basic_scene.blend",
|
||||
"tests/files/web/nonmesh_scene.blend",
|
||||
"my-tools/build_local_webengine.py", "tools/web/sync-web-engine-runtime.mjs",
|
||||
"tools/web/incremental-web-build.mjs", "tools/web/run-incremental-typecheck.mjs",
|
||||
"tools/web/web-build-fingerprint.mjs",
|
||||
"web/tests/fixtures/native-ui-workflow.ts",
|
||||
"web/app/src/app/App.tsx", "web/app/src/workers/web-engine.worker.ts",
|
||||
"web/app/src/engine-client/WebEngineClient.ts",
|
||||
"web/app/src/capabilities/blender-feature-route-catalog.json",
|
||||
"web/app/vite.config.ts", "web/package.json", "web/playwright.config.ts",
|
||||
"web/protocol/web-engine.ts", "web/protocol/scene-ir.ts", "web/tsconfig.json",
|
||||
]))
|
||||
missing = [name for name in dependencies if not (ROOT / name).is_file()]
|
||||
if missing:
|
||||
raise RuntimeError("Missing local dependency: " + ", ".join(missing))
|
||||
checks = [
|
||||
{"id": "wasm-source-build", "argv": ["python3", "my-tools/build_local_webengine.py"],
|
||||
"cwd": ".", "kinds": ["source_build"], "timeoutSeconds": 1200, "continueOnFailure": True},
|
||||
{"id": "native-minimal", "argv": ["node", "my-tools/diagnose_local_object_editor.mjs"],
|
||||
"cwd": ".", "kinds": ["unit"], "dependsOn": ["wasm-source-build"],
|
||||
"timeoutSeconds": 30, "continueOnFailure": True},
|
||||
{"id": "native-collection-paths", "argv": ["node", "my-tools/diagnose_local_object_editor.mjs", "--hierarchy"],
|
||||
"cwd": ".", "kinds": ["unit"], "dependsOn": ["wasm-source-build"],
|
||||
"timeoutSeconds": 30, "continueOnFailure": True},
|
||||
{"id": "native-save-stability", "argv": ["node", "my-tools/diagnose_local_save_stability.mjs"],
|
||||
"cwd": ".", "kinds": ["unit"], "dependsOn": ["wasm-source-build"],
|
||||
"timeoutSeconds": 30, "continueOnFailure": True},
|
||||
{"id": "web-build", "argv": ["node", "tools/web/incremental-web-build.mjs"],
|
||||
"cwd": ".", "kinds": ["typecheck"],
|
||||
"dependsOn": ["wasm-source-build", "native-minimal", "native-collection-paths", "native-save-stability"],
|
||||
"timeoutSeconds": 300, "continueOnFailure": True},
|
||||
{"id": "authoring-lint", "argv": ["node", "node_modules/eslint/bin/eslint.js", "app/src/app/App.tsx"],
|
||||
"cwd": "web", "kinds": ["lint"], "timeoutSeconds": 60, "continueOnFailure": True},
|
||||
{"id": "chromium-viewport", "argv": ["env", "WEB_TEST_PORT=5361", "node",
|
||||
"node_modules/@playwright/test/cli.js", "test", "--config", "playwright.config.ts",
|
||||
"tests/e2e/viewport-render-budget.spec.ts", "--workers=1", "--max-failures=1"],
|
||||
"cwd": "web", "kinds": ["chromium", "unit"],
|
||||
"dependsOn": ["wasm-source-build", "web-build"],
|
||||
"timeoutSeconds": 100, "continueOnFailure": True},
|
||||
{"id": "chromium-authoring", "argv": ["env", f"BLENDER_BIN={ROOT / 'build_blender_native/bin/blender'}",
|
||||
"WEB_TEST_PORT=5360", "node", "node_modules/@playwright/test/cli.js", "test",
|
||||
"--config", "playwright.config.ts", "tests/e2e/object-editor-ui-production.spec.ts",
|
||||
"--workers=1", "--max-failures=1"], "cwd": "web", "kinds": ["chromium", *KINDS],
|
||||
"dependsOn": ["wasm-source-build", "web-build", "native-minimal", "native-collection-paths", "chromium-viewport"],
|
||||
"timeoutSeconds": 180, "continueOnFailure": True},
|
||||
]
|
||||
units = [f"web-command:{command}" for command in COMMANDS]
|
||||
document = {
|
||||
"schemaVersion": 1, "task": context["task"], "job": JOB,
|
||||
"parentSha256": hashlib.sha256(parent.read_bytes()).hexdigest(),
|
||||
"acceptance": "pending independent local validation",
|
||||
"result": {
|
||||
"status": "ready",
|
||||
"summary": "Object editor controls with native Main readback and inherited collection visibility",
|
||||
"workflow": "Clear object location, rotation and scale; create camera, light, empty and armature data; change object selection and collection viewport/render visibility with persistence and history",
|
||||
"sourceUnits": units, "routeIds": units, "sourceReferences": source_references,
|
||||
"changedFiles": changed_files, "dependencies": dependencies,
|
||||
"artifacts": ["build_blender_native/bin/blender", "build_web_blender6/bin/web_engine.wasm",
|
||||
"build_web_blender6/bin/web_engine.js", "web/app/public/vendor/blender/web_engine.wasm",
|
||||
"web/app/public/vendor/blender/web_engine.js", "web/app/public/wasm-module-manifest.json"],
|
||||
"checks": checks,
|
||||
"cases": [{"id": f"object-editor-{kind}", "kind": kind,
|
||||
"checkId": "chromium-authoring", "receipt": f"unallocated/{kind}.json",
|
||||
"unitIds": units} for kind in KINDS],
|
||||
},
|
||||
}
|
||||
target = ROOT / "my-tools/local-workflows" / f"{JOB}.json"
|
||||
target.parent.mkdir(parents=True, exist_ok=True)
|
||||
target.write_text(json.dumps(document, indent=2) + "\n")
|
||||
print(json.dumps({"job": JOB, "state": "prepared", "contract": str(target.relative_to(ROOT)),
|
||||
"sourceUnits": len(units)}))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
7
my-tools/prepare_wbv2_operator_macro_workflow.py
Normal file
7
my-tools/prepare_wbv2_operator_macro_workflow.py
Normal file
@@ -0,0 +1,7 @@
|
||||
from wbv2_compilation_recipe import prepare
|
||||
|
||||
if __name__ == "__main__":
|
||||
prepare("OPERATOR-MACRO-COMPOSER", "Native operator macro catalog and invocation dispatch; implementation phase only.",
|
||||
["operator-macro:ARMATURE_OT_extrude_move", "operator-macro:MESH_OT_duplicate_move"],
|
||||
["blender-5.2.0/source/blender/windowmanager/intern/wm_operator_type.cc", "blender-5.2.0/source/blender/windowmanager/intern/wm_operators.cc"],
|
||||
["my-tools/prepare_wbv2_operator_macro_workflow.py", "web/app/src/engine-client/WebEngineClient.ts", "web/app/src/app/App.tsx"], ["web/protocol/blender-operator.ts"])
|
||||
10
my-tools/prepare_wbv2_operator_palette_workflow.py
Normal file
10
my-tools/prepare_wbv2_operator_palette_workflow.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from wbv2_compilation_recipe import prepare
|
||||
|
||||
JOB = "OPERATOR-ROUTE-PALETTE"
|
||||
|
||||
if __name__ == "__main__":
|
||||
prepare(JOB, "Feature route catalog and operator palette dispatch through the existing WebEngine client; implementation phase only.",
|
||||
["web-command:renderFrame", "web-command:setCameraView", "operator:OBJECT_OT_voxel_remesh"],
|
||||
["blender-5.2.0/source/blender/web_engine/web_engine_api.cpp", "blender-5.2.0/source/blender/windowmanager/intern/wm_operators.cc"],
|
||||
["my-tools/prepare_wbv2_operator_palette_workflow.py", "web/app/src/app/App.tsx", "web/protocol/blender-operator.ts"],
|
||||
["web/protocol/web-engine.ts", "web/protocol/blender-operator.ts"])
|
||||
49
my-tools/prepare_wbv2_physics_workflow.py
Normal file
49
my-tools/prepare_wbv2_physics_workflow.py
Normal file
@@ -0,0 +1,49 @@
|
||||
"""Compile real native physics settings authoring; solver acceptance is deferred."""
|
||||
|
||||
from wbv2_compilation_recipe import prepare
|
||||
|
||||
|
||||
JOB = "PHYSICS-SIMULATION-COVERAGE"
|
||||
PREPARATION_INPUTS = [
|
||||
"my-tools/wbv2_compilation_recipe.py",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_physics_authoring.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_physics_authoring.hh",
|
||||
"web/app/src/app/PhysicsSettingsEditor.tsx",
|
||||
"web/app/src/app/PhysicsSettingsEditor.css",
|
||||
"web/protocol/physics-simulation.ts",
|
||||
]
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sources = [
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_physics_authoring.cpp",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_cloth.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_fluid.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_particlesystem.cc",
|
||||
"blender-5.2.0/source/blender/modifiers/intern/MOD_util.cc",
|
||||
"blender-5.2.0/source/blender/blenkernel/intern/rigidbody.cc",
|
||||
"blender-5.2.0/source/blender/blenkernel/intern/fluid.cc",
|
||||
"blender-5.2.0/source/blender/makesrna/intern/rna_cloth.cc",
|
||||
"blender-5.2.0/source/blender/makesrna/intern/rna_fluid.cc",
|
||||
"blender-5.2.0/source/blender/makesdna/DNA_pointcache_types.h",
|
||||
]
|
||||
prepare(
|
||||
JOB,
|
||||
"Edit rigid body, Cloth and Fluid native settings; configure existing particle caches "
|
||||
"from the Physics panel and retain real Main data when saving. Reuse native data "
|
||||
"creation and serialization callbacks. Browser Bullet simulation is not enabled; "
|
||||
"solver execution and runtime acceptance remain separate unfinished work.",
|
||||
["web-command:setRigidBodySettings", "web-command:setClothSettings",
|
||||
"web-command:setFluidSettings", "web-command:setParticleCache",
|
||||
"web-command:setSimulationPlayback"],
|
||||
sources,
|
||||
PREPARATION_INPUTS + sources + [
|
||||
"my-tools/prepare_wbv2_physics_workflow.py", "web/app/src/app/App.tsx",
|
||||
"web/app/src/app/app-shell.css",
|
||||
"blender-5.2.0/source/blender/web_engine/CMakeLists.txt",
|
||||
"blender-5.2.0/source/blender/modifiers/CMakeLists.txt",
|
||||
],
|
||||
["web/protocol/physics-commands.ts"],
|
||||
)
|
||||
13
my-tools/prepare_wbv2_render_workflow.py
Normal file
13
my-tools/prepare_wbv2_render_workflow.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from wbv2_compilation_recipe import prepare
|
||||
|
||||
JOB = "RENDER-CAMERA-LIGHT-COVERAGE"
|
||||
|
||||
if __name__ == "__main__":
|
||||
prepare(
|
||||
JOB,
|
||||
"Render frame and animation dispatch with native camera, render pass and light linking settings; implementation phase only.",
|
||||
["web-command:renderFrame", "web-command:renderAnimation", "web-command:setRenderPasses", "web-command:setCameraView", "web-command:setLightLinking"],
|
||||
["blender-5.2.0/source/blender/web_engine/web_engine_api.cpp", "blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp", "blender-5.2.0/source/blender/render/intern/render_result.cc", "blender-5.2.0/source/blender/render/intern/engine.cc"],
|
||||
["my-tools/prepare_wbv2_render_workflow.py", "web/app/src/app/App.tsx", "web/protocol/web-engine.ts"],
|
||||
["web/protocol/render-compositor-commands.ts", "web/protocol/scene-ir.ts"],
|
||||
)
|
||||
60
my-tools/prepare_wbv2_rig_pose_workflow.py
Normal file
60
my-tools/prepare_wbv2_rig_pose_workflow.py
Normal file
@@ -0,0 +1,60 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Prepare exact rig bone/pose Main workflows with desktop comparison."""
|
||||
from wbv2_autopilot import ROOT, queue_context, write_json
|
||||
|
||||
JOB = "RIG-POSE-AUTHORING"
|
||||
PREPARATION_INPUTS = ["web/tests/e2e/rig-pose-authoring-native.spec.ts",
|
||||
"web/tests/fixtures/rig-pose-authoring-main.py", "tests/files/web/pose_constraint_scene.blend"]
|
||||
UNITS = {"bones": "web-command:setArmatureBones", "pose": "web-command:setPoseBoneTransform"}
|
||||
KINDS = ["positive", "negative", "undo_redo", "save_reopen", "determinism"]
|
||||
|
||||
|
||||
def main():
|
||||
context = queue_context(ROOT)
|
||||
sources = ["blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_rna_fallback.cpp",
|
||||
"blender-5.2.0/source/blender/makesrna/intern/rna_pose.cc",
|
||||
"blender-5.2.0/source/blender/blenkernel/intern/armature.cc",
|
||||
"blender-5.2.0/source/blender/editors/armature/armature_edit.cc"]
|
||||
changed = PREPARATION_INPUTS[:2] + ["my-tools/prepare_wbv2_rig_pose_workflow.py"]
|
||||
dependencies = sorted(set(sources + changed + PREPARATION_INPUTS + [
|
||||
".emscripten-web", "build_web_blender6/CMakeCache.txt", "my-tools/build_local_webengine.py",
|
||||
"tools/web/incremental-web-build.mjs", "tools/web/sync-web-engine-runtime.mjs",
|
||||
"web/app/src/app/App.tsx", "web/app/src/workers/web-engine.worker.ts",
|
||||
"web/app/src/engine-client/WebEngineClient.ts", "web/protocol/web-engine.ts",
|
||||
"web/protocol/scene-ir.ts", "web/app/vite.config.ts", "web/playwright.config.ts",
|
||||
"web/package.json", "web/tsconfig.json"]))
|
||||
for entry in dependencies:
|
||||
if not (ROOT / entry).is_file():
|
||||
raise FileNotFoundError(entry)
|
||||
checks = [
|
||||
{"id": "wasm-source-build", "argv": ["python3", "my-tools/build_local_webengine.py"],
|
||||
"cwd": ".", "kinds": ["source_build"], "timeoutSeconds": 1800},
|
||||
{"id": "web-build", "argv": ["node", "tools/web/incremental-web-build.mjs"],
|
||||
"cwd": ".", "kinds": ["typecheck"], "timeoutSeconds": 300, "dependsOn": ["wasm-source-build"]},
|
||||
{"id": "authoring-lint", "argv": ["node", "node_modules/eslint/bin/eslint.js",
|
||||
"tests/e2e/rig-pose-authoring-native.spec.ts"], "cwd": "web", "kinds": ["lint"], "timeoutSeconds": 90},
|
||||
{"id": "chromium-rig", "argv": ["env", "WEB_TEST_PORT=5393", "node",
|
||||
"node_modules/@playwright/test/cli.js", "test", "tests/e2e/rig-pose-authoring-native.spec.ts",
|
||||
"--workers=1", "--max-failures=1"], "cwd": "web", "kinds": ["chromium", *KINDS],
|
||||
"dependsOn": ["wasm-source-build", "web-build", "authoring-lint"], "timeoutSeconds": 180},
|
||||
]
|
||||
result = {"status": "ready", "summary": "Native bone replacement and pose TRS with independent desktop state",
|
||||
"workflow": "Replace a bone hierarchy and edit pose TRS independently; reject missing parents/bones, undo/redo, save/reopen and replay; compare with desktop Blender edits",
|
||||
"routeIds": list(UNITS.values()), "sourceUnits": list(UNITS.values()),
|
||||
"sourceReferences": sources, "dependencies": dependencies, "changedFiles": changed,
|
||||
"artifacts": ["build_web_blender6/bin/web_engine.wasm", "build_web_blender6/bin/web_engine.js",
|
||||
"web/app/public/vendor/blender/web_engine.wasm", "build_blender_native/bin/blender"],
|
||||
"checks": checks,
|
||||
"cases": [{"id": f"rig-{route}-{kind}", "kind": kind, "checkId": "chromium-rig",
|
||||
"receipt": f"unallocated/rig-{route}-{kind}.json", "unitIds": [unit]}
|
||||
for route, unit in UNITS.items() for kind in KINDS]}
|
||||
target = ROOT / "my-tools/local-workflows" / (JOB + ".json")
|
||||
write_json(target, {"schemaVersion": 1, "task": context["task"], "job": JOB,
|
||||
"parentSha256": context["parentSha256"], "acceptance": "pending fresh validation", "result": result})
|
||||
print(target.relative_to(ROOT))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
7
my-tools/prepare_wbv2_rna_extended_workflow.py
Normal file
7
my-tools/prepare_wbv2_rna_extended_workflow.py
Normal file
@@ -0,0 +1,7 @@
|
||||
from wbv2_compilation_recipe import prepare
|
||||
|
||||
if __name__ == "__main__":
|
||||
prepare("RNA-REFLECTION-EXTENDED", "Native RNA array, enum and collection access uses Blender RNA metadata; implementation phase only.",
|
||||
["rna-struct:BlenderRNA", "rna-struct:Object", "rna-struct:Mesh"],
|
||||
["blender-5.2.0/source/blender/makesrna/intern/rna_access.cc", "blender-5.2.0/source/blender/makesrna/intern/rna_define.cc", "blender-5.2.0/source/blender/web_engine/web_rna_fallback.cpp"],
|
||||
["my-tools/prepare_wbv2_rna_extended_workflow.py", "web/app/src/engine-client/WebEngineClient.ts", "web/app/src/app/App.tsx"], ["web/protocol/web-engine.ts"])
|
||||
7
my-tools/prepare_wbv2_rna_reflection_workflow.py
Normal file
7
my-tools/prepare_wbv2_rna_reflection_workflow.py
Normal file
@@ -0,0 +1,7 @@
|
||||
from wbv2_compilation_recipe import prepare
|
||||
|
||||
if __name__ == "__main__":
|
||||
prepare("RNA-DATABLOCK-REFLECTION", "Native RNA data-block and property reflection uses Blender RNA metadata; implementation phase only.",
|
||||
["rna-struct:BlenderRNA", "rna-struct:Action", "rna-struct:Object"],
|
||||
["blender-5.2.0/source/blender/makesrna/intern/rna_access.cc", "blender-5.2.0/source/blender/makesrna/intern/makesrna.cc", "blender-5.2.0/source/blender/web_engine/web_rna_fallback.cpp"],
|
||||
["my-tools/prepare_wbv2_rna_reflection_workflow.py", "web/app/src/engine-client/WebEngineClient.ts", "web/app/src/app/App.tsx"], ["web/protocol/web-engine.ts"])
|
||||
74
my-tools/prepare_wbv2_scene_strip_workflow.py
Normal file
74
my-tools/prepare_wbv2_scene_strip_workflow.py
Normal file
@@ -0,0 +1,74 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Reuse the sequencer contract with explicit source-scene acceptance."""
|
||||
|
||||
import hashlib
|
||||
import json
|
||||
import pathlib
|
||||
import subprocess
|
||||
from wbv2_execution_phase import implementation_only
|
||||
|
||||
ROOT = pathlib.Path(__file__).resolve().parents[1]
|
||||
JOB = "SEQUENCER-SCENE-AUTHORING"
|
||||
|
||||
|
||||
def main():
|
||||
context = json.loads(subprocess.check_output(
|
||||
["node", "tools/web/print-task-context.mjs"], cwd=ROOT, text=True))
|
||||
if not implementation_only(ROOT):
|
||||
subprocess.run(["node", "tools/web/check-task-context.mjs"], cwd=ROOT,
|
||||
check=True, stdout=subprocess.DEVNULL)
|
||||
parent = ROOT / context["sourceDocuments"]["parentManifest"]
|
||||
document = json.loads((ROOT / "my-tools/local-workflows/SEQUENCER-STILL-AUTHORING.json").read_text())
|
||||
document.update(task=context["task"], job=JOB,
|
||||
parentSha256=hashlib.sha256(parent.read_bytes()).hexdigest())
|
||||
result = document["result"]
|
||||
replacements = {
|
||||
"my-tools/diagnose_local_sequencer.mjs": "my-tools/diagnose_local_scene_strips.mjs",
|
||||
"my-tools/prepare_wbv2_sequencer_workflow.py": "my-tools/prepare_wbv2_scene_strip_workflow.py",
|
||||
"web/tests/e2e/sequencer-authoring-ui-production.spec.ts": "web/tests/e2e/scene-strip-ui-production.spec.ts",
|
||||
"web/tests/fixtures/sequencer-main-snapshots.py": "web/tests/fixtures/scene-strip-main-snapshots.py",
|
||||
}
|
||||
result["summary"] = "Source scene selection with native View Layer initialization and preserved effect ranges"
|
||||
result["workflow"] = "Select another scene, create a scene strip, move, mute and remove it while preserving source-scene and existing media references through undo, redo and save/reopen"
|
||||
result["sourceReferences"] = sorted(set(result["sourceReferences"] + [
|
||||
"blender-5.2.0/source/blender/editors/space_sequencer/sequencer_add_menu_scene.cc",
|
||||
"blender-5.2.0/source/blender/sequencer/intern/strip_time.cc",
|
||||
]))
|
||||
result["changedFiles"] = sorted(set(replacements.get(path, path) for path in result["changedFiles"]) | {
|
||||
"tests/files/web/sequencer_scene_source.blend",
|
||||
"web/tests/fixtures/create-sequencer-scene-input.py",
|
||||
})
|
||||
result["dependencies"] = sorted(set(replacements.get(path, path) for path in result["dependencies"]) |
|
||||
set(result["sourceReferences"]) | set(result["changedFiles"]) | {
|
||||
"my-tools/local-workflows/SEQUENCER-STILL-AUTHORING.json",
|
||||
"my-tools/wbv2_runtime_contract.py", "web/app/src/three-adapter/viewport.ts",
|
||||
})
|
||||
for check in result["checks"]:
|
||||
check["argv"] = [replacements.get(value, value).replace(
|
||||
"tests/e2e/sequencer-authoring-ui-production.spec.ts", "tests/e2e/scene-strip-ui-production.spec.ts"
|
||||
).replace("WEB_TEST_PORT=5358", "WEB_TEST_PORT=5364") for value in check["argv"]]
|
||||
for case in result["cases"]:
|
||||
case["id"] = f"scene-strip-{case['kind']}"
|
||||
case["receipt"] = f"unallocated/{case['kind']}.json"
|
||||
missing = [path for path in result["dependencies"] if not (ROOT / path).is_file()]
|
||||
if missing:
|
||||
raise RuntimeError("Missing local input: " + ", ".join(missing))
|
||||
backlog_path = ROOT / "tests/golden/WBV2/web-product-backlog.json"
|
||||
backlog = json.loads(backlog_path.read_text())
|
||||
parent_job = next(job for job in backlog["tasks"] if job["id"] == "SEQUENCER-AUTHORING")
|
||||
if not any(job["id"] == JOB for job in backlog["tasks"]):
|
||||
backlog["tasks"].append({
|
||||
"id": JOB, "parentJob": parent_job["id"], "module": parent_job["module"],
|
||||
"title": "Complete scene strip source selection and native reference persistence",
|
||||
"status": "pending", "commands": ["setSequencerStrips"],
|
||||
"ownedPaths": parent_job["ownedPaths"], "implementation": result["workflow"],
|
||||
"resultPath": f"tests/golden/WBV2/product-migration/{JOB}-result.json",
|
||||
})
|
||||
backlog_path.write_text(json.dumps(backlog, indent=2, ensure_ascii=False) + "\n")
|
||||
target = ROOT / "my-tools/local-workflows" / f"{JOB}.json"
|
||||
target.write_text(json.dumps(document, indent=2) + "\n")
|
||||
print(json.dumps({"job": JOB, "state": "prepared", "contract": str(target.relative_to(ROOT))}))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
58
my-tools/prepare_wbv2_sculpt_advanced_workflow.py
Normal file
58
my-tools/prepare_wbv2_sculpt_advanced_workflow.py
Normal file
@@ -0,0 +1,58 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Bind exact stroke, attribute and server-remesh receipt producers."""
|
||||
import copy
|
||||
from wbv2_autopilot import ROOT, queue_context, read_json, write_json
|
||||
|
||||
JOB = "SCULPT-ADVANCED-AUTHORING"
|
||||
PREPARATION_INPUTS = [
|
||||
"my-tools/local-workflows/WEBUI-SCULPT.json",
|
||||
"web/tests/e2e/sculpt-authoring-ui-production.spec.ts",
|
||||
"web/tests/e2e/sculpt-remesh-native.spec.ts",
|
||||
"web/tests/fixtures/sculpt-remesh-main-snapshots.py",
|
||||
"tools/web/server_operator_remesh.py",
|
||||
"tools/web/server-operator-job.py",
|
||||
]
|
||||
KINDS = ["positive", "negative", "undo_redo", "save_reopen", "determinism"]
|
||||
|
||||
|
||||
def main():
|
||||
context = queue_context(ROOT)
|
||||
result = copy.deepcopy(read_json(ROOT / PREPARATION_INPUTS[0])["result"])
|
||||
unit = "operator:OBJECT_OT_voxel_remesh"
|
||||
result["sourceUnits"].append(unit)
|
||||
result["routeIds"].append(unit)
|
||||
result["sourceReferences"] += [
|
||||
"blender-5.2.0/source/blender/editors/object/object_remesh.cc",
|
||||
"blender-5.2.0/source/blender/blenkernel/intern/mesh_remesh_voxel.cc",
|
||||
]
|
||||
result["dependencies"] = sorted(set(result["dependencies"] + PREPARATION_INPUTS +
|
||||
result["sourceReferences"] + ["my-tools/prepare_wbv2_sculpt_advanced_workflow.py",
|
||||
"tools/web/deployment-http-server.mjs", "tools/web/server-operator-job-server.mjs",
|
||||
"web/protocol/blender-operator.ts", "web/protocol/server-operator-job.ts"]))
|
||||
result["changedFiles"] = ["my-tools/prepare_wbv2_sculpt_advanced_workflow.py",
|
||||
"web/tests/e2e/sculpt-remesh-native.spec.ts",
|
||||
"web/tests/fixtures/sculpt-remesh-main-snapshots.py"]
|
||||
result["summary"] = "Stroke, mesh attributes and original desktop voxel remesh with fresh per-route evidence"
|
||||
result["workflow"] = "Apply DRAW, masks and face sets; remesh the active mesh through bounded HTTP Blender; verify each route independently with rejection, undo/redo, persistence and replay"
|
||||
result["checks"].append({
|
||||
"id": "chromium-remesh", "argv": ["env", "WEB_TEST_PORT=5392", "node",
|
||||
"node_modules/@playwright/test/cli.js", "test", "tests/e2e/sculpt-remesh-native.spec.ts",
|
||||
"--workers=1", "--max-failures=1"], "cwd": "web", "kinds": ["chromium", *KINDS],
|
||||
"dependsOn": ["wasm-source-build", "web-build", "authoring-lint"],
|
||||
"timeoutSeconds": 180, "continueOnFailure": True,
|
||||
})
|
||||
result["cases"] += [{"id": "sculpt-remesh-" + kind, "kind": kind,
|
||||
"checkId": "chromium-remesh", "receipt": "unallocated/sculpt-remesh-" + kind + ".json",
|
||||
"unitIds": [unit]} for kind in KINDS]
|
||||
result["artifacts"] += ["build_blender_native/bin/blender", "web/app/public/vendor/blender/web_engine.wasm"]
|
||||
for entry in result["dependencies"]:
|
||||
if not (ROOT / entry).is_file():
|
||||
raise FileNotFoundError(entry)
|
||||
target = ROOT / "my-tools/local-workflows" / (JOB + ".json")
|
||||
write_json(target, {"schemaVersion": 1, "task": context["task"], "job": JOB,
|
||||
"parentSha256": context["parentSha256"], "acceptance": "pending fresh validation", "result": result})
|
||||
print(target.relative_to(ROOT))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
67
my-tools/prepare_wbv2_sculpt_workflow.py
Normal file
67
my-tools/prepare_wbv2_sculpt_workflow.py
Normal file
@@ -0,0 +1,67 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Prepare the two Sculpt panel routes; remeshing remains a separate task."""
|
||||
|
||||
import hashlib
|
||||
import json
|
||||
import pathlib
|
||||
import subprocess
|
||||
from wbv2_execution_phase import implementation_only
|
||||
|
||||
ROOT = pathlib.Path(__file__).resolve().parents[1]
|
||||
JOB = "WEBUI-SCULPT"
|
||||
PREPARATION_INPUTS = ["web/tests/e2e/sculpt-authoring-ui-production.spec.ts", "web/protocol/paint.ts"]
|
||||
|
||||
|
||||
def main():
|
||||
context = json.loads(subprocess.check_output(["node", "tools/web/print-task-context.mjs"], cwd=ROOT, text=True))
|
||||
if not implementation_only(ROOT):
|
||||
subprocess.run(["node", "tools/web/check-task-context.mjs"], cwd=ROOT, check=True, stdout=subprocess.DEVNULL)
|
||||
test_path = PREPARATION_INPUTS[0]
|
||||
sources = ["blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp"]
|
||||
changed = [test_path, "web/protocol/paint.ts", "my-tools/prepare_wbv2_sculpt_workflow.py"]
|
||||
deps = sorted(set(sources + changed + [
|
||||
".emscripten-web", "build_web_blender6/CMakeCache.txt", "my-tools/build_local_webengine.py",
|
||||
"tools/web/incremental-web-build.mjs", "tools/web/sync-web-engine-runtime.mjs",
|
||||
"tests/files/web/basic_scene.blend", "web/protocol/sculpt.ts", "web/protocol/web-engine.ts",
|
||||
"web/protocol/scene-ir.ts", "web/tests/fixtures/native-ui-workflow.ts",
|
||||
"web/app/src/workers/web-engine.worker.ts", "web/app/src/engine-client/WebEngineClient.ts",
|
||||
"web/app/src/app/App.tsx", "web/app/vite.config.ts", "web/tsconfig.json",
|
||||
"web/package.json", "web/playwright.config.ts",
|
||||
]))
|
||||
missing = [path for path in deps if not (ROOT / path).is_file()]
|
||||
if missing:
|
||||
raise RuntimeError(f"Missing dependencies: {missing}")
|
||||
checks = [
|
||||
{"id": "wasm-source-build", "argv": ["python3", "my-tools/build_local_webengine.py"], "cwd": ".", "kinds": ["source_build"], "timeoutSeconds": 1200, "continueOnFailure": True},
|
||||
{"id": "web-build", "argv": ["node", "tools/web/incremental-web-build.mjs"], "cwd": ".", "kinds": ["typecheck"], "dependsOn": ["wasm-source-build"], "timeoutSeconds": 300, "continueOnFailure": True},
|
||||
{"id": "authoring-lint", "argv": ["node", "node_modules/eslint/bin/eslint.js", "app/src/app/App.tsx", "protocol/paint.ts", test_path.removeprefix("web/")], "cwd": "web", "kinds": ["lint"], "timeoutSeconds": 90, "continueOnFailure": True},
|
||||
]
|
||||
kinds = ["positive", "negative", "undo_redo", "save_reopen", "determinism"]
|
||||
units = {"stroke": "web-command:sculptStroke", "attributes": "web-command:setSculptMeshAttributes"}
|
||||
cases = []
|
||||
for route in ["panel", *units]:
|
||||
identifier = f"chromium-{route}"
|
||||
checks.append({"id": identifier, "argv": ["env", "WEB_TEST_PORT=5376", "node", "node_modules/@playwright/test/cli.js", "test", "--config", "playwright.config.ts", test_path.removeprefix("web/"), "--grep", f"sculpt {route}", "--workers=1", "--max-failures=1"], "cwd": "web", "kinds": ["chromium", *(kinds if route in units else [])], "dependsOn": ["wasm-source-build", "web-build", "authoring-lint"], "timeoutSeconds": 60, "continueOnFailure": True})
|
||||
if route in units:
|
||||
cases.extend({"id": f"sculpt-{route}-{kind}", "kind": kind, "checkId": identifier,
|
||||
"receipt": f"unallocated/{route}-{kind}.json", "unitIds": [units[route]]} for kind in kinds)
|
||||
result = {"status": "ready", "summary": "Sculpt panel separates persisted face sets from transient active-face state",
|
||||
"workflow": "Apply a DRAW stroke; edit mask and face sets in the panel; independently verify each native route through rejection, history, save/reopen and replay",
|
||||
"sourceUnits": list(units.values()), "routeIds": list(units.values()),
|
||||
"sourceReferences": sources, "changedFiles": changed, "dependencies": deps,
|
||||
"artifacts": ["build_web_blender6/bin/web_engine.wasm", "build_web_blender6/bin/web_engine.js"],
|
||||
"checks": checks, "cases": cases}
|
||||
contract = {"schemaVersion": 1, "task": context["task"], "job": JOB,
|
||||
"parentSha256": hashlib.sha256((ROOT / context["sourceDocuments"]["parentManifest"]).read_bytes()).hexdigest(),
|
||||
"acceptance": "pending independent local validation", "result": result}
|
||||
target = ROOT / "my-tools/local-workflows" / f"{JOB}.json"
|
||||
temporary = target.with_suffix(".json.tmp")
|
||||
temporary.write_text(json.dumps(contract, indent=2) + "\n")
|
||||
temporary.replace(target)
|
||||
print(json.dumps({"job": JOB, "state": "prepared", "checks": len(checks), "cases": len(cases)}))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
13
my-tools/prepare_wbv2_sequencer_compositor_workflow.py
Normal file
13
my-tools/prepare_wbv2_sequencer_compositor_workflow.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from wbv2_compilation_recipe import prepare
|
||||
|
||||
JOB = "SEQUENCER-COMPOSITOR-COVERAGE"
|
||||
|
||||
if __name__ == "__main__":
|
||||
prepare(
|
||||
JOB,
|
||||
"Native sequencer strip modifier, transition, color balance and compositor graph authoring; implementation phase only.",
|
||||
["web-command:setSequencerStripModifiers", "web-command:setSequencerTransitions", "web-command:setCompositorNodeGraph", "web-command:setSequencerColorBalance"],
|
||||
["blender-5.2.0/source/blender/web_engine/web_engine_api.cpp", "blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp", "blender-5.2.0/source/blender/sequencer/intern/modifiers/modifier.cc", "blender-5.2.0/source/blender/compositor/cached_resources/intern/cached_mask.cc"],
|
||||
["my-tools/prepare_wbv2_sequencer_compositor_workflow.py", "web/app/src/app/App.tsx", "web/protocol/sequencer.ts", "web/protocol/compositor-commands.ts"],
|
||||
["web/protocol/web-engine.ts", "web/protocol/render-compositor-commands.ts"],
|
||||
)
|
||||
29
my-tools/prepare_wbv2_sequencer_full_workflow.py
Normal file
29
my-tools/prepare_wbv2_sequencer_full_workflow.py
Normal file
@@ -0,0 +1,29 @@
|
||||
from wbv2_compilation_recipe import prepare
|
||||
|
||||
|
||||
JOB = "SEQUENCER-AUTHORING"
|
||||
PREPARATION_INPUTS = ["my-tools/wbv2_compilation_recipe.py", "blender-5.2.0/source/blender/web_engine/web_engine_sequencer_animation.cpp", "blender-5.2.0/source/blender/web_engine/CMakeLists.txt"]
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sources = ['blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp', 'blender-5.2.0/source/blender/web_engine/web_engine_api.cpp', 'blender-5.2.0/source/blender/sequencer/intern/strip_transform.cc', 'blender-5.2.0/source/blender/sequencer/intern/strip_relations.cc', 'blender-5.2.0/source/blender/sequencer/intern/strip_edit.cc', 'blender-5.2.0/source/blender/sequencer/intern/strip_add.cc', 'blender-5.2.0/source/blender/sequencer/intern/animation.cc', 'blender-5.2.0/source/blender/web_engine/web_engine_sequencer_animation.cpp']
|
||||
prepare(
|
||||
JOB,
|
||||
"Move, rename, mute, lock and change channels of existing flat image, movie, "
|
||||
"sound and scene strips without reopening their media or replacing native "
|
||||
"strip data. Blender's native translation keeps strip animation aligned. "
|
||||
"Structural and source changes retain the existing construction path; "
|
||||
"behavior verification is deferred until all features are implemented.",
|
||||
["web-command:setSequencerStrips"],
|
||||
sources,
|
||||
[
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"my-tools/prepare_wbv2_sequencer_full_workflow.py",
|
||||
],
|
||||
[
|
||||
"blender-5.2.0/source/blender/sequencer/SEQ_animation.hh",
|
||||
"blender-5.2.0/source/blender/sequencer/SEQ_relations.hh",
|
||||
"web/protocol/sequencer.ts",
|
||||
"tests/files/web/sequencer_scene.blend",
|
||||
],
|
||||
)
|
||||
120
my-tools/prepare_wbv2_sequencer_workflow.py
Normal file
120
my-tools/prepare_wbv2_sequencer_workflow.py
Normal file
@@ -0,0 +1,120 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Admit sequencer authoring to independent local verification."""
|
||||
|
||||
import hashlib
|
||||
import json
|
||||
import pathlib
|
||||
import subprocess
|
||||
from wbv2_execution_phase import implementation_only
|
||||
|
||||
|
||||
ROOT = pathlib.Path(__file__).resolve().parents[1]
|
||||
JOB = "SEQUENCER-STILL-AUTHORING"
|
||||
UNIT = "web-command:setSequencerStrips"
|
||||
KINDS = ("positive", "negative", "undo_redo", "save_reopen", "determinism")
|
||||
|
||||
|
||||
def main():
|
||||
context = json.loads(subprocess.check_output(
|
||||
["node", "tools/web/print-task-context.mjs"], cwd=ROOT, text=True))
|
||||
if not implementation_only(ROOT):
|
||||
subprocess.run(["node", "tools/web/check-task-context.mjs"], cwd=ROOT,
|
||||
check=True, stdout=subprocess.DEVNULL)
|
||||
parent = ROOT / context["sourceDocuments"]["parentManifest"]
|
||||
backlog_path = ROOT / "tests/golden/WBV2/web-product-backlog.json"
|
||||
backlog = json.loads(backlog_path.read_text())
|
||||
parent_job = next(job for job in backlog["tasks"] if job["id"] == "SEQUENCER-AUTHORING")
|
||||
if not any(job["id"] == JOB for job in backlog["tasks"]):
|
||||
backlog["tasks"].append({
|
||||
"id": JOB, "parentJob": parent_job["id"], "module": parent_job["module"],
|
||||
"title": "Verify native sequencer still-image editing and resource preservation",
|
||||
"status": "pending", "commands": ["setSequencerStrips"],
|
||||
"ownedPaths": parent_job["ownedPaths"],
|
||||
"resultPath": f"tests/golden/WBV2/product-migration/{JOB}-result.json",
|
||||
"implementation": "Move, trim, split, mute and remove still-image strips; preserve existing sound and effect resources; add and remove META strips with native persistence and history.",
|
||||
})
|
||||
backlog_path.write_text(json.dumps(backlog, indent=2, ensure_ascii=False) + "\n")
|
||||
references = [
|
||||
"blender-5.2.0/source/blender/sequencer/intern/sequencer.cc",
|
||||
"blender-5.2.0/source/blender/sequencer/intern/strip_add.cc",
|
||||
"blender-5.2.0/source/blender/sequencer/intern/strip_edit.cc",
|
||||
"blender-5.2.0/source/blender/blenkernel/intern/idtype.cc",
|
||||
"blender-5.2.0/source/blender/blenkernel/intern/sound.cc",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_api.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_headless_fallback.cpp",
|
||||
]
|
||||
changed = [
|
||||
"web/app/src/app/App.tsx",
|
||||
"web/tests/e2e/sequencer-authoring-ui-production.spec.ts",
|
||||
"web/tests/fixtures/sequencer-main-snapshots.py",
|
||||
"my-tools/diagnose_local_sequencer.mjs",
|
||||
"my-tools/prepare_wbv2_sequencer_workflow.py",
|
||||
"blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp",
|
||||
"blender-5.2.0/source/blender/blenkernel/intern/idtype.cc",
|
||||
references[-1],
|
||||
]
|
||||
dependencies = sorted(set(references + changed + [
|
||||
".emscripten-web", "build_web_blender6/CMakeCache.txt",
|
||||
"tests/files/web/sequencer_scene.blend",
|
||||
"my-tools/build_local_webengine.py",
|
||||
"tools/web/sync-web-engine-runtime.mjs",
|
||||
"tools/web/incremental-web-build.mjs",
|
||||
"tools/web/run-incremental-typecheck.mjs",
|
||||
"tools/web/web-build-fingerprint.mjs",
|
||||
"web/tests/fixtures/native-ui-workflow.ts",
|
||||
"web/app/src/app/App.tsx", "web/app/src/workers/web-engine.worker.ts",
|
||||
"web/app/src/engine-client/WebEngineClient.ts",
|
||||
"web/app/src/sequencer/SequencerTimeline.ts",
|
||||
"web/app/src/capabilities/blender-feature-route-catalog.json",
|
||||
"web/app/vite.config.ts", "web/package.json", "web/playwright.config.ts",
|
||||
"web/protocol/sequencer.ts", "web/protocol/scene-ir.ts",
|
||||
"web/protocol/web-engine.ts", "web/tsconfig.json",
|
||||
]))
|
||||
missing = [name for name in dependencies if not (ROOT / name).is_file()]
|
||||
if missing:
|
||||
raise RuntimeError("Missing local dependencies: " + ", ".join(missing))
|
||||
checks = [
|
||||
{"id": "wasm-source-build", "argv": ["python3", "my-tools/build_local_webengine.py"],
|
||||
"cwd": ".", "kinds": ["source_build"], "timeoutSeconds": 1200, "continueOnFailure": True},
|
||||
{"id": "native-minimal", "argv": ["node", "my-tools/diagnose_local_sequencer.mjs"],
|
||||
"cwd": ".", "kinds": ["unit"], "dependsOn": ["wasm-source-build"],
|
||||
"timeoutSeconds": 30, "continueOnFailure": True},
|
||||
{"id": "web-build", "argv": ["node", "tools/web/incremental-web-build.mjs"],
|
||||
"cwd": ".", "kinds": ["typecheck"], "dependsOn": ["wasm-source-build", "native-minimal"],
|
||||
"timeoutSeconds": 300, "continueOnFailure": True},
|
||||
{"id": "authoring-lint", "argv": ["node", "node_modules/eslint/bin/eslint.js", "app/src/app/App.tsx"],
|
||||
"cwd": "web", "kinds": ["lint"], "timeoutSeconds": 60, "continueOnFailure": True},
|
||||
{"id": "chromium-authoring", "argv": ["env", f"BLENDER_BIN={ROOT / 'build_blender_native/bin/blender'}",
|
||||
"WEB_TEST_PORT=5358", "node", "node_modules/@playwright/test/cli.js", "test",
|
||||
"--config", "playwright.config.ts", "tests/e2e/sequencer-authoring-ui-production.spec.ts",
|
||||
"--workers=1", "--max-failures=1"], "cwd": "web", "kinds": ["chromium", *KINDS],
|
||||
"dependsOn": ["wasm-source-build", "web-build", "native-minimal"],
|
||||
"timeoutSeconds": 180, "continueOnFailure": True},
|
||||
]
|
||||
document = {
|
||||
"schemaVersion": 1, "task": context["task"], "job": JOB,
|
||||
"parentSha256": hashlib.sha256(parent.read_bytes()).hexdigest(),
|
||||
"acceptance": "pending independent local validation",
|
||||
"result": {
|
||||
"status": "ready", "summary": "Native sequencer authoring requires independent behavioral validation",
|
||||
"workflow": "Move, trim, split, mute and remove a still-image strip; preserve sound and effect resources; create and remove a META strip in native Main",
|
||||
"sourceUnits": [UNIT], "routeIds": [UNIT], "sourceReferences": references,
|
||||
"changedFiles": changed, "dependencies": dependencies,
|
||||
"artifacts": ["build_blender_native/bin/blender", "build_web_blender6/bin/web_engine.wasm",
|
||||
"build_web_blender6/bin/web_engine.js", "web/app/public/vendor/blender/web_engine.wasm",
|
||||
"web/app/public/vendor/blender/web_engine.js", "web/app/public/wasm-module-manifest.json"],
|
||||
"checks": checks,
|
||||
"cases": [{"id": f"sequencer-authoring-{kind}", "kind": kind,
|
||||
"checkId": "chromium-authoring", "receipt": f"unallocated/{kind}.json",
|
||||
"unitIds": [UNIT]} for kind in KINDS],
|
||||
},
|
||||
}
|
||||
output = ROOT / "my-tools/local-workflows" / f"{JOB}.json"
|
||||
output.parent.mkdir(parents=True, exist_ok=True)
|
||||
output.write_text(json.dumps(document, indent=2) + "\n")
|
||||
print(json.dumps({"job": JOB, "state": "prepared", "contract": str(output.relative_to(ROOT))}))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
11
my-tools/prepare_wbv2_server_operator_job_workflow.py
Normal file
11
my-tools/prepare_wbv2_server_operator_job_workflow.py
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env python3
|
||||
import copy
|
||||
from wbv2_autopilot import ROOT, queue_context, read_json, write_json
|
||||
JOB='SERVER-OPERATOR-JOB'; KINDS=['positive','negative','undo_redo','save_reopen','determinism']; UNITS=['operator:OBJECT_OT_add','operator:WM_OT_open_mainfile','operator:WM_OT_save_as_mainfile']
|
||||
def main():
|
||||
c=queue_context(ROOT); source=read_json(ROOT/'tests/golden/WBV2/autopilot/local-plans/SERVER-OPERATOR-HTTP-PROVIDER.json')['result']; r=copy.deepcopy(source)
|
||||
r['summary']='Disposable HTTP Blender operator job mutates Main and writes fresh server receipts'; r['workflow']='Submit catalog Add Object through a disposable deployment, poll native Blender, reject malformed properties, verify Main history, save/reopen and deterministic replay'; r['sourceUnits']=UNITS; r['routeIds']=UNITS; r['changedFiles']=['web/tests/e2e/server-operator-native.spec.ts','my-tools/prepare_wbv2_server_operator_job_workflow.py']; r['dependencies']=sorted(set(r['dependencies']+r['changedFiles']+['tools/web/deployment-http-server.mjs','tools/web/server-operator-job-server.mjs','tools/web/server-operator-job.py','web/tests/fixtures/server-main-snapshots.py'])); r['checks']=[x for x in r['checks'] if x['id'] in {'wasm-source-build','web-build','authoring-lint'}]; r['checks'].append({'id':'chromium-server-job','argv':['env','WEB_TEST_PORT=5407','node','node_modules/@playwright/test/cli.js','test','tests/e2e/server-operator-native.spec.ts','--grep','catalog Add Object','--workers=1','--max-failures=1'],'cwd':'web','kinds':['chromium',*KINDS],'dependsOn':['wasm-source-build','web-build','authoring-lint'],'timeoutSeconds':180}); r['cases']=[{'id':'server-http-'+k,'kind':k,'checkId':'chromium-server-job','receipt':'unallocated/server-http-'+k+'.json','unitIds':UNITS} for k in KINDS]
|
||||
for p in r['dependencies']:
|
||||
if not (ROOT/p).is_file(): raise FileNotFoundError(p)
|
||||
write_json(ROOT/'my-tools/local-workflows/SERVER-OPERATOR-JOB.json',{'schemaVersion':1,'task':c['task'],'job':JOB,'parentSha256':c['parentSha256'],'acceptance':'pending fresh validation','result':r}); print(JOB)
|
||||
if __name__=='__main__': main()
|
||||
13
my-tools/prepare_wbv2_tracking_mask_workflow.py
Normal file
13
my-tools/prepare_wbv2_tracking_mask_workflow.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from wbv2_compilation_recipe import prepare
|
||||
|
||||
JOB = "TRACKING-MASK-COVERAGE"
|
||||
|
||||
if __name__ == "__main__":
|
||||
prepare(
|
||||
JOB,
|
||||
"Native tracking marker, solve and mask spline/point authoring through WebEngine Main; implementation phase only.",
|
||||
["web-command:setTrackingMarkers", "web-command:setTrackingSolve", "web-command:setMaskSpline", "web-command:setMaskPoint"],
|
||||
["blender-5.2.0/source/blender/web_engine/web_engine_api.cpp", "blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp", "blender-5.2.0/source/blender/blenkernel/intern/movieclip.cc", "blender-5.2.0/source/blender/editors/mask/mask_ops.cc"],
|
||||
["my-tools/prepare_wbv2_tracking_mask_workflow.py", "web/app/src/app/App.tsx", "web/protocol/web-engine.ts"],
|
||||
["web/protocol/tracking-mask.ts"],
|
||||
)
|
||||
37
my-tools/prepare_wbv2_webui_operator_palette_workflow.py
Normal file
37
my-tools/prepare_wbv2_webui_operator_palette_workflow.py
Normal file
@@ -0,0 +1,37 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Bind F3 UI actions to native Main and independently validated server remesh."""
|
||||
import copy
|
||||
from wbv2_autopilot import ROOT, queue_context, read_json, write_json
|
||||
|
||||
JOB = "WEBUI-OPERATOR-PALETTE"
|
||||
PREPARATION_INPUTS = ["my-tools/local-workflows/NATIVE-OPERATOR-BRIDGE.json",
|
||||
"web/tests/e2e/operator-palette-native.spec.ts", "web/tests/fixtures/operator-bridge-main.py",
|
||||
"web/tests/fixtures/native-ui-workflow.ts"]
|
||||
KINDS = ["positive", "negative", "undo_redo", "save_reopen", "determinism"]
|
||||
|
||||
|
||||
def main():
|
||||
context = queue_context(ROOT)
|
||||
result = copy.deepcopy(read_json(ROOT / PREPARATION_INPUTS[0])["result"])
|
||||
result["summary"] = "F3 search, native property editing and persistence with same-file reopen"
|
||||
result["workflow"] = "Search a native cube operator through F3, reject an oversized name, create geometry, undo/redo, reopen and replay after reloading the app; retain the separate server remesh behavior checks"
|
||||
result["changedFiles"] = ["web/tests/e2e/operator-palette-native.spec.ts",
|
||||
"my-tools/prepare_wbv2_webui_operator_palette_workflow.py", "web/app/src/app/App.tsx"]
|
||||
result["dependencies"] = sorted(set(result["dependencies"] + PREPARATION_INPUTS + result["changedFiles"]))
|
||||
result["checks"] = [check for check in result["checks"] if check["id"] != "chromium-bridge"]
|
||||
result["checks"].append({"id": "chromium-palette", "argv": ["env", "WEB_TEST_PORT=5395",
|
||||
"node", "node_modules/@playwright/test/cli.js", "test", "tests/e2e/operator-palette-native.spec.ts",
|
||||
"--workers=1", "--max-failures=1"], "cwd": "web", "kinds": ["chromium", *KINDS],
|
||||
"dependsOn": ["wasm-source-build", "web-build", "authoring-lint"], "timeoutSeconds": 180})
|
||||
result["cases"] = [case for case in result["cases"] if case["checkId"] != "chromium-bridge"]
|
||||
result["cases"] += [{"id": f"operator-palette-{kind}", "kind": kind, "checkId": "chromium-palette",
|
||||
"receipt": f"unallocated/operator-palette-{kind}.json",
|
||||
"unitIds": ["web-command:createPrimitive", "operator:WM_OT_open_mainfile"]} for kind in KINDS]
|
||||
path = ROOT / "my-tools/local-workflows" / (JOB + ".json")
|
||||
write_json(path, {"schemaVersion": 1, "task": context["task"], "job": JOB,
|
||||
"parentSha256": context["parentSha256"], "acceptance": "pending fresh validation", "result": result})
|
||||
print(path.relative_to(ROOT))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
77
my-tools/recover_behavior_contracts.py
Normal file
77
my-tools/recover_behavior_contracts.py
Normal file
@@ -0,0 +1,77 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Recover only complete, scope-preserving behavior contracts from valid receipts."""
|
||||
import copy
|
||||
import hashlib
|
||||
import json
|
||||
from pathlib import Path
|
||||
from wbv2_autopilot import ROOT, contained, read_json, write_json
|
||||
|
||||
KINDS = {"positive", "negative", "undo_redo", "save_reopen", "determinism"}
|
||||
|
||||
|
||||
def candidate(worker, contract, root=ROOT):
|
||||
try:
|
||||
value = read_json(worker)
|
||||
proof = read_json(worker.parent / "verified-receipt.json")
|
||||
required = set(contract["result"]["sourceUnits"])
|
||||
if (proof.get("status") != "verified" or proof.get("job") != contract["job"]
|
||||
or proof.get("queueTask") != contract["task"]
|
||||
or not required.issubset(value.get("sourceUnits", []))
|
||||
or not required.issubset(proof.get("sourceUnits", []))):
|
||||
return None
|
||||
cases = value.get("cases", [])
|
||||
if not KINDS.issubset({case["kind"] for case in cases}):
|
||||
return None
|
||||
artifacts = {item["path"]: item["sha256"] for item in proof.get("artifacts", [])}
|
||||
inputs = proof.get("inputs", {})
|
||||
if not artifacts or not inputs:
|
||||
return None
|
||||
for relative, digest in {**inputs, **artifacts}.items():
|
||||
path = contained(root, relative)
|
||||
if (not path.is_file() or hashlib.sha256(path.read_bytes()).hexdigest() != digest):
|
||||
return None
|
||||
for case in cases:
|
||||
receipt_path = contained(root, case["receipt"])
|
||||
if case["receipt"] not in artifacts:
|
||||
return None
|
||||
receipt = read_json(receipt_path)
|
||||
if (receipt.get("status") != "PASS"
|
||||
or receipt.get("runtime") not in {"CHROMIUM_WEBENGINE", "BLENDER_NATIVE"}
|
||||
or receipt.get("caseId") != case["id"]
|
||||
or receipt.get("kind") != case["kind"]
|
||||
or set(receipt.get("unitIds", [])) != set(case["unitIds"])):
|
||||
return None
|
||||
result = copy.deepcopy(value)
|
||||
result.pop("contractKind", None)
|
||||
result.pop("mandatoryCacheInputs", None)
|
||||
for case in result["cases"]:
|
||||
case["receipt"] = "unallocated/" + case["id"] + ".json"
|
||||
return result
|
||||
except (OSError, ValueError, KeyError, TypeError):
|
||||
return None
|
||||
|
||||
|
||||
def main():
|
||||
recovered, unavailable = [], []
|
||||
for path in sorted((ROOT / "my-tools/local-workflows").glob("*.json")):
|
||||
contract = read_json(path)
|
||||
if contract.get("result", {}).get("contractKind") != "compilation_only":
|
||||
continue
|
||||
job = contract["job"]
|
||||
candidates = []
|
||||
for worker in (ROOT / "tests/golden/WBV2/autopilot/runs").glob(job + "-*/worker-result.json"):
|
||||
result = candidate(worker, contract)
|
||||
if result:
|
||||
candidates.append((worker.stat().st_mtime_ns, result))
|
||||
if not candidates:
|
||||
unavailable.append(job)
|
||||
continue
|
||||
contract["result"] = max(candidates, key=lambda item: item[0])[1]
|
||||
contract["acceptance"] = "pending fresh execution; historical receipts are not new results"
|
||||
write_json(path, contract)
|
||||
recovered.append(job)
|
||||
print(json.dumps({"recovered": recovered, "count": len(recovered), "unavailable": unavailable}))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
44
my-tools/refine_wbv2_local_checks.py
Normal file
44
my-tools/refine_wbv2_local_checks.py
Normal file
@@ -0,0 +1,44 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Refine the current local provider contract without reading production source."""
|
||||
import copy
|
||||
import json
|
||||
|
||||
from wbv2_autopilot import ROOT, read_json, write_json
|
||||
|
||||
|
||||
def main():
|
||||
destination = ROOT / "tests/golden/WBV2/autopilot/local-plans/SERVER-OPERATOR-HTTP-PROVIDER.json"
|
||||
contract = read_json(destination)
|
||||
result = contract["result"]
|
||||
original = next((check for check in result["checks"] if check["id"] == "chromium-provider"), None)
|
||||
if original is None:
|
||||
print(json.dumps({"state": "already_refined", "checks": len(result["checks"])}))
|
||||
return
|
||||
names = {"chromium-main": "server-operator-native.spec.ts", "chromium-polling": "server-operator-polling.spec.ts", "chromium-cross-abi": "server-blend-cross-abi.spec.ts"}
|
||||
timeouts = {"wasm-source-build": 1200, "web-build": 300, "client-lint": 60, "provider-transport": 60, "deployment-static": 30, "chromium-main": 180, "chromium-polling": 90, "chromium-cross-abi": 180}
|
||||
checks = [check for check in result["checks"] if check is not original]
|
||||
for identifier, name in names.items():
|
||||
check = copy.deepcopy(original)
|
||||
check["id"] = identifier
|
||||
check["argv"] = [arg for arg in check["argv"] if not arg.endswith(".spec.ts") or arg.endswith(name)]
|
||||
check["dependsOn"] = ["wasm-source-build", "web-build"]
|
||||
check["cacheInputs"] = [path for path in result["dependencies"] if "/tests/e2e/" not in path or path.endswith(name)]
|
||||
if identifier != "chromium-main":
|
||||
check["kinds"] = ["chromium", "negative"]
|
||||
checks.append(check)
|
||||
for check in checks:
|
||||
check["timeoutSeconds"] = timeouts[check["id"]]
|
||||
check["continueOnFailure"] = True
|
||||
if check["id"] == "web-build":
|
||||
check["dependsOn"] = ["wasm-source-build"]
|
||||
for case in result["cases"]:
|
||||
if case["checkId"] == "chromium-provider":
|
||||
case["checkId"] = "chromium-main"
|
||||
result["checks"] = checks
|
||||
contract["executionPolicy"] = "per-business-group checkpoints; independent groups continue after failure"
|
||||
write_json(destination, contract)
|
||||
print(json.dumps({"checks": len(checks), "chromiumGroups": list(names), "modelRequests": 0}))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
53
my-tools/report_wbv2_authoring_progress.py
Normal file
53
my-tools/report_wbv2_authoring_progress.py
Normal file
@@ -0,0 +1,53 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Summarize accepted authoring work and distinguish preparation from migration."""
|
||||
import json
|
||||
from datetime import datetime
|
||||
|
||||
from wbv2_autopilot import Autopilot, ROOT, now, read_json, sha, write_json
|
||||
|
||||
|
||||
def main():
|
||||
runner = Autopilot()
|
||||
workflows = []
|
||||
for identifier in ["WEBUI-FONT-ASSETS", "ACTION-MARKER-AUTHORING"]:
|
||||
record = runner.state["jobs"][identifier]
|
||||
if not runner.receipt_valid(record):
|
||||
raise ValueError("authoring receipt is not valid: " + identifier)
|
||||
receipt = read_json(ROOT / record["receipt"])
|
||||
executed = [check for check in receipt["checks"] if not check.get("reusedFrom")]
|
||||
started = min(datetime.fromisoformat(check["startedAt"]) for check in executed)
|
||||
workflows.append({
|
||||
"job": identifier, "status": "verified", "workflow": receipt["workflow"], "sourceUnits": receipt["sourceUnits"],
|
||||
"receipt": {"path": record["receipt"], "sha256": sha(ROOT / record["receipt"])},
|
||||
"elapsedSeconds": round((datetime.fromisoformat(receipt["verifiedAt"]) - started).total_seconds(), 6),
|
||||
"checks": [{"id": check["id"], "seconds": check["durationSeconds"], "exitCode": check["exitCode"], "reused": bool(check.get("reusedFrom")), "log": check["log"], "sha256": check["logSha256"]} for check in receipt["checks"]],
|
||||
})
|
||||
inventory = read_json(ROOT / "tests/golden/WBV2/dynamic-inventory.json")
|
||||
assignments = read_json(runner.directory / "local-task-assignments.json")
|
||||
changed = ["blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp", "blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp", "web/app/src/app/App.tsx"]
|
||||
report = {
|
||||
"schemaVersion": 1, "task": "WBV2-P1424-001", "status": "in_progress", "recordedAt": now(),
|
||||
"executionMode": "local_only", "modelRequests": 0,
|
||||
"workflows": workflows,
|
||||
"validWorkflows": [identifier for identifier, record in runner.state["jobs"].items() if runner.receipt_valid(record)],
|
||||
"pendingWorkflows": assignments["blockedCount"],
|
||||
"preparedContexts": len(list((runner.directory / "preparation").glob("*.json"))),
|
||||
"validation": {"pythonTests": 118, "runtimeSyncTests": 2, "contextGovernance": "PASS", "diffCheck": "PASS"},
|
||||
"sourceInventory": {"unitCount": inventory["summary"]["unitCount"], "verifiedUnits": inventory["coverage"]["verifiedUnits"], "unverifiedUnits": inventory["coverage"]["unverifiedUnits"], "sourceTreeSha256": inventory["authority"]["sourceTreeSha256"], "hashScope": "recorded inventory baseline, not a recomputed tree after these edits", "newLocalReceiptBindings": sorted({unit for item in workflows for unit in item["sourceUnits"]}), "inventoryCoverageIncrement": 0},
|
||||
"changedSourceHashes": [{"path": path, "sha256": sha(ROOT / path)} for path in changed],
|
||||
"limits": ["The complete Blender migration is not finished.", "Preparation reports contain source/test candidates, not behavioral acceptance.", "Validation timings exclude implementation and debugging time; incremental builds are not clean-build benchmarks.", "Global source coverage and the authoritative nextTask are not advanced by this report."],
|
||||
}
|
||||
destination = ROOT / "tests/golden/WBV2-P1424-001/authoring-progress-report.json"
|
||||
write_json(destination, report)
|
||||
lines = ["# Authoring Progress", "", "The complete migration remains in progress. This segment closes two existing business workflows with fresh native and Chromium acceptance.", "", "## Verified Behavior", "", "- Font: layout settings, packed PFB import, font links, missing-link rejection, undo/redo and save/reopen.", "- Animation: empty Action visibility and deletion, keyframe values/handles/interpolation, timeline marker add/rename/move/delete, invalid-frame rejection, history, persistence and independent repeat.", "", "## Production Fixes", "", "- Preserve the selected text object after font commands through the existing edit-entry selection policy.", "- Include empty Actions, timeline markers and Bezier handle coordinates in the native snapshot reader.", "- Replace the marker clearing loop with Blender's full-list release helper; the previous loop could leave a marker behind during uninterrupted edits.", "- Set explicit Bezier handles to free mode in both single-keyframe and bulk native writers.", "- Publish rebuilt WebEngine JS/WASM and its current runtime integrity binding together; invalid builds do not replace working artifacts.", "", "Temporary native logging, worker diagnostics and unproven cache/serial-queue experiments were removed before final acceptance.", "", "## Execution", "", "New work is selected before stale previously verified work. Successful checks are retained, failed inputs can be repaired and retried, and unchanged unavailable work waits for an input change instead of repeatedly running preflight. Remaining tasks receive bounded local source-unit and test-candidate preparation reports.", "", "Job | Check | Seconds | Exit", "--- | --- | ---: | ---:"]
|
||||
for item in workflows:
|
||||
for check in item["checks"]:
|
||||
lines.append(f"{item['job']} | {check['id']} | {check['seconds']:.3f} | {check['exitCode']}")
|
||||
lines.append(f"{item['job']} | Verified receipt publication | {item['elapsedSeconds']:.3f} | 0")
|
||||
lines += ["", f"Valid workflow receipts: {len(report['validWorkflows'])}. Pending workflow contracts: {report['pendingWorkflows']}. Prepared source/test contexts: {report['preparedContexts']}.", "", "Python regressions: 118 passed. Runtime synchronization tests: 2 passed. Context governance and whitespace checks passed.", "", "## Source Accounting", "", json.dumps(report["sourceInventory"], ensure_ascii=True), "", "Current changed-source hashes are recorded in the JSON report; the inventory baseline has not been rewritten.", "", *report["limits"]]
|
||||
destination.with_suffix(".md").write_text("\n".join(lines) + "\n", encoding="utf-8")
|
||||
print(json.dumps({"report": str(destination.relative_to(ROOT)), "valid": len(report["validWorkflows"]), "pending": report["pendingWorkflows"], "prepared": report["preparedContexts"], "workflows": [{"job": item["job"], "seconds": item["elapsedSeconds"]} for item in workflows]}))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
67
my-tools/report_wbv2_checkpoints.py
Normal file
67
my-tools/report_wbv2_checkpoints.py
Normal file
@@ -0,0 +1,67 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Summarize cold and reused validation runs using local evidence only."""
|
||||
import argparse
|
||||
from datetime import datetime
|
||||
import json
|
||||
|
||||
from wbv2_autopilot import ROOT, Autopilot, contained, now, read_json, sha, write_json
|
||||
|
||||
|
||||
def summarize(runner, directory):
|
||||
path = directory + "/verified-receipt.json"
|
||||
if not runner.receipt_valid({"state": "verified", "receipt": path, "receiptSha256": sha(contained(ROOT, path))}):
|
||||
raise ValueError("benchmark receipt or its bound inputs have drifted")
|
||||
receipt = read_json(contained(ROOT, path))
|
||||
executed = [check for check in receipt["checks"] if not check.get("reusedFrom")]
|
||||
reused = [check for check in receipt["checks"] if check.get("reusedFrom")]
|
||||
start = min(datetime.fromisoformat(check["startedAt"]) for check in executed)
|
||||
finish = datetime.fromisoformat(receipt["verifiedAt"])
|
||||
return {
|
||||
"receipt": {"path": path, "sha256": sha(contained(ROOT, path))},
|
||||
"elapsedSeconds": round((finish - start).total_seconds(), 6),
|
||||
"executedCheckSeconds": round(sum(check["durationSeconds"] for check in executed), 6),
|
||||
"avoidedCheckSeconds": round(sum(check["durationSeconds"] for check in reused), 6),
|
||||
"executedCount": len(executed),
|
||||
"reusedCount": len(reused),
|
||||
"steps": [{"id": check["id"], "execution": "reused" if check.get("reusedFrom") else "executed", "originalDurationSeconds": check["durationSeconds"], "log": check["log"], "exitCode": check["exitCode"], "resourceUsage": check.get("resourceUsage")} for check in receipt["checks"]],
|
||||
}
|
||||
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(description=__doc__)
|
||||
parser.add_argument("--cold-run", required=True)
|
||||
parser.add_argument("--warm-run", required=True)
|
||||
args = parser.parse_args()
|
||||
runner = Autopilot()
|
||||
cold, warm = summarize(runner, args.cold_run), summarize(runner, args.warm_run)
|
||||
inventory = read_json(ROOT / "tests/golden/WBV2/dynamic-inventory.json")
|
||||
report = {
|
||||
"schemaVersion": 1,
|
||||
"task": "WBV2-P1424-001",
|
||||
"recordedAt": now(),
|
||||
"taskStatus": "in_progress",
|
||||
"executionMode": "local_only",
|
||||
"modelRequests": 0,
|
||||
"cold": cold,
|
||||
"warm": warm,
|
||||
"elapsedReductionPercent": round((1 - warm["elapsedSeconds"] / cold["elapsedSeconds"]) * 100, 2),
|
||||
"validation": {"supervisorTests": 89, "nativeProfileTests": 14, "businessGroups": 3, "businessCases": 19, "failedGroups": 0},
|
||||
"coverage": {"unitCount": inventory["summary"]["unitCount"], "verifiedUnits": inventory["coverage"]["verifiedUnits"], "unverifiedUnits": inventory["coverage"]["unverifiedUnits"], "sourceTreeSha256": inventory["authority"]["sourceTreeSha256"], "newBoundUnits": 0},
|
||||
"profiling": {"path": "tests/golden/WBV2/autopilot/native-profile-20260909/report.json", "sha256": sha(ROOT / "tests/golden/WBV2/autopilot/native-profile-20260909/report.json")},
|
||||
"limits": ["Elapsed time is first executed stage to verified receipt publication, including evidence hashing; this is not a clean WASM build benchmark.", "Cached checks retain original logs, timestamps and artifact bindings; no fresh runtime execution is claimed.", "GIL/event-loop findings come from focused transport fixtures, not Blender computational profiling.", "The remaining 33 workflow contracts are still pending; queue and inventory are not advanced."],
|
||||
}
|
||||
path = ROOT / "tests/golden/WBV2-P1424-001/python-checkpoint-efficiency-report.json"
|
||||
write_json(path, report)
|
||||
lines = ["# Python Checkpoint Efficiency", "", "Local source, WASM and valid evidence are reused. Model execution remains disabled.", "", "Stage | Cold Execution (s) | Repeat", "--- | ---: | ---"]
|
||||
repeats = {step["id"]: step for step in warm["steps"]}
|
||||
for step in cold["steps"]:
|
||||
repeat = repeats[step["id"]]
|
||||
label = "reused original evidence" if repeat["execution"] == "reused" else f"{repeat['originalDurationSeconds']:.3f} s"
|
||||
lines.append(f"{step['id']} | {step['originalDurationSeconds']:.3f} | {label}")
|
||||
lines += ["", f"Cold validation: {cold['elapsedSeconds']:.3f} s. Repeat: {warm['elapsedSeconds']:.3f} s. Reduction: {report['elapsedReductionPercent']:.2f}%.", "", "Successful steps are checkpointed immediately. Input, environment, log, WASM or artifact drift invalidates reuse. Native dependency analysis always runs incrementally. Case receipts keep their original locations and hashes.", "", "Main mutation/history, polling boundaries and cross-ABI checks run as independent groups with individual timeouts and output directories. A failed dependency blocks only its dependent checks. Independent groups continue; failure cannot publish a verified aggregate.", "", "89 supervisor tests passed. All 19 related Chromium business cases passed. Focused profiling passed 14 transport/process/resource tests.", "", "HTTP fixture profiling: 4.814 s wall, 0.356 s CPU; expected failure waits dominate. Event-loop utilization 1.78%, P99 delay 10.57 ms. Sampled Python fixtures were single-threaded sleeping processes; no evidence justifies changing the GIL or thread pool.", "", "Repeated default startup is idempotent. Request a workflow check without starting a second instance:", "", "```bash", "python3 my-tools/run_web_product_migration.py verify --job SERVER-OPERATOR-HTTP-PROVIDER", "python3 my-tools/run_web_product_migration.py timings --write", "```", "", "Coverage: " + json.dumps(report["coverage"], ensure_ascii=True), "", *report["limits"]]
|
||||
path.with_suffix(".md").write_text("\n".join(lines) + "\n", encoding="utf-8")
|
||||
print(json.dumps({"report": str(path.relative_to(ROOT)), "coldSeconds": cold["elapsedSeconds"], "warmSeconds": warm["elapsedSeconds"], "reusedSteps": warm["reusedCount"], "reductionPercent": report["elapsedReductionPercent"]}))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -1,8 +1,29 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Compatibility entrypoint for the independently verified Python supervisor."""
|
||||
|
||||
from wbv2_autopilot import main
|
||||
import json
|
||||
import traceback
|
||||
|
||||
from wbv2_autopilot import Autopilot, alive, identity, main
|
||||
|
||||
|
||||
def entrypoint():
|
||||
try:
|
||||
return main()
|
||||
except Exception as error:
|
||||
runner = Autopilot()
|
||||
if isinstance(error, RuntimeError) and str(error) == "another Python autopilot owns the project":
|
||||
state = runner.state
|
||||
running = alive(state.get("pid")) and identity(state["pid"]) == state.get("identity")
|
||||
print(json.dumps({"state": "already_running" if running else "owner_check_required", "pid": state.get("pid"), "alive": running, "currentState": state.get("state"), "executionMode": state.get("executionMode")}))
|
||||
return 0 if running else 2
|
||||
runner.directory.mkdir(parents=True, exist_ok=True)
|
||||
log = runner.directory / "supervisor-errors.log"
|
||||
with log.open("a", encoding="utf-8") as stream:
|
||||
traceback.print_exc(file=stream)
|
||||
print(json.dumps({"state": "supervisor_error", "errorType": type(error).__name__, "log": str(log.relative_to(runner.root))}))
|
||||
return 1
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
raise SystemExit(main())
|
||||
raise SystemExit(entrypoint())
|
||||
|
||||
58
my-tools/test_recover_behavior_contracts.py
Normal file
58
my-tools/test_recover_behavior_contracts.py
Normal file
@@ -0,0 +1,58 @@
|
||||
"""Synthetic recovery metadata tests, not Blender acceptance evidence."""
|
||||
import hashlib
|
||||
import json
|
||||
import pathlib
|
||||
import tempfile
|
||||
import unittest
|
||||
from recover_behavior_contracts import candidate, KINDS
|
||||
|
||||
|
||||
class RecoveryTests(unittest.TestCase):
|
||||
def setUp(self):
|
||||
self.temp = tempfile.TemporaryDirectory()
|
||||
self.addCleanup(self.temp.cleanup)
|
||||
self.root = pathlib.Path(self.temp.name)
|
||||
self.worker = self.root / "run/worker-result.json"
|
||||
self.worker.parent.mkdir()
|
||||
self.contract = {"job": "SCULPT", "task": "TASK", "result": {"sourceUnits": ["stroke", "remesh"]}}
|
||||
self.cases = [{"id": kind, "kind": kind, "unitIds": ["stroke", "remesh"],
|
||||
"receipt": f"run/{kind}.json"} for kind in sorted(KINDS)]
|
||||
self.worker.write_text(json.dumps({"cases": self.cases, "sourceUnits": ["stroke", "remesh"]}))
|
||||
(self.root / "source.cc").write_text("synthetic source")
|
||||
def digest(path):
|
||||
return hashlib.sha256(path.read_bytes()).hexdigest()
|
||||
artifacts = []
|
||||
for case in self.cases:
|
||||
path = self.root / case["receipt"]
|
||||
path.write_text(json.dumps({"status": "PASS", "runtime": "CHROMIUM_WEBENGINE",
|
||||
"caseId": case["id"], "kind": case["kind"], "unitIds": case["unitIds"]}))
|
||||
artifacts.append({"path": case["receipt"], "sha256": digest(path)})
|
||||
self.proof = self.root / "run/verified-receipt.json"
|
||||
self.proof.write_text(json.dumps({"status": "verified", "job": "SCULPT", "queueTask": "TASK",
|
||||
"sourceUnits": ["stroke", "remesh"], "artifacts": artifacts,
|
||||
"inputs": {"source.cc": digest(self.root / "source.cc")}}))
|
||||
|
||||
def test_valid_metadata_is_rebound_for_fresh_execution(self):
|
||||
result = candidate(self.worker, self.contract, self.root)
|
||||
self.assertIsNotNone(result)
|
||||
self.assertTrue(all(case["receipt"].startswith("unallocated/") for case in result["cases"]))
|
||||
|
||||
def test_case_count_without_verified_receipt_is_rejected(self):
|
||||
self.proof.unlink()
|
||||
self.assertIsNone(candidate(self.worker, self.contract, self.root))
|
||||
|
||||
def test_scope_cannot_drop_remesh(self):
|
||||
self.worker.write_text(json.dumps({"cases": self.cases, "sourceUnits": ["stroke"]}))
|
||||
self.assertIsNone(candidate(self.worker, self.contract, self.root))
|
||||
|
||||
def test_missing_receipt_is_rejected(self):
|
||||
(self.root / self.cases[0]["receipt"]).unlink()
|
||||
self.assertIsNone(candidate(self.worker, self.contract, self.root))
|
||||
|
||||
def test_changed_source_is_rejected(self):
|
||||
(self.root / "source.cc").write_text("modified source")
|
||||
self.assertIsNone(candidate(self.worker, self.contract, self.root))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
@@ -13,7 +13,7 @@ import unittest
|
||||
from unittest.mock import patch
|
||||
|
||||
from wbv2_autopilot import Autopilot, CONTROL, Lease, POLICY, REQUIRED, ProviderUnavailable, inventory_proof, manifest_proof, queue_context, sha, validate_command, write_json
|
||||
from wbv2_timing import WorkerTrace, display_times, minute_label, timing_report
|
||||
from wbv2_timing import WorkerTrace, display_times, minute_label, read_only_command, timing_report, worker_breakdown
|
||||
|
||||
|
||||
class SupervisorTests(unittest.TestCase):
|
||||
@@ -22,7 +22,7 @@ class SupervisorTests(unittest.TestCase):
|
||||
self.addCleanup(self.temporary.cleanup)
|
||||
self.root = Path(self.temporary.name)
|
||||
self.policy = json.loads((Path(__file__).with_name("wbv2_autopilot_policy.json")).read_text())
|
||||
self.policy.update(heartbeatSeconds=0.01, retryDelaySeconds=0, autoCommit=False, autoPush=False)
|
||||
self.policy.update(heartbeatSeconds=0.01, retryDelaySeconds=0, autoCommit=False, autoPush=False, modelExecution="synthetic-test")
|
||||
self.task = "WBV2-P42-001"
|
||||
self.parent = "tests/golden/WBV2-P42-000/manifest.json"
|
||||
self.file("docs/EXECUTION_QUEUE.md", f"| 当前任务 | `{self.task}` |\n| parent manifest | `{self.parent}` |\n")
|
||||
@@ -133,6 +133,27 @@ for kind, values in observations.items():
|
||||
with self.assertRaisesRegex(ValueError, "fresh"):
|
||||
self.runner.validate_result(result, run_dir)
|
||||
|
||||
def test_receipt_binding_reports_missing_and_unexpected_units(self):
|
||||
result = self.ready_result(self.runner.directory / "runs/binding")
|
||||
case = result["cases"][0]
|
||||
self.file(case["receipt"], json.dumps({
|
||||
"status": "PASS", "runtime": "CHROMIUM_WEBENGINE", "caseId": case["id"],
|
||||
"kind": case["kind"], "unitIds": ["operator:WRONG"],
|
||||
}))
|
||||
with self.assertRaisesRegex(ValueError, "missingUnits=.*operator:TEST.*unexpectedUnits=.*operator:WRONG"):
|
||||
self.runner.verify_cases(result)
|
||||
|
||||
def test_historical_comparisons_cannot_replace_main_observations(self):
|
||||
result = self.ready_result(self.runner.directory / "runs/historical")
|
||||
case = result["cases"][0]
|
||||
self.file(case["receipt"], json.dumps({
|
||||
"status": "PASS", "runtime": "CHROMIUM_WEBENGINE", "caseId": case["id"],
|
||||
"kind": case["kind"], "unitIds": case["unitIds"],
|
||||
"observations": {"obj": {"objectCountExact": True}},
|
||||
}))
|
||||
with self.assertRaisesRegex(ValueError, "missing native state hashes"):
|
||||
self.runner.verify_cases(result)
|
||||
|
||||
def test_real_process_checks_create_receipts_and_cache_invalidates(self):
|
||||
self.assertTrue(self.execute_fixture())
|
||||
record = self.runner.state["jobs"]["SOURCE-JOB"]
|
||||
@@ -317,6 +338,97 @@ for kind, values in observations.items():
|
||||
self.assertEqual("model_idle_timeout", result["providerAbort"])
|
||||
self.assertFalse(result["workerTrace"]["safeToRetry"])
|
||||
|
||||
def test_read_only_stall_can_retry_but_never_counts_as_completion(self):
|
||||
result = self.model_script("import time\nprint('{\"type\":\"turn.started\"}', flush=True)\nprint('{\"type\":\"item.completed\",\"item\":{\"id\":\"read\",\"type\":\"command_execution\",\"command\":\"cat source.cpp\",\"exit_code\":0}}', flush=True)\ntime.sleep(10)\n")
|
||||
self.assertEqual("model_idle_timeout", result["providerAbort"])
|
||||
self.assertTrue(result["workerTrace"]["safeToRetry"])
|
||||
self.assertTrue(result["workerTrace"]["readOnlyActions"])
|
||||
log = (self.runner.directory / "model.log").read_text()
|
||||
def process(argv, directory, path, *args, **kwargs):
|
||||
path.write_text(log)
|
||||
return result
|
||||
with patch.object(self.runner, "run_process", side_effect=process), contextlib.redirect_stdout(io.StringIO()):
|
||||
self.assertFalse(self.runner.attempt(self.context, self.job))
|
||||
self.assertEqual("waiting_provider", self.runner.state["state"])
|
||||
self.assertNotIn("receipt", self.runner.state["jobs"][self.job["id"]])
|
||||
|
||||
def test_read_only_classifier_rejects_execution_and_shell_writes(self):
|
||||
for command in ["cat source.cpp", "sed -n '1,30p' source.cpp", "/bin/bash -lc 'rg -n symbol source.cpp | head -n 4'", "node tools/web/check-task-context.mjs", "node tools/web/search-wbv2-batch-source.mjs --unit operator:TEST --pattern TEST"]:
|
||||
with self.subTest(command=command):
|
||||
self.assertTrue(read_only_command(command))
|
||||
for command in ["cat source.cpp > other.cpp", "cat $(touch other.cpp)", "cat `touch other.cpp`", "cat source.cpp; touch other.cpp", "sed -n '1e touch other.cpp' source.cpp", "sed -n '1p' -i source.cpp", "sed -n '1p' -e 'w out' source.cpp", "rg --pre=touch source.cpp", "rg --hostname-bin touch source.cpp", "node tools/web/check-task-context.mjs --write", "node -e 'write()'", "python3 script.py", "git diff --ext-diff", "node tools/web/search-wbv2-batch-source.mjs --pattern --pre=touch", "cat source.cpp\ntouch other.cpp"]:
|
||||
with self.subTest(command=command):
|
||||
self.assertFalse(read_only_command(command))
|
||||
|
||||
def test_unknown_or_incomplete_trace_cannot_enable_retry(self):
|
||||
for event in [{"type": "future.event"}, {"type": "item.completed", "item": {"id": "x", "type": "future_tool"}}, {"type": "item.started", "item": {"id": "read", "type": "command_execution", "command": "cat source.cpp"}}]:
|
||||
trace = WorkerTrace()
|
||||
trace.feed({"type": "turn.started"}, 0)
|
||||
trace.feed(event, 1)
|
||||
self.assertFalse(trace.safe_to_retry)
|
||||
|
||||
def test_worker_timing_partitions_parallel_tools_and_silence(self):
|
||||
trace = WorkerTrace()
|
||||
for kind, key, command, elapsed in [("started", "read", "cat source.cpp", 2), ("started", "test", "node test.mjs", 3), ("completed", "read", "cat source.cpp", 4), ("completed", "test", "node test.mjs", 6), ("started", "read2", "cat source.cpp", 8), ("completed", "read2", "cat source.cpp", 9)]:
|
||||
trace.feed({"type": "item." + kind, "item": {"id": key, "type": "command_execution", "command": command}}, elapsed)
|
||||
breakdown = {r["phase"]: r["seconds"] for r in worker_breakdown(trace.snapshot(10), 10)}
|
||||
self.assertEqual(10, sum(breakdown.values()))
|
||||
self.assertEqual(2, breakdown["before_first_action"])
|
||||
self.assertEqual(2, breakdown["between_tools"])
|
||||
self.assertEqual(1, breakdown["after_last_tool"])
|
||||
self.assertEqual(1, breakdown["tool:overlapping"])
|
||||
self.assertEqual(2, breakdown["tool:reading"])
|
||||
self.assertEqual(2, breakdown["tool:testing"])
|
||||
|
||||
def test_state_timing_records_transitions_not_heartbeats(self):
|
||||
with contextlib.redirect_stdout(io.StringIO()):
|
||||
self.runner.checkpoint("implementing", activeJob="TEST")
|
||||
self.runner.checkpoint("implementing", heartbeatAt="2026-09-08T01:00:00+00:00")
|
||||
self.runner.checkpoint("needs_reconcile", reason="fixture")
|
||||
events = [json.loads(line) for line in (self.runner.directory / "events.jsonl").read_text().splitlines()]
|
||||
self.assertEqual(2, len([e for e in events if e["event"] == "state.changed"]))
|
||||
report = timing_report(self.runner.directory, self.runner.state)
|
||||
self.assertEqual(["implementing", "needs_reconcile"], [r["state"] for r in report["stateSpans"]])
|
||||
|
||||
def test_source_hints_are_bounded_and_resolved_against_inventory(self):
|
||||
self.policy["jobHints"] = {self.job["id"]: {"sourceUnitIds": ["operator:TEST"], "entrypoints": ["check.py"]}}
|
||||
with contextlib.redirect_stdout(io.StringIO()):
|
||||
prompt = self.runner.worker_prompt(self.context, self.job, self.runner.directory / "fixture", {})
|
||||
self.assertIn('"id": "operator:TEST"', prompt)
|
||||
self.policy["jobHints"][self.job["id"]]["sourceUnitIds"] = ["operator:MISSING"]
|
||||
with contextlib.redirect_stdout(io.StringIO()), self.assertRaisesRegex(ValueError, "current inventory"):
|
||||
self.runner.worker_prompt(self.context, self.job, self.runner.directory / "fixture", {})
|
||||
|
||||
def test_prompt_git_status_is_scoped_to_owned_files(self):
|
||||
(self.root / ".git").mkdir()
|
||||
result = subprocess.CompletedProcess([], 0, " M source.cpp\n", "")
|
||||
with patch("wbv2_autopilot.subprocess.run", return_value=result) as run, contextlib.redirect_stdout(io.StringIO()):
|
||||
prompt = self.runner.worker_prompt(self.context, self.job, self.runner.directory / "fixture", {})
|
||||
self.assertEqual(["git", "--no-optional-locks", "status", "--short", "--untracked-files=all", "--", "source.cpp"], run.call_args.args[0])
|
||||
self.assertIn(" M source.cpp", prompt)
|
||||
self.job["ownedPaths"] = []
|
||||
with patch("wbv2_autopilot.subprocess.run") as run, contextlib.redirect_stdout(io.StringIO()):
|
||||
self.runner.worker_prompt(self.context, self.job, self.runner.directory / "fixture", {})
|
||||
run.assert_not_called()
|
||||
|
||||
def test_report_recovers_legacy_command_labels_without_inventing_timings(self):
|
||||
log = CONTROL + "/runs/legacy/worker.jsonl"
|
||||
self.file(log, json.dumps({"type": "item.completed", "item": {"id": "read", "command": "cat source.cpp", "aggregated_output": "source"}}) + "\n")
|
||||
event = {"event": "process.finished", "argv": ["codex", "exec"], "log": log, "startedAt": "2026-09-08T02:00:00+00:00", "finishedAt": "2026-09-08T02:00:10+00:00", "durationSeconds": 10, "workerTrace": {"firstActionSeconds": 2, "safeToRetry": False, "items": [{"id": "read", "phase": "reading", "startedSeconds": 2, "finishedSeconds": 2, "durationSeconds": 0}]}}
|
||||
self.file(CONTROL + "/events.jsonl", json.dumps(event) + "\n")
|
||||
report = timing_report(self.runner.directory)
|
||||
self.assertEqual("cat source.cpp", report["commands"][0]["command"])
|
||||
self.assertEqual(0, report["commands"][0]["durationSeconds"])
|
||||
self.assertFalse(report["workers"][0]["safeToRetry"])
|
||||
self.assertEqual(6, report["workerActivity"]["outputBytes"])
|
||||
|
||||
def test_unmeasured_gaps_use_interval_union_not_summed_overlap(self):
|
||||
events = [{"event": "timing.span", "phase": "fixture", "startedAt": f"2026-09-08T02:00:{start:02d}+00:00", "finishedAt": f"2026-09-08T02:00:{end:02d}+00:00", "durationSeconds": end - start} for start, end in [(0, 10), (5, 15), (20, 25)]]
|
||||
self.file(CONTROL + "/events.jsonl", "\n".join(map(json.dumps, events)))
|
||||
report = timing_report(self.runner.directory)
|
||||
self.assertEqual(1, len(report["unmeasuredGaps"]))
|
||||
self.assertEqual(5, report["unmeasuredGaps"][0]["seconds"])
|
||||
|
||||
def test_active_tool_is_not_mistaken_for_model_idle(self):
|
||||
result = self.model_script("import time\nprint('{\"type\":\"turn.started\"}', flush=True)\nprint('{\"type\":\"item.started\",\"item\":{\"id\":\"build\",\"type\":\"command_execution\",\"command\":\"cmake --build build\"}}', flush=True)\ntime.sleep(0.25)\nprint('{\"type\":\"item.completed\",\"item\":{\"id\":\"build\",\"type\":\"command_execution\",\"exit_code\":0}}', flush=True)\n")
|
||||
self.assertIsNone(result["providerAbort"])
|
||||
@@ -353,6 +465,8 @@ for kind, values in observations.items():
|
||||
trace.feed({"type": "item.completed", "item": {"id": "read", "type": "command_execution", "exit_code": 0}}, 1.4)
|
||||
self.assertAlmostEqual(0.4, trace.items[0]["durationSeconds"])
|
||||
self.assertEqual("reading", trace.items[0]["phase"])
|
||||
trace.feed({"type": "item.completed", "item": {"id": "message", "type": "agent_message"}}, 1.5)
|
||||
self.assertTrue(trace.actions_seen)
|
||||
event = {"event": "process.finished", "argv": ["codex", "exec"], "log": "model.log", "startedAt": "2026-09-08T02:10:00+00:00", "finishedAt": "2026-09-08T02:10:02+00:00", "durationSeconds": 2, "workerTrace": trace.snapshot(2)}
|
||||
self.file(CONTROL + "/events.jsonl", json.dumps(event) + "\n")
|
||||
report = timing_report(self.runner.directory)
|
||||
|
||||
102
my-tools/test_wbv2_business_status.py
Normal file
102
my-tools/test_wbv2_business_status.py
Normal file
@@ -0,0 +1,102 @@
|
||||
import json
|
||||
import pathlib
|
||||
import tempfile
|
||||
import unittest
|
||||
|
||||
from wbv2_business_status import business_progress
|
||||
|
||||
|
||||
class BusinessStatusTests(unittest.TestCase):
|
||||
def setUp(self):
|
||||
self.directory = tempfile.TemporaryDirectory()
|
||||
self.addCleanup(self.directory.cleanup)
|
||||
self.root = pathlib.Path(self.directory.name)
|
||||
self.write("tests/golden/WBV2/web-product-backlog.json", {"tasks": [
|
||||
{"id": "READY", "commands": ["one"]},
|
||||
{"id": "MISSING", "commands": ["two"]},
|
||||
]})
|
||||
|
||||
def write(self, path, value):
|
||||
target = self.root / path
|
||||
target.parent.mkdir(parents=True, exist_ok=True)
|
||||
target.write_text(json.dumps(value))
|
||||
|
||||
def test_heartbeat_cannot_advance_verified_business_time(self):
|
||||
self.write("receipt.json", {"status": "verified", "verifiedAt": "2026-09-09T03:00:00+00:00"})
|
||||
state = {"verification": {"validJobs": ["READY"]},
|
||||
"jobs": {"READY": {"receipt": "receipt.json"}}, "heartbeatAt": "2026-09-09T03:10:00+00:00"}
|
||||
first = business_progress(self.root, state)
|
||||
state["heartbeatAt"] = "2026-09-10T03:10:00+00:00"
|
||||
self.assertEqual(first, business_progress(self.root, state))
|
||||
self.assertEqual(first["lastVerifiedAt"], "2026-09-09T03:00:00+00:00")
|
||||
self.assertEqual(first["state"], "waiting_for_implementation")
|
||||
|
||||
def test_stale_evidence_is_not_progress(self):
|
||||
self.write("receipt.json", {"status": "verified", "verifiedAt": "2026-09-09T03:00:00+00:00"})
|
||||
result = business_progress(self.root, {"verification": {"staleJobs": ["READY"]},
|
||||
"jobs": {"READY": {"receipt": "receipt.json"}}})
|
||||
self.assertIsNone(result["lastVerifiedAt"])
|
||||
self.assertEqual(result["readyForValidation"], ["READY"])
|
||||
self.assertEqual(result["validWorkflows"], 0)
|
||||
|
||||
def test_blocked_job_does_not_hide_an_independent_runnable_job(self):
|
||||
self.write("tests/golden/WBV2/autopilot/local-task-assignments.json", {
|
||||
"assignments": [{"job": "READY", "state": "ready"}]})
|
||||
result = business_progress(self.root, {"jobs": {"MISSING": {
|
||||
"state": "blocked", "reason": "native test failed"}}})
|
||||
self.assertEqual(result["state"], "ready_for_validation")
|
||||
self.assertEqual(result["readyForValidation"], ["READY"])
|
||||
self.assertEqual(result["validationFailures"][0]["job"], "MISSING")
|
||||
|
||||
def test_missing_recipe_reports_action_and_not_completion(self):
|
||||
self.write("tests/golden/WBV2/autopilot/preparation/MISSING.json", {
|
||||
"commands": ["two"], "sourceUnits": [{"id": "web-command:two"}],
|
||||
"candidateTests": ["web/tests/e2e/two.spec.ts"],
|
||||
"nextActions": ["Validate two and bind its native result"],
|
||||
"businessBlocker": {"category": "workflow_contract_missing", "contractPath": "my-tools/local-workflows/MISSING.json"}})
|
||||
result = business_progress(self.root, {})
|
||||
self.assertEqual(result["nextImplementationTasks"][0]["job"], "MISSING")
|
||||
self.assertEqual(result["needsImplementation"], 2)
|
||||
self.assertEqual(result["validWorkflows"], 0)
|
||||
|
||||
def test_behavior_pending_is_not_ready_despite_an_old_ready_assignment(self):
|
||||
self.write("tests/golden/WBV2/autopilot/local-task-assignments.json", {
|
||||
"assignments": [{"job": "MISSING", "state": "ready"}]})
|
||||
result = business_progress(self.root, {"jobs": {"MISSING": {
|
||||
"state": "behavior_pending", "reason": "compilation-only"}}})
|
||||
self.assertNotIn("MISSING", result["readyForValidation"])
|
||||
pending = next(item for item in result["nextImplementationTasks"] if item["job"] == "MISSING")
|
||||
self.assertEqual(pending["category"], "behavior_contract_missing")
|
||||
self.assertEqual(result["validationFailures"], [])
|
||||
|
||||
def test_external_receipt_cannot_supply_progress(self):
|
||||
result = business_progress(self.root, {"verification": {"validJobs": ["READY"]},
|
||||
"jobs": {"READY": {"receipt": "../foreign.json"}}})
|
||||
self.assertIsNone(result["lastVerifiedAt"])
|
||||
|
||||
def test_native_failure_exposes_the_current_attempt_repair_action(self):
|
||||
run = "tests/golden/WBV2/autopilot/runs/MISSING-attempt"
|
||||
self.write(f"{run}/cases/native-business-diagnostic.json", {
|
||||
"schemaVersion": 1, "job": "MISSING", "status": "FAIL",
|
||||
"findings": [{"assertion": "evaluated_value", "sourceUnit": "web-command:two",
|
||||
"symbol": "native_two", "message": "evaluated value differed"}],
|
||||
"reproduce": {"argv": ["node", "my-tools/diagnostic.mjs"], "cwd": "."},
|
||||
})
|
||||
state = {"jobs": {"MISSING": {"state": "blocked", "runDirectory": run}}}
|
||||
failure = business_progress(self.root, state)["validationFailures"][0]
|
||||
self.assertEqual(failure["repairActions"][0]["sourceUnit"], "web-command:two")
|
||||
self.assertEqual(failure["reproduce"]["argv"][0], "node")
|
||||
self.assertEqual(business_progress(self.root, state)["validWorkflows"], 0)
|
||||
|
||||
def test_other_job_or_success_diagnostics_do_not_create_repair_actions(self):
|
||||
run = "tests/golden/WBV2/autopilot/runs/MISSING-attempt"
|
||||
state = {"jobs": {"MISSING": {"state": "blocked", "runDirectory": run}}}
|
||||
for job, status in [("READY", "FAIL"), ("MISSING", "PASS")]:
|
||||
self.write(f"{run}/cases/native-business-diagnostic.json", {
|
||||
"schemaVersion": 1, "job": job, "status": status, "findings": [{"message": "old"}]})
|
||||
failure = business_progress(self.root, state)["validationFailures"][0]
|
||||
self.assertNotIn("repairActions", failure)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
129
my-tools/test_wbv2_checkpoints.py
Normal file
129
my-tools/test_wbv2_checkpoints.py
Normal file
@@ -0,0 +1,129 @@
|
||||
"""Checkpoint integration tests use synthetic Main fixtures only."""
|
||||
import contextlib
|
||||
import io
|
||||
import json
|
||||
import unittest
|
||||
from unittest.mock import patch
|
||||
|
||||
import test_wbv2_local as local_fixtures
|
||||
from wbv2_autopilot import write_json
|
||||
|
||||
|
||||
class CheckpointTests(unittest.TestCase):
|
||||
setUp = local_fixtures.LocalWorkflowTests.setUp
|
||||
file = local_fixtures.LocalWorkflowTests.file
|
||||
ready_result = local_fixtures.LocalWorkflowTests.ready_result
|
||||
local_contract = local_fixtures.LocalWorkflowTests.local_contract
|
||||
|
||||
def prepare(self):
|
||||
contract = self.local_contract()
|
||||
self.file("build.py", "from pathlib import Path\np=Path('build-count.txt')\np.write_text(str(int(p.read_text())+1) if p.exists() else '1')\n")
|
||||
native = contract["result"]["checks"][0]
|
||||
native["kinds"].remove("source_build")
|
||||
native["cacheInputs"] = ["source.cpp", "check.py", self.native_source]
|
||||
contract["result"]["checks"].insert(0, {"id": "build", "argv": ["python3", "build.py"], "cwd": ".", "kinds": ["source_build"]})
|
||||
contract["result"]["dependencies"].append("build.py")
|
||||
write_json(self.root / "local-contract.json", contract)
|
||||
return contract
|
||||
|
||||
def attempt(self):
|
||||
with contextlib.redirect_stdout(io.StringIO()):
|
||||
return self.runner.attempt(self.context, self.job)
|
||||
|
||||
def test_native_build_stays_incremental_and_runtime_success_is_reused(self):
|
||||
self.prepare()
|
||||
self.assertTrue(self.attempt())
|
||||
first = self.runner.state["jobs"][self.job["id"]]["runDirectory"]
|
||||
self.assertTrue(self.attempt())
|
||||
self.assertEqual("2", (self.root / "build-count.txt").read_text())
|
||||
self.assertEqual("1", (self.root / "executions.txt").read_text())
|
||||
record = self.runner.state["jobs"][self.job["id"]]
|
||||
self.assertTrue(self.runner.receipt_valid(record))
|
||||
receipt = json.loads((self.root / record["receipt"]).read_text())
|
||||
cached = next(check for check in receipt["checks"] if check["id"] == "native")
|
||||
self.assertIn("reusedFrom", cached)
|
||||
self.assertTrue(all(case["receipt"].startswith(first) for case in cached["caseBindings"]))
|
||||
|
||||
def test_later_failure_preserves_success_when_only_failed_step_is_repaired(self):
|
||||
contract = self.prepare()
|
||||
self.file("failure.py", "raise SystemExit(1)\n")
|
||||
contract["result"]["dependencies"].append("failure.py")
|
||||
contract["result"]["checks"].append({"id": "failure", "argv": ["python3", "failure.py"], "cwd": ".", "kinds": ["negative"]})
|
||||
write_json(self.root / "local-contract.json", contract)
|
||||
self.assertFalse(self.attempt())
|
||||
record = self.runner.state["jobs"][self.job["id"]]
|
||||
checkpoint = json.loads((self.root / record["runDirectory"] / "step-checkpoint.json").read_text())
|
||||
self.assertEqual("failure", checkpoint["failures"][0]["checkId"])
|
||||
self.assertEqual("passed", checkpoint["outcomes"]["native"])
|
||||
self.file("failure.py", "raise SystemExit(0)\n")
|
||||
self.assertTrue(self.attempt())
|
||||
self.assertEqual("1", (self.root / "executions.txt").read_text())
|
||||
|
||||
def test_artifact_change_invalidates_cached_runtime(self):
|
||||
self.prepare()
|
||||
self.assertTrue(self.attempt())
|
||||
self.file("engine.wasm", "changed synthetic artifact\n")
|
||||
self.assertTrue(self.attempt())
|
||||
self.assertEqual("2", (self.root / "executions.txt").read_text())
|
||||
|
||||
def test_failure_continues_independent_stage_and_blocks_dependent_stage(self):
|
||||
contract = self.prepare()
|
||||
self.file("failure.py", "raise SystemExit(1)\n")
|
||||
self.file("independent.py", "from pathlib import Path\nPath('independent-ran').touch()\n")
|
||||
contract["result"]["dependencies"] += ["failure.py", "independent.py"]
|
||||
contract["result"]["checks"] += [
|
||||
{"id": "failure", "argv": ["python3", "failure.py"], "cwd": ".", "kinds": ["negative"], "continueOnFailure": True},
|
||||
{"id": "dependent", "argv": ["python3", "failure.py"], "cwd": ".", "kinds": ["negative"], "dependsOn": ["failure"]},
|
||||
{"id": "independent", "argv": ["python3", "independent.py"], "cwd": ".", "kinds": ["positive"]},
|
||||
]
|
||||
write_json(self.root / "local-contract.json", contract)
|
||||
self.assertFalse(self.attempt())
|
||||
self.assertTrue((self.root / "independent-ran").exists())
|
||||
record = self.runner.state["jobs"][self.job["id"]]
|
||||
checkpoint = json.loads((self.root / record["runDirectory"] / "step-checkpoint.json").read_text())
|
||||
self.assertEqual("blocked", checkpoint["outcomes"]["dependent"])
|
||||
self.assertEqual("passed", checkpoint["outcomes"]["independent"])
|
||||
self.assertNotIn("receipt", record)
|
||||
|
||||
def test_per_stage_timeout_overrides_global_timeout(self):
|
||||
contract = self.prepare()
|
||||
contract["result"]["checks"][1]["timeoutSeconds"] = 5
|
||||
write_json(self.root / "local-contract.json", contract)
|
||||
with patch.object(self.runner, "run_process", wraps=self.runner.run_process) as run:
|
||||
self.assertTrue(self.attempt())
|
||||
self.assertEqual(5, run.call_args_list[1].args[3])
|
||||
|
||||
def test_verification_requests_are_parent_bound_and_do_not_advance_queue(self):
|
||||
self.prepare()
|
||||
request = self.runner.directory / "requests" / "pending" / "valid.json"
|
||||
write_json(request, {"task": self.task, "parentSha256": self.context["parentSha256"], "job": self.job["id"]})
|
||||
self.assertEqual(self.job, self.runner.requested_job(self.context, [self.job]))
|
||||
self.assertEqual(request, self.runner.pending_request)
|
||||
self.assertTrue(request.is_file())
|
||||
request.unlink()
|
||||
write_json(request, {"task": self.task, "parentSha256": "0" * 64, "job": self.job["id"]})
|
||||
with contextlib.redirect_stdout(io.StringIO()):
|
||||
self.assertIsNone(self.runner.requested_job(self.context, [self.job]))
|
||||
self.assertFalse(request.exists())
|
||||
self.assertTrue((self.runner.directory / "requests" / "rejected" / "valid.json").is_file())
|
||||
|
||||
def test_process_receipt_includes_resource_observations(self):
|
||||
self.prepare()
|
||||
self.assertTrue(self.attempt())
|
||||
record = self.runner.state["jobs"][self.job["id"]]
|
||||
receipt = json.loads((self.root / record["receipt"]).read_text())
|
||||
usage = receipt["checks"][0]["resourceUsage"]
|
||||
self.assertGreaterEqual(usage["reapedChildCpuSeconds"], 0)
|
||||
self.assertGreater(usage["samples"], 0)
|
||||
|
||||
def test_repeated_cli_start_returns_existing_owner_without_traceback(self):
|
||||
import run_web_product_migration as cli
|
||||
self.runner.state.update(state="waiting_local_work", pid=123, identity="fake", executionMode="local_only")
|
||||
output = io.StringIO()
|
||||
with patch.object(cli, "main", side_effect=RuntimeError("another Python autopilot owns the project")), patch.object(cli, "Autopilot", return_value=self.runner), patch.object(cli, "alive", return_value=True), patch.object(cli, "identity", return_value="fake"), contextlib.redirect_stdout(output):
|
||||
self.assertEqual(0, cli.entrypoint())
|
||||
self.assertEqual("already_running", json.loads(output.getvalue())["state"])
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
115
my-tools/test_wbv2_local.py
Normal file
115
my-tools/test_wbv2_local.py
Normal file
@@ -0,0 +1,115 @@
|
||||
"""Local supervisor regressions; fixtures do not claim Blender coverage."""
|
||||
import contextlib
|
||||
import io
|
||||
import unittest
|
||||
from unittest.mock import patch
|
||||
|
||||
import test_wbv2_autopilot as fixtures
|
||||
from wbv2_autopilot import sha, write_json
|
||||
|
||||
|
||||
class LocalWorkflowTests(unittest.TestCase):
|
||||
setUp = fixtures.SupervisorTests.setUp
|
||||
file = fixtures.SupervisorTests.file
|
||||
ready_result = fixtures.SupervisorTests.ready_result
|
||||
|
||||
def local_contract(self):
|
||||
self.policy["modelExecution"] = "disabled"
|
||||
result = self.ready_result(self.runner.directory / "old")
|
||||
contract_path = "local-contract.json"
|
||||
self.file("my-tools/wbv2_validation.py", "# fixture\n")
|
||||
self.policy["localWorkflows"] = {self.job["id"]: contract_path}
|
||||
contract = {"task": self.task, "job": self.job["id"], "parentSha256": self.context["parentSha256"], "result": result}
|
||||
write_json(self.root / contract_path, contract)
|
||||
return contract
|
||||
|
||||
def test_local_workflow_never_calls_model_and_writes_fresh_receipts(self):
|
||||
self.local_contract()
|
||||
with patch.object(self.runner, "worker", side_effect=AssertionError("model forbidden")), patch.object(self.runner, "worker_prompt", side_effect=AssertionError("prompt forbidden")), contextlib.redirect_stdout(io.StringIO()):
|
||||
self.assertTrue(self.runner.attempt(self.context, self.job))
|
||||
self.assertTrue(self.runner.receipt_valid(self.runner.state["jobs"][self.job["id"]]))
|
||||
self.assertEqual(0, self.runner.state["tokensUsed"])
|
||||
|
||||
def test_model_execution_is_denied_at_all_entrypoints(self):
|
||||
self.policy["modelExecution"] = "disabled"
|
||||
with self.assertRaisesRegex(ValueError, "disabled"):
|
||||
self.runner.worker("source", self.runner.directory)
|
||||
with self.assertRaisesRegex(ValueError, "disabled"):
|
||||
self.runner.worker_prompt(self.context, self.job, self.runner.directory, {})
|
||||
with self.assertRaisesRegex(ValueError, "disabled"):
|
||||
self.runner.run_process(["codex", "exec"], self.root, self.runner.directory / "model.log", 1)
|
||||
|
||||
def test_local_contract_cannot_advance_or_change_parent(self):
|
||||
contract = self.local_contract()
|
||||
contract["parentSha256"] = "0" * 64
|
||||
write_json(self.root / "local-contract.json", contract)
|
||||
with self.assertRaisesRegex(ValueError, "parent changed"):
|
||||
self.runner.local_result(self.context, self.job, self.runner.directory / "fresh")
|
||||
|
||||
def test_scheduler_selects_only_registered_unverified_local_jobs(self):
|
||||
self.local_contract()
|
||||
unknown = {"id": "NO-LOCAL-CONTRACT"}
|
||||
self.assertEqual(self.job, self.runner.choose_job([unknown, self.job]))
|
||||
self.runner.state["jobs"][self.job["id"]] = {"state": "blocked", "localContractSha256": sha(self.root / "local-contract.json")}
|
||||
self.assertIsNone(self.runner.choose_job([unknown, self.job]))
|
||||
|
||||
def test_local_plan_discovery_and_changed_contract_retry(self):
|
||||
contract = self.local_contract()
|
||||
self.policy["localWorkflows"] = {}
|
||||
location = self.runner.directory / "local-plans" / (self.job["id"] + ".json")
|
||||
write_json(location, contract)
|
||||
self.assertEqual(self.job, self.runner.choose_job([self.job]))
|
||||
self.runner.state["jobs"][self.job["id"]] = {"state": "blocked", "localContractSha256": sha(location)}
|
||||
self.assertIsNone(self.runner.choose_job([self.job]))
|
||||
contract["maintenanceRevision"] = 2
|
||||
write_json(location, contract)
|
||||
self.assertEqual(self.job, self.runner.choose_job([self.job]))
|
||||
|
||||
def test_behavior_pending_does_not_starve_the_next_workflow(self):
|
||||
contract = self.local_contract()
|
||||
next_job = {"id": "NEXT-JOB", "ownedPaths": []}
|
||||
self.policy["localWorkflows"]["NEXT-JOB"] = "next-contract.json"
|
||||
write_json(self.root / "next-contract.json", {**contract, "job": "NEXT-JOB"})
|
||||
self.runner.state["jobs"][self.job["id"]] = {
|
||||
"state": "behavior_pending", "localContractSha256": sha(self.root / "local-contract.json")}
|
||||
self.assertEqual(next_job, self.runner.choose_job([self.job, next_job]))
|
||||
contract["revision"] = 2
|
||||
write_json(self.root / "local-contract.json", contract)
|
||||
self.assertEqual(self.job, self.runner.choose_job([self.job, next_job]))
|
||||
|
||||
def test_model_process_is_denied_even_with_legacy_policy(self):
|
||||
self.policy["modelExecution"] = "enabled"
|
||||
with self.assertRaisesRegex(ValueError, "disabled"):
|
||||
self.runner.run_process(["codex", "exec"], self.root, self.runner.directory / "model.log", 1)
|
||||
|
||||
def test_receipt_producer_mismatch_is_reported_before_cache(self):
|
||||
self.local_contract()
|
||||
script = (self.root / "check.py").read_text()
|
||||
self.file("check.py", script.replace("'unitIds': ['operator:TEST']", "'unitIds': ['operator:WRONG']"))
|
||||
with contextlib.redirect_stdout(io.StringIO()):
|
||||
self.assertFalse(self.runner.attempt(self.context, self.job))
|
||||
reason = self.runner.state["jobs"][self.job["id"]]["reason"]
|
||||
self.assertIn("binding mismatch before cache", reason)
|
||||
self.assertIn("operator:WRONG", reason)
|
||||
|
||||
def test_missing_receipt_names_the_producing_check(self):
|
||||
self.local_contract()
|
||||
self.file("check.py", "print('No receipt emitted')\n")
|
||||
with contextlib.redirect_stdout(io.StringIO()):
|
||||
self.assertFalse(self.runner.attempt(self.context, self.job))
|
||||
reason = self.runner.state["jobs"][self.job["id"]]["reason"]
|
||||
self.assertIn("missing runtime receipt: case=positive check=native", reason)
|
||||
|
||||
def test_local_environment_is_applied_and_supervisor_receipts_win(self):
|
||||
self.local_contract()
|
||||
contract = self.runner.local_result(self.context, self.job, self.runner.directory / "copy")
|
||||
contract["checks"][0]["argv"] = ["env", "WEB_TEST_PORT=5297", "WBV2_RECEIPT_DIR=/tmp/stale", "python3", "check.py"]
|
||||
write_json(self.root / "local-contract.json", {"task": self.task, "job": self.job["id"], "parentSha256": self.context["parentSha256"], "result": contract})
|
||||
with patch.object(self.runner, "run_process", wraps=self.runner.run_process) as run, contextlib.redirect_stdout(io.StringIO()):
|
||||
self.assertTrue(self.runner.attempt(self.context, self.job))
|
||||
self.assertEqual("5297", run.call_args.kwargs["env"]["WEB_TEST_PORT"])
|
||||
self.assertNotEqual("/tmp/stale", run.call_args.kwargs["env"]["WBV2_RECEIPT_DIR"])
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
77
my-tools/test_wbv2_local_planner.py
Normal file
77
my-tools/test_wbv2_local_planner.py
Normal file
@@ -0,0 +1,77 @@
|
||||
"""Recipe preparation tests; generated contracts are never completion receipts."""
|
||||
import json
|
||||
from pathlib import Path
|
||||
import tempfile
|
||||
import unittest
|
||||
|
||||
from wbv2_local_planner import LocalPlanner
|
||||
|
||||
|
||||
class LocalPlannerTests(unittest.TestCase):
|
||||
def setUp(self):
|
||||
self.temporary = tempfile.TemporaryDirectory()
|
||||
self.addCleanup(self.temporary.cleanup)
|
||||
self.root = Path(self.temporary.name)
|
||||
self.directory = self.root / "tests/golden/WBV2/autopilot"
|
||||
self.planner = LocalPlanner(self.root, self.directory)
|
||||
self.context = {"task": "WBV2-P42-001", "parentSha256": "a" * 64}
|
||||
self.provider = "SERVER-OPERATOR-HTTP-PROVIDER"
|
||||
self.job = {"id": "SERVER-OPERATOR-SCHEMA-PALETTE", "ownedPaths": ["app.tsx"], "module": "RUNTIME"}
|
||||
|
||||
def prepare_base(self):
|
||||
source = self.directory / "local-plans" / (self.provider + ".json")
|
||||
source.parent.mkdir(parents=True)
|
||||
contract = {**self.context, "job": self.provider, "result": {"checks": [{"id": "chromium-main", "argv": ["node", "test.js"], "kinds": ["chromium"]}], "cases": [{"id": "positive", "checkId": "chromium-main", "unitIds": ["operator:TEST"]}], "dependencies": ["test.js"], "changedFiles": ["test.js"]}}
|
||||
source.write_text(json.dumps(contract))
|
||||
target = self.root / "web/tests/e2e/server-operator-schema-palette.spec.ts"
|
||||
target.parent.mkdir(parents=True)
|
||||
target.write_text("// synthetic test-entrypoint fixture\n")
|
||||
return source, target
|
||||
|
||||
def test_missing_dependency_is_not_dispatched(self):
|
||||
self.prepare_base()
|
||||
result = self.planner.refresh(self.context, [self.job], set())
|
||||
self.assertEqual(0, result["readyCount"])
|
||||
self.assertEqual([], result["created"])
|
||||
|
||||
def test_missing_test_is_a_specific_preparation_task(self):
|
||||
_, target = self.prepare_base()
|
||||
target.unlink()
|
||||
self.planner.refresh(self.context, [self.job], {self.provider})
|
||||
report = json.loads((self.directory / "local-task-assignments.json").read_text())
|
||||
self.assertEqual("needs_test_entrypoint", report["assignments"][0]["state"])
|
||||
|
||||
def test_complete_recipe_is_prepared_but_not_marked_verified(self):
|
||||
self.prepare_base()
|
||||
result = self.planner.refresh(self.context, [self.job], {self.provider})
|
||||
self.assertEqual([self.job["id"]], result["created"])
|
||||
recipe = json.loads((self.directory / "local-plans" / (self.job["id"] + ".json")).read_text())
|
||||
self.assertEqual("pending local behavior verification", recipe["acceptance"])
|
||||
self.assertEqual("chromium-schema-palette", recipe["result"]["cases"][0]["checkId"])
|
||||
self.assertIn("tests/e2e/server-operator-schema-palette.spec.ts", recipe["result"]["checks"][0]["argv"])
|
||||
|
||||
def test_stable_assignments_do_not_rewrite_every_poll(self):
|
||||
self.prepare_base()
|
||||
self.planner.refresh(self.context, [self.job], {self.provider})
|
||||
report = self.directory / "local-task-assignments.json"
|
||||
before = report.stat().st_mtime_ns
|
||||
result = self.planner.refresh(self.context, [self.job], {self.provider})
|
||||
self.assertFalse(result["changed"])
|
||||
self.assertEqual(before, report.stat().st_mtime_ns)
|
||||
|
||||
def test_parent_mismatch_fails_without_preparing_a_recipe(self):
|
||||
source, _ = self.prepare_base()
|
||||
contract = json.loads(source.read_text())
|
||||
contract["parentSha256"] = "b" * 64
|
||||
source.write_text(json.dumps(contract))
|
||||
with self.assertRaisesRegex(ValueError, "parent mismatch"):
|
||||
self.planner.refresh(self.context, [self.job], {self.provider})
|
||||
|
||||
def test_unknown_modules_are_not_falsely_accepted(self):
|
||||
result = self.planner.refresh(self.context, [{"id": "OTHER", "ownedPaths": []}], set())
|
||||
self.assertEqual(1, result["blockedCount"])
|
||||
self.assertEqual(0, result["readyCount"])
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
267
my-tools/test_wbv2_local_preparation.py
Normal file
267
my-tools/test_wbv2_local_preparation.py
Normal file
@@ -0,0 +1,267 @@
|
||||
import hashlib
|
||||
import json
|
||||
import subprocess
|
||||
import tempfile
|
||||
import unittest
|
||||
from pathlib import Path
|
||||
from types import SimpleNamespace
|
||||
from unittest.mock import Mock, patch
|
||||
|
||||
from wbv2_local_preparation import prepare_local_contracts
|
||||
from wbv2_task_dispatch import input_signature
|
||||
|
||||
|
||||
class LocalPreparationTests(unittest.TestCase):
|
||||
def setUp(self):
|
||||
temporary = tempfile.TemporaryDirectory()
|
||||
self.addCleanup(temporary.cleanup)
|
||||
self.root = Path(temporary.name)
|
||||
(self.root / "my-tools").mkdir()
|
||||
(self.root / "parent.json").write_text("{}")
|
||||
self.context = {"task": "TASK", "parentSha256": "a" * 64, "parentManifest": "parent.json"}
|
||||
self.jobs = [{"id": "MESH-EXTENDED-AUTHORING", "ownedPaths": []}]
|
||||
self.script = self.root / "my-tools/prepare_wbv2_mesh_extended_workflow.py"
|
||||
self.script.write_text('JOB = "MESH-EXTENDED-AUTHORING"\n')
|
||||
self.runner = SimpleNamespace(root=self.root, directory=self.root / "control", stop_requested=False,
|
||||
policy={"checkTimeoutSeconds": 120}, state={"jobs": {}},
|
||||
local_contract_path=Mock(return_value=None), event=Mock(),
|
||||
run_process=Mock(return_value={"exitCode": 0, "interrupted": False,
|
||||
"timedOut": False, "logLimit": False}))
|
||||
authority = patch("wbv2_autopilot.queue_context", return_value=self.context)
|
||||
self.authority_patch = authority
|
||||
self.authority = authority.start()
|
||||
self.addCleanup(authority.stop)
|
||||
admission = patch("wbv2_task_dispatch.prepared_contract", return_value=({"result": {}}, []))
|
||||
self.admission_patch = admission
|
||||
self.admission = admission.start()
|
||||
self.addCleanup(admission.stop)
|
||||
|
||||
def prepare(self):
|
||||
return prepare_local_contracts(self.runner, self.context, self.jobs)
|
||||
|
||||
def test_literal_job_matches_existing_nonstandard_filename(self):
|
||||
self.assertEqual([self.jobs[0]["id"]], self.prepare())
|
||||
self.assertEqual(["python3", str(self.script.relative_to(self.root))],
|
||||
self.runner.run_process.call_args.args[0])
|
||||
|
||||
def test_failure_is_not_retried_until_input_changes(self):
|
||||
self.runner.run_process.return_value["exitCode"] = 1
|
||||
self.assertEqual([], self.prepare())
|
||||
self.assertEqual([], self.prepare())
|
||||
self.assertEqual(1, self.runner.run_process.call_count)
|
||||
self.script.write_text(self.script.read_text() + "# repair\n")
|
||||
self.prepare()
|
||||
self.assertEqual(2, self.runner.run_process.call_count)
|
||||
|
||||
def test_dependency_change_wakes_and_retries_failed_preparation(self):
|
||||
dependency = self.root / "input.json"
|
||||
dependency.write_text("1")
|
||||
self.jobs[0]["ownedPaths"] = ["input.json"]
|
||||
self.runner.run_process.return_value["exitCode"] = 1
|
||||
self.prepare()
|
||||
before = input_signature(self.runner, self.context, self.jobs)
|
||||
dependency.write_text("2")
|
||||
self.assertNotEqual(before, input_signature(self.runner, self.context, self.jobs))
|
||||
self.prepare()
|
||||
self.assertEqual(2, self.runner.run_process.call_count)
|
||||
|
||||
def test_new_recipe_and_edit_wake_waiter(self):
|
||||
self.script.unlink()
|
||||
before = input_signature(self.runner, self.context, self.jobs)
|
||||
self.script.write_text('JOB = "MESH-EXTENDED-AUTHORING"\n')
|
||||
added = input_signature(self.runner, self.context, self.jobs)
|
||||
self.assertNotEqual(before, added)
|
||||
self.script.write_text(self.script.read_text() + "# changed\n")
|
||||
self.assertNotEqual(added, input_signature(self.runner, self.context, self.jobs))
|
||||
|
||||
def test_declared_dependency_change_wakes_and_retries(self):
|
||||
self.script.write_text(self.script.read_text() + 'PREPARATION_INPUTS = ["fixture.json"]\n')
|
||||
dependency = self.root / "fixture.json"
|
||||
dependency.write_text("1")
|
||||
self.runner.run_process.return_value["exitCode"] = 1
|
||||
self.prepare()
|
||||
before = input_signature(self.runner, self.context, self.jobs)
|
||||
dependency.write_text("2")
|
||||
self.assertNotEqual(before, input_signature(self.runner, self.context, self.jobs))
|
||||
self.prepare()
|
||||
self.assertEqual(2, self.runner.run_process.call_count)
|
||||
|
||||
def test_existing_contract_is_never_overwritten(self):
|
||||
path = self.root / "my-tools/local-workflows/MESH-EXTENDED-AUTHORING.json"
|
||||
path.parent.mkdir()
|
||||
path.write_text('{"status":"being-edited"}')
|
||||
self.assertEqual([], self.prepare())
|
||||
self.runner.run_process.assert_not_called()
|
||||
|
||||
def test_invalid_generated_contract_is_not_prepared(self):
|
||||
self.admission.return_value = None, [{"reason": "parent mismatch"}]
|
||||
self.assertEqual([], self.prepare())
|
||||
self.prepare()
|
||||
self.assertEqual(1, self.runner.run_process.call_count)
|
||||
record = json.loads(next((self.runner.directory / "preparation-attempts").glob("*.json")).read_text())
|
||||
self.assertEqual("blocked", record["state"])
|
||||
self.assertGreaterEqual(record["seconds"], 0)
|
||||
|
||||
def real_recipe(self, payload=None):
|
||||
output = f"my-tools/local-workflows/{self.jobs[0]['id']}.json"
|
||||
value = "Path('recipe-input.json').read_text()" if payload is None else repr(payload)
|
||||
self.script.write_text(
|
||||
f"JOB = {self.jobs[0]['id']!r}\n"
|
||||
"PREPARATION_INPUTS = ['recipe-input.json']\n"
|
||||
"from pathlib import Path\n"
|
||||
f"output = Path({output!r})\n"
|
||||
"output.parent.mkdir(parents=True, exist_ok=True)\n"
|
||||
"assert not output.exists(), 'existing output must be protected'\n"
|
||||
f"output.write_text({value})\n"
|
||||
)
|
||||
return self.root / output
|
||||
|
||||
def use_real_preparation(self):
|
||||
self.admission_patch.stop()
|
||||
|
||||
def execute(argv, cwd, log, timeout, **kwargs):
|
||||
proc = subprocess.run(argv, cwd=cwd, capture_output=True, timeout=timeout)
|
||||
log.parent.mkdir(parents=True, exist_ok=True)
|
||||
log.write_bytes(proc.stdout + proc.stderr)
|
||||
return {"exitCode": proc.returncode, "interrupted": False,
|
||||
"timedOut": False, "logLimit": False}
|
||||
|
||||
self.runner.run_process.side_effect = execute
|
||||
|
||||
def valid_preparation_payload(self):
|
||||
return json.dumps({
|
||||
"task": self.context["task"], "job": self.jobs[0]["id"],
|
||||
"parentSha256": self.context["parentSha256"],
|
||||
"result": {
|
||||
"status": "ready", "workflow": "Local preparation admission fixture",
|
||||
"artifacts": [], "changedFiles": [], "dependencies": [],
|
||||
"routeIds": [], "sourceReferences": [], "sourceUnits": [],
|
||||
"checks": [{"id": "focused"}], "cases": [{"id": "positive"}],
|
||||
},
|
||||
})
|
||||
|
||||
def test_owned_invalid_json_retries_after_recipe_repair(self):
|
||||
self.use_real_preparation()
|
||||
origin = self.real_recipe("{")
|
||||
self.assertEqual([], self.prepare())
|
||||
record_path = self.runner.directory / "preparation-attempts" / f"{self.jobs[0]['id']}.json"
|
||||
record = json.loads(record_path.read_text())
|
||||
self.assertEqual("blocked", record["state"])
|
||||
self.assertEqual({"path": str(origin.relative_to(self.root)),
|
||||
"sha256": hashlib.sha256(origin.read_bytes()).hexdigest()},
|
||||
record["generatedOrigin"])
|
||||
self.assertEqual([], self.prepare())
|
||||
self.assertEqual(1, self.runner.run_process.call_count)
|
||||
payload = self.valid_preparation_payload()
|
||||
self.real_recipe(payload)
|
||||
self.assertEqual([self.jobs[0]["id"]], self.prepare())
|
||||
self.assertEqual(payload, origin.read_text())
|
||||
self.assertEqual(2, self.runner.run_process.call_count)
|
||||
self.assertEqual("prepared", json.loads(record_path.read_text())["state"])
|
||||
self.assertEqual([], self.prepare())
|
||||
self.assertEqual(2, self.runner.run_process.call_count)
|
||||
|
||||
def test_owned_invalid_json_retries_after_declared_input_repair(self):
|
||||
self.use_real_preparation()
|
||||
dependency = self.root / "recipe-input.json"
|
||||
dependency.write_text("{")
|
||||
origin = self.real_recipe()
|
||||
self.assertEqual([], self.prepare())
|
||||
self.assertEqual([], self.prepare())
|
||||
self.assertEqual(1, self.runner.run_process.call_count)
|
||||
dependency.write_text(self.valid_preparation_payload())
|
||||
self.assertEqual([self.jobs[0]["id"]], self.prepare())
|
||||
self.assertEqual(dependency.read_text(), origin.read_text())
|
||||
self.assertEqual(2, self.runner.run_process.call_count)
|
||||
|
||||
def test_owned_failed_output_edited_by_user_is_not_overwritten(self):
|
||||
self.use_real_preparation()
|
||||
origin = self.real_recipe("{")
|
||||
self.assertEqual([], self.prepare())
|
||||
origin.write_text('{"manual": true}')
|
||||
self.real_recipe(self.valid_preparation_payload())
|
||||
self.assertEqual([], self.prepare())
|
||||
self.assertEqual('{"manual": true}', origin.read_text())
|
||||
self.assertEqual(1, self.runner.run_process.call_count)
|
||||
|
||||
def test_preexisting_output_is_protected_after_recipe_change(self):
|
||||
self.use_real_preparation()
|
||||
origin = self.real_recipe("{")
|
||||
origin.parent.mkdir(parents=True)
|
||||
origin.write_text('{"manual": true}')
|
||||
self.assertEqual([], self.prepare())
|
||||
self.real_recipe(self.valid_preparation_payload())
|
||||
self.assertEqual([], self.prepare())
|
||||
self.assertEqual('{"manual": true}', origin.read_text())
|
||||
self.runner.run_process.assert_not_called()
|
||||
|
||||
def test_failed_output_without_ownership_record_is_not_overwritten(self):
|
||||
self.use_real_preparation()
|
||||
origin = self.real_recipe("{")
|
||||
self.assertEqual([], self.prepare())
|
||||
record_path = self.runner.directory / "preparation-attempts" / f"{self.jobs[0]['id']}.json"
|
||||
record = json.loads(record_path.read_text())
|
||||
del record["generatedOrigin"]
|
||||
record_path.write_text(json.dumps(record))
|
||||
self.real_recipe(self.valid_preparation_payload())
|
||||
self.assertEqual([], self.prepare())
|
||||
self.assertEqual("{", origin.read_text())
|
||||
self.assertEqual(1, self.runner.run_process.call_count)
|
||||
|
||||
def test_conflicting_recipes_do_not_execute(self):
|
||||
(self.root / "my-tools/prepare_wbv2_duplicate_workflow.py").write_text(self.script.read_text())
|
||||
self.assertEqual([], self.prepare())
|
||||
self.runner.run_process.assert_not_called()
|
||||
|
||||
def test_symlink_and_computed_job_are_not_executed(self):
|
||||
outside = self.root / "other.py"
|
||||
outside.write_text(self.script.read_text())
|
||||
self.script.unlink()
|
||||
self.script.symlink_to(outside)
|
||||
self.assertEqual([], self.prepare())
|
||||
self.script.unlink()
|
||||
self.script.write_text('JOB = "MESH" + "-EXTENDED-AUTHORING"\n')
|
||||
self.assertEqual([], self.prepare())
|
||||
self.runner.run_process.assert_not_called()
|
||||
|
||||
def test_authority_change_interrupts_before_publication(self):
|
||||
self.authority.side_effect = [self.context, {**self.context, "task": "OTHER"}]
|
||||
with self.assertRaises(InterruptedError):
|
||||
self.prepare()
|
||||
self.admission.assert_not_called()
|
||||
|
||||
def test_independent_job_continues_after_preparation_failure(self):
|
||||
self.jobs.append({"id": "SECOND", "ownedPaths": []})
|
||||
(self.root / "my-tools/prepare_wbv2_second_workflow.py").write_text('JOB = "SECOND"\n')
|
||||
self.runner.run_process.side_effect = [{"exitCode": 1}, {"exitCode": 0}]
|
||||
self.assertEqual(["SECOND"], self.prepare())
|
||||
|
||||
def test_preparation_is_admitted_and_verified_in_the_same_cycle(self):
|
||||
from test_wbv2_task_dispatch import AutoDispatchTests
|
||||
self.authority_patch.stop()
|
||||
self.admission_patch.stop()
|
||||
fixture = AutoDispatchTests()
|
||||
fixture.setUp()
|
||||
try:
|
||||
jobs = fixture.jobs(1)
|
||||
job = jobs[0]
|
||||
(fixture.root / job["resultPath"]).replace(fixture.root / "recipe-input.json")
|
||||
fixture.file("my-tools/prepare_wbv2_seed_workflow.py", (
|
||||
f"JOB = {job['id']!r}\n"
|
||||
"PREPARATION_INPUTS = ['recipe-input.json']\n"
|
||||
"from pathlib import Path\n"
|
||||
"import shutil\n"
|
||||
"target = Path('my-tools/local-workflows') / (JOB + '.json')\n"
|
||||
"target.parent.mkdir(parents=True, exist_ok=True)\n"
|
||||
"shutil.copyfile('recipe-input.json', target)\n"
|
||||
))
|
||||
self.assertEqual(0, fixture.run_local(1))
|
||||
self.assertEqual("verified", fixture.runner.state["jobs"][job["id"]]["state"])
|
||||
attempt = json.loads((fixture.runner.directory / "preparation-attempts" / f"{job['id']}.json").read_text())
|
||||
self.assertEqual("prepared", attempt["state"])
|
||||
finally:
|
||||
fixture.doCleanups()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
44
my-tools/test_wbv2_modifier_accessors.py
Normal file
44
my-tools/test_wbv2_modifier_accessors.py
Normal file
@@ -0,0 +1,44 @@
|
||||
import pathlib
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
ROOT = pathlib.Path(__file__).resolve().parents[1]
|
||||
sys.path.insert(0, str(ROOT / "blender-5.2.0/source/blender/web_engine"))
|
||||
import extract_modifier_accessors as extractor
|
||||
from extract_id_property_rna import function
|
||||
|
||||
|
||||
class ModifierAccessorTests(unittest.TestCase):
|
||||
def source(self):
|
||||
source = ROOT / "build_web_blender6/source/blender/makesrna/intern/rna_modifier_gen.cc"
|
||||
if not source.exists():
|
||||
self.skipTest("makesrna output has not been built")
|
||||
return source.read_text()
|
||||
|
||||
def test_each_field_uses_original_generated_accessors(self):
|
||||
source = self.source()
|
||||
output = extractor.generate(source)
|
||||
for modifier, fields in extractor.FIELDS.items():
|
||||
for name, _, _, _ in fields:
|
||||
for operation in ("get", "set"):
|
||||
self.assertIn(function(source, f"{modifier}Modifier_{name}_{operation}")[1], output)
|
||||
self.assertEqual(output, extractor.generate(source))
|
||||
|
||||
def test_missing_source_accessor_rejects_generation(self):
|
||||
source = self.source().replace("BevelModifier_segments_set", "Removed_segments_set")
|
||||
with self.assertRaisesRegex(ValueError, "Missing generated function"):
|
||||
extractor.generate(source)
|
||||
|
||||
def test_schema_field_names_are_unique_and_numeric_bounds_are_valid(self):
|
||||
for fields in extractor.FIELDS.values():
|
||||
self.assertEqual(len(fields), len({field[0] for field in fields}))
|
||||
for _, kind, lower, upper in fields:
|
||||
if kind.startswith("bool"):
|
||||
self.assertIsNone(lower)
|
||||
self.assertIsNone(upper)
|
||||
else:
|
||||
self.assertLess(lower, upper)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
192
my-tools/test_wbv2_preparation.py
Normal file
192
my-tools/test_wbv2_preparation.py
Normal file
@@ -0,0 +1,192 @@
|
||||
import json
|
||||
from pathlib import Path
|
||||
import tempfile
|
||||
import unittest
|
||||
|
||||
from wbv2_preparation import prepare_module
|
||||
|
||||
|
||||
class CandidatePreparationTests(unittest.TestCase):
|
||||
def setUp(self):
|
||||
self.temporary = tempfile.TemporaryDirectory()
|
||||
self.addCleanup(self.temporary.cleanup)
|
||||
self.root = Path(self.temporary.name)
|
||||
self.directory = self.root / "tests/golden/WBV2/autopilot"
|
||||
self.job = {"id": "AUDIT", "commands": ["setAuditFixture"], "ownedPaths": [], "module": "audit"}
|
||||
self.candidate = self.root / "web/tests/e2e/audit.spec.ts"
|
||||
self.candidate.parent.mkdir(parents=True)
|
||||
self.candidate.write_text("setAuditFixture before")
|
||||
self.unrelated = self.candidate.with_name("unrelated.spec.ts")
|
||||
self.unrelated.write_text("unrelated before")
|
||||
inventory = self.root / "tests/golden/WBV2/dynamic-inventory.json"
|
||||
inventory.parent.mkdir(parents=True)
|
||||
inventory.write_text('{"units": []}')
|
||||
|
||||
def prepare(self):
|
||||
relative = prepare_module(self.root, self.directory, self.job)
|
||||
path = self.root / relative
|
||||
return path, json.loads(path.read_text())
|
||||
|
||||
def test_existing_candidate_content_invalidates_cached_preparation(self):
|
||||
import os
|
||||
from unittest.mock import patch
|
||||
import subprocess
|
||||
|
||||
path, first = self.prepare()
|
||||
self.assertIn("web/tests/e2e/audit.spec.ts", first["candidateTests"])
|
||||
directory_time = self.candidate.parent.stat().st_mtime_ns
|
||||
previous_time = self.candidate.stat().st_mtime_ns
|
||||
self.candidate.write_text("setAuditFixture after!")
|
||||
os.utime(self.candidate, ns=(previous_time + 1000000000, previous_time + 1000000000))
|
||||
self.assertEqual(directory_time, self.candidate.parent.stat().st_mtime_ns)
|
||||
with patch("wbv2_preparation.subprocess.run", wraps=subprocess.run) as search:
|
||||
_, changed = self.prepare()
|
||||
self.assertEqual(search.call_count, 1)
|
||||
self.assertNotEqual(first["fingerprint"], changed["fingerprint"])
|
||||
saved_time = path.stat().st_mtime_ns
|
||||
with patch("wbv2_preparation.subprocess.run", side_effect=AssertionError("unchanged inputs were rescanned")):
|
||||
_, reused = self.prepare()
|
||||
self.assertEqual(changed, reused)
|
||||
self.assertEqual(saved_time, path.stat().st_mtime_ns)
|
||||
|
||||
def test_unrelated_file_edit_keeps_preparation_reusable(self):
|
||||
from unittest.mock import patch
|
||||
|
||||
path, first = self.prepare()
|
||||
saved_time = path.stat().st_mtime_ns
|
||||
self.unrelated.write_text("unrelated after!")
|
||||
with patch("wbv2_preparation.subprocess.run", side_effect=AssertionError("unrelated input was scanned")):
|
||||
_, reused = self.prepare()
|
||||
self.assertEqual(first, reused)
|
||||
self.assertEqual(saved_time, path.stat().st_mtime_ns)
|
||||
|
||||
def test_candidate_paths_reject_escape_symlinks_and_non_test_files(self):
|
||||
from wbv2_preparation import candidate_test_paths
|
||||
|
||||
outside = self.root / "outside.spec.ts"
|
||||
outside.write_text("setAuditFixture")
|
||||
linked = self.candidate.with_name("linked.spec.ts")
|
||||
linked.symlink_to(outside)
|
||||
linked_directory = self.candidate.parent / "linked-directory"
|
||||
linked_directory.symlink_to(self.root, target_is_directory=True)
|
||||
candidates = ["web/tests/e2e/audit.spec.ts", "../outside.spec.ts", str(outside),
|
||||
"outside.spec.ts", "web/tests/e2e/linked.spec.ts",
|
||||
"web/tests/e2e/linked-directory/outside.spec.ts", "web/tests/e2e",
|
||||
"web/tests/e2e/../audit.spec.ts", None, "web/tests/e2e/invalid\x00.spec.ts"]
|
||||
self.assertEqual(candidate_test_paths(self.root, candidates), ("web/tests/e2e/audit.spec.ts",))
|
||||
self.assertEqual(candidate_test_paths(self.root, [None] * 12 + candidates), ())
|
||||
|
||||
|
||||
class BusinessBlockerTests(unittest.TestCase):
|
||||
setUp = CandidatePreparationTests.setUp
|
||||
prepare = CandidatePreparationTests.prepare
|
||||
|
||||
def test_blocker_classification_tracks_source_test_and_contract_gaps(self):
|
||||
_, missing_source = self.prepare()
|
||||
self.assertEqual(missing_source["businessBlocker"]["category"], "source_binding_missing")
|
||||
self.assertIsNone(missing_source["businessBlocker"]["sourceSearch"])
|
||||
inventory = self.root / "tests/golden/WBV2/dynamic-inventory.json"
|
||||
inventory.write_text(json.dumps({"units": [{"id": "web-command:setAuditFixture", "locations": []}]}))
|
||||
self.candidate.unlink()
|
||||
_, missing_test = self.prepare()
|
||||
self.assertEqual(missing_test["businessBlocker"]["category"], "behavioral_test_missing")
|
||||
self.candidate.write_text("setAuditFixture restored")
|
||||
_, missing_contract = self.prepare()
|
||||
blocker = missing_contract["businessBlocker"]
|
||||
self.assertEqual(blocker["category"], "workflow_contract_missing")
|
||||
self.assertEqual(missing_contract["state"], "needs_implementation")
|
||||
self.assertEqual(blocker["contractPath"], "my-tools/local-workflows/AUDIT.json")
|
||||
self.assertEqual(blocker["candidateTests"], ["web/tests/e2e/audit.spec.ts"])
|
||||
self.assertEqual(blocker["sourceSearch"]["argv"], [
|
||||
"node", "tools/web/search-wbv2-batch-source.mjs", "--unit", "web-command:setAuditFixture",
|
||||
"--pattern", "setAuditFixture", "--max-hits", "8"])
|
||||
actions = missing_contract["nextActions"]
|
||||
self.assertEqual(actions[0]["kind"], "inspect_source")
|
||||
self.assertEqual(actions[-1]["path"], blocker["contractPath"])
|
||||
|
||||
def test_input_timestamps_stay_stable_until_fingerprint_changes(self):
|
||||
from unittest.mock import patch
|
||||
|
||||
with patch("wbv2_autopilot.now", return_value="2026-09-10T01:00:00Z"):
|
||||
path, first = self.prepare()
|
||||
timestamp = path.stat().st_mtime_ns
|
||||
with patch("wbv2_autopilot.now", side_effect=AssertionError("unchanged preparation updated time")):
|
||||
_, repeated = self.prepare()
|
||||
self.assertEqual(first, repeated)
|
||||
self.assertEqual(timestamp, path.stat().st_mtime_ns)
|
||||
self.candidate.write_text("setAuditFixture changed")
|
||||
with patch("wbv2_autopilot.now", return_value="2026-09-10T02:00:00Z"):
|
||||
_, changed = self.prepare()
|
||||
blocker = changed["businessBlocker"]
|
||||
self.assertEqual(blocker["firstSeenAt"], "2026-09-10T01:00:00Z")
|
||||
self.assertEqual(blocker["inputChangedAt"], "2026-09-10T02:00:00Z")
|
||||
self.assertNotEqual(first["fingerprint"], blocker["inputFingerprint"])
|
||||
self.assertNotIn("lastProgressAt", blocker)
|
||||
|
||||
def test_blocker_commands_and_retry_paths_are_bounded_and_local(self):
|
||||
from wbv2_preparation import _business_blocker
|
||||
|
||||
outside = self.root / "outside.cpp"
|
||||
outside.write_text("local")
|
||||
linked = self.candidate.with_name("linked.spec.ts")
|
||||
linked.symlink_to(outside)
|
||||
report = {"job": "AUDIT", "fingerprint": "fixture", "commands": ["setAuditFixture", "bad;command"] +
|
||||
["command" + str(index) for index in range(60)],
|
||||
"sourceUnits": [{"id": "bad unit;command"}, {"id": "web-command:setAuditFixture", "locations": [
|
||||
{"path": "../outside.cpp"}, {"path": "web/tests/e2e/linked.spec.ts"},
|
||||
{"path": "blender-5.2.0/source/blender/web_engine/local.cpp"}]}],
|
||||
"candidateTests": ["web/tests/e2e/audit.spec.ts", "../outside.cpp", "web/tests/e2e/linked.spec.ts"],
|
||||
"missingSourceBindings": [], "ownedInputs": {"web/app/src/input" + str(index) + ".ts": "fixture"
|
||||
for index in range(80)}}
|
||||
report["ownedInputs"]["../outside.cpp"] = "fixture"
|
||||
_business_blocker(self.root, report, {})
|
||||
blocker = report["businessBlocker"]
|
||||
self.assertLessEqual(len(blocker["retryOn"]), 64)
|
||||
self.assertIn("my-tools/local-workflows/AUDIT.json", blocker["retryOn"])
|
||||
self.assertIn("web/tests/e2e/audit.spec.ts", blocker["retryOn"])
|
||||
self.assertNotIn("../outside.cpp", blocker["retryOn"])
|
||||
self.assertNotIn("web/tests/e2e/linked.spec.ts", blocker["retryOn"])
|
||||
self.assertEqual(blocker["sourceSearch"]["argv"][3], "web-command:setAuditFixture")
|
||||
for action in report["nextActions"]:
|
||||
self.assertLessEqual(len(action.get("commands", [])), 32)
|
||||
self.assertNotIn("bad;command", action.get("commands", []))
|
||||
|
||||
def test_invalid_job_path_is_rejected_before_preparation(self):
|
||||
from unittest.mock import patch
|
||||
|
||||
for identifier in ("../escape", "/tmp/escape", "A" * 129):
|
||||
with self.subTest(identifier=identifier):
|
||||
with patch("wbv2_preparation.subprocess.run", side_effect=AssertionError("invalid job reached search")):
|
||||
with self.assertRaises(ValueError):
|
||||
prepare_module(self.root, self.directory, {**self.job, "id": identifier})
|
||||
|
||||
|
||||
class PreparationTests(unittest.TestCase):
|
||||
def setUp(self):
|
||||
self.temporary = tempfile.TemporaryDirectory()
|
||||
self.addCleanup(self.temporary.cleanup)
|
||||
self.root = Path(self.temporary.name)
|
||||
self.directory = self.root / "tests/golden/WBV2/autopilot"
|
||||
(self.root / "source.cpp").write_text("// source fixture\n")
|
||||
self.job = {"id": "LOCAL-MODULE", "commands": ["readExample"], "ownedPaths": ["source.cpp"], "module": "EXAMPLE"}
|
||||
|
||||
def test_preparation_is_not_a_completion_claim(self):
|
||||
path = prepare_module(self.root, self.directory, self.job)
|
||||
report = json.loads((self.root / path).read_text())
|
||||
self.assertEqual("needs_implementation", report["state"])
|
||||
self.assertEqual(["readExample"], report["missingSourceBindings"])
|
||||
self.assertNotIn("result", report)
|
||||
|
||||
def test_unchanged_sources_do_not_repeat_preparation(self):
|
||||
path = self.root / prepare_module(self.root, self.directory, self.job)
|
||||
before = path.stat().st_mtime_ns
|
||||
prepare_module(self.root, self.directory, self.job)
|
||||
self.assertEqual(before, path.stat().st_mtime_ns)
|
||||
(self.root / "source.cpp").write_text("// updated source fixture\n")
|
||||
prepare_module(self.root, self.directory, self.job)
|
||||
self.assertNotEqual(before, path.stat().st_mtime_ns)
|
||||
|
||||
def test_owned_path_escape_is_rejected(self):
|
||||
self.job["ownedPaths"] = ["../outside.cpp"]
|
||||
with self.assertRaises(ValueError):
|
||||
prepare_module(self.root, self.directory, self.job)
|
||||
50
my-tools/test_wbv2_rna_extraction.py
Normal file
50
my-tools/test_wbv2_rna_extraction.py
Normal file
@@ -0,0 +1,50 @@
|
||||
import importlib.util
|
||||
import pathlib
|
||||
import unittest
|
||||
|
||||
|
||||
ROOT = pathlib.Path(__file__).resolve().parents[1]
|
||||
spec = importlib.util.spec_from_file_location(
|
||||
"rna_extraction", ROOT / "blender-5.2.0/source/blender/web_engine/extract_id_property_rna.py")
|
||||
module = importlib.util.module_from_spec(spec)
|
||||
spec.loader.exec_module(module)
|
||||
|
||||
|
||||
class RNAExtractionTests(unittest.TestCase):
|
||||
def test_braces_in_strings_and_comments_are_not_structure(self):
|
||||
source = 'value = {"}", /* { */ {1, 2}}; trailing'
|
||||
self.assertEqual('value = {"}", /* { */ {1, 2}};', module.initializer(source, 0))
|
||||
|
||||
def test_missing_terminator_is_rejected(self):
|
||||
with self.assertRaises(ValueError):
|
||||
module.initializer("value = {1} trailing", 0)
|
||||
|
||||
def test_unterminated_initializer_is_rejected(self):
|
||||
with self.assertRaises(ValueError):
|
||||
module.initializer('value = {"}"', 0)
|
||||
|
||||
def sources(self):
|
||||
generated = ROOT / "build_web_blender6/source/blender/makesrna/intern/rna_ID_gen.cc"
|
||||
if not generated.exists():
|
||||
self.skipTest("makesrna output has not been built locally")
|
||||
native = ROOT / "blender-5.2.0/source/blender/makesrna/intern/rna_ID.cc"
|
||||
return generated.read_text(), native.read_text()
|
||||
|
||||
def test_extraction_reuses_all_original_descriptors_and_callbacks(self):
|
||||
generated, native = self.sources()
|
||||
output = module.extract(generated, native)
|
||||
self.assertEqual(output, module.extract(generated, native))
|
||||
self.assertEqual(16, output.count(" = reinterpret_cast<PropertyRNA &>"))
|
||||
self.assertIn(module.function(native, "rna_IDPArray_begin")[1], output)
|
||||
self.assertIn(module.function(generated, "PropertyGroupItem_rna_type_get")[1], output)
|
||||
self.assertNotIn("ID_code_to_RNA_type", output)
|
||||
self.assertNotIn("RNA_blender_rna_get", output)
|
||||
|
||||
def test_changed_generator_schema_fails_closed(self):
|
||||
generated, native = self.sources()
|
||||
with self.assertRaisesRegex(ValueError, "Missing makesrna descriptor"):
|
||||
module.extract(generated.replace("rna_PropertyGroupItem_int_", "renamed_descriptor"), native)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
72
my-tools/test_wbv2_runtime_contract.py
Normal file
72
my-tools/test_wbv2_runtime_contract.py
Normal file
@@ -0,0 +1,72 @@
|
||||
import contextlib
|
||||
import io
|
||||
import threading
|
||||
import time
|
||||
import unittest
|
||||
|
||||
from wbv2_runtime_contract import bind_runtime_publication
|
||||
import test_wbv2_task_dispatch as fixtures
|
||||
|
||||
|
||||
class RuntimeContractTests(unittest.TestCase):
|
||||
def test_ui_verification_tracks_shared_viewport_and_binding_code(self):
|
||||
result = bind_runtime_publication({
|
||||
"dependencies": ["web/app/src/app/App.tsx"],
|
||||
"checks": [{"id": "browser", "argv": ["node", "test.mjs"],
|
||||
"cwd": ".", "kinds": ["chromium"]}],
|
||||
})
|
||||
self.assertIn("web/app/src/three-adapter/viewport.ts", result["dependencies"])
|
||||
self.assertIn("my-tools/wbv2_runtime_contract.py", result["dependencies"])
|
||||
|
||||
def test_backend_browser_verification_keeps_its_existing_scope(self):
|
||||
result = bind_runtime_publication({
|
||||
"dependencies": ["web/protocol/web-engine.ts"],
|
||||
"checks": [{"id": "browser", "argv": ["node", "test.mjs"],
|
||||
"cwd": ".", "kinds": ["chromium"]}],
|
||||
})
|
||||
self.assertNotIn("web/app/src/three-adapter/viewport.ts", result["dependencies"])
|
||||
|
||||
def test_new_work_is_selected_before_stale_verified_work(self):
|
||||
from wbv2_local_planner import LocalPlanner
|
||||
fixture = fixtures.AutoDispatchTests()
|
||||
fixture.setUp()
|
||||
try:
|
||||
jobs = fixture.jobs(2)
|
||||
fixture.runner.state["jobs"][jobs[0]["id"]] = {"state": "verified", "receipt": "missing.json", "receiptSha256": "0" * 64}
|
||||
LocalPlanner(fixture.root, fixture.runner.directory).refresh(fixture.context, jobs, set())
|
||||
self.assertEqual(jobs[1]["id"], fixture.runner.choose_job(jobs)["id"])
|
||||
finally:
|
||||
fixture.doCleanups()
|
||||
|
||||
def test_known_webengine_build_includes_runtime_publication(self):
|
||||
result = {"checks": [{"id": "build", "kinds": ["source_build"], "argv": ["cmake", "--build", "build_web_blender6", "--target", "web_engine"], "cwd": "."}], "dependencies": [], "artifacts": []}
|
||||
bind_runtime_publication(result)
|
||||
self.assertEqual(["python3", "my-tools/build_local_webengine.py"], result["checks"][0]["argv"])
|
||||
self.assertIn("tools/web/sync-web-engine-runtime.mjs", result["dependencies"])
|
||||
self.assertIn("web/app/public/wasm-module-manifest.json", result["artifacts"])
|
||||
|
||||
def test_other_build_targets_keep_their_contract(self):
|
||||
argv = ["cmake", "--build", "build_blender_native", "--target", "blender"]
|
||||
result = {"checks": [{"id": "build", "kinds": ["source_build"], "argv": argv, "cwd": "."}], "dependencies": [], "artifacts": []}
|
||||
bind_runtime_publication(result)
|
||||
self.assertEqual(argv, result["checks"][0]["argv"])
|
||||
self.assertEqual([], result["dependencies"])
|
||||
|
||||
def test_unchanged_wait_does_not_return_to_preflight_on_poll_deadline(self):
|
||||
fixture = fixtures.AutoDispatchTests()
|
||||
fixture.setUp()
|
||||
try:
|
||||
jobs = fixture.jobs(1)
|
||||
fixture.policy["localPollSeconds"] = 0.01
|
||||
stop = threading.Timer(0.4, lambda: setattr(fixture.runner, "stop_requested", True))
|
||||
stop.start()
|
||||
try:
|
||||
start = time.monotonic()
|
||||
with contextlib.redirect_stdout(io.StringIO()):
|
||||
fixture.runner.wait_for_local_work(fixture.context, jobs)
|
||||
self.assertGreater(time.monotonic() - start, 0.35)
|
||||
self.assertTrue(fixture.runner.stop_requested)
|
||||
finally:
|
||||
stop.join()
|
||||
finally:
|
||||
fixture.doCleanups()
|
||||
39
my-tools/test_wbv2_scoped_resume.py
Normal file
39
my-tools/test_wbv2_scoped_resume.py
Normal file
@@ -0,0 +1,39 @@
|
||||
"""Resume behavior tests; no Blender coverage claims."""
|
||||
import copy
|
||||
import unittest
|
||||
from wbv2_autopilot import reset_resume_jobs
|
||||
|
||||
|
||||
class ScopedResumeTests(unittest.TestCase):
|
||||
def setUp(self):
|
||||
self.records = {
|
||||
"RIG": {"state": "blocked", "reason": "native failure", "attempts": 4},
|
||||
"RNA": {"state": "blocked", "reason": "receipt missing", "attempts": 3},
|
||||
"IO": {"state": "verified", "receipt": "prior.json"},
|
||||
}
|
||||
|
||||
def test_normal_resume_does_not_requeue_failures(self):
|
||||
before = copy.deepcopy(self.records)
|
||||
self.assertEqual(reset_resume_jobs(self.records), [])
|
||||
self.assertEqual(self.records, before)
|
||||
|
||||
def test_scoped_retry_preserves_other_failures_and_evidence(self):
|
||||
before = copy.deepcopy(self.records)
|
||||
self.assertEqual(reset_resume_jobs(self.records, True, "RIG"), ["RIG"])
|
||||
self.assertEqual(self.records["RIG"]["state"], "retry_pending")
|
||||
for job in ("RNA", "IO"):
|
||||
self.assertEqual(self.records[job], before[job])
|
||||
|
||||
def test_unknown_job_fails_before_mutating(self):
|
||||
before = copy.deepcopy(self.records)
|
||||
with self.assertRaises(ValueError):
|
||||
reset_resume_jobs(self.records, True, "UNKNOWN")
|
||||
self.assertEqual(self.records, before)
|
||||
|
||||
def test_global_explicit_retry_preserves_verified(self):
|
||||
self.assertEqual(reset_resume_jobs(self.records, True), ["RIG", "RNA"])
|
||||
self.assertEqual(self.records["IO"]["state"], "verified")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
232
my-tools/test_wbv2_step_cache.py
Normal file
232
my-tools/test_wbv2_step_cache.py
Normal file
@@ -0,0 +1,232 @@
|
||||
import hashlib
|
||||
import json
|
||||
from pathlib import Path
|
||||
import tempfile
|
||||
import unittest
|
||||
|
||||
from wbv2_step_cache import StepCache
|
||||
|
||||
|
||||
class StepCacheTests(unittest.TestCase):
|
||||
def setUp(self):
|
||||
self.temp = tempfile.TemporaryDirectory()
|
||||
self.addCleanup(self.temp.cleanup)
|
||||
self.root = Path(self.temp.name) / "project"
|
||||
self.root.mkdir()
|
||||
self.source = self.root / "source.cc"
|
||||
self.source.write_bytes(b"original input")
|
||||
self.log = self.root / "check.log"
|
||||
self.log.write_bytes(b"verified")
|
||||
self.artifact = self.root / "module.wasm"
|
||||
self.artifact.write_bytes(b"compiled output")
|
||||
self.case = self.root / "case.json"
|
||||
self.case.write_text('{"passed":true}', encoding="utf-8")
|
||||
self.cache = StepCache(self.root, "cache")
|
||||
self.receipt = {
|
||||
"exitCode": 0, "durationSeconds": 12.75, "logPath": "check.log",
|
||||
"logSha256": self.digest(self.log), "pid": 1234,
|
||||
"startedAt": "2026-09-09T00:00:00Z", "endedAt": "2026-09-09T00:00:12Z",
|
||||
"argv": ["python3", "validate.py"], "cwd": str(self.root),
|
||||
}
|
||||
|
||||
@staticmethod
|
||||
def digest(path):
|
||||
return hashlib.sha256(path.read_bytes()).hexdigest()
|
||||
|
||||
def key(self, cache=None, **changes):
|
||||
arguments = {
|
||||
"job": {"id": "MODULE-CHECK"}, "check_id": "case-one",
|
||||
"argv": ["python3", "validate.py"], "cwd": ".", "env": {},
|
||||
"unset_env": [], "input_hashes": {"source.cc": self.digest(self.source)},
|
||||
}
|
||||
arguments.update(changes)
|
||||
return (cache or self.cache).key(**arguments)
|
||||
|
||||
def artifacts(self):
|
||||
return [{"path": p.name, "sha256": self.digest(p)}
|
||||
for p in (self.artifact, self.case)]
|
||||
|
||||
def store(self, **changes):
|
||||
key = self.key()
|
||||
self.cache.store(key, self.receipt | changes, self.artifacts())
|
||||
return key
|
||||
|
||||
def test_reuses_success_without_rewriting_evidence(self):
|
||||
before = self.log.stat().st_mtime_ns
|
||||
key = self.store()
|
||||
result = self.cache.load(key)
|
||||
self.assertEqual(result["durationSeconds"], 12.75)
|
||||
self.assertEqual(result["logPath"], self.receipt["logPath"])
|
||||
self.assertEqual(result["startedAt"], self.receipt["startedAt"])
|
||||
self.assertEqual(result["endedAt"], self.receipt["endedAt"])
|
||||
self.assertEqual(result["pid"], 1234)
|
||||
self.assertEqual(result["reusedFrom"]["cacheKey"], key)
|
||||
self.assertEqual(self.log.stat().st_mtime_ns, before)
|
||||
self.assertNotIn("reusedFrom", self.receipt)
|
||||
|
||||
def test_fresh_process_preserves_original_provenance(self):
|
||||
key = self.store()
|
||||
fresh = StepCache(self.root, "cache")
|
||||
self.assertEqual(self.key(fresh), key)
|
||||
result = fresh.load(key)
|
||||
self.assertEqual(result["pid"], self.receipt["pid"])
|
||||
self.assertEqual(result["argv"], self.receipt["argv"])
|
||||
self.assertEqual(result["cwd"], self.receipt["cwd"])
|
||||
self.assertEqual(result["reusedFrom"]["durationSeconds"], 12.75)
|
||||
|
||||
def test_input_change_invalidates_key_and_checkpoint(self):
|
||||
key = self.store()
|
||||
self.source.write_bytes(b"new input")
|
||||
self.assertNotEqual(self.key(), key)
|
||||
self.assertIsNone(self.cache.load(key))
|
||||
|
||||
def test_environment_changes_invalidate_key_without_storing_values(self):
|
||||
key = self.key(env={"SECRET_TOKEN": "private-environment-value"})
|
||||
other = self.key(env={"SECRET_TOKEN": "other-value"})
|
||||
self.assertNotEqual(key, other)
|
||||
self.assertNotEqual(key, self.key(env={"SECRET_TOKEN": "private-environment-value"},
|
||||
unset_env=["THREADS"]))
|
||||
self.cache.store(key, self.receipt, self.artifacts())
|
||||
record = (self.root / "cache" / (key + ".json")).read_text()
|
||||
self.assertNotIn("SECRET_TOKEN", record)
|
||||
self.assertNotIn("private-environment-value", record)
|
||||
|
||||
def test_identity_command_and_directory_affect_key(self):
|
||||
key = self.key()
|
||||
(self.root / "subdir").mkdir()
|
||||
for changes in ({"job": "another-job"}, {"check_id": "other-check"},
|
||||
{"argv": ["python3", "different.py"]}, {"cwd": "subdir"}):
|
||||
with self.subTest(changes=changes):
|
||||
self.assertNotEqual(key, self.key(**changes))
|
||||
|
||||
def test_artifact_drift_invalidates_checkpoint(self):
|
||||
key = self.store()
|
||||
self.artifact.write_bytes(b"drifted output")
|
||||
self.assertIsNone(self.cache.load(key))
|
||||
|
||||
def test_case_receipt_drift_invalidates_checkpoint(self):
|
||||
key = self.store()
|
||||
self.case.write_text('{"passed":false}', encoding="utf-8")
|
||||
self.assertIsNone(self.cache.load(key))
|
||||
|
||||
def test_missing_artifact_invalidates_checkpoint(self):
|
||||
key = self.store()
|
||||
self.artifact.unlink()
|
||||
self.assertIsNone(self.cache.load(key))
|
||||
|
||||
def test_log_drift_invalidates_checkpoint(self):
|
||||
key = self.store()
|
||||
self.log.write_bytes(b"changed log")
|
||||
self.assertIsNone(self.cache.load(key))
|
||||
|
||||
def test_failed_or_interrupted_checks_are_never_stored(self):
|
||||
for changes in ({"exitCode": 1}, {"exitCode": False}, {"exitCode": "0"},
|
||||
{"timedOut": True}, {"idleTimedOut": True},
|
||||
{"logLimitExceeded": True}, {"interrupted": True},
|
||||
{"providerAborted": True}, {"signal": "SIGTERM"},
|
||||
{"stopReason": "model_idle_timeout"}):
|
||||
with self.subTest(changes=changes):
|
||||
key = self.store(**changes)
|
||||
self.assertIsNone(self.cache.load(key))
|
||||
self.assertFalse((self.root / "cache" / (key + ".json")).exists())
|
||||
|
||||
def test_source_changes_during_execution_prevent_store(self):
|
||||
key = self.key()
|
||||
self.source.write_bytes(b"changed while checking")
|
||||
self.cache.store(key, self.receipt, self.artifacts())
|
||||
self.assertIsNone(self.cache.load(key))
|
||||
|
||||
def test_unpinned_store_is_rejected(self):
|
||||
key = "a" * 64
|
||||
self.cache.store(key, self.receipt, self.artifacts())
|
||||
self.assertIsNone(self.cache.load(key))
|
||||
with self.assertRaises(ValueError):
|
||||
self.key(input_hashes={})
|
||||
|
||||
def test_missing_log_hash_or_raw_environment_prevents_store(self):
|
||||
for changes in ({"logSha256": None}, {"durationSeconds": float("nan")},
|
||||
{"env": {"SECRET": "private"}}):
|
||||
with self.subTest(changes=changes):
|
||||
self.assertIsNone(self.cache.load(self.store(**changes)))
|
||||
|
||||
def test_no_artifacts_prevents_store(self):
|
||||
key = self.key()
|
||||
self.cache.store(key, self.receipt, [])
|
||||
self.assertIsNone(self.cache.load(key))
|
||||
|
||||
def test_corrupt_and_malformed_cache_records_are_misses(self):
|
||||
key = self.store()
|
||||
path = self.root / "cache" / (key + ".json")
|
||||
good = json.loads(path.read_text())
|
||||
for value in ("{broken", "null", "[]", "true", "{}",
|
||||
json.dumps(good | {"key": "b" * 64}),
|
||||
json.dumps(good | {"schemaVersion": True}),
|
||||
json.dumps(good | {"artifacts": [None]}),
|
||||
json.dumps(good | {"inputHashes": []}),
|
||||
json.dumps(good | {"processReceipt": []})):
|
||||
with self.subTest(value=value):
|
||||
path.write_text(value)
|
||||
self.assertIsNone(self.cache.load(key))
|
||||
|
||||
def test_traversal_paths_are_rejected(self):
|
||||
with self.assertRaises(ValueError):
|
||||
StepCache(self.root, "cache/../other")
|
||||
with self.assertRaises(ValueError):
|
||||
self.key(cwd="../project")
|
||||
self.assertIsNone(self.cache.load("../key"))
|
||||
self.assertIsNone(self.cache.load(self.store(logPath="cache/../check.log")))
|
||||
|
||||
def test_external_symlink_paths_are_rejected(self):
|
||||
outside = Path(self.temp.name) / "outside"
|
||||
outside.mkdir()
|
||||
(outside / "output").write_bytes(self.artifact.read_bytes())
|
||||
(self.root / "escape").symlink_to(outside, target_is_directory=True)
|
||||
with self.assertRaises(ValueError):
|
||||
StepCache(self.root, "escape/cache")
|
||||
key = self.key()
|
||||
artifacts = [{"path": "escape/output", "sha256": self.digest(self.artifact)}]
|
||||
self.cache.store(key, self.receipt, artifacts)
|
||||
self.assertIsNone(self.cache.load(key))
|
||||
|
||||
def test_replaced_artifact_symlink_is_rejected(self):
|
||||
key = self.store()
|
||||
outside = Path(self.temp.name) / "outside.wasm"
|
||||
outside.write_bytes(self.artifact.read_bytes())
|
||||
self.artifact.unlink()
|
||||
self.artifact.symlink_to(outside)
|
||||
self.assertIsNone(self.cache.load(key))
|
||||
|
||||
def test_internal_artifact_symlink_retarget_invalidates_checkpoint(self):
|
||||
alias = self.root / "runtime.wasm"
|
||||
alias.symlink_to(self.artifact)
|
||||
key = self.key()
|
||||
self.cache.store(key, self.receipt,
|
||||
[{"path": alias.name, "sha256": self.digest(alias)}])
|
||||
self.assertIsNotNone(self.cache.load(key))
|
||||
other = self.root / "other.wasm"
|
||||
other.write_bytes(b"changed compiled output")
|
||||
alias.unlink()
|
||||
alias.symlink_to(other)
|
||||
self.assertIsNone(self.cache.load(key))
|
||||
|
||||
def test_input_symlink_escape_invalidates_checkpoint(self):
|
||||
alias = self.root / "linked-source.cc"
|
||||
alias.symlink_to(self.source)
|
||||
key = self.key(input_hashes={alias.name: self.digest(alias)})
|
||||
self.cache.store(key, self.receipt, self.artifacts())
|
||||
self.assertIsNotNone(self.cache.load(key))
|
||||
outside = Path(self.temp.name) / "outside.cc"
|
||||
outside.write_bytes(self.source.read_bytes())
|
||||
alias.unlink()
|
||||
alias.symlink_to(outside)
|
||||
self.assertIsNone(self.cache.load(key))
|
||||
|
||||
def test_symlink_loop_is_a_cache_miss(self):
|
||||
key = self.store()
|
||||
self.artifact.unlink()
|
||||
self.artifact.symlink_to(self.artifact)
|
||||
self.assertIsNone(self.cache.load(key))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user