mirror of
https://github.com/morluto/rea.git
synced 2026-10-31 11:56:12 +00:00
fix(process): name the Swift compile deadline (#6071)
Name REA_SWIFTC_COMPILE_TIMEOUT_MS, its effective milliseconds, the 1..2147483647 range, and the omitted 120000 ms default when a Darwin ownership-helper compile times out. A change applies after REA restarts, on the next ownership-helper compile. Producer SIGXCPU and SIGXFSZ recovery says REA retains the tighter inherited limit. Agent-visible fixed caps in this theme say this release has no runtime override. Numbers are unchanged. Refs #5910 Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: morluto <morluto@users.noreply.github.com>
This commit is contained in:
26 files changed
+321
-95
No files matched your search
@@ -1,6 +1,10 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
|
||||
import { resolveSwiftcCompileTimeoutMs } from "./DarwinProcessRunTokenReader.js";
|
||||
import {
|
||||
resolveSwiftcCompileTimeoutMs,
|
||||
swiftcCompileTimeoutRecovery,
|
||||
} from "./DarwinProcessRunTokenReader.js";
|
||||
import { MAX_PROVIDER_STARTUP_TIMEOUT_MS } from "../config/providerStartupTimeout.js";
|
||||
|
||||
describe("resolveSwiftcCompileTimeoutMs", () => {
|
||||
it("keeps the historical default when unset", () => {
|
||||
@@ -31,4 +35,14 @@ describe("resolveSwiftcCompileTimeoutMs", () => {
|
||||
}),
|
||||
).toBe(120_000);
|
||||
});
|
||||
|
||||
it("names the launch-environment deadline, range, and restart on a timeout", () => {
|
||||
const recovery = swiftcCompileTimeoutRecovery(300_000);
|
||||
expect(recovery).toContain("REA_SWIFTC_COMPILE_TIMEOUT_MS");
|
||||
expect(recovery).toContain("300000 ms");
|
||||
expect(recovery).toContain(`1..${String(MAX_PROVIDER_STARTUP_TIMEOUT_MS)}`);
|
||||
expect(recovery).toContain("120000 ms");
|
||||
expect(recovery).toContain("restart REA");
|
||||
expect(recovery).toContain("next ownership-helper compile");
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user