From 5ab59a30becef1766edfb929e138aaf83ccc3b60 Mon Sep 17 00:00:00 2001 From: shinyobjectz Date: Sat, 5 Dec 2026 02:32:00 -0800 Subject: [PATCH] Farm: frame 0's run commits the work folder, so a render's parts don't each rewrite styles.gen.ts at once Uncommitted, every part's container found styles.gen.ts older than the code and rewrote it on the shared volume, truncating it under the others: 14 of one cut's parts refused with "couldn't bundle edit.tsx: Unterminated string" and the cut was lost. Deployed (raea-farm, RAEA_VERSION=0.1.17-rc4). --- sdk/cloud/deploy/modal/farm.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sdk/cloud/deploy/modal/farm.py b/sdk/cloud/deploy/modal/farm.py index 8393c593..fd2efa45 100644 --- a/sdk/cloud/deploy/modal/farm.py +++ b/sdk/cloud/deploy/modal/farm.py @@ -360,6 +360,11 @@ def raea_frames(id, args, frames=None, first=0, probe=False, video=False, env=No if probe: code, out, s = run(["raea", *args, "--frame", "0", "-o", "/tmp/probe.png", "--manifest", "/tmp/probe.json"], cwd=work, env=env) m = json.load(open("/tmp/probe.json")) if os.path.exists("/tmp/probe.json") else {} + # what frame 0 brought up to date in the work folder (styles.gen.ts, written by raea when it's older than the + # code), for the parts after it: uncommitted, every part's container rewrote it on the volume at once, truncating + # it under the others, and 14 of a Dutch cut's parts refused with "couldn't bundle edit.tsx: Unterminated + # string" (12-05, run 19: the cut was lost) + vol.commit() return {"code": code, "out": out[-3000:], "s": s, "length": m.get("length"), "fps": m.get("fps"), "w": m.get("width"), "h": m.get("height"), "kind": kind(), "manifest": m, **life()} if frames is None: code, out, s = run(["raea", *args], cwd=work)