mirror of
https://github.com/shinyobjectz/raea.git
synced 2026-12-06 05:33:38 -10:00
raea cloud checks every render again: offload calls raea goal check, and a check that can't run fails the render
offload.ts ran the render's check as `raea make check`, which the CLI refuses (exit 2: make is the asset tools since the goal/make split), and acted only on exit 1, so no cloud render had been checked: the agent saw a refusal line and went on. It now calls `raea goal check OUT --at render`; exit 1 fails the render as before, and any other exit fails it saying the check couldn't run. tools/legacy-names.sh now catches the old verb spawned as an argument list too.
This commit is contained in:
1 parent
a380418ed5
commit
ee21e9ea77
2 files changed
+9
-1
No files matched your search
@@ -211,10 +211,14 @@ async function main() {
|
||||
}
|
||||
}
|
||||
say(`raea goal check ${path.basename(made)} --at render`)
|
||||
const r = spawnSync(REAL, ["make", "check", made, "--at", "render"], { stdio: "inherit", env: { ...process.env, RAEA_REAL: REAL } })
|
||||
const r = spawnSync(REAL, CHECK_ARGS(made), { stdio: "inherit", env: { ...process.env, RAEA_REAL: REAL } })
|
||||
if (r.status === 1) {
|
||||
say(`${path.basename(made)} fails its checks: fix every ERROR above (each says what to change), then render again before any review`)
|
||||
process.exitCode = 1
|
||||
} else if (r.status !== 0) {
|
||||
// a refused or crashed check is loud: called by an old name, it was refused with exit 2 and every cloud render went unchecked
|
||||
say(`raea goal check couldn't check ${path.basename(made)} (exit ${r.status ?? r.signal}): the render isn't done until it can`)
|
||||
process.exitCode = r.status || 1
|
||||
}
|
||||
}
|
||||
} finally {
|
||||
@@ -222,6 +226,9 @@ async function main() {
|
||||
}
|
||||
}
|
||||
|
||||
/** raea's one check on a finished render, as the box runs it */
|
||||
export const CHECK_ARGS = (made: string) => ["goal", "check", made, "--at", "render"]
|
||||
|
||||
if (process.argv[1] && import.meta.url === pathToFileURL(process.argv[1]).href)
|
||||
main().catch((e) => {
|
||||
say((e as Error).message)
|
||||
|
||||
@@ -25,6 +25,7 @@ NAMES=(
|
||||
'raea-runtime-(cut|goal)-plan => sdk/goal (raea/goal)'
|
||||
'naming-check\.ts => raea/goal'"'"'s naming pack'
|
||||
'raea make (check|seen|look|judge|gates)\b => raea goal check|seen|judge|gates (MK45: goal is the loop, make the asset tools)'
|
||||
'"make", *"(check|seen|look|judge|gates)" => ["goal", "check", ...]: a spawned raea make check is refused with exit 2'
|
||||
'raea make plan\b => raea make blockout (a project'"'"'s tasks: raea goal tasks)'
|
||||
'raea next\b => raea goal next'
|
||||
'raea (clothes|motion|solid|wear|splat|physics|bake|sao|tokensynth|sounds|component)( |`|$) => raea make clothes, motion, solid... (MK45: the asset tools are under make)'
|
||||
|
||||
Reference in new issue
Block a user