You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 7f76651
Browse filesBrowse the repository at this point in the historyBrowse files
test(native): publish the hanging status PID atomically and scale authored budgets
Under host load, "cancel during the runtime status check refuses before the
startup intent" failed settlement after its assertions passed. The stand-in
status request appended its PID with appendFile, and the case cancelled as
soon as the request was logged. The product's SIGKILL could land after the
file was created but before the PID was written. Settlement reads an empty
PID file as a write still in progress, so it waited out its budget.
- The stand-in now stages its PID and renames it into place, so the record
is either absent or complete.
- The case waits for the published PID (awaitPidFile) before it cancels,
instead of the call log.
- The file's settlement, startup and stop harness budgets now derive from
testBudgetMs. The 50 ms deadline cases and their wall bound stay literal.
Refs HACK-1367
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
if(${options.runtimeStatusHangs===true}&&args[2]==='runtime'&&args[3]==='status'){await appendFile(${JSON.stringify(statusPid)},process.pid+'\\n');await new Promise((resolve)=>setTimeout(resolve,${2*CASE_TIMEOUT_MS}));process.exit(0)}
491
+
if(${options.runtimeStatusHangs===true}&&args[2]==='runtime'&&args[3]==='status'){const staged=${JSON.stringify(statusPid)}+'.'+process.pid;await writeFile(staged,process.pid+'\\n');await rename(staged,${JSON.stringify(statusPid)});await new Promise((resolve)=>setTimeout(resolve,${2*CASE_TIMEOUT_MS}));process.exit(0)}
0 commit comments