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

推荐订阅源

宝玉的分享
宝玉的分享
J
Java Code Geeks
S
SegmentFault 最新的问题
L
LangChain Blog
M
MIT News - Artificial intelligence
Stack Overflow Blog
Stack Overflow Blog
IT之家
IT之家
量子位
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
雷峰网
雷峰网
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
The Cloudflare Blog
MongoDB | Blog
MongoDB | Blog
Microsoft Security Blog
Microsoft Security Blog
腾讯CDC
H
Help Net Security
阮一峰的网络日志
阮一峰的网络日志
Jina AI
Jina AI
N
Netflix TechBlog - Medium
A
About on SuperTechFans
博客园 - 叶小钗
美团技术团队
人人都是产品经理
人人都是产品经理
D
DataBreaches.Net

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: split plugin contract shards · openclaw/openclaw@6b4873d
steipete · 2026-04-29 · via Recent Commits to openclaw:main

@@ -54,6 +54,8 @@ jobs:

5454

run_checks_fast_core: ${{ steps.manifest.outputs.run_checks_fast_core }}

5555

run_checks_fast: ${{ steps.manifest.outputs.run_checks_fast }}

5656

checks_fast_core_matrix: ${{ steps.manifest.outputs.checks_fast_core_matrix }}

57+

run_plugin_contracts_shards: ${{ steps.manifest.outputs.run_plugin_contracts_shards }}

58+

plugin_contracts_matrix: ${{ steps.manifest.outputs.plugin_contracts_matrix }}

5759

channel_contracts_matrix: ${{ steps.manifest.outputs.channel_contracts_matrix }}

5860

run_checks: ${{ steps.manifest.outputs.run_checks }}

5961

checks_matrix: ${{ steps.manifest.outputs.checks_matrix }}

@@ -139,6 +141,9 @@ jobs:

139141

import {

140142

createChannelContractTestShards,

141143

} from "./scripts/lib/channel-contract-test-plan.mjs";

144+

import {

145+

createPluginContractTestShards,

146+

} from "./scripts/lib/plugin-contract-test-plan.mjs";

142147143148

