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

推荐订阅源

有赞技术团队
有赞技术团队
H
Hackread – Cybersecurity News, Data Breaches, AI and More
I
InfoQ
J
Java Code Geeks
Microsoft Security Blog
Microsoft Security Blog
G
Google Developers Blog
D
DataBreaches.Net
Recent Announcements
Recent Announcements
Microsoft Azure Blog
Microsoft Azure Blog
B
Blog RSS Feed
Y
Y Combinator Blog
博客园 - 【当耐特】
博客园 - 聂微东
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
大猫的无限游戏
大猫的无限游戏
P
Proofpoint News Feed
量子位
C
Check Point Blog
F
Fortinet All Blogs
罗磊的独立博客
Last Week in AI
Last Week in AI
GbyAI
GbyAI
L
LangChain 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
ci: support Windows Blacksmith testbox phone-home · openc...
vincentkoc · 2026-05-04 · via Recent Commits to openclaw:main

@@ -29,9 +29,83 @@ jobs:

2929

shell: pwsh

3030

steps:

3131

- name: Begin Testbox

32-

uses: useblacksmith/begin-testbox@d0e04585c26905fdd92c94a09c159544c7ee1b67

33-

with:

34-

testbox_id: ${{ inputs.testbox_id }}

32+

shell: bash

33+

env:

34+

TESTBOX_ID: ${{ inputs.testbox_id }}

35+

run: |

36+

set -euo pipefail

37+38+

metadata_port="${METADATA_PORT:-}"

39+

if [ -z "$metadata_port" ]; then

40+

metadata_port="$(cat /proc/cmdline | tr ' ' '\n' | grep '^metadata_port=' | cut -d= -f2)"

41+

fi

42+

if [ -z "$metadata_port" ]; then

43+

echo "metadata_port not found in kernel cmdline" >&2

44+

exit 1

45+

fi

46+47+

metadata_addr="192.168.127.1:${metadata_port}"

48+

state=/tmp/.testbox

49+

mkdir -p "$state"

50+

chmod 700 "$state"

51+52+

installation_model_id="$(curl -s --connect-timeout 2 --max-time 5 "http://${metadata_addr}/installationModelID")"

53+

api_url="$(curl -s --connect-timeout 2 --max-time 5 "http://${metadata_addr}/backendURL")"

54+

auth_token="$(curl -s --connect-timeout 2 --max-time 5 "http://${metadata_addr}/stickyDiskToken")"

55+56+

if [ -z "$api_url" ] || [ -z "$installation_model_id" ] || [ -z "$auth_token" ]; then

57+

echo "could not read required Blacksmith metadata" >&2

58+

exit 1

59+

fi

60+61+

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

62+

runner_host="$BLACKSMITH_HOSTNAME"

63+

else

64+

runner_host="${BLACKSMITH_HOST_PUBLIC_IP:-}"

65+

fi

66+

runner_ssh_port="${BLACKSMITH_SSH_PORT:-22}"

67+68+

response="$(curl -s -f -X POST "${api_url}/api/testbox/phone-home" \

69+

-H "Content-Type: application/json" \

70+

-H "Authorization: Bearer ${auth_token}" \

71+

-d "{

72+

\"testbox_id\": \"${TESTBOX_ID}\",

73+

\"installation_model_id\": ${installation_model_id},

74+

\"status\": \"hydrating\",

75+

\"ip_address\": \"${runner_host}\",

76+

\"ssh_port\": \"${runner_ssh_port}\",

77+

\"working_directory\": \"${GITHUB_WORKSPACE}\",

78+

\"adopted_run_id\": \"${GITHUB_RUN_ID}\",

79+

\"metadata\": {}

80+

}" 2>/dev/null || true)"

81+82+

echo "$TESTBOX_ID" > "$state/testbox_id"

83+

echo "$installation_model_id" > "$state/installation_model_id"

84+

echo "$auth_token" > "$state/auth_token"

85+

echo "$api_url" > "$state/api_url"

86+

echo "$runner_host" > "$state/runner_host"

87+

echo "$runner_ssh_port" > "$state/runner_ssh_port"

88+

echo "$GITHUB_WORKSPACE" > "$state/working_directory"

89+

echo "$GITHUB_RUN_ID" > "$state/adopted_run_id"

90+91+

if [ -n "$response" ] && echo "$response" | jq -e . >/dev/null 2>&1; then

92+

echo "$response" | jq -r '.ssh_public_key // empty' > "$state/ssh_public_key"

93+

idle_timeout="$(echo "$response" | jq -r '.idle_timeout // empty')"

94+

echo "${idle_timeout:-10}" > "$state/idle_timeout"

95+

echo "phone-home response=json"

96+

else

97+

printf '%s\n' "$response" > "$state/ssh_public_key"

98+

echo "10" > "$state/idle_timeout"

99+

echo "phone-home response=raw"

100+

fi

101+102+

ssh_public_key="$(cat "$state/ssh_public_key" 2>/dev/null || true)"

103+

if [ -n "$ssh_public_key" ]; then

104+

mkdir -p ~/.ssh

105+

printf '%s\n' "$ssh_public_key" >> ~/.ssh/authorized_keys

106+

chmod 700 ~/.ssh

107+

chmod 600 ~/.ssh/authorized_keys

108+

fi

3510936110

- name: Checkout

37111

uses: actions/checkout@v6