mirror of
https://github.com/morluto/rea.git
synced 2026-11-21 06:04:03 +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
@@ -583,3 +583,40 @@ it("retries only unresolved prerequisite and native owners across mixed cleanup
|
||||
await client.close();
|
||||
}
|
||||
});
|
||||
|
||||
it("settles deferred client close failure when the underlying owned resource lease releases", async () => {
|
||||
let released = false;
|
||||
const underlyingOwner = {
|
||||
get cleanupResources() {
|
||||
return released ? [] : ["owned-descriptor"];
|
||||
},
|
||||
};
|
||||
const underlyingClaim = {
|
||||
get cleanupReleased() {
|
||||
return released;
|
||||
},
|
||||
};
|
||||
const client = new DeferredAnalysisClient(
|
||||
async () =>
|
||||
child(async () => {
|
||||
if (released) return ok(null);
|
||||
return err(
|
||||
new ProviderCleanupError(identity.id, ["owned-descriptor"], {
|
||||
reason: "descriptor close denied",
|
||||
})
|
||||
.bindCleanupResourceOwner(underlyingOwner)
|
||||
.bindCleanupReleaseClaim(underlyingClaim),
|
||||
);
|
||||
}),
|
||||
identity.id,
|
||||
);
|
||||
const executed = await client.execute("analyze_function", {});
|
||||
expect(executed.ok).toBe(true);
|
||||
const closed = await client.close();
|
||||
if (closed.ok) throw new Error("Expected retained close failure");
|
||||
expect(closed.error.cleanupIncomplete).toBe(true);
|
||||
expect(closed.error.cleanupResources).toEqual(["owned-descriptor"]);
|
||||
released = true;
|
||||
expect(closed.error.cleanupIncomplete).toBe(false);
|
||||
expect(closed.error.cleanupResources).toEqual([]);
|
||||
});
|
||||
Reference in new issue
Block a user