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

推荐订阅源

Y
Y Combinator Blog
有赞技术团队
有赞技术团队
J
Java Code Geeks
H
Hackread – Cybersecurity News, Data Breaches, AI and More
美团技术团队
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Hugging Face - Blog
Hugging Face - Blog
人人都是产品经理
人人都是产品经理
酷 壳 – CoolShell
酷 壳 – CoolShell
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
C
Check Point Blog
博客园 - 【当耐特】
The GitHub Blog
The GitHub Blog
Recent Announcements
Recent Announcements
The Cloudflare Blog
Microsoft Azure Blog
Microsoft Azure Blog
腾讯CDC
Vercel News
Vercel News
IT之家
IT之家
MyScale Blog
MyScale Blog
博客园_首页
Martin Fowler
Martin Fowler
WordPress大学
WordPress大学
罗磊的独立博客

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 cron runtime shard · openclaw/openclaw@9e00234
steipete · 2026-05-18 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -54,7 +54,7 @@ Scope logic lives in `scripts/ci-changed-scope.mjs` and is covered by unit tests

5454

- **CI routing-only edits, selected cheap core-test fixture edits, and narrow plugin contract helper/test-routing edits** use a fast Node-only manifest path: `preflight`, security, and a single `checks-fast-core` task. That path skips build artifacts, Node 22 compatibility, channel contracts, full core shards, bundled-plugin shards, and additional guard matrices when the change is limited to the routing or helper surfaces the fast task exercises directly.

5555

- **Windows Node checks** are scoped to Windows-specific process/path wrappers, npm/pnpm/UI runner helpers, package manager config, and the CI workflow surfaces that execute that lane; unrelated source, plugin, install-smoke, and test-only changes stay on the Linux Node lanes.

5656
57-

The slowest Node test families are split or balanced so each job stays small without over-reserving runners: plugin contracts and channel contracts each run as two weighted Blacksmith-backed shards with the standard GitHub runner fallback, core unit fast/support lanes run separately, core runtime infra is split between state, process/config, cron, and shared shards, auto-reply runs as balanced workers (with the reply subtree split into agent-runner, dispatch, and commands/state-routing shards), and agentic gateway/server configs are split across chat/auth/model/http-plugin/runtime/startup lanes instead of waiting on built artifacts. Broad browser, QA, media, and miscellaneous plugin tests use their dedicated Vitest configs instead of the shared plugin catch-all. Include-pattern shards record timing entries using the CI shard name, so `.artifacts/vitest-shard-timings.json` can distinguish a whole config from a filtered shard. `check-additional-*` keeps package-boundary compile/canary work together and separates runtime topology architecture from gateway watch coverage; the boundary guard list is striped into one prompt-heavy shard and one combined shard for the remaining guard stripes, each running selected independent guards concurrently and printing per-check timings. The expensive Codex happy-path prompt snapshot drift check runs as its own additional job for manual CI and for prompt-affecting changes only, so normal unrelated Node changes do not wait behind cold prompt snapshot generation and the boundary shards stay balanced while prompt drift is still pinned to the PR that caused it; the same flag skips prompt snapshot Vitest generation inside the built-artifact core support-boundary shard. Gateway watch, channel tests, and the core support-boundary shard run concurrently inside `build-artifacts` after `dist/` and `dist-runtime/` are already built.

57+

The slowest Node test families are split or balanced so each job stays small without over-reserving runners: plugin contracts and channel contracts each run as two weighted Blacksmith-backed shards with the standard GitHub runner fallback, core unit fast/support lanes run separately, core runtime infra is split between state, process/config, shared, and three cron domain shards, auto-reply runs as balanced workers (with the reply subtree split into agent-runner, dispatch, and commands/state-routing shards), and agentic gateway/server configs are split across chat/auth/model/http-plugin/runtime/startup lanes instead of waiting on built artifacts. Broad browser, QA, media, and miscellaneous plugin tests use their dedicated Vitest configs instead of the shared plugin catch-all. Include-pattern shards record timing entries using the CI shard name, so `.artifacts/vitest-shard-timings.json` can distinguish a whole config from a filtered shard. `check-additional-*` keeps package-boundary compile/canary work together and separates runtime topology architecture from gateway watch coverage; the boundary guard list is striped into one prompt-heavy shard and one combined shard for the remaining guard stripes, each running selected independent guards concurrently and printing per-check timings. The expensive Codex happy-path prompt snapshot drift check runs as its own additional job for manual CI and for prompt-affecting changes only, so normal unrelated Node changes do not wait behind cold prompt snapshot generation and the boundary shards stay balanced while prompt drift is still pinned to the PR that caused it; the same flag skips prompt snapshot Vitest generation inside the built-artifact core support-boundary shard. Gateway watch, channel tests, and the core support-boundary shard run concurrently inside `build-artifacts` after `dist/` and `dist-runtime/` are already built.

