commit15
This commit is contained in:
@@ -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;
|
||||
Reference in New Issue
Block a user