补齐 xyzbc-trt Web 路径证据
This commit is contained in:
@@ -1,5 +1,108 @@
|
||||
# 05-验收证据
|
||||
|
||||
## evidence 字段与路径对比实现验收
|
||||
|
||||
### 命令
|
||||
|
||||
```bash
|
||||
npm --prefix web-rtcp-5axis-xyzbc-trt-sim-plan/app run smoke:node
|
||||
python3 -m py_compile web-rtcp-5axis-xyzbc-trt-sim-plan/tools/collect-native-xyzbc-trt-evidence.py
|
||||
npm --prefix web-rtcp-5axis-xyzbc-trt-sim-plan/app run evidence:web
|
||||
npm --prefix web-rtcp-5axis-xyzbc-trt-sim-plan/app run evidence:compare
|
||||
npm --prefix web-rtcp-5axis-xyzbc-trt-sim-plan/app run build
|
||||
```
|
||||
|
||||
### 结果
|
||||
|
||||
```text
|
||||
xyzbc_trt_web_app_smoke=ok
|
||||
collect-native-xyzbc-trt-evidence.py py_compile=ok
|
||||
web_xyzbc_trt_evidence=.../working/evidence/web-xyzbc-trt-evidence.json
|
||||
compare_xyzbc_trt_status=fail fail_count=5
|
||||
gmoccapy_static_build=ok
|
||||
```
|
||||
|
||||
### JSON 证据
|
||||
|
||||
```text
|
||||
web-rtcp-5axis-xyzbc-trt-sim-plan/working/evidence/web-xyzbc-trt-evidence.json
|
||||
web-rtcp-5axis-xyzbc-trt-sim-plan/working/evidence/compare-xyzbc-trt-evidence.json
|
||||
```
|
||||
|
||||
当前 Web evidence 已包含:
|
||||
|
||||
```text
|
||||
pathSampling.samplePeriodMs = 20
|
||||
previewPath.samplePeriodMs = 20
|
||||
executionPath.samplePeriodMs = 20
|
||||
startupSequence
|
||||
iniDisplay
|
||||
halNets
|
||||
kinematicsPins
|
||||
axisJointLimits
|
||||
switchkinsTransitions
|
||||
uiEquivalence
|
||||
vismachEquivalent
|
||||
ngcguiSubroutines
|
||||
demoPrograms
|
||||
```
|
||||
|
||||
当前 compare evidence 已包含:
|
||||
|
||||
```text
|
||||
pathComparison.previewVsPreview
|
||||
pathComparison.executionVsExecution
|
||||
pathComparison.previewVsExecutionNative
|
||||
pathComparison.previewVsExecutionWeb
|
||||
```
|
||||
|
||||
结论:
|
||||
|
||||
- 静态/profile/staging/evidence 字段已实现并通过 Node smoke。
|
||||
- compare 仍保持失败是正确结果:Web WASM artifact、preview path 和 execution path 已具备,native evidence 尚未用新基线重采集 path 样本。
|
||||
- `npm run build` 当前已通过,说明目标 app 可在现有 WASM artifact 下完成静态构建。
|
||||
|
||||
## Web task/HAL executionPath 采集验收
|
||||
|
||||
### 命令
|
||||
|
||||
```bash
|
||||
npm --prefix web-rtcp-5axis-xyzbc-trt-sim-plan/app run evidence:web
|
||||
npm --prefix web-rtcp-5axis-xyzbc-trt-sim-plan/app run evidence:compare
|
||||
npm --prefix web-rtcp-5axis-xyzbc-trt-sim-plan/app run smoke:node
|
||||
npm --prefix web-rtcp-5axis-xyzbc-trt-sim-plan/app run build
|
||||
```
|
||||
|
||||
### 结果
|
||||
|
||||
```text
|
||||
web_xyzbc_trt_evidence=.../working/evidence/web-xyzbc-trt-evidence.json
|
||||
compare_xyzbc_trt_status=fail fail_count=5
|
||||
xyzbc_trt_web_app_smoke=ok
|
||||
gmoccapy_static_build=ok
|
||||
```
|
||||
|
||||
### JSON 摘要
|
||||
|
||||
```text
|
||||
web.wasm.ready = true
|
||||
web.blockers = []
|
||||
web.previewPath.samplePeriodMs = 20
|
||||
web.previewPath.sampleCount = 3074
|
||||
web.executionPath.samplePeriodMs = 20
|
||||
web.executionPath.sampleCount = 569
|
||||
web.executionPath.source = web-linuxcnc-task-hal-execution
|
||||
web.executionPath.taskHal.completed = true
|
||||
compare.summary.passCount = 18
|
||||
compare.summary.failCount = 5
|
||||
```
|
||||
|
||||
结论:
|
||||
|
||||
- Web 侧 `previewPath` 已由 `linuxcnc_interp`/TP WASM 轨迹重采样为 20ms。
|
||||
- Web 侧 `executionPath` 已由 `linuxcnc_task_hal` WASM 执行反馈生成 20ms 样本。
|
||||
- compare 剩余 5 项失败均来自 native evidence 尚无 `previewPath`/`executionPath` 样本和采样周期字段。
|
||||
|
||||
## DOCX 整合验收
|
||||
|
||||
### 源文件
|
||||
@@ -465,9 +568,44 @@ missingSamples
|
||||
|
||||
当前状态:
|
||||
|
||||
- 现有三份 `working/evidence/*.json` 还没有上述路径字段。
|
||||
- 本轮未手工改写 JSON 证据文件;后续必须通过采集脚本重新生成。
|
||||
- Web 执行路径采集依赖 WASM artifact,artifact 缺失时 compare 必须保留 fail/blocker。
|
||||
- `web-xyzbc-trt-evidence.json` 已通过采集脚本重新生成,`wasmArtifactsReady=true`、`missing=[]`。
|
||||
- Web preview path 已由 `linuxcnc_interp` WASM 生成 6174 个 20ms 样本。
|
||||
- Web execution path 采集仍未实现,当前 blocker 为 `web-execution-path-unavailable`。
|
||||
- native preview/execution path 仍需用 `/home/mes123456/cnc_wams/linuxcnc` 真实运行实例重采集。
|
||||
- `compare-xyzbc-trt-evidence.json` 当前 17/23 通过,剩余 6 项均与 native path 样本或 Web execution path 样本缺失有关。
|
||||
|
||||
### WASM artifact 验收记录
|
||||
|
||||
本轮已生成并核对以下目标 artifact:
|
||||
|
||||
```text
|
||||
wasm-port/build/wasm/core/linuxcnc_interp.js
|
||||
wasm-port/build/wasm/core/linuxcnc_interp.wasm
|
||||
wasm-port/build/wasm/kinematics/linuxcnc_xyzbc_trt_kinematics.js
|
||||
wasm-port/build/wasm/kinematics/linuxcnc_xyzbc_trt_kinematics.wasm
|
||||
wasm-port/build/wasm/tp/linuxcnc_tp.js
|
||||
wasm-port/build/wasm/tp/linuxcnc_tp.wasm
|
||||
wasm-port/build/wasm/task-hal/linuxcnc_task_hal.js
|
||||
wasm-port/build/wasm/task-hal/linuxcnc_task_hal.wasm
|
||||
```
|
||||
|
||||
验证命令结果:
|
||||
|
||||
```text
|
||||
node tests/node/verify_xyzbc_trt_web_app.mjs -> xyzbc_trt_web_app_smoke=ok
|
||||
SKIP_KINEMATICS_BUILD=1 wasm-port/tests/wasm/node/verify_kinematics_wasm.sh -> kinematics_wasm_node_smoke=ok
|
||||
SKIP_TP_BUILD=1 wasm-port/tests/wasm/node/verify_tp_wasm.sh -> tp_wasm_node_smoke=ok
|
||||
SKIP_TASK_HAL_BUILD=1 wasm-port/tests/wasm/node/verify_task_hal_wasm.sh -> linuxcnc_task_runtime_smoke=ok
|
||||
```
|
||||
|
||||
补充 interpreter/remap 验收:
|
||||
|
||||
```text
|
||||
SKIP_INTERP_BUILD=1 wasm-port/tests/wasm/node/verify_interp_wasm.sh -> interp_wasm_node_smoke=ok
|
||||
wasm-port/tests/wasm/node/verify_interp_wasm.sh -> interp_wasm_node_smoke=ok
|
||||
```
|
||||
|
||||
修复依据:`interp_g10_l11_wasm` 的实际 WASM 输出与 `wasm-port/vendor/linuxcnc/tests/interp/g10/g10-l11/expected` 一致,均为 `SET_G92_OFFSET x=-43.0622 y=-47.4282 z=-72`;原 Node 验收脚本中的 `x=-41.1962 y=-46.1962 z=-72` 为过期期望值。
|
||||
|
||||
## 页面证据
|
||||
|
||||
|
||||
Reference in New Issue
Block a user