5858
5959

Android CI runs both `testPlayDebugUnitTest` and `testThirdPartyDebugUnitTest` and then builds the Play debug APK. The third-party flavor has no separate source set or manifest; its unit-test lane still compiles the flavor with the SMS/call-log BuildConfig flags, while avoiding a duplicate debug APK packaging job on every Android-relevant push.

6060
Original file line numberDiff line numberDiff line change

@@ -247,6 +247,34 @@ function createGatewayServerSplitShards() {

247247

.filter((shard) => shard.includePatterns.length > 0);

248248

}

249249
250+

function resolveCronShardName(file) {

251+

const name = relative("src/cron", file).replaceAll("\\", "/");

252+

if (name.startsWith("isolated-agent")) {

253+

return "core-runtime-cron-isolated-agent";

254+

}

255+

if (name.startsWith("service")) {

256+

return "core-runtime-cron-service";

257+

}

258+

return "core-runtime-cron-core";

259+

}

260+
261+

function createCronSplitShards() {

262+

const groups = new Map();

263+

for (const file of listTestFiles("src/cron")) {

264+

const shardName = resolveCronShardName(file);

265+

groups.set(shardName, [...(groups.get(shardName) ?? []), file]);

266+

}

267+
268+

return ["core-runtime-cron-core", "core-runtime-cron-isolated-agent", "core-runtime-cron-service"]

269+

.map((shardName) => ({

270+

configs: ["test/vitest/vitest.cron.config.ts"],

271+

includePatterns: groups.get(shardName) ?? [],

272+

requiresDist: false,

273+

shardName,

274+

}))

275+

.filter((shard) => shard.includePatterns.length > 0);

276+

}

277+
250278

const SPLIT_NODE_SHARDS = new Map([

251279

[

252280

"core-unit-fast",

@@ -321,13 +349,13 @@ const SPLIT_NODE_SHARDS = new Map([

321349

shardName: "core-runtime-shared",

322350

configs: [

323351

"test/vitest/vitest.acp.config.ts",

324-

"test/vitest/vitest.cron.config.ts",

325352

"test/vitest/vitest.shared-core.config.ts",

326353

"test/vitest/vitest.tasks.config.ts",

327354

"test/vitest/vitest.utils.config.ts",

328355

],

329356

requiresDist: false,

330357

},

358+

...createCronSplitShards(),

331359

],

332360

],

333361

[

Original file line numberDiff line numberDiff line change

@@ -218,7 +218,6 @@ describe("scripts/lib/ci-node-test-plan.mjs", () => {

218218

{

219219

configs: [

220220

"test/vitest/vitest.acp.config.ts",

221-

"test/vitest/vitest.cron.config.ts",

222221

"test/vitest/vitest.shared-core.config.ts",

223222

"test/vitest/vitest.tasks.config.ts",

224223

"test/vitest/vitest.utils.config.ts",

@@ -227,7 +226,42 @@ describe("scripts/lib/ci-node-test-plan.mjs", () => {

227226

runner: undefined,

228227

shardName: "core-runtime-shared",

229228

},

229+

{

230+

configs: ["test/vitest/vitest.cron.config.ts"],

231+

requiresDist: false,

232+

runner: undefined,

233+

shardName: "core-runtime-cron-core",

234+

},

235+

{

236+

configs: ["test/vitest/vitest.cron.config.ts"],

237+

requiresDist: false,

238+

runner: undefined,

239+

shardName: "core-runtime-cron-isolated-agent",

240+

},

241+

{

242+

configs: ["test/vitest/vitest.cron.config.ts"],

243+

requiresDist: false,

244+

runner: undefined,

245+

shardName: "core-runtime-cron-service",

246+

},

247+

]);

248+

});

249+
250+

it("covers every cron test exactly once across core runtime cron shards", () => {

251+

const cronShards = createNodeTestShards().filter((shard) =>

252+

shard.shardName.startsWith("core-runtime-cron-"),

253+

);

254+

const actual = cronShards

255+

.flatMap((shard) => shard.includePatterns ?? [])

256+

.toSorted((a, b) => a.localeCompare(b));

257+
258+

expect(cronShards.map((shard) => shard.shardName)).toEqual([

259+

"core-runtime-cron-core",

260+

"core-runtime-cron-isolated-agent",

261+

"core-runtime-cron-service",

230262

]);

263+

expect(actual).toEqual(listTestFiles("src/cron"));

264+

expect(new Set(actual).size).toBe(actual.length);

231265

});

232266
233267

it("splits the agentic lane into control-plane, command, agent, gateway, SDK, and plugin shards", () => {