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

推荐订阅源

云风的 BLOG
云风的 BLOG
IT之家
IT之家
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
Visual Studio Blog
博客园 - 司徒正美
美团技术团队
Last Week in AI
Last Week in AI
月光博客
月光博客
博客园 - 叶小钗
MongoDB | Blog
MongoDB | Blog
U
Unit 42
T
Tailwind CSS Blog
GbyAI
GbyAI
T
The Blog of Author Tim Ferriss
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
H
Hackread – Cybersecurity News, Data Breaches, AI and More
酷 壳 – CoolShell
酷 壳 – CoolShell
Google DeepMind News
Google DeepMind News
H
Help Net Security
Hugging Face - Blog
Hugging Face - Blog
爱范儿
爱范儿
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
N
Netflix TechBlog - Medium
B
Blog RSS Feed
大猫的无限游戏
大猫的无限游戏
aimingoo的专栏
aimingoo的专栏
A
About on SuperTechFans
Y
Y Combinator Blog
罗磊的独立博客
D
DataBreaches.Net
有赞技术团队
有赞技术团队
MyScale Blog
MyScale Blog
博客园_首页
博客园 - 三生石上(FineUI控件)
G
Google Developers Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
雷峰网
雷峰网
博客园 - 【当耐特】
Engineering at Meta
Engineering at Meta
博客园 - Franky
M
MIT News - Artificial intelligence
B
Blog
The Cloudflare Blog
Apple Machine Learning Research
Apple Machine Learning Research
I
InfoQ
S
SegmentFault 最新的问题
F
Fortinet All Blogs
阮一峰的网络日志
阮一峰的网络日志
Stack Overflow Blog
Stack Overflow Blog
Microsoft Security Blog
Microsoft Security 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: trim doctor command hotspots · openclaw/openclaw@c66f16a test: isolate agent auth and spawn hotspots · openclaw/openclaw@9285935 test: stabilize MCP startup disposal race · openclaw/openclaw@dd9d2eb test: merge browser contract server suites · openclaw/openclaw@5817a76 test: narrow ollama provider discovery setup · openclaw/openclaw@a0d9598 build: declare qa-lab aimock runtime dependency · openclaw/openclaw@24431e5 test: speed up safe-bins exec harness · openclaw/openclaw@ee856ab test: preserve tool helpers in embedded runner mocks · openclaw/openclaw@acd86a0 refactor: move memory embeddings into provider plugins · openclaw/openclaw@77e6e4c test: reuse system-run temp fixtures · openclaw/openclaw@7e9ff0f test: trim hotspot wait overhead · openclaw/openclaw@12a59b0 Check: avoid duplicate boundary prep · openclaw/openclaw@baf11b8 test: reduce hotspot fixture overhead · openclaw/openclaw@3a59edd feat(ui): overhaul settings and slash command UX (#67819) thanks @Bun… · openclaw/openclaw@2cfb660 QA Matrix: exit cleanly on failure · openclaw/openclaw@42805d2 QA Matrix: isolate scenario coverage · openclaw/openclaw@7e659e1 Matrix: refresh crypto bootstrap state · openclaw/openclaw@94081d8 QA Lab: add provider registry · openclaw/openclaw@bb7e982 Matrix: add plugin changelog · openclaw/openclaw@4acab55 test: trim more hotspot overhead · openclaw/openclaw@f485311 test: trim remaining hotspot tests · openclaw/openclaw@6ba8626 test: narrow hotspot mocks · openclaw/openclaw@dbc8179 test: isolate gemini embedding request helpers · openclaw/openclaw@cd330f5 test: trim memory and mcp hotspots · openclaw/openclaw@fd48dfa test: slim provider registry mocks · openclaw/openclaw@2e08c77 test: harden Parallels update smoke · openclaw/openclaw@1a98090 feat: default Anthropic to Opus 4.7 · openclaw/openclaw@628b454 fix: harden node-host shell payload mutability checks · openclaw/openclaw@75c551e fix: land node-host approval binding for native binaries (#66731) (th… · openclaw/openclaw@29919bb CI: add daily schedule to CodeQL workflow (#67645) · openclaw/openclaw@69d25f5 fix(gateway): capture config hash after plugin auto-enable to prevent… · openclaw/openclaw@8c11210 fix: repair sanitized replay tool results before send (#67620) (thank… · openclaw/openclaw@c3c7a99 fix: restrict HTML timeout short-circuit to transient statuses · openclaw/openclaw@de129a6 fix: keep TUI watchdog bound to active run (#67401) (thanks @xantorres) · openclaw/openclaw@3525273 Gateway/skills: dedupe skills prefix-match + drop dead fallback on log · openclaw/openclaw@d7f489f Extensions/lmstudio: back off inference preload after consecutive fai… · openclaw/openclaw@b555214 TUI/streaming: add watchdog that resets the activity indicator after … · openclaw/openclaw@f44ab20 Agents/tool-loop: enable unknown-tool stream guard by default · openclaw/openclaw@36ed367 Gateway/skills: invalidate session skills snapshot on config write · openclaw/openclaw@b23d59a fix: classify HTML provider error pages correctly (#67642) (thanks @s… · openclaw/openclaw@e588e90 fix(skills): remove unused model-usage import (#67641) · openclaw/openclaw@55f05df docs(changelog): credit codex fix superseded PRs · openclaw/openclaw@e485f24 fix(openai-codex): normalize stale transport metadata in resolution a… · openclaw/openclaw@90801ba CI: pin Docker-related GitHub Actions (#67632) · openclaw/openclaw@f697b01 Android: modernize WebView and discovery API usage (#67627) · openclaw/openclaw@44a6e50 fix(deps): bump hono to 4.12.14 and @hono/node-server to 1.19.14 (GHS… · openclaw/openclaw@fbccc18 fix(deps): bump dompurify to 3.4.0 (#67614) · openclaw/openclaw@2c2dc00 CI: add explicit permissions to all workflow jobs (fixes code-scannin… · openclaw/openclaw@01b7516 fix: register bundled TTS providers and route overrides correctly (#6… · openclaw/openclaw@6ea3cdd fix: align host tilde paths with OS home (#62804) (thanks @stainlu) · openclaw/openclaw@ecfaf64 fix: flush creds queue before reconnect socket open (#67464) (thanks … · openclaw/openclaw@405c63f fix: strip standalone <function> tool call tags from visible text (#6… · openclaw/openclaw@78df859 fix(agents): preserve cli session metadata before transcript persist … · openclaw/openclaw@898fd04 docs(changelog): move cli transcript entry · openclaw/openclaw@c1817c6 fix(agents): normalize cli transcript api field · openclaw/openclaw@3a3fae0 docs(changelog): note cli transcript persistence · openclaw/openclaw@6c343f1 fix(agents): persist cli transcript turns · openclaw/openclaw@b8ef507 fix(msteams): harden security-sensitive flows (#65841) · openclaw/openclaw@c56b56e [Dashboard] Fix exec approval modal overflow for long command content… · openclaw/openclaw@053c5b0 Docs: remove QA changelog entry · openclaw/openclaw@7fd5771 QA: fix private runtime source loading (#67428) · openclaw/openclaw@d5933af docs(gateway): correct protocol.md schema path, hello-ok example, aut… · openclaw/openclaw@489404d CI: pin Node 22 runners to 22.18.0 · openclaw/openclaw@4ffa621 models.authStatus: normalize provider ids + tighten env-backed escape… · openclaw/openclaw@f2fdb9d Update CHANGELOG.md · openclaw/openclaw@7694a92 test(parallels): clean up npm update guard jobs · openclaw/openclaw@045ea7b Plugins: prefer scanDir override paths · openclaw/openclaw@b2974da fix(dreaming): default storage.mode to "separate" so phase blocks sto… · openclaw/openclaw@8c392f0 fix(memory-core): skip dreaming transcript ingestion via session stor… · openclaw/openclaw@a1b01f0 fix: dedupe replayed exec.finished node events (#67281) · openclaw/openclaw@5dcf526
ci: collapse built artifact test consumers · openclaw/openclaw@5a22d16
steipete · 2026-04-23 · via Recent Commits to openclaw:main

@@ -455,7 +455,9 @@ jobs:

455455

runs-on: ${{ github.repository == 'openclaw/openclaw' && 'blacksmith-8vcpu-ubuntu-2404' || 'ubuntu-24.04' }}

456456

timeout-minutes: 20

457457

outputs:

458-

gateway-watch-result: ${{ steps.gateway_watch.outcome }}

458+

channels-result: ${{ steps.built_artifact_checks.outputs['channels-result'] }}

459+

core-support-boundary-result: ${{ steps.built_artifact_checks.outputs['core-support-boundary-result'] }}

460+

gateway-watch-result: ${{ steps.built_artifact_checks.outputs['gateway-watch-result'] }}

459461

steps:

460462

- name: Checkout

461463

shell: bash

@@ -568,11 +570,75 @@ jobs:

568570

- name: Check CLI startup memory

569571

run: pnpm test:startup:memory

570572571-

- name: Run gateway watch regression

572-

id: gateway_watch

573-

if: needs.preflight.outputs.run_check_additional == 'true'

574-

continue-on-error: true

575-

run: node scripts/check-gateway-watch-regression.mjs --skip-build

573+

- name: Run built artifact checks

574+

id: built_artifact_checks

575+

if: needs.preflight.outputs.run_checks == 'true' || needs.preflight.outputs.run_checks_node_core_dist == 'true' || needs.preflight.outputs.run_check_additional == 'true'

576+

env:

577+

RUN_CHANNELS: ${{ needs.preflight.outputs.run_checks }}

578+

RUN_CORE_SUPPORT_BOUNDARY: ${{ needs.preflight.outputs.run_checks_node_core_dist }}

579+

RUN_GATEWAY_WATCH: ${{ needs.preflight.outputs.run_check_additional }}

580+

shell: bash

581+

run: |

582+

set -uo pipefail

583+584+

names=()

585+

pids=()

586+

logs=()

587+

declare -A results=(

588+

["channels"]="skipped"

589+

["core-support-boundary"]="skipped"

590+

["gateway-watch"]="skipped"

591+

)

592+593+

start_check() {

594+

local name="$1"

595+

shift

596+

local log="${RUNNER_TEMP}/${name}.log"

597+

names+=("$name")

598+

logs+=("$log")

599+

echo "starting ${name}: $*"

600+

"$@" >"$log" 2>&1 &

601+

pids+=("$!")

602+

}

603+604+

if [ "$RUN_CHANNELS" = "true" ]; then

605+

start_check "channels" env \

606+

NODE_OPTIONS=--max-old-space-size=6144 \

607+

OPENCLAW_VITEST_MAX_WORKERS=1 \

608+

pnpm test:channels

609+

fi

610+611+

if [ "$RUN_CORE_SUPPORT_BOUNDARY" = "true" ]; then

612+

start_check "core-support-boundary" env \

613+

NODE_OPTIONS=--max-old-space-size=6144 \

614+

OPENCLAW_VITEST_MAX_WORKERS=2 \

615+

node scripts/run-vitest.mjs run --config test/vitest/vitest.full-core-support-boundary.config.ts

616+

fi

617+618+

if [ "$RUN_GATEWAY_WATCH" = "true" ]; then

619+

start_check "gateway-watch" node scripts/check-gateway-watch-regression.mjs --skip-build

620+

fi

621+622+

for index in "${!pids[@]}"; do

623+

name="${names[$index]}"

624+

log="${logs[$index]}"

625+

pid="${pids[$index]}"

626+627+

if wait "$pid"; then

628+

result="success"

629+

else

630+

result="failure"

631+

fi

632+633+

echo "::group::${name} log"

634+

cat "$log"

635+

echo "::endgroup::"

636+

results["$name"]="$result"

637+

done

638+639+

for name in channels core-support-boundary gateway-watch; do

640+

echo "${name}-result=${results[$name]}" >> "$GITHUB_OUTPUT"

641+

done

576642577643

- name: Upload gateway watch regression artifacts

578644

if: always() && needs.preflight.outputs.run_check_additional == 'true'

@@ -936,117 +1002,25 @@ jobs:

9361002

name: ${{ matrix.check_name }}

9371003

needs: [preflight, build-artifacts]

9381004

if: ${{ !cancelled() && always() && needs.preflight.outputs.run_checks == 'true' && needs.build-artifacts.result == 'success' }}

939-

runs-on: ${{ github.repository == 'openclaw/openclaw' && 'blacksmith-8vcpu-ubuntu-2404' || 'ubuntu-24.04' }}

940-

timeout-minutes: 60

1005+

runs-on: ubuntu-24.04

1006+

timeout-minutes: 5

9411007

strategy:

9421008

fail-fast: false

9431009

matrix: ${{ fromJson(needs.preflight.outputs.checks_matrix) }}

9441010

steps:

945-

- name: Checkout

946-

shell: bash

947-

env:

948-

CHECKOUT_REPO: ${{ github.repository }}

949-

CHECKOUT_SHA: ${{ github.sha }}

950-

CHECKOUT_TOKEN: ${{ github.token }}

951-

run: |

952-

set -euo pipefail

953-954-

workdir="$GITHUB_WORKSPACE"

955-

auth_header="$(printf 'x-access-token:%s' "$CHECKOUT_TOKEN" | base64 | tr -d '\n')"

956-957-

reset_checkout_dir() {

958-

mkdir -p "$workdir"

959-

find "$workdir" -mindepth 1 -maxdepth 1 -exec rm -rf {} +

960-

}

961-962-

checkout_attempt() {

963-

local attempt="$1"

964-965-

reset_checkout_dir

966-

git init "$workdir" >/dev/null

967-

git config --global --add safe.directory "$workdir"

968-

git -C "$workdir" remote add origin "https://github.com/${CHECKOUT_REPO}"

969-

git -C "$workdir" config gc.auto 0

970-971-

timeout --signal=TERM 30s git -C "$workdir" \

972-

-c protocol.version=2 \

973-

-c "http.https://github.com/.extraheader=AUTHORIZATION: basic ${auth_header}" \

974-

fetch --no-tags --prune --no-recurse-submodules --depth=1 origin \

975-

"+${CHECKOUT_SHA}:refs/remotes/origin/ci-target" || return 1

976-977-

git -C "$workdir" checkout --force --detach "$CHECKOUT_SHA" || return 1

978-

test -f "$workdir/.github/actions/setup-node-env/action.yml" || return 1

979-

echo "checkout attempt ${attempt}/2 succeeded"

980-

}

981-982-

for attempt in 1 2; do

983-

if checkout_attempt "$attempt"; then

984-

exit 0

985-

fi

986-

echo "checkout attempt ${attempt}/2 failed"

987-

sleep $((attempt * 5))

988-

done

989-990-

echo "checkout failed after 2 attempts" >&2

991-

exit 1

992-993-

- name: Setup Node environment

994-

uses: ./.github/actions/setup-node-env

995-

with:

996-

node-version: "${{ matrix.node_version || '24.x' }}"

997-

cache-key-suffix: "${{ matrix.cache_key_suffix || 'node24' }}"

998-

install-bun: "false"

999-1000-

- name: Configure Node test resources

1001-

if: matrix.runtime == 'node' && (matrix.task == 'test' || matrix.task == 'channels')

1011+

- name: Verify ${{ matrix.task }} (${{ matrix.runtime }})

10021012

env:

10031013

TASK: ${{ matrix.task }}

1004-

run: |

1005-

echo "OPENCLAW_VITEST_MAX_WORKERS=2" >> "$GITHUB_ENV"

1006-

if [ "$TASK" = "test" ]; then

1007-

echo "OPENCLAW_TEST_PROJECTS_LEAF_SHARDS=1" >> "$GITHUB_ENV"

1008-

echo "OPENCLAW_TEST_SKIP_FULL_EXTENSIONS_SHARD=1" >> "$GITHUB_ENV"

1009-

fi

1010-

if [ "$TASK" = "channels" ]; then

1011-

echo "OPENCLAW_VITEST_MAX_WORKERS=1" >> "$GITHUB_ENV"

1012-

fi

1013-1014-

- name: Restore dist cache

1015-

if: matrix.task == 'test'

1016-

id: checks-dist-cache

1017-

uses: actions/cache@v5

1018-

with:

1019-

path: |

1020-

dist/

1021-

dist-runtime/

1022-

key: ${{ runner.os }}-dist-build-${{ github.sha }}

1023-1024-

- name: Verify dist cache

1025-

if: matrix.task == 'test' && steps.checks-dist-cache.outputs.cache-hit != 'true'

1026-

run: |

1027-

echo "Missing same-run dist cache for ${RUNNER_OS}-dist-build-${GITHUB_SHA}" >&2

1028-

exit 1

1029-1030-

- name: Download A2UI bundle artifact

1031-

if: matrix.task == 'test' || matrix.task == 'channels'

1032-

uses: actions/download-artifact@v8

1033-

with:

1034-

name: canvas-a2ui-bundle

1035-

path: src/canvas-host/a2ui/

1036-1037-

- name: Run ${{ matrix.task }} (${{ matrix.runtime }})

1038-

env:

1039-

TASK: ${{ matrix.task }}

1040-

NODE_OPTIONS: --max-old-space-size=6144

1014+

CHANNELS_RESULT: ${{ needs.build-artifacts.outputs['channels-result'] }}

10411015

shell: bash

10421016

run: |

10431017

set -euo pipefail

10441018

case "$TASK" in

1045-

test)

