Compare commits

..
Author SHA1 Message Date
shinyobjectz 1d9ffd825d raea-words back to 2 containers each: the workspace has 10 GPUs in all
12 each took every GPU raea's Modal workspace has (Starter, 10 at once): the render farm's jobs queued, and StreetTalk
round 4's renders and transcriptions both timed out. Deployed.
2026-12-03 22:54:45 -08:00
shinyobjectz a57e6d0e50 raea-words: 12 containers each for hearing and timing words, not 2
12-03: three StreetTalk runs' prep sent 8 takes at once each, and 24 queued on two GPUs took 35 s a take against 1.3 s
of hearing it (Body Shop: 50 takes in 3.6 minutes, its agent waiting on transcripts.md). Both still scale to zero
after a minute. Deployed (modal deploy deploy/modal/words.py, profile raea).
2026-12-03 22:25:56 -08:00
shane bec1ab1947 Merge pull request #325 from shinyobjectz/idle-real-path
A box's idle stop sees work by its folder's real path; box.sh holds the box while unpacking
2026-12-03 22:19:39 -08:00
shinyobjectz c261ecdfbc box.sh image on a clean tree: its label's dirty test ended the script under set -e, saying nothing 2026-12-03 21:18:41 -08:00
shinyobjectz 712e5ba3a0 A box's idle stop sees work in its folder by the folder's real path too; box.sh holds the box while it unpacks
On a Fly box the work folder is /home/sprite/work, a link to /home/raea/work, and /proc names a process's folder
without the link: a 64 GB unpack in it was taken for idle and the box stopped under it (12-03, raea-3).
2026-12-03 20:48:01 -08:00
shaneandshinyobjectz 51e2d87c76 HugText taught with captions (the skills gate rc3 failed on), a request counts as the box at work until it ends, and box.sh move resumes an arrived home and says what it unpacks (#324)
12-03: a box stopped as idle the moment a 19-minute upload ended (only its start counted), cutting off the unpack that
followed; an unpack of 26 GB said nothing for 3 minutes and was stopped as stalled.

Co-authored-by: shinyobjectz <[email protected]>
2026-12-03 20:38:05 -08:00
6 changed files with 35 additions and 8 deletions

No files matched your search

+15 -3
View File
@@ -78,7 +78,8 @@ image)
dirty=$([ -n "$(git -C "$HERE" status --porcelain -- .)" ] && echo true || echo false)
fi
has_app "$IMAGE_APP" || fly apps create "$IMAGE_APP" --org "$ORG" > /dev/null
label=v$version-${commit:0:10}$([ "$dirty" = true ] && echo "-dirty-$(date +%s)")
# (|| true: on a clean tree the test fails, and set -e ended the script there with nothing said)
label=v$version-${commit:0:10}$([ "$dirty" = true ] && echo "-dirty-$(date +%s)" || true)
(cd "$src" && fly deploy --build-only --push -a "$IMAGE_APP" -c deploy/fly/image.toml --dockerfile deploy/fly/Dockerfile \
--image-label "$label" --build-arg RAEA_VERSION="$version" --build-arg COMMIT="$commit" --build-arg DIRTY="$dirty" .) >&2
echo "registry.fly.io/$IMAGE_APP:$label" | tee "$CONF/fly-image"
@@ -132,7 +133,11 @@ move)
# Sprite itself straight to the new box's file API (it streams to disk), never through this Mac (12-03: through
# sprite exec it came at about 4 MB/s), then unpacked there
a=$(app "$NAME")
# a try before this one may have left part of an upload
# a home that arrived whole in a try before this one is unpacked, not sent again (a .part is only part of one)
healthy "$NAME" > /dev/null || true
if fly ssh console -a "$a" -q -C "test -s /home/raea/work/.move/home.tar.zst" > /dev/null 2>&1; then
echo "fly box: $NAME's home arrived in a try before this one: unpacking it"
else
fly ssh console -a "$a" -q -C "rm -rf /home/raea/work/.move" > /dev/null 2>&1 || true
echo "fly box: sending $NAME's home from its Sprite to $(url "$NAME")"
# --no-stdin: a dropped link to the Sprite reconnects to the same session (12-03: all four copies lost theirs at
@@ -160,7 +165,14 @@ except Exception: print(-1)')
wait "$sending"
grep -v 'bind: warning' "$CONF/boxes/$NAME.move.log"
grep -q SENT-WHOLE "$CONF/boxes/$NAME.move.log" || { echo "fly box: $NAME's home didn't arrive whole (above); nothing unpacked, run move again"; exit 1; }
fly ssh console -a "$a" -q -C "sh -c 'cd /home/raea && zstd -dqc work/.move/home.tar.zst | tar -xf - && rm -rf work/.move && chown -R raea:raea /home/raea && du -sh /home/raea'"
fi
# unpacked there, saying so every 500 MB (a silent unpack of 26 GB looked stalled: 12-03, raea-4 and raea-6)
# run from inside the work folder, which the box's idle stop sees as work going on (server/idle.ts); the box woken
# first, as fly ssh doesn't start a stopped Machine
healthy "$NAME" > /dev/null || true
# and the box held while it unpacks (~/.raea-hold, which its idle stop reads): its image may be older than idle.ts's
# real-path match
fly ssh console -a "$a" -q -C "sh -c '(while kill -0 \$\$ 2> /dev/null; do touch /home/raea/.raea-hold; sleep 60; done) & cd /home/raea/work/.move && zstd -dqc home.tar.zst | tar -C /home/raea -xf - --checkpoint=50000 --checkpoint-action=echo=\"fly box: $NAME: %{}T unpacked\" && cd /home/raea && rm -rf work/.move && chown -R raea:raea /home/raea && du -sh /home/raea'"
# its own settings on its disk too, as a Sprite kept them
fly ssh console -a "$a" -q -C "sh -c 'umask 077; cat > /home/raea/.raea-cloud.env && chown raea:raea /home/raea/.raea-cloud.env'" < "$f"
# RAEA_BOX_REGISTER=0: copied, but raea cloud still sends work to the Sprite until deploy/fly/box.sh register NAME
+2
View File
@@ -38,6 +38,8 @@ align_image = (
ALIGNS = {"en": "English", "zh": "Chinese", "yue": "Cantonese", "fr": "French", "de": "German", "it": "Italian", "ja": "Japanese", "ko": "Korean", "pt": "Portuguese", "ru": "Russian", "es": "Spanish"}
# 2 containers each (12-03): raea's Modal workspace runs 10 GPUs at once in all, and 12 each here took every one of them:
# the render farm's jobs queued and StreetTalk's renders and these both timed out (round 4). The farm keeps the rest
@app.cls(gpu="L4", image=align_image, volumes={"/models": models}, timeout=900, max_containers=2, scaledown_window=60)
class Align:
@modal.enter()
+9 -3
View File
@@ -9,7 +9,7 @@
// `holdMs`: raea cloud touches it while a project is unfinished (its awake alarm), as it held a Sprite's task before.
//
// Off unless RAEA_CLOUD_IDLE_STOP_MIN is set (the Fly image sets it), so a box elsewhere never stops itself.
import { readdirSync, readFileSync, readlinkSync, statSync } from "node:fs"
import { readdirSync, readFileSync, readlinkSync, realpathSync, statSync } from "node:fs"
import type { Server } from "node:http"
import path from "node:path"
@@ -35,13 +35,19 @@ export function workingIn(work: string, self = process.pid): number[] {
} catch {
return out
}
const root = path.resolve(work) + "/"
// the folder by the name it's given and by its real one: /proc says where a process is with no symlink in the way, and
// a Fly box's work folder is /home/sprite/work, a link to /home/raea/work (12-03: a 64 GB unpack in it was taken for
// idle and the box stopped under it)
const roots = [path.resolve(work) + "/"]
try {
roots.push(realpathSync(work) + "/")
} catch {}
for (const d of pids) {
const pid = Number(d)
if (mine.has(pid)) continue
try {
const cwd = readlinkSync(`/proc/${d}/cwd`) + "/"
if (cwd.startsWith(root)) out.push(pid)
if (roots.some((r) => cwd.startsWith(r))) out.push(pid)
} catch {}
}
return out
+3 -1
View File
@@ -240,7 +240,9 @@ async function shell(req: IncomingMessage, res: ServerResponse) {
const server = createServer(async (req, res) => {
const url = new URL(req.url ?? "/", "http://raea-cloud")
// a request (other than a platform's health check) keeps an idle box up (idle.ts)
if (url.pathname !== "/healthz") idle?.touch()
// a request is the box at work from when it starts until it ends: a 19-minute upload counted only its start, and the
// box stopped as idle the moment it ended (12-03)
if (url.pathname !== "/healthz") (idle?.touch(), res.on("close", () => idle?.touch()))
if (url.pathname === "/healthz") return res.writeHead(200, { "content-type": "text/plain" }).end("ok")
// the critic an agent's shell asks (critic.ts): its own session's token, not the box's
if (url.pathname === "/host/judge" && req.method === "POST") {
+5
View File
@@ -16,6 +16,11 @@
- Size captions at 60 px or more at 1080 wide (scale with the width), with at least 3:1 contrast against the pixels
behind them. Keep them in one place unless a move means something, and keep them off cards, logos, burned-in text
and the face (`motion/placement`).
- To put a caption or hook in a box that hugs each line, as TikTok draws its text, use `HugText` from
`raea/hug-text`: `<HugText lines={[...]} fill="#E8423F" color="#fff" className="..." />`. Each line gets a fill as
wide as its words, with one rounded shape around them all. You give the lines, so you decide where each breaks
(a caption's come from its word groups). Its emoji draw in colour on any machine, as `EmojiText` from the same
module also does. The box is allowed, never required.
- Mark each caption: `data-raea-role="caption"` on the element holding its words. A layered export (`raea export
capcut`, `raea export xml`; `motion/delivery`) then puts the captions on a track of their own, styled as they're
drawn, and writes their words as an .srt beside them; unmarked, they're part of the graphics.
+1 -1
Submodule skills updated: ff03a8794a...6c71231e97.