mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 14:20:44 +00:00
ci: reduce node runner fanout
This commit is contained in:
@@ -87,6 +87,36 @@ function createAutoReplyReplySplitShards() {
|
||||
}
|
||||
|
||||
const SPLIT_NODE_SHARDS = new Map([
|
||||
[
|
||||
"core-unit-fast",
|
||||
[
|
||||
{
|
||||
shardName: "core-unit-fast-support",
|
||||
configs: [
|
||||
"test/vitest/vitest.unit-fast.config.ts",
|
||||
"test/vitest/vitest.unit-support.config.ts",
|
||||
],
|
||||
includeExternalConfigs: true,
|
||||
requiresDist: false,
|
||||
},
|
||||
],
|
||||
],
|
||||
[
|
||||
"core-unit-src",
|
||||
[
|
||||
{
|
||||
shardName: "core-unit-src-security",
|
||||
configs: [
|
||||
"test/vitest/vitest.unit-src.config.ts",
|
||||
"test/vitest/vitest.unit-security.config.ts",
|
||||
],
|
||||
includeExternalConfigs: true,
|
||||
requiresDist: false,
|
||||
},
|
||||
],
|
||||
],
|
||||
["core-unit-security", []],
|
||||
["core-unit-support", []],
|
||||
[
|
||||
"core-runtime",
|
||||
[
|
||||
@@ -205,7 +235,9 @@ export function createNodeTestShards() {
|
||||
const splitShards = SPLIT_NODE_SHARDS.get(shard.name);
|
||||
if (splitShards) {
|
||||
return splitShards.flatMap((splitShard) => {
|
||||
const splitConfigs = splitShard.configs.filter((config) => configs.includes(config));
|
||||
const splitConfigs = splitShard.includeExternalConfigs
|
||||
? splitShard.configs
|
||||
: splitShard.configs.filter((config) => configs.includes(config));
|
||||
if (splitConfigs.length === 0) {
|
||||
return [];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user