Tighten cached guardrail signatures

This commit is contained in:
cnc
2026-06-02 06:47:10 +08:00
parent fbe1c31961
commit 0db23b4a5d
6 changed files with 37 additions and 10 deletions

View File

@@ -86,9 +86,9 @@ Efficiency rules:
- Reuse source preflight results in persistent build directories through
`check-linuxcnc-inputs-cached.sh`; its signature must include the LinuxCNC
root, manifest content, source file size and nanosecond mtime stats, the check
mode, and the checker script hash. Cache updates must be serialized with a
lock inside the cache directory and must write next signatures through unique
temporary files.
mode, the cached wrapper script hash, and the checker script hash. Cache
updates must be serialized with a lock inside the cache directory and must
write next signatures through unique temporary files.
Root-only source, flag, and link helper scripts must also use this cached
preflight, defaulting to `build/linuxcnc-helper-preflight-cache` when a caller
has not supplied `CNC_SIM_PREFLIGHT_CACHE_DIR`.
@@ -97,15 +97,16 @@ Efficiency rules:
`test-linuxcnc-wasm-cmake-safe-probe.sh` instead of forcing a second cache
walk in the same pass.
- Cache wasm blocker analyzer output in `test-linuxcnc-wasm-blockers.sh`. Its
signature must include the analyzer script, manifest content, LinuxCNC source
size and nanosecond mtime stats, shim lister script, and shim source hashes.
The cache must be locked and may be overridden with
signature must include the blocker wrapper script, analyzer script, manifest
content, LinuxCNC source size and nanosecond mtime stats, shim lister script,
and shim source hashes. The cache must be locked and may be overridden with
`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 checker and generator scripts, the kinematics manifest, referenced
LinuxCNC source size and nanosecond mtime stats, and tracked generated
table/case outputs.
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
switchkins config aliases.
- Reuse wasm probe objects across the wasm source object probe,
`rs274ngc_pre` blocker/link probes, and the runtime link probe through
`build-linuxcnc-wasm-probe-objects.sh`. Its mode-specific object caches must