From fdec641ea33f8bc39fcaa72568f75bc8936e76d0 Mon Sep 17 00:00:00 2001 From: wangdequan Date: Mon, 10 Aug 2026 16:58:30 -0400 Subject: [PATCH] test: refresh real WASM harness evidence --- ...rome-cam-linuxcnc-machine-verification.json | 2 +- ...ome-cam-native-simulation-verification.json | 4 ++-- config/chrome-native-history-verification.json | 18 +++++++++++++++++- config/occt-browser-verification.json | 11 ++++------- scripts/run-browser-occt-harness.mjs | 9 ++++++++- src/facade/camNativeSimulation.ts | 4 ++-- 6 files changed, 34 insertions(+), 14 deletions(-) diff --git a/config/chrome-cam-linuxcnc-machine-verification.json b/config/chrome-cam-linuxcnc-machine-verification.json index 156cd60..6e9067d 100644 --- a/config/chrome-cam-linuxcnc-machine-verification.json +++ b/config/chrome-cam-linuxcnc-machine-verification.json @@ -11,7 +11,7 @@ "openCamLib": { "backend": "upstream-opencamlib-wasm", "sourceRevision": "95b036fe28ce6d77c97b98e5fbc337904ae49560", - "artifactSha256": "0379040910f7af277c6e1f6411efb549292db0b071422a83954d93631253bf89", + "artifactSha256": "30ca7dd307a131f9df66288d530c3fbacf155f375f83a2d733c5c00a85a712e0", "algorithm": "path-drop-cutter", "surfaceModel": "cad-operation-plane", "triangleCount": 2, diff --git a/config/chrome-cam-native-simulation-verification.json b/config/chrome-cam-native-simulation-verification.json index 9d64e45..01c87bc 100644 --- a/config/chrome-cam-native-simulation-verification.json +++ b/config/chrome-cam-native-simulation-verification.json @@ -8,7 +8,7 @@ "status": "available", "backend": "upstream-opencamlib-wasm", "sourceRevision": "95b036fe28ce6d77c97b98e5fbc337904ae49560", - "artifactSha256": "0379040910f7af277c6e1f6411efb549292db0b071422a83954d93631253bf89", + "artifactSha256": "30ca7dd307a131f9df66288d530c3fbacf155f375f83a2d733c5c00a85a712e0", "algorithms": [ "path-drop-cutter", "adaptive-path-drop-cutter", @@ -64,7 +64,7 @@ "openCamLib": { "backend": "upstream-opencamlib-wasm", "sourceRevision": "95b036fe28ce6d77c97b98e5fbc337904ae49560", - "artifactSha256": "0379040910f7af277c6e1f6411efb549292db0b071422a83954d93631253bf89", + "artifactSha256": "30ca7dd307a131f9df66288d530c3fbacf155f375f83a2d733c5c00a85a712e0", "triangles": 2, "points": 14, "minimumZ": 2, diff --git a/config/chrome-native-history-verification.json b/config/chrome-native-history-verification.json index d1f1f6c..28b1f8e 100644 --- a/config/chrome-native-history-verification.json +++ b/config/chrome-native-history-verification.json @@ -23,7 +23,23 @@ "operations": [ "fuse", "cut", - "common" + "common", + "rotate", + "pad", + "pocket", + "loft", + "pipe", + "revolution", + "groove", + "fillet", + "chamfer", + "hole", + "draft", + "thickness", + "linear-pattern", + "polar-pattern", + "mirrored", + "multi-transform" ], "transport": "step-text" }, diff --git a/config/occt-browser-verification.json b/config/occt-browser-verification.json index 710e6d8..d7249ea 100644 --- a/config/occt-browser-verification.json +++ b/config/occt-browser-verification.json @@ -1,6 +1,5 @@ { "schemaVersion": 1, - "generatedAt": "2026-08-04T02:38:11.015Z", "headers": { "coop": "same-origin", "coep": "require-corp" @@ -41,13 +40,13 @@ "browser": { "before": { "api": "measureUserAgentSpecificMemory", - "bytes": 138633658 + "bytes": 139046889 }, "after": { "api": "measureUserAgentSpecificMemory", - "bytes": 139103318 + "bytes": 139514797 }, - "retainedBytes": 469660 + "retainedBytes": 467908 }, "gpu": { "scope": "native-boolean-worker", @@ -66,9 +65,7 @@ "crashRecovery": "recovered" }, "exitCode": null, - "signal": null, - "stdout": "", - "stderr": "sm/8d599eaa6cf1e47b_1\": No such file or directory (2)\n[3723837:3723856:0803/223810.958720:VERBOSE1:base/files/file_util_posix.cc:309] Cannot stat \"/tmp/bitbybit-occt-chrome-3723825/Default/Code Cache/wasm/8d599eaa6cf1e47b_s\": No such file or directory (2)\n[3723881:3723899:0803/223810.959681:VERBOSE1:net/base/network_delegate.cc:38] NetworkDelegate::NotifyBeforeURLRequest: http://127.0.0.1:36085/native/occt-history/bitbybit-occt-history.js\n[3723881:3723898:0803/223810.959843:VERBOSE1:base/files/file_util_posix.cc:309] Cannot stat \"/tmp/bitbybit-occt-chrome-3723825/Default/Cache/Cache_Data/5e52789ec7e0792d_1\": No such file or directory (2)\n[3723881:3723898:0803/223810.959860:VERBOSE1:base/files/file_util_posix.cc:309] Cannot stat \"/tmp/bitbybit-occt-chrome-3723825/Default/Cache/Cache_Data/5e52789ec7e0792d_s\": No such file or directory (2)\n[3723837:3723856:0803/223810.963095:VERBOSE1:base/files/file_util_posix.cc:309] Cannot stat \"/tmp/bitbybit-occt-chrome-3723825/Default/Code Cache/js/ddd955dd468990b6_1\": No such file or directory (2)\n[3723837:3723856:0803/223810.963114:VERBOSE1:base/files/file_util_posix.cc:309] Cannot stat \"/tmp/bitbybit-occt-chrome-3723825/Default/Code Cache/js/ddd955dd468990b6_s\": No such file or directory (2)\n[3723881:3723899:0803/223810.969656:VERBOSE1:net/base/network_delegate.cc:38] NetworkDelegate::NotifyBeforeURLRequest: http://127.0.0.1:36085/native/occt-history/bitbybit-occt-history.wasm\n[3723881:3723898:0803/223810.970929:VERBOSE1:base/files/file_util_posix.cc:309] Cannot stat \"/tmp/bitbybit-occt-chrome-3723825/Default/Cache/Cache_Data/3901a7ebf89b4154_1\": No such file or directory (2)\n[3723881:3723898:0803/223810.970952:VERBOSE1:base/files/file_util_posix.cc:309] Cannot stat \"/tmp/bitbybit-occt-chrome-3723825/Default/Cache/Cache_Data/3901a7ebf89b4154_s\": No such file or directory (2)\n[3723881:3723899:0803/223811.011318:VERBOSE1:net/base/network_delegate.cc:38] NetworkDelegate::NotifyBeforeURLRequest: http://127.0.0.1:36085/__occt-report\n" + "signal": null } ], "status": "pass" diff --git a/scripts/run-browser-occt-harness.mjs b/scripts/run-browser-occt-harness.mjs index 1ceaa3d..74b0705 100644 --- a/scripts/run-browser-occt-harness.mjs +++ b/scripts/run-browser-occt-harness.mjs @@ -93,7 +93,14 @@ try { await removeChromeProfile(chromeProfile) } await new Promise((resolveServer) => server.close(resolveServer)) -const verification = { schemaVersion: 1, generatedAt: new Date().toISOString(), headers: { coop: 'same-origin', coep: 'require-corp' }, browsers: results, status: results.every((result) => result.status === 'pass') ? 'pass' : 'partial' } +// Keep committed evidence stable: Chrome's temporary profile paths, timestamps +// and verbose stderr are diagnostics, not compatibility claims. +const verification = { + schemaVersion: 1, + headers: { coop: 'same-origin', coep: 'require-corp' }, + browsers: results.map(({ stdout, stderr, ...result }) => result), + status: results.every((result) => result.status === 'pass') ? 'pass' : 'partial', +} await writeFile(resolve(root, 'config/occt-browser-verification.json'), `${JSON.stringify(verification, null, 2)}\n`) console.log(JSON.stringify(verification, null, 2)) if (results.some((result) => result.status !== 'pass')) process.exit(1) diff --git a/src/facade/camNativeSimulation.ts b/src/facade/camNativeSimulation.ts index c6716f0..66f03f9 100644 --- a/src/facade/camNativeSimulation.ts +++ b/src/facade/camNativeSimulation.ts @@ -5,8 +5,8 @@ import { CAMOTICS_WASM_ARTIFACT_SHA256 } from './camoticsWasm' export const OPEN_CAM_LIB_SOURCE_REVISION = '95b036fe28ce6d77c97b98e5fbc337904ae49560' export const OPEN_CAM_LIB_ARTIFACT_URL = '/vendor/opencamlib/ocl.js' -export const OPEN_CAM_LIB_ARTIFACT_SHA256 = '0379040910f7af277c6e1f6411efb549292db0b071422a83954d93631253bf89' -export const OPEN_CAM_LIB_ARTIFACT_SRI = 'sha256-A3kECRD3ryd8bh9kEe+1SSktsLBxQiqDlU2TYxJTv4k=' +export const OPEN_CAM_LIB_ARTIFACT_SHA256 = '30ca7dd307a131f9df66288d530c3fbacf155f375f83a2d733c5c00a85a712e0' +export const OPEN_CAM_LIB_ARTIFACT_SRI = 'sha256-MMp90wehMfnfZiiNUww/us8VXzdfg6LXM8XACoWnEuA=' export const CAMOTICS_SOURCE_REVISION = 'e84665f2fa9d1151f03282ac7e01320bc65e015b' export const CAMOTICS_CBANG_REVISION = '9b6672a0e2b800a909d799ffa3ab46774cf171b8' export const CAMOTICS_NATIVE_ARTIFACT_EVIDENCE = 'config/camotics-native-artifact.json'