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

推荐订阅源

Jina AI
Jina AI
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
B
Blog
T
The Blog of Author Tim Ferriss
量子位
Microsoft Azure Blog
Microsoft Azure Blog
博客园 - Franky
小众软件
小众软件
Recent Announcements
Recent Announcements
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
I
InfoQ
美团技术团队
G
Google Developers Blog
Engineering at Meta
Engineering at Meta
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
V
Visual Studio Blog
云风的 BLOG
云风的 BLOG
博客园 - 【当耐特】
IT之家
IT之家
Microsoft Security Blog
Microsoft Security Blog
博客园 - 聂微东
Last Week in AI
Last Week in AI
H
Hackread – Cybersecurity News, Data Breaches, AI and More
H
Help Net Security

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: reduce node runner fanout · openclaw/openclaw@6532ee0
steipete · 2026-04-23 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -746,6 +746,7 @@ jobs:

746746

timeout-minutes: 60

747747

strategy:

748748

fail-fast: false

749+

max-parallel: 3

749750

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

750751

steps:

751752

- name: Checkout

@@ -1118,6 +1119,7 @@ jobs:

11181119

timeout-minutes: 60

11191120

strategy:

11201121

fail-fast: false

1122+

max-parallel: 8

11211123

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

11221124

steps:

11231125

- name: Checkout

@@ -1355,6 +1357,7 @@ jobs:

13551357

timeout-minutes: 20

13561358

strategy:

13571359

fail-fast: false

1360+

max-parallel: 3

13581361

matrix:

13591362

include:

13601363

- check_name: check-preflight-guards

@@ -1495,6 +1498,7 @@ jobs:

14951498

timeout-minutes: 20

14961499

strategy:

14971500

fail-fast: false

1501+

max-parallel: 3

14981502

matrix:

14991503

include:

15001504

- check_name: check-additional-boundaries

Original file line numberDiff line numberDiff line change

@@ -62,7 +62,7 @@ Local changed-lane logic lives in `scripts/changed-lanes.mjs` and is executed by

6262
6363

On pushes, the `checks` matrix adds the push-only `compat-node22` lane. On pull requests, that lane is skipped and the matrix stays focused on the normal test/channel lanes.

6464
65-

The slowest Node test families are split or balanced so each job stays small: channel contracts split registry and core coverage into six weighted shards total, bundled plugin tests balance across six extension workers, auto-reply runs as three balanced workers instead of six tiny workers, and agentic gateway/plugin configs are spread across the existing source-only agentic Node jobs 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. The broad agents lane uses the shared Vitest file-parallel scheduler because it is import/scheduling dominated rather than owned by a single slow test file. `runtime-config` runs with the infra core-runtime shard to keep the shared runtime shard from owning the tail. `check-additional` keeps package-boundary compile/canary work together and separates runtime topology architecture from gateway watch coverage; the boundary guard shard runs its small independent guards concurrently inside one job. Gateway watch, channel tests, and the core support-boundary shard run concurrently inside `build-artifacts` after `dist/` and `dist-runtime/` are already built, keeping their old check names as lightweight verifier jobs while avoiding two extra Blacksmith workers and a second artifact-consumer queue.

65+

The slowest Node test families are split or balanced so each job stays small without over-reserving runners: channel contracts run as three weighted shards, bundled plugin tests balance across six extension workers, small core unit lanes are paired, auto-reply runs as three balanced workers instead of six tiny workers, and agentic gateway/plugin configs are spread across the existing source-only agentic Node jobs 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. The broad agents lane uses the shared Vitest file-parallel scheduler because it is import/scheduling dominated rather than owned by a single slow test file. `runtime-config` runs with the infra core-runtime shard to keep the shared runtime shard from owning the tail. `check-additional` keeps package-boundary compile/canary work together and separates runtime topology architecture from gateway watch coverage; the boundary guard shard runs its small independent guards concurrently inside one job. Gateway watch, channel tests, and the core support-boundary shard run concurrently inside `build-artifacts` after `dist/` and `dist-runtime/` are already built, keeping their old check names as lightweight verifier jobs while avoiding two extra Blacksmith workers and a second artifact-consumer queue.

6666

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

6767

`extension-fast` is PR-only because push runs already execute the full bundled plugin shards. That keeps changed-plugin feedback for reviews without reserving an extra Blacksmith worker on `main` for coverage already present in `checks-node-extensions`.

6868
Original file line numberDiff line numberDiff line change

