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

推荐订阅源

罗磊的独立博客
L
LangChain Blog
aimingoo的专栏
aimingoo的专栏
IT之家
IT之家
B
Blog
博客园_首页
博客园 - 司徒正美
有赞技术团队
有赞技术团队
博客园 - 聂微东
I
InfoQ
美团技术团队
GbyAI
GbyAI
阮一峰的网络日志
阮一峰的网络日志
H
Help Net Security
大猫的无限游戏
大猫的无限游戏
MyScale Blog
MyScale Blog
WordPress大学
WordPress大学
The GitHub Blog
The GitHub Blog
A
About on SuperTechFans
人人都是产品经理
人人都是产品经理
Microsoft Azure Blog
Microsoft Azure Blog
Engineering at Meta
Engineering at Meta
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
The Cloudflare 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(release): add npm telegram live smoke · openclaw/ope...
obviyus · 2026-04-24 · via Recent Commits to openclaw:main

@@ -0,0 +1,95 @@

1+

#!/usr/bin/env bash

2+

set -euo pipefail

3+4+

ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"

5+

source "$ROOT_DIR/scripts/lib/docker-e2e-image.sh"

6+7+

IMAGE_NAME="$(docker_e2e_resolve_image "openclaw-npm-telegram-live-e2e" OPENCLAW_NPM_TELEGRAM_LIVE_E2E_IMAGE)"

8+

DOCKER_TARGET="${OPENCLAW_NPM_TELEGRAM_DOCKER_TARGET:-build}"

9+

PACKAGE_SPEC="${OPENCLAW_NPM_TELEGRAM_PACKAGE_SPEC:-openclaw@beta}"

10+

OUTPUT_DIR="${OPENCLAW_NPM_TELEGRAM_OUTPUT_DIR:-.artifacts/qa-e2e/npm-telegram-live}"

11+12+

docker_e2e_build_or_reuse "$IMAGE_NAME" npm-telegram-live "$ROOT_DIR/scripts/e2e/Dockerfile" "$ROOT_DIR" "$DOCKER_TARGET"

13+14+

mkdir -p "$ROOT_DIR/.artifacts/qa-e2e"

15+

run_log="$(mktemp "${TMPDIR:-/tmp}/openclaw-npm-telegram-live.XXXXXX")"

16+17+

docker_env=(

18+

-e COREPACK_ENABLE_DOWNLOAD_PROMPT=0

19+

-e OPENCLAW_NPM_TELEGRAM_PACKAGE_SPEC="$PACKAGE_SPEC"

20+

-e OPENCLAW_NPM_TELEGRAM_OUTPUT_DIR="$OUTPUT_DIR"

21+

-e OPENCLAW_NPM_TELEGRAM_FAST="${OPENCLAW_NPM_TELEGRAM_FAST:-1}"

22+

)

23+24+

forward_env_if_set() {

25+

local key="$1"

26+

if [ -n "${!key:-}" ]; then

27+

docker_env+=(-e "$key=${!key}")

28+

fi

29+

}

30+31+

for key in \

32+

OPENAI_API_KEY \

33+

ANTHROPIC_API_KEY \

34+

GOOGLE_API_KEY \

35+

OPENCLAW_LIVE_OPENAI_KEY \

36+

OPENCLAW_LIVE_ANTHROPIC_KEY \

37+

OPENCLAW_LIVE_GEMINI_KEY \

38+

OPENCLAW_QA_TELEGRAM_GROUP_ID \

39+

OPENCLAW_QA_TELEGRAM_DRIVER_BOT_TOKEN \

40+

OPENCLAW_QA_TELEGRAM_SUT_BOT_TOKEN \

41+

OPENCLAW_QA_CREDENTIAL_SOURCE \

42+

OPENCLAW_QA_CREDENTIAL_ROLE \

43+

OPENCLAW_QA_CONVEX_SITE_URL \

44+

OPENCLAW_QA_CONVEX_SECRET_CI \

45+

OPENCLAW_QA_CONVEX_SECRET_MAINTAINER \

46+

OPENCLAW_QA_CREDENTIAL_LEASE_TTL_MS \

47+

OPENCLAW_QA_CREDENTIAL_HEARTBEAT_INTERVAL_MS \

48+

OPENCLAW_QA_CREDENTIAL_ACQUIRE_TIMEOUT_MS \

49+

OPENCLAW_QA_CREDENTIAL_HTTP_TIMEOUT_MS \

50+

OPENCLAW_QA_CONVEX_ENDPOINT_PREFIX \

51+

OPENCLAW_QA_CREDENTIAL_OWNER_ID \

52+

OPENCLAW_QA_ALLOW_INSECURE_HTTP \

53+

OPENCLAW_QA_REDACT_PUBLIC_METADATA \

54+

OPENCLAW_QA_TELEGRAM_CAPTURE_CONTENT \

55+

OPENCLAW_QA_SUITE_PROGRESS \

56+

OPENCLAW_NPM_TELEGRAM_PROVIDER_MODE \

57+

OPENCLAW_NPM_TELEGRAM_MODEL \

58+

OPENCLAW_NPM_TELEGRAM_ALT_MODEL \

59+

OPENCLAW_NPM_TELEGRAM_SCENARIOS \

60+

OPENCLAW_NPM_TELEGRAM_SUT_ACCOUNT \

61+

OPENCLAW_NPM_TELEGRAM_ALLOW_FAILURES; do

62+

forward_env_if_set "$key"

63+

done

64+65+

echo "Running published npm Telegram live Docker E2E ($PACKAGE_SPEC)..."

66+

if ! docker run --rm \

67+

"${docker_env[@]}" \

68+

-v "$ROOT_DIR/.artifacts:/app/.artifacts" \

69+

-i "$IMAGE_NAME" bash -s >"$run_log" 2>&1 <<'EOF'

70+

set -euo pipefail

71+72+

export HOME="$(mktemp -d "/tmp/openclaw-npm-telegram-live.XXXXXX")"

73+

export NPM_CONFIG_PREFIX="$HOME/.npm-global"

74+

export PATH="$NPM_CONFIG_PREFIX/bin:$PATH"

75+

export OPENCLAW_NPM_TELEGRAM_REPO_ROOT="/app"

76+77+

package_spec="${OPENCLAW_NPM_TELEGRAM_PACKAGE_SPEC:?missing OPENCLAW_NPM_TELEGRAM_PACKAGE_SPEC}"

78+

echo "Installing ${package_spec}..."

79+

npm install -g "$package_spec" --no-fund --no-audit

80+81+

command -v openclaw

82+

openclaw --version

83+84+

export OPENCLAW_NPM_TELEGRAM_SUT_COMMAND="$(command -v openclaw)"

85+

node --import tsx scripts/e2e/npm-telegram-live-runner.ts

86+

EOF

87+

then

88+

cat "$run_log"

89+

rm -f "$run_log"

90+

exit 1

91+

fi

92+93+

cat "$run_log"

94+

rm -f "$run_log"

95+

echo "published npm Telegram live Docker E2E passed ($PACKAGE_SPEC)"