mirror of
https://github.com/stablyai/orca.git
synced 2026-11-17 11:24:37 +00:00
build(cloud): fail the golden build when a new agent CLI does not start; smoke checks them
This commit is contained in:
@@ -99,6 +99,11 @@ if [ -x "$opencode_pkg/bin/opencode.exe" ]; then
|
||||
"$opencode_pkg/bin/opencode.exe" --version >/dev/null
|
||||
fi
|
||||
|
||||
# The agents' first run on a VM must not be where a broken pin shows up.
|
||||
for bin in gemini copilot; do
|
||||
if [ -e "$ORCA_HOME/tools/bin/$bin" ]; then "$ORCA_HOME/tools/bin/$bin" --version >/dev/null; fi
|
||||
done
|
||||
|
||||
if [ -n "${CURSOR_AGENT_VERSION:-}" ]; then
|
||||
# Cursor's agent CLI is a pinned tarball (its own node + bundle), not an npm package. The image
|
||||
# copy lives under /opt/orca (root-owned) and its release channel is set to "static" at boot
|
||||
|
||||
@@ -168,7 +168,9 @@ async function smoke(api: ReturnType<typeof createVercelSandboxApi>, snapshotId:
|
||||
command: 'bash',
|
||||
args: ['-lc', [
|
||||
`test "$(cat /opt/orca/runtime/orcad/SOURCE_COMMIT)" = "${sha}"`,
|
||||
'for b in orca rg tmux vim git-lfs gh claude codex; do command -v $b >/dev/null || { echo "missing $b"; exit 1; }; done',
|
||||
'for b in orca rg tmux vim git-lfs gh claude codex opencode gemini cursor-agent copilot; do command -v $b >/dev/null || { echo "missing $b"; exit 1; }; done',
|
||||
// Each agent CLI starts (catches a broken pin or a pruned file it needed).
|
||||
'for b in opencode gemini cursor-agent copilot; do timeout 60 $b --version >/dev/null 2>&1 || { echo "$b --version failed"; exit 1; }; done',
|
||||
'orca status 2>&1 | grep -q "runtimeReachable: true"',
|
||||
'df -h / | awk \'NR==2{print "disk", $2}\''
|
||||
].join(' && ')],
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user