From f01ca6ba5fa6182dc634464ebc33a32126ab00f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=B0=E6=9C=94?= <565183519@qq.com> Date: Wed, 12 Aug 2026 08:00:04 +0800 Subject: [PATCH] build(hololake): stabilize native quality config loading --- .../scripts/local-native-candidate.test.mjs | 4 ++++ .../scripts/run-hololake-native-quality-gate.sh | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/product-source/hololake-platform/scripts/local-native-candidate.test.mjs b/product-source/hololake-platform/scripts/local-native-candidate.test.mjs index a744745..cb85389 100644 --- a/product-source/hololake-platform/scripts/local-native-candidate.test.mjs +++ b/product-source/hololake-platform/scripts/local-native-candidate.test.mjs @@ -22,4 +22,8 @@ test('local native candidate has an isolated macOS package identity', async () = ) assert.match(packageJson.scripts.build, /--configLoader runner/) assert.match(packageJson.scripts['test:native-core'], /--configLoader runner/) + assert.match( + await readFile('scripts/run-hololake-native-quality-gate.sh', 'utf8'), + /vite build --configLoader runner[\s\S]*vitest run --configLoader runner[\s\S]*--coverage --configLoader runner/, + ) }) diff --git a/product-source/hololake-platform/scripts/run-hololake-native-quality-gate.sh b/product-source/hololake-platform/scripts/run-hololake-native-quality-gate.sh index 6bc6a3e..4cac32c 100755 --- a/product-source/hololake-platform/scripts/run-hololake-native-quality-gate.sh +++ b/product-source/hololake-platform/scripts/run-hololake-native-quality-gate.sh @@ -119,12 +119,12 @@ run_gate frontend_zero_warning_lint \ run_gate frontend_type_contract \ run_package_tool tsc -b run_gate frontend_build \ - run_package_tool vite build + run_package_tool vite build --configLoader runner run_gate frontend_unit_and_integration_tests \ - run_package_tool vitest run + run_package_tool vitest run --configLoader runner run_gate auditable_native_core_lines_and_functions_100 \ run_package_tool vitest run \ - --config vitest.guanghu-native.config.ts --coverage + --config vitest.guanghu-native.config.ts --coverage --configLoader runner run_gate rust_format \ cargo fmt --all --manifest-path "${repository_root}/src-tauri/Cargo.toml" -- --check run_gate rust_unit_and_integration_tests \