Complete V1 performance and OOM release gates
This commit is contained in:
@@ -274,7 +274,13 @@ export async function writeProjectBlend(
|
||||
stageName,
|
||||
createdAt: new Date().toISOString(),
|
||||
};
|
||||
await writeFile(project, stageName, data);
|
||||
try {
|
||||
await writeFile(project, stageName, data);
|
||||
}
|
||||
catch (error) {
|
||||
await removeFile(project, stageName);
|
||||
throw error;
|
||||
}
|
||||
if (!await verifyFile(project, stageName, journal.bytes, journal.sha256)) {
|
||||
throw new Error("PROJECT_SAVE_STAGE_VERIFY_FAILED: staged blend does not match its digest");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user