fix(gstack2): harden integrated runtime verification

This commit is contained in:
Sinabina
2026-07-21 12:29:01 -07:00
parent 09492d34b4
commit 37144e8b05
24 changed files with 2032 additions and 3313 deletions
+5 -2
View File
@@ -261,9 +261,12 @@ export async function runDefaultFreeTests(): Promise<number> {
return slopSignal === null ? 0 : terminationSignalExitCode(slopSignal);
}
export async function runStrictTestShard(files: string[]): Promise<number> {
export async function runStrictTestShard(
files: string[],
timeoutMs?: number,
): Promise<number> {
if (files.length === 0) throw new Error('Cannot run an empty free-test shard.');
const child = spawn(process.execPath, buildShardArgs(exactTestFileSelectors(files)), {
const child = spawn(process.execPath, buildShardArgs(exactTestFileSelectors(files), timeoutMs), {
cwd: ROOT,
env: process.env,
stdio: ['inherit', 'pipe', 'pipe'],