@@ -41,14 +41,9 @@ export function createChannelContractTestShards() {

4141

const rootDir = "src/channels/plugins/contracts";

4242

const suffixes = ["a", "b", "c"];

4343

const groups = Object.fromEntries(

44-

["registry", "core"].flatMap((family) =>

45-

suffixes.map((suffix) => [`checks-fast-contracts-channels-${family}-${suffix}`, []]),

46-

),

44+

suffixes.map((suffix) => [`checks-fast-contracts-channels-${suffix}`, []]),

4745

);

48-

const groupKeys = {

49-

core: suffixes.map((suffix) => `checks-fast-contracts-channels-core-${suffix}`),

50-

registry: suffixes.map((suffix) => `checks-fast-contracts-channels-registry-${suffix}`),

51-

};

46+

const groupKeys = suffixes.map((suffix) => `checks-fast-contracts-channels-${suffix}`);

5247

const weights = Object.fromEntries(Object.keys(groups).map((key) => [key, 0]));

5348

const pushBalanced = (keys, file) => {

5449

const target = keys.toSorted((a, b) => weights[a] - weights[b] || a.localeCompare(b))[0];

@@ -71,10 +66,10 @@ export function createChannelContractTestShards() {

7166

return delta === 0 ? left.localeCompare(right) : delta;

7267

};

7368

for (const file of registryFiles.toSorted(byDescendingWeight)) {

74-

pushBalanced(groupKeys.registry, file);

69+

pushBalanced(groupKeys, file);

7570

}

7671

for (const file of coreFiles.toSorted(byDescendingWeight)) {

77-

pushBalanced(groupKeys.core, file);

72+

pushBalanced(groupKeys, file);

7873

}

7974
8075

return Object.entries(groups).map(([checkName, includePatterns]) => ({

Original file line numberDiff line numberDiff line change

@@ -87,6 +87,36 @@ function createAutoReplyReplySplitShards() {

8787

}

8888
8989

const SPLIT_NODE_SHARDS = new Map([

90+

[

91+

"core-unit-fast",

92+

[

93+

{

94+

shardName: "core-unit-fast-support",

95+

configs: [

96+

"test/vitest/vitest.unit-fast.config.ts",

97+

"test/vitest/vitest.unit-support.config.ts",

98+

],

99+

includeExternalConfigs: true,

100+

requiresDist: false,

101+

},

102+

],

103+

],

104+

[

105+

"core-unit-src",

106+

[

107+

{

108+

shardName: "core-unit-src-security",

109+

configs: [

110+

"test/vitest/vitest.unit-src.config.ts",

111+

"test/vitest/vitest.unit-security.config.ts",

112+

],

113+

includeExternalConfigs: true,

114+

requiresDist: false,

115+

},

116+

],

117+

],

118+

["core-unit-security", []],

119+

["core-unit-support", []],

90120

[

91121

"core-runtime",

92122

[

@@ -205,7 +235,9 @@ export function createNodeTestShards() {

205235

const splitShards = SPLIT_NODE_SHARDS.get(shard.name);

206236

if (splitShards) {

207237

return splitShards.flatMap((splitShard) => {

208-

const splitConfigs = splitShard.configs.filter((config) => configs.includes(config));

238+

const splitConfigs = splitShard.includeExternalConfigs

239+

? splitShard.configs

240+

: splitShard.configs.filter((config) => configs.includes(config));

209241

if (splitConfigs.length === 0) {

210242

return [];

211243

}

Original file line numberDiff line numberDiff line change

@@ -25,13 +25,11 @@ describe("scripts/lib/channel-contract-test-plan.mjs", () => {

2525

task: shard.task,

2626

})),

2727

).toEqual(

28-

["registry", "core"].flatMap((family) =>

29-

suffixes.map((suffix) => ({

30-

checkName: `checks-fast-contracts-channels-${family}-${suffix}`,

31-

runtime: "node",

32-

task: "contracts-channels",

33-

})),

34-

),

28+

suffixes.map((suffix) => ({

29+

checkName: `checks-fast-contracts-channels-${suffix}`,

30+

runtime: "node",

31+

task: "contracts-channels",

32+

})),

3533

);

3634

});

3735

@@ -45,13 +43,11 @@ describe("scripts/lib/channel-contract-test-plan.mjs", () => {

4543

});

4644
4745

it("keeps registry-backed surface shards spread across checks", () => {

48-

for (const shard of createChannelContractTestShards().filter((entry) =>

49-

entry.checkName.includes("-registry-"),

50-

)) {

46+

for (const shard of createChannelContractTestShards()) {

5147

const surfaceRegistryFiles = shard.includePatterns.filter((pattern) =>

5248

pattern.includes("/surfaces-only.registry-backed-shard-"),

5349

);

54-

expect(surfaceRegistryFiles.length).toBeLessThanOrEqual(3);

50+

expect(surfaceRegistryFiles.length).toBeLessThanOrEqual(4);

5551

}

5652

});

5753

});

Original file line numberDiff line numberDiff line change

@@ -25,6 +25,40 @@ function listTestFiles(rootDir: string): string[] {

2525

}

2626
2727

describe("scripts/lib/ci-node-test-plan.mjs", () => {

28+

it("combines the small core unit shards to reduce CI runner fanout", () => {

29+

const coreUnitShards = createNodeTestShards()

30+

.filter((shard) => shard.shardName.startsWith("core-unit-"))

31+

.map((shard) => ({

32+

configs: shard.configs,

33+

requiresDist: shard.requiresDist,

34+

shardName: shard.shardName,

35+

}));

36+
37+

expect(coreUnitShards).toEqual([

38+

{

39+

configs: [

40+

"test/vitest/vitest.unit-fast.config.ts",

41+

"test/vitest/vitest.unit-support.config.ts",

42+

],

43+

requiresDist: false,

44+

shardName: "core-unit-fast-support",

45+

},

46+

{

47+

configs: [

48+

"test/vitest/vitest.unit-src.config.ts",

49+

"test/vitest/vitest.unit-security.config.ts",

50+

],

51+

requiresDist: false,

52+

shardName: "core-unit-src-security",

53+

},

54+

{

55+

configs: ["test/vitest/vitest.unit-ui.config.ts"],

56+

requiresDist: false,

57+

shardName: "core-unit-ui",

58+

},

59+

]);

60+

});

61+
2862

it("names the node shard checks as core test lanes", () => {

2963

const shards = createNodeTestShards();

3064