This commit is contained in:
2026-11-02 20:29:34 +02:00
parent 340f3bb5fa
commit fcf31e8d48
181 changed files with 33383 additions and 51 deletions
+15
View File
@@ -0,0 +1,15 @@
// Runs only the new load evaluation in the existing isolated regression copy.
import fs from 'node:fs';
import path from 'node:path';
import {spawnSync} from 'node:child_process';
const runtime='C:/laragon/data/sgf-tempo/run';
const state=JSON.parse(fs.readFileSync(path.join(runtime,'modular-regression-current.json'),'utf8'));
if(!/^[a-f0-9]{12}$/.test(state.id)||path.resolve(state.root)!==path.resolve(runtime,'modular-regression-'+state.id)
||path.resolve(state.app)!==path.resolve(state.root,'app')||state.port!==55439)throw Error('Unexpected isolated host');
const php='C:/laragon/tools/sgf-tempo/php-8.4.27/php.exe';
const output=path.join(state.root,'association-load-'+Date.now()+'.json');
const result=spawnSync(php,['vendor/phpunit/phpunit/phpunit','scripts/benchmarks/ModuleAssociationLoadTest.php','--log-junit',output.replace('.json','.xml')],{
cwd:state.app,stdio:'inherit',windowsHide:true,env:{...process.env,SGF_ISOLATED_REGRESSION_RUN:state.id,SGF_ASSOCIATION_LOAD_OUTPUT:output},
});
console.log(JSON.stringify({exit_code:result.status,report:output,source_guard_unchanged:true}));
process.exitCode=result.status??1;