1046-

pnpm test

1047-

;;

10481019

channels)

1049-

pnpm test:channels

1020+

if [ "$CHANNELS_RESULT" != "success" ]; then

1021+

echo "Channel tests failed in build-artifacts: $CHANNELS_RESULT" >&2

1022+

exit 1

1023+

fi

10501024

;;

10511025

*)

10521026

echo "Unsupported checks task: $TASK" >&2

@@ -1261,144 +1235,31 @@ jobs:

12611235

name: ${{ matrix.check_name }}

12621236

needs: [preflight, build-artifacts]

12631237

if: ${{ !cancelled() && always() && needs.preflight.outputs.run_checks_node_core_dist == 'true' && needs.build-artifacts.result == 'success' }}

1264-

runs-on: ${{ github.repository == 'openclaw/openclaw' && 'blacksmith-8vcpu-ubuntu-2404' || 'ubuntu-24.04' }}

1265-

timeout-minutes: 60

1238+

runs-on: ubuntu-24.04

1239+

timeout-minutes: 5

12661240

strategy:

12671241

fail-fast: false

12681242

matrix: ${{ fromJson(needs.preflight.outputs.checks_node_core_dist_matrix) }}

12691243

steps:

1270-

- name: Checkout

1271-

shell: bash

1272-

env:

