惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

G
Google Developers Blog
宝玉的分享
宝玉的分享
月光博客
月光博客
B
Blog
云风的 BLOG
云风的 BLOG
Google DeepMind News
Google DeepMind News
Engineering at Meta
Engineering at Meta
aimingoo的专栏
aimingoo的专栏
N
Netflix TechBlog - Medium
博客园_首页
GbyAI
GbyAI
人人都是产品经理
人人都是产品经理
A
About on SuperTechFans
Y
Y Combinator Blog
L
LangChain Blog
有赞技术团队
有赞技术团队
D
Docker
爱范儿
爱范儿
博客园 - 司徒正美
H
Hackread – Cybersecurity News, Data Breaches, AI and More
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
酷 壳 – CoolShell
酷 壳 – CoolShell
Microsoft Security Blog
Microsoft Security Blog
D
DataBreaches.Net

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
perf: speed up Mantis Slack desktop smoke · openclaw/open...
steipete · 2026-05-06 · via Recent Commits to openclaw:main

File tree

  • .github/workflows

  • docs/concepts

  • extensions/qa-lab/src/mantis

Original file line numberDiff line numberDiff line change

@@ -50,6 +50,7 @@ env:

5050

PNPM_VERSION: "10.33.0"

5151

OPENCLAW_BUILD_PRIVATE_QA: "1"

5252

OPENCLAW_ENABLE_PRIVATE_QA_CLI: "1"

53+

CRABBOX_REF: main

5354
5455

jobs:

5556

authorize_actor:

@@ -164,7 +165,10 @@ jobs:

164165

set -euo pipefail

165166

install_dir="${RUNNER_TEMP}/crabbox"

166167

mkdir -p "$install_dir" "$HOME/.local/bin"

167-

git clone --depth 1 https://github.com/openclaw/crabbox.git "$install_dir/src"

168+

git init "$install_dir/src"

169+

git -C "$install_dir/src" remote add origin https://github.com/openclaw/crabbox.git

170+

git -C "$install_dir/src" fetch --depth 1 origin "$CRABBOX_REF"

171+

git -C "$install_dir/src" checkout --detach FETCH_HEAD

168172

go build -C "$install_dir/src" -o "$HOME/.local/bin/crabbox" ./cmd/crabbox

169173

echo "$HOME/.local/bin" >> "$GITHUB_PATH"

170174

"$HOME/.local/bin/crabbox" --version

@@ -266,7 +270,8 @@ jobs:

266270
267271

if [[ -f "$root/slack-desktop-smoke.mp4" ]]; then

268272

if ! command -v ffmpeg >/dev/null 2>&1 || ! command -v ffprobe >/dev/null 2>&1; then

269-

sudo apt-get update && sudo apt-get install -y ffmpeg || true

273+

sudo apt-get update -y >/tmp/mantis-slack-ffmpeg-apt.log 2>&1 || true

274+

sudo DEBIAN_FRONTEND=noninteractive apt-get install -y ffmpeg >>/tmp/mantis-slack-ffmpeg-apt.log 2>&1 || true

270275

fi

271276

if ! crabbox media preview \

272277

--input "$root/slack-desktop-smoke.mp4" \

Original file line numberDiff line numberDiff line change

@@ -58,6 +58,7 @@ Docs: https://docs.openclaw.ai

5858

- QA/Codex harness: add targeted live Docker/Testbox diagnostics, auth preflight checks, cache mount fixes, and app-server protocol checkout discovery so maintainer harness failures are easier to reproduce. Thanks @vincentkoc.

5959

- QA/Mantis: add `pnpm openclaw qa mantis slack-desktop-smoke` to run Slack live QA inside a Crabbox VNC desktop, open Slack Web, and capture desktop screenshots beside the Slack QA artifacts.

6060

- QA/Mantis: add visual desktop tasks with Crabbox MP4 recording, screenshot capture, and optional image-understanding assertions, and preserve video artifacts in Mantis before/after reports.

61+

- QA/Mantis: reuse Crabbox desktop/browser capture tooling and pnpm store caches during Slack desktop smoke runs, reducing per-scenario setup work before screenshots and videos are captured.

6162

