mirror of
https://github.com/shinyobjectz/raea.git
synced 2026-12-06 08:46:06 -10:00
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).
This commit is contained in:
1 parent
0e376d66ed
commit
5ab59a30be
1 file changed
+5
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user