feat: enforce Guanghu-native HoloLake runtime laws
This commit is contained in:
parent
ccee303355
commit
67e6fcdd38
57 changed files with 1765 additions and 1504 deletions
|
|
@ -60,4 +60,7 @@ FRONTEND_COVERAGE_SHARDS=1 bash .chunk/run-sidecar-gates-local.sh false
|
|||
FRONTEND_COVERAGE_SHARDS=2 bash .chunk/run-sidecar-gates-local.sh false
|
||||
```
|
||||
|
||||
The default sidecar fast path uses two frontend coverage shards. Each shard disables per-shard coverage thresholds, then the merged V8/Istanbul coverage map is checked once against the same 70% line/function/branch/statement thresholds.
|
||||
The default sidecar fast path can use two frontend coverage shards as an
|
||||
observation. The merged V8/Istanbul map helps locate unexercised behavior but
|
||||
does not create an acceptance threshold. Only the declared auditable core scope
|
||||
inside GLS-0844 can satisfy the exact native coverage gate.
|
||||
|
|
|
|||
|
|
@ -25,8 +25,8 @@
|
|||
"limit": 2
|
||||
},
|
||||
{
|
||||
"name": "frontend-coverage",
|
||||
"run": "pnpm test:coverage --silent",
|
||||
"name": "frontend-tests",
|
||||
"run": "pnpm test --silent",
|
||||
"role": "gate",
|
||||
"fileExt": ".ts,.tsx",
|
||||
"timeout": 600,
|
||||
|
|
@ -41,8 +41,8 @@
|
|||
"limit": 2
|
||||
},
|
||||
{
|
||||
"name": "rust-coverage",
|
||||
"run": "cargo llvm-cov --manifest-path src-tauri/Cargo.toml --no-clean --ignore-filename-regex \"lib\\.rs|main\\.rs|menu\\.rs\" --fail-under-lines 85 -- --test-threads=1",
|
||||
"name": "rust-tests",
|
||||
"run": "cargo test --manifest-path src-tauri/Cargo.toml -- --test-threads=1",
|
||||
"role": "gate",
|
||||
"fileExt": ".rs",
|
||||
"timeout": 900,
|
||||
|
|
|
|||
|
|
@ -20,11 +20,7 @@ log_rust 'rustfmt started'
|
|||
cargo fmt --manifest-path=src-tauri/Cargo.toml -- --check
|
||||
log_rust 'rustfmt passed'
|
||||
|
||||
log_rust 'coverage started'
|
||||
cargo llvm-cov \
|
||||
--manifest-path src-tauri/Cargo.toml \
|
||||
--no-clean \
|
||||
--ignore-filename-regex "lib\\.rs|main\\.rs|menu\\.rs" \
|
||||
--fail-under-lines 85 \
|
||||
-- --test-threads=1
|
||||
log_rust 'tests started'
|
||||
cargo test --manifest-path src-tauri/Cargo.toml -- --test-threads=1
|
||||
log_rust 'tests passed'
|
||||
log_rust "completed in $(($(date +%s) - start_time))s"
|
||||
|
|
|
|||
Loading…
Reference in a new issue