- QA/Mantis: pass the runtime env through desktop-browser Crabbox and artifact-copy child commands, so embedded Mantis callers can provide Crabbox credentials without mutating the parent process. Thanks @vincentkoc.

6263

- QA/Mantis: return the copied Slack desktop screenshot path even when remote Slack QA fails, so the CLI still prints the failure screenshot artifact. Thanks @vincentkoc.

6364

- QA/Mantis: accept Blacksmith Testbox `tbx_...` lease ids from desktop smoke warmup, so provider overrides do not fail before inspect/run. Thanks @vincentkoc.

Original file line numberDiff line numberDiff line change

@@ -133,10 +133,14 @@ pnpm openclaw qa mantis slack-desktop-smoke \

133133

That command leases a Crabbox desktop/browser machine, runs the Slack live lane

134134

inside the VM, opens Slack Web in the VNC browser, captures the desktop, and

135135

copies `slack-qa/`, `slack-desktop-smoke.png`, and `slack-desktop-smoke.mp4`

136-

when video capture is available back to the Mantis artifact directory. Reuse `--lease-id <cbx_...>` after logging in to Slack Web manually

137-

through VNC. With `--gateway-setup`, Mantis leaves a persistent OpenClaw Slack

138-

gateway running inside the VM on port `38973`; without it, the command runs the

139-

normal bot-to-bot Slack QA lane and exits after artifact capture.

136+

when video capture is available back to the Mantis artifact directory. Crabbox

137+

desktop/browser leases provide the capture tools and browser/native-build helper

138+

packages up front, so the scenario should only install fallbacks on older

139+

leases. Reuse `--lease-id <cbx_...>` after logging in to Slack Web manually

140+

through VNC; reused leases also keep Crabbox's pnpm store cache warm. With

141+

`--gateway-setup`, Mantis leaves a persistent OpenClaw Slack gateway running

142+

inside the VM on port `38973`; without it, the command runs the normal

143+

bot-to-bot Slack QA lane and exits after artifact capture.

140144
141145

For an agent/CV style desktop task, run:

142146
Original file line numberDiff line numberDiff line change

@@ -121,7 +121,9 @@ describe("mantis Slack desktop smoke runtime", () => {

121121

const remoteScript = runArgs?.at(-1);

122122

expect(remoteScript).toContain("${BROWSER:-}");

123123

expect(remoteScript).toContain("${CHROME_BIN:-}");

124-

expect(remoteScript).toContain("pnpm install --frozen-lockfile");

124+

expect(remoteScript).toContain("PNPM_STORE_DIR");

125+

expect(remoteScript).toContain("build-essential python3");

126+

expect(remoteScript).toContain("pnpm install --frozen-lockfile --prefer-offline");

125127

expect(remoteScript).toContain("pnpm build");

126128

expect(remoteScript).toContain("ffmpeg");

127129

expect(remoteScript).toContain('sudo apt-get update -y >>"$out/apt.log" 2>&1 || true');

Original file line numberDiff line numberDiff line change

@@ -495,8 +495,17 @@ qa_status=0

495495

{

496496

set -e

497497

echo "remote pwd: $(pwd)"

498+

if ! command -v make >/dev/null 2>&1 || ! command -v python3 >/dev/null 2>&1; then

499+

sudo apt-get update -y >>"$out/apt.log" 2>&1 || true

500+

sudo DEBIAN_FRONTEND=noninteractive apt-get install -y build-essential python3 >>"$out/apt.log" 2>&1 || true

501+

fi

498502

sudo corepack enable || sudo npm install -g pnpm@10.33.2

499-

pnpm install --frozen-lockfile

503+

if [ -d /var/cache/crabbox ]; then

504+

export PNPM_STORE_DIR="\${PNPM_STORE_DIR:-/var/cache/crabbox/pnpm}"

505+

mkdir -p "$PNPM_STORE_DIR" >/dev/null 2>&1 || true

506+

pnpm config set store-dir "$PNPM_STORE_DIR" >/dev/null 2>&1 || true

507+

fi

508+

pnpm install --frozen-lockfile --prefer-offline

500509

pnpm build

501510

if [ "$setup_gateway" = "1" ]; then

502511

export OPENCLAW_HOME="$HOME/.openclaw-mantis/slack-openclaw"