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

推荐订阅源

博客园_首页
B
Blog
V
V2EX
T
Tailwind CSS Blog
Hugging Face - Blog
Hugging Face - Blog
博客园 - 【当耐特】
博客园 - 聂微东
博客园 - 叶小钗
博客园 - 三生石上(FineUI控件)
The Cloudflare Blog
J
Java Code Geeks
H
Help Net Security
雷峰网
雷峰网
Apple Machine Learning Research
Apple Machine Learning Research
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Engineering at Meta
Engineering at Meta
F
Fortinet All Blogs
Martin Fowler
Martin Fowler
D
Docker
L
LangChain Blog
人人都是产品经理
人人都是产品经理
爱范儿
爱范儿
WordPress大学
WordPress大学
V
Visual Studio Blog

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
test(e2e): expose bundled plugin lifecycle timing · openc...
vincentkoc · 2026-05-30 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -20,6 +20,21 @@ probe="scripts/e2e/lib/bundled-plugin-install-uninstall/probe.mjs"

2020

runtime_smoke="scripts/e2e/lib/bundled-plugin-install-uninstall/runtime-smoke.mjs"

2121

node "$probe" select > /tmp/bundled-plugin-sweep-ids

2222
23+

now_ms() {

24+

node -e 'process.stdout.write(String(Date.now()))'

25+

}

26+
27+

lifecycle_trace_enabled() {

28+

case "${OPENCLAW_PLUGIN_LIFECYCLE_TRACE:-}" in

29+

1 | true | TRUE | yes | YES)

30+

return 0

31+

;;

32+

*)

33+

return 1

34+

;;

35+

esac

36+

}

37+
2338

plugin_entries=()

2439

while IFS= read -r plugin_entry; do

2540

plugin_entries+=("$plugin_entry")

@@ -36,14 +51,18 @@ for plugin_entry in "${plugin_entries[@]}"; do

3651

IFS=$'\t' read -r plugin_id plugin_dir requires_config plugin_root <<<"$plugin_entry"

3752

install_log="/tmp/openclaw-install-${plugin_index}.log"

3853

uninstall_log="/tmp/openclaw-uninstall-${plugin_index}.log"

39-

plugin_started_at="$(date +%s)"

54+

plugin_started_at="$(now_ms)"

4055

echo "Installing bundled plugin: $plugin_id ($plugin_dir)"

4156

node "$OPENCLAW_ENTRY" plugins install "$plugin_id" >"$install_log" 2>&1 || {

4257

cat "$install_log"

4358

exit 1

4459

}

45-

install_finished_at="$(date +%s)"

60+

if lifecycle_trace_enabled; then

61+

cat "$install_log"

62+

fi

63+

install_finished_at="$(now_ms)"

4664

node "$probe" assert-installed "$plugin_id" "$plugin_dir" "$requires_config"

65+

installed_asserted_at="$(now_ms)"

4766

if [[ "${OPENCLAW_BUNDLED_PLUGIN_RUNTIME_SMOKE:-1}" != "0" ]]; then

4867

echo "Running bundled plugin runtime smoke: $plugin_id ($plugin_dir)"

4968

node "$runtime_smoke" plugin "$plugin_id" "$plugin_dir" "$requires_config" "$plugin_index" "$plugin_root"

@@ -52,15 +71,20 @@ for plugin_entry in "${plugin_entries[@]}"; do

5271

node "$runtime_smoke" tts-openai-live "$plugin_id" "$plugin_dir" "$requires_config" "$plugin_index"

5372

fi

5473

fi

74+

runtime_finished_at="$(now_ms)"

5575
5676

echo "Uninstalling bundled plugin: $plugin_id ($plugin_dir)"

5777

node "$OPENCLAW_ENTRY" plugins uninstall "$plugin_id" --force >"$uninstall_log" 2>&1 || {

5878

cat "$uninstall_log"

5979

exit 1

6080

}

61-

uninstall_finished_at="$(date +%s)"

81+

if lifecycle_trace_enabled; then

82+

cat "$uninstall_log"

83+

fi

84+

uninstall_finished_at="$(now_ms)"

6285

node "$probe" assert-uninstalled "$plugin_id" "$plugin_dir"

63-

echo "Bundled plugin lifecycle timing: $plugin_id install=$((install_finished_at - plugin_started_at))s uninstall=$((uninstall_finished_at - install_finished_at))s total=$((uninstall_finished_at - plugin_started_at))s"

86+

uninstalled_asserted_at="$(now_ms)"

87+

echo "Bundled plugin lifecycle timing: $plugin_id install_ms=$((install_finished_at - plugin_started_at)) install_assert_ms=$((installed_asserted_at - install_finished_at)) runtime_ms=$((runtime_finished_at - installed_asserted_at)) uninstall_ms=$((uninstall_finished_at - runtime_finished_at)) uninstall_assert_ms=$((uninstalled_asserted_at - uninstall_finished_at)) total_ms=$((uninstalled_asserted_at - plugin_started_at))"

6488

plugin_index=$((plugin_index + 1))

6589

done

6690