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

推荐订阅源

博客园_首页
IT之家
IT之家
博客园 - Franky
Stack Overflow Blog
Stack Overflow Blog
宝玉的分享
宝玉的分享
Recent Announcements
Recent Announcements
Engineering at Meta
Engineering at Meta
S
SegmentFault 最新的问题
V
Visual Studio Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Last Week in AI
Last Week in AI
H
Help Net Security
V
V2EX
H
Hackread – Cybersecurity News, Data Breaches, AI and More
量子位
博客园 - 叶小钗
J
Java Code Geeks
博客园 - 【当耐特】
月光博客
月光博客
爱范儿
爱范儿
人人都是产品经理
人人都是产品经理
酷 壳 – CoolShell
酷 壳 – CoolShell
小众软件
小众软件

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
fix(e2e): kill timed setup process groups · openclaw/open...
vincentkoc · 2026-05-26 · via Recent Commits to openclaw:main

@@ -1127,23 +1127,50 @@ set -euo pipefail

11271127

root=${REMOTE_ROOT}

11281128

tdlib_sha256=${tdlibSha256}

11291129

tdlib_url=${tdlibUrl}

1130+

setup_step_timeout_kill_after="\${OPENCLAW_TELEGRAM_USER_SETUP_KILL_AFTER_SECONDS:-30}s"

1131+

apt_timeout="\${OPENCLAW_TELEGRAM_USER_APT_TIMEOUT_SECONDS:-900}s"

1132+

download_timeout="\${OPENCLAW_TELEGRAM_USER_DOWNLOAD_TIMEOUT_SECONDS:-600}"

1133+

download_connect_timeout="\${OPENCLAW_TELEGRAM_USER_DOWNLOAD_CONNECT_TIMEOUT_SECONDS:-15}"

1134+

download_retries="\${OPENCLAW_TELEGRAM_USER_DOWNLOAD_RETRIES:-3}"

1135+

download_retry_delay="\${OPENCLAW_TELEGRAM_USER_DOWNLOAD_RETRY_DELAY_SECONDS:-5}"

1136+

tdlib_clone_timeout="\${OPENCLAW_TELEGRAM_USER_TDLIB_CLONE_TIMEOUT_SECONDS:-600}s"

1137+

tdlib_build_timeout="\${OPENCLAW_TELEGRAM_USER_TDLIB_BUILD_TIMEOUT_SECONDS:-1800}s"

1138+

run_setup_step() {

1139+

local label="$1"

1140+

local timeout_value="$2"

1141+

shift 2

1142+

echo "==> $label" >&2

1143+

timeout --kill-after="$setup_step_timeout_kill_after" "$timeout_value" "$@"

1144+

}

1145+

download_file() {

1146+

local url="$1"

1147+

local output="$2"

1148+

curl -fL \

1149+

--connect-timeout "$download_connect_timeout" \

1150+

--max-time "$download_timeout" \

1151+

--retry "$download_retries" \

1152+

--retry-delay "$download_retry_delay" \

1153+

--retry-all-errors \

1154+

-o "$output" \

1155+

"$url"

1156+

}

11301157

mkdir -p "$root"

11311158

tar -xzf "$root/state.tgz" -C "$root"

1132-

sudo apt-get update -y

1133-

sudo DEBIAN_FRONTEND=noninteractive apt-get install -y curl git cmake g++ make zlib1g-dev libssl-dev python3 ffmpeg scrot xz-utils tar wmctrl xdotool x11-utils zbar-tools libopengl0 libxcb-cursor0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-shape0 libxcb-xfixes0 libxcb-xinerama0 libxkbcommon-x11-0 >/tmp/openclaw-telegram-apt.log

1159+

run_setup_step "apt-get update" "$apt_timeout" sudo apt-get update -y

1160+

run_setup_step "apt-get install" "$apt_timeout" sudo env DEBIAN_FRONTEND=noninteractive apt-get install -y curl git cmake g++ make zlib1g-dev libssl-dev python3 ffmpeg scrot xz-utils tar wmctrl xdotool x11-utils zbar-tools libopengl0 libxcb-cursor0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-shape0 libxcb-xfixes0 libxcb-xinerama0 libxkbcommon-x11-0 >/tmp/openclaw-telegram-apt.log

11341161

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

11351162

echo "python3 is required" >&2

11361163

exit 127

11371164

fi

11381165

if [ ! -x "$root/Telegram/Telegram" ]; then

1139-

curl -fL https://telegram.org/dl/desktop/linux -o "$root/telegram.tar.xz"

1166+

download_file https://telegram.org/dl/desktop/linux "$root/telegram.tar.xz"

11401167

tar -xJf "$root/telegram.tar.xz" -C "$root"

11411168

fi

11421169

if ! ldconfig -p | grep -q libtdjson.so; then

11431170

if [ -n "$tdlib_url" ]; then

1144-

curl -fL "$tdlib_url" -o "$root/tdlib-linux.tgz"

1171+

download_file "$tdlib_url" "$root/tdlib-linux.tgz"

11451172

if [ -z "$tdlib_sha256" ]; then

1146-

curl -fL "$tdlib_url.sha256" -o "$root/tdlib-linux.tgz.sha256"

1173+

download_file "$tdlib_url.sha256" "$root/tdlib-linux.tgz.sha256"

11471174

tdlib_sha256="$(awk '{print $1; exit}' "$root/tdlib-linux.tgz.sha256")"

11481175

fi

11491176

printf '%s %s\\n' "$tdlib_sha256" "$root/tdlib-linux.tgz" | sha256sum -c -

@@ -1154,10 +1181,10 @@ if ! ldconfig -p | grep -q libtdjson.so; then

11541181

sudo install -m 0755 "$lib" /usr/local/lib/libtdjson.so

11551182

else

11561183

rm -rf "$root/td" "$root/td-build"

1157-

git clone --depth 1 --branch v1.8.0 https://github.com/tdlib/td.git "$root/td"

1158-

cmake -S "$root/td" -B "$root/td-build" -DCMAKE_BUILD_TYPE=Release -DTD_ENABLE_JNI=OFF

1159-

cmake --build "$root/td-build" --target tdjson -j "$(nproc)"

1160-

sudo cmake --install "$root/td-build"

1184+

run_setup_step "tdlib clone" "$tdlib_clone_timeout" git clone --depth 1 --branch v1.8.0 https://github.com/tdlib/td.git "$root/td"

1185+

run_setup_step "tdlib configure" "$tdlib_build_timeout" cmake -S "$root/td" -B "$root/td-build" -DCMAKE_BUILD_TYPE=Release -DTD_ENABLE_JNI=OFF

1186+

run_setup_step "tdlib build" "$tdlib_build_timeout" cmake --build "$root/td-build" --target tdjson -j "$(nproc)"

1187+

run_setup_step "tdlib install" "$apt_timeout" sudo cmake --install "$root/td-build"

11611188

fi

11621189

sudo ldconfig

11631190

fi