参考所有分组,完成尽量多的内容:补齐 switchkins 缓存签名输入

结论:switchkins/remap 表缓存签名现在包含 manifest 输入校验脚本,输入校验规则变化会使缓存失效;未扩展 smoke 功能。
This commit is contained in:
cnc
2026-06-03 18:13:42 +08:00
parent 32b4a96a9f
commit c8b834e36b
3 changed files with 9 additions and 3 deletions

View File

@@ -92,6 +92,10 @@ if ! {
sha256sum check-linuxcnc-switchkins-remap-table-cached.sh
printf 'CHECK_SCRIPT='
sha256sum check-linuxcnc-switchkins-remap-table.sh
printf 'INPUT_CACHED_SCRIPT='
sha256sum check-linuxcnc-inputs-cached.sh
printf 'INPUT_CHECK_SCRIPT='
sha256sum check-linuxcnc-inputs.sh
printf 'GENERATOR_SCRIPT='
sha256sum generate-linuxcnc-switchkins-remap-table.sh
printf 'LINUXCNC_ROOT=%s\n' "$linuxcnc_root"

View File

@@ -109,9 +109,9 @@ Efficiency rules:
`CNC_SIM_WASM_BLOCKERS_CACHE_DIR`.
- Reuse switchkins/remap table check results in the same persistent cache with
`check-linuxcnc-switchkins-remap-table-cached.sh`; its signature must include
the cached wrapper script, checker script, generator script, the kinematics
manifest, referenced LinuxCNC source size and nanosecond mtime stats, tracked
generated table/case outputs, and the thin API/web bridge files that pass
the cached wrapper script, checker script, generator script, manifest input
checker scripts, the kinematics manifest, referenced LinuxCNC source size and
nanosecond mtime stats, tracked generated table/case outputs, and the thin API/web bridge files that pass
switchkins config aliases. Native, source-link, and build-wasm entry points
must run this cached check before consuming those aliases.
- The switchkins/remap generator must treat LinuxCNC `[EMCIO] TOOL_TABLE`

View File

@@ -101,6 +101,8 @@ test -x check-linuxcnc-switchkins-remap-table-cached.sh
grep -F 'check-linuxcnc-switchkins-remap-table.lock' check-linuxcnc-switchkins-remap-table-cached.sh >/dev/null
grep -F 'sha256sum check-linuxcnc-switchkins-remap-table-cached.sh' check-linuxcnc-switchkins-remap-table-cached.sh >/dev/null
grep -F 'sha256sum check-linuxcnc-switchkins-remap-table.sh' check-linuxcnc-switchkins-remap-table-cached.sh >/dev/null
grep -F 'sha256sum check-linuxcnc-inputs-cached.sh' check-linuxcnc-switchkins-remap-table-cached.sh >/dev/null
grep -F 'sha256sum check-linuxcnc-inputs.sh' check-linuxcnc-switchkins-remap-table-cached.sh >/dev/null
grep -F 'sha256sum generate-linuxcnc-switchkins-remap-table.sh' check-linuxcnc-switchkins-remap-table-cached.sh >/dev/null
grep -F 'stat -c '\''SOURCE=%n:%s:%y'\''' check-linuxcnc-switchkins-remap-table-cached.sh >/dev/null
grep -F 'core/src/cnc_sim_api.cpp' check-linuxcnc-switchkins-remap-table-cached.sh >/dev/null