1273-

CHECKOUT_REPO: ${{ github.repository }}

1274-

CHECKOUT_SHA: ${{ github.sha }}

1275-

CHECKOUT_TOKEN: ${{ github.token }}

1276-

run: |

1277-

set -euo pipefail

1278-1279-

workdir="$GITHUB_WORKSPACE"

1280-

auth_header="$(printf 'x-access-token:%s' "$CHECKOUT_TOKEN" | base64 | tr -d '\n')"

1281-1282-

reset_checkout_dir() {

1283-

mkdir -p "$workdir"

1284-

find "$workdir" -mindepth 1 -maxdepth 1 -exec rm -rf {} +

1285-

}

1286-1287-

checkout_attempt() {

1288-

local attempt="$1"

1289-1290-

reset_checkout_dir

1291-

git init "$workdir" >/dev/null

1292-

git config --global --add safe.directory "$workdir"

1293-

git -C "$workdir" remote add origin "https://github.com/${CHECKOUT_REPO}"

1294-

git -C "$workdir" config gc.auto 0

1295-1296-

timeout --signal=TERM 30s git -C "$workdir" \

1297-

-c protocol.version=2 \

1298-

-c "http.https://github.com/.extraheader=AUTHORIZATION: basic ${auth_header}" \

1299-

fetch --no-tags --prune --no-recurse-submodules --depth=1 origin \

1300-

"+${CHECKOUT_SHA}:refs/remotes/origin/ci-target" || return 1

1301-1302-

git -C "$workdir" checkout --force --detach "$CHECKOUT_SHA" || return 1

1303-

test -f "$workdir/.github/actions/setup-node-env/action.yml" || return 1

1304-

echo "checkout attempt ${attempt}/2 succeeded"

1305-

}

1306-1307-

for attempt in 1 2; do

1308-

if checkout_attempt "$attempt"; then

1309-

exit 0

1310-

fi

1311-

echo "checkout attempt ${attempt}/2 failed"

1312-

sleep $((attempt * 5))

1313-

done

1314-1315-

echo "checkout failed after 2 attempts" >&2

1316-

exit 1

1317-1318-

- name: Setup Node environment

1319-

uses: ./.github/actions/setup-node-env

1320-

with:

1321-

node-version: "${{ matrix.node_version || '24.x' }}"

1322-

cache-key-suffix: "${{ matrix.cache_key_suffix || 'node24' }}"

1323-

install-bun: "false"

1324-1325-

- name: Configure Node test resources

1326-

run: echo "OPENCLAW_VITEST_MAX_WORKERS=2" >> "$GITHUB_ENV"

1327-1328-

- name: Restore dist cache

1329-

id: dist-cache

1330-

uses: actions/cache@v5

1331-

with:

1332-

path: |

1333-

dist/

1334-

dist-runtime/

1335-

key: ${{ runner.os }}-dist-build-${{ github.sha }}

1336-1337-

- name: Verify dist cache

1338-

if: steps.dist-cache.outputs.cache-hit != 'true'

1339-

run: |

1340-

echo "Missing same-run dist cache for ${RUNNER_OS}-dist-build-${GITHUB_SHA}" >&2

1341-

exit 1

1342-1343-

- name: Download A2UI bundle artifact

1344-

uses: actions/download-artifact@v8

1345-

with:

1346-

name: canvas-a2ui-bundle

1347-

path: src/canvas-host/a2ui/

1348-1349-

- name: Run Node test shard

1244+

- name: Verify Node test shard

13501245

env:

1351-

NODE_OPTIONS: --max-old-space-size=6144

1352-

OPENCLAW_NODE_TEST_CONFIGS_JSON: ${{ toJson(matrix.configs) }}

1353-

OPENCLAW_NODE_TEST_INCLUDE_PATTERNS_JSON: ${{ toJson(matrix.includePatterns) }}

1246+

CORE_SUPPORT_BOUNDARY_RESULT: ${{ needs.build-artifacts.outputs['core-support-boundary-result'] }}

1247+

SHARD_NAME: ${{ matrix.shard_name }}

13541248

shell: bash

13551249

run: |

13561250

set -euo pipefail

1357-

node --input-type=module <<'EOF'

1358-

import { spawnSync } from "node:child_process";

1359-

import { writeFileSync } from "node:fs";

1360-

import { join } from "node:path";

1361-

import { resolveVitestCliEntry, resolveVitestNodeArgs } from "./scripts/run-vitest.mjs";

1362-1363-

const configs = JSON.parse(process.env.OPENCLAW_NODE_TEST_CONFIGS_JSON ?? "[]");

1364-

if (!Array.isArray(configs) || configs.length === 0) {

1365-

console.error("Missing node test shard configs");

1366-

process.exit(1);

1367-

}

1368-

const includePatterns = JSON.parse(process.env.OPENCLAW_NODE_TEST_INCLUDE_PATTERNS_JSON ?? "null");

1369-

const childEnv = { ...process.env };

1370-

if (Array.isArray(includePatterns) && includePatterns.length > 0) {

1371-

const includeFile = join(

1372-

process.env.RUNNER_TEMP ?? ".",

1373-

`node-test-include-${process.env.GITHUB_JOB ?? "local"}-${Date.now()}.json`,

1374-

);

1375-

writeFileSync(includeFile, JSON.stringify(includePatterns), "utf8");

1376-

childEnv.OPENCLAW_VITEST_INCLUDE_FILE = includeFile;

1377-

}

1378-1379-

for (const config of configs) {

1380-

console.error(`[test] starting ${config}`);

1381-

const result = spawnSync(

1382-

"pnpm",

1383-

[

1384-

"exec",

1385-

"node",

1386-

...resolveVitestNodeArgs(process.env),

1387-

resolveVitestCliEntry(),

1388-

"run",

1389-

"--config",

1390-

config,

1391-

],

1392-

{

1393-

env: childEnv,

1394-

stdio: "inherit",

1395-

},

1396-

);

1397-

if ((result.status ?? 1) !== 0) {

1398-

process.exit(result.status ?? 1);

1399-

}

1400-

}

1401-

EOF

1251+

case "$SHARD_NAME" in

1252+

core-support-boundary)

1253+

if [ "$CORE_SUPPORT_BOUNDARY_RESULT" != "success" ]; then

1254+

echo "Core support boundary shard failed in build-artifacts: $CORE_SUPPORT_BOUNDARY_RESULT" >&2

1255+

exit 1

1256+

fi

1257+

;;

1258+

*)

1259+

echo "Unsupported built-artifact shard: $SHARD_NAME" >&2

1260+

exit 1

1261+

;;

1262+

esac

1402126314031264

checks-node-core-test:

14041265

permissions: