mirror of
https://github.com/morluto/rea.git
synced 2026-11-18 04:34:13 +00:00
perf(ci): split lazy runtime chunks, cache Windows typecheck, and reuse test analysis workers (#11827)
* perf(runtime): eliminate static imports that defeat lazy provider and workflow chunk splitting * perf(ci): cache Windows typecheck in Turbo, bound official compiler checkers, and reuse portable build cache in reverse-tools * perf(package): batch staging file copies and extract packed metadata in one pass * perf(tests): reuse parked JavaScript analysis workers and eliminate redundant CLI and Node spawns * fix(tests): retain failed cleanup owners across non-isolated files and settle concurrent verifier copies * fix(providers): propagate underlying cleanup release claims through DeferredAnalysisClient
This commit is contained in:
1 parent
43b9fa87fb
commit
5a2a08a048
21 files changed
+747
-180
No files matched your search
@@ -124,12 +124,16 @@ const signalChild = (
|
||||
}
|
||||
};
|
||||
|
||||
const stopChild = async (
|
||||
/**
|
||||
* Stop an owned test child process via EOF, SIGTERM, and SIGKILL, throwing
|
||||
* when the process still has not exited so the caller retains ownership.
|
||||
*/
|
||||
export const stopOwnedChildProcess = async (
|
||||
child: ChildProcessWithoutNullStreams,
|
||||
graceMs: number,
|
||||
label = "shared CLI process",
|
||||
): Promise<void> => {
|
||||
if (child.exitCode !== null || child.signalCode !== null) return;
|
||||
// EOF lets the worker await closeCliResources before exiting.
|
||||
if (!child.stdin.writableEnded) child.stdin.end();
|
||||
if (await waitForExit(child, graceMs)) return;
|
||||
signalChild(child, "SIGTERM");
|
||||
@@ -137,11 +141,14 @@ const stopChild = async (
|
||||
if (child.exitCode !== null || child.signalCode !== null) return;
|
||||
signalChild(child, "SIGKILL");
|
||||
if (await waitForExit(child, graceMs)) return;
|
||||
throw new Error(
|
||||
`shared CLI process ${String(child.pid)} did not exit after SIGKILL`,
|
||||
);
|
||||
throw new Error(`${label} ${String(child.pid)} did not exit after SIGKILL`);
|
||||
};
|
||||
|
||||
const stopChild = (
|
||||
child: ChildProcessWithoutNullStreams,
|
||||
graceMs: number,
|
||||
): Promise<void> => stopOwnedChildProcess(child, graceMs, "shared CLI process");
|
||||
|
||||
const commandResult = (message: SessionResponse): CliCommandResult => ({
|
||||
exitCode: message.exitCode ?? null,
|
||||
signal: null,
|
||||
|
||||
Reference in new issue
Block a user