mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 19:40:42 +00:00
ci: start runtime tests without dist
This commit is contained in:
@@ -90,7 +90,7 @@ const SPLIT_NODE_SHARDS = new Map([
|
|||||||
"test/vitest/vitest.logging.config.ts",
|
"test/vitest/vitest.logging.config.ts",
|
||||||
"test/vitest/vitest.process.config.ts",
|
"test/vitest/vitest.process.config.ts",
|
||||||
],
|
],
|
||||||
requiresDist: true,
|
requiresDist: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
shardName: "core-runtime-media-ui",
|
shardName: "core-runtime-media-ui",
|
||||||
@@ -101,7 +101,7 @@ const SPLIT_NODE_SHARDS = new Map([
|
|||||||
"test/vitest/vitest.ui.config.ts",
|
"test/vitest/vitest.ui.config.ts",
|
||||||
"test/vitest/vitest.wizard.config.ts",
|
"test/vitest/vitest.wizard.config.ts",
|
||||||
],
|
],
|
||||||
requiresDist: true,
|
requiresDist: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
shardName: "core-runtime-shared",
|
shardName: "core-runtime-shared",
|
||||||
@@ -112,7 +112,7 @@ const SPLIT_NODE_SHARDS = new Map([
|
|||||||
"test/vitest/vitest.tasks.config.ts",
|
"test/vitest/vitest.tasks.config.ts",
|
||||||
"test/vitest/vitest.utils.config.ts",
|
"test/vitest/vitest.utils.config.ts",
|
||||||
],
|
],
|
||||||
requiresDist: true,
|
requiresDist: false,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
@@ -176,7 +176,7 @@ const SPLIT_NODE_SHARDS = new Map([
|
|||||||
],
|
],
|
||||||
],
|
],
|
||||||
]);
|
]);
|
||||||
const DIST_DEPENDENT_NODE_SHARD_NAMES = new Set(["core-support-boundary", "core-runtime"]);
|
const DIST_DEPENDENT_NODE_SHARD_NAMES = new Set(["core-support-boundary"]);
|
||||||
|
|
||||||
function formatNodeTestShardCheckName(shardName) {
|
function formatNodeTestShardCheckName(shardName) {
|
||||||
const normalizedShardName = shardName.startsWith("core-unit-")
|
const normalizedShardName = shardName.startsWith("core-unit-")
|
||||||
|
|||||||
@@ -53,16 +53,10 @@ describe("scripts/lib/ci-node-test-plan.mjs", () => {
|
|||||||
.filter((shard) => shard.requiresDist)
|
.filter((shard) => shard.requiresDist)
|
||||||
.map((shard) => shard.shardName);
|
.map((shard) => shard.shardName);
|
||||||
|
|
||||||
expect(requiresDistShardNames).toEqual([
|
expect(requiresDistShardNames).toEqual(["core-support-boundary", "agentic-plugins"]);
|
||||||
"core-support-boundary",
|
|
||||||
"core-runtime-infra",
|
|
||||||
"core-runtime-media-ui",
|
|
||||||
"core-runtime-shared",
|
|
||||||
"agentic-plugins",
|
|
||||||
]);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it("splits core runtime configs into smaller dist-dependent shards", () => {
|
it("splits core runtime configs into smaller source-only shards", () => {
|
||||||
const runtimeShards = createNodeTestShards()
|
const runtimeShards = createNodeTestShards()
|
||||||
.filter((shard) => shard.shardName.startsWith("core-runtime-"))
|
.filter((shard) => shard.shardName.startsWith("core-runtime-"))
|
||||||
.map((shard) => ({
|
.map((shard) => ({
|
||||||
@@ -81,7 +75,7 @@ describe("scripts/lib/ci-node-test-plan.mjs", () => {
|
|||||||
"test/vitest/vitest.logging.config.ts",
|
"test/vitest/vitest.logging.config.ts",
|
||||||
"test/vitest/vitest.process.config.ts",
|
"test/vitest/vitest.process.config.ts",
|
||||||
],
|
],
|
||||||
requiresDist: true,
|
requiresDist: false,
|
||||||
shardName: "core-runtime-infra",
|
shardName: "core-runtime-infra",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -92,7 +86,7 @@ describe("scripts/lib/ci-node-test-plan.mjs", () => {
|
|||||||
"test/vitest/vitest.ui.config.ts",
|
"test/vitest/vitest.ui.config.ts",
|
||||||
"test/vitest/vitest.wizard.config.ts",
|
"test/vitest/vitest.wizard.config.ts",
|
||||||
],
|
],
|
||||||
requiresDist: true,
|
requiresDist: false,
|
||||||
shardName: "core-runtime-media-ui",
|
shardName: "core-runtime-media-ui",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -103,7 +97,7 @@ describe("scripts/lib/ci-node-test-plan.mjs", () => {
|
|||||||
"test/vitest/vitest.tasks.config.ts",
|
"test/vitest/vitest.tasks.config.ts",
|
||||||
"test/vitest/vitest.utils.config.ts",
|
"test/vitest/vitest.utils.config.ts",
|
||||||
],
|
],
|
||||||
requiresDist: true,
|
requiresDist: false,
|
||||||
shardName: "core-runtime-shared",
|
shardName: "core-runtime-shared",
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
|||||||
Reference in New Issue
Block a user