const parseBoolean = (value, fallback = false) => {

144149

if (value === undefined) return fallback;

@@ -161,7 +166,7 @@ jobs:

161166

runNode && parseBoolean(process.env.OPENCLAW_CI_RUN_NODE_FAST_PLUGIN_CONTRACTS);

162167

const runNodeFastCiRouting =

163168

runNode && parseBoolean(process.env.OPENCLAW_CI_RUN_NODE_FAST_CI_ROUTING);

164-

const runChecksFastCore = runNodeFull || runNodeFastPluginContracts || runNodeFastCiRouting;

169+

const runPluginContractShards = runNodeFull || runNodeFastPluginContracts;

165170

const runMacos =

166171

parseBoolean(process.env.OPENCLAW_CI_RUN_MACOS) && !docsOnly && isCanonicalRepository;

167172

const runAndroid =

@@ -178,20 +183,9 @@ jobs:

178183

if (runNodeFull) {

179184

checksFastCoreTasks.push(

180185

{ check_name: "checks-fast-bundled", runtime: "node", task: "bundled" },

181-

{

182-

check_name: "checks-fast-contracts-plugins",

183-

runtime: "node",

184-

task: "contracts-plugins",

185-

},

186186

);

187187

} else {

188-

if (runNodeFastPluginContracts) {

189-

checksFastCoreTasks.push({

190-

check_name: "checks-fast-contracts-plugins",

191-

runtime: "node",

192-

task: runNodeFastCiRouting ? "contracts-plugins-ci-routing" : "contracts-plugins",

193-

});

194-

} else if (runNodeFastCiRouting) {

188+

if (runNodeFastCiRouting) {

195189

checksFastCoreTasks.push({

196190

check_name: "checks-fast-ci-routing",

197191

runtime: "node",

@@ -226,9 +220,13 @@ jobs:

226220

run_skills_python: runSkillsPython,

227221

run_windows: runWindows,

228222

run_build_artifacts: runNodeFull,

229-

run_checks_fast_core: runChecksFastCore,

223+

run_checks_fast_core: checksFastCoreTasks.length > 0,

230224

run_checks_fast: runNodeFull,

231225

checks_fast_core_matrix: createMatrix(checksFastCoreTasks),

226+

run_plugin_contracts_shards: runPluginContractShards,

227+

plugin_contracts_matrix: createMatrix(

228+

runPluginContractShards ? createPluginContractTestShards() : [],

229+

),

232230

channel_contracts_matrix: createMatrix(

233231

runNodeFull ? createChannelContractTestShards() : [],

234232

),

@@ -730,6 +728,112 @@ jobs:

730728

;;

731729

esac

732730731+

checks-fast-plugin-contracts-shard:

732+

permissions:

733+

contents: read

734+

name: ${{ matrix.checkName }}

735+

needs: [preflight]

736+

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

737+

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

738+

timeout-minutes: 60

739+

strategy:

740+

fail-fast: false

741+

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

742+

steps:

743+

- name: Checkout

744+

shell: bash

745+

env:

746+

CHECKOUT_REPO: ${{ github.repository }}

747+

CHECKOUT_SHA: ${{ needs.preflight.outputs.checkout_revision }}

748+

CHECKOUT_TOKEN: ${{ github.token }}

749+

run: |

750+

set -euo pipefail

751+752+

workdir="$GITHUB_WORKSPACE"

753+

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

754+755+

reset_checkout_dir() {

756+

mkdir -p "$workdir"

757+

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

758+

}

759+760+

checkout_attempt() {

761+

local attempt="$1"

762+763+

reset_checkout_dir

764+

git init "$workdir" >/dev/null

765+

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

766+

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

767+

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

768+769+

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

770+

-c protocol.version=2 \

771+

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

772+

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

773+

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

774+775+

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

776+

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

777+

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

778+

}

779+780+

for attempt in 1 2 3 4 5; do

781+

if checkout_attempt "$attempt"; then

782+

exit 0

783+

fi

784+

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

785+

sleep $((attempt * 5))

786+

done

787+788+

echo "checkout failed after 5 attempts" >&2

789+

exit 1

790+791+

- name: Setup Node environment

792+

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

793+

with:

794+

install-bun: "false"

795+796+

- name: Run plugin contract shard

797+

env:

798+

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

799+

shell: bash

800+

run: |

801+

set -euo pipefail

802+

include_file="$RUNNER_TEMP/plugin-contract-include.json"

803+

INCLUDE_FILE="$include_file" node --input-type=module <<'EOF'

804+

import { writeFileSync } from "node:fs";

805+806+

const includePatterns = JSON.parse(process.env.OPENCLAW_CONTRACT_INCLUDE_PATTERNS_JSON ?? "[]");

807+

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

808+

console.error("Missing plugin contract include patterns");

809+

process.exit(1);

810+

}

811+

writeFileSync(process.env.INCLUDE_FILE, JSON.stringify(includePatterns), "utf8");

812+

EOF

813+

OPENCLAW_VITEST_INCLUDE_FILE="$include_file" pnpm test:contracts:plugins

814+815+

checks-fast-plugin-contracts:

816+

permissions:

817+

contents: read

818+

name: checks-fast-contracts-plugins

819+

needs: [preflight, checks-fast-plugin-contracts-shard]

820+

if: ${{ !cancelled() && always() && needs.preflight.outputs.run_plugin_contracts_shards == 'true' }}

821+

runs-on: ubuntu-24.04

822+

timeout-minutes: 5

823+

steps:

824+

- name: Verify plugin contract shards

825+

env:

826+

SHARD_RESULT: ${{ needs.checks-fast-plugin-contracts-shard.result }}

827+

run: |

828+

if [ "$SHARD_RESULT" = "cancelled" ]; then

829+

echo "Plugin contract shards were cancelled, usually because a newer commit superseded this run." >&2

830+

exit 1

831+

fi

832+

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

833+

echo "Plugin contract shards failed: $SHARD_RESULT" >&2

834+

exit 1

835+

fi

836+733837

checks-fast-channel-contracts-shard:

734838

permissions:

735839

contents: read