mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-12 21:53:00 -06:00
perf(ci): shorten stalled gateway retry
This commit is contained in:
@@ -16,6 +16,11 @@ const BUNDLED_NODE_TEST_RUNNER = "blacksmith-4vcpu-ubuntu-2404";
|
||||
// Startup-core transforms the broad gateway graph before its assertions run.
|
||||
// Keep enough CPU here to avoid spending minutes in Vitest imports on 4 vCPU.
|
||||
const GATEWAY_STARTUP_CORE_RUNNER = DEFAULT_NODE_TEST_RUNNER;
|
||||
// This cold gateway graph can stall after warming Vitest's module cache; its
|
||||
// retry completes in seconds, so do not spend the global five-minute timeout.
|
||||
const GATEWAY_STARTUP_HEALTH_RUNTIME_ENV = {
|
||||
OPENCLAW_VITEST_NO_OUTPUT_TIMEOUT_MS: "60000",
|
||||
};
|
||||
const MAX_BUNDLED_NODE_TEST_PATTERNS = 64;
|
||||
const COMPACT_NODE_TEST_JOB_WEIGHT = 192;
|
||||
const COMPACT_NODE_TEST_JOB_GROUPS = 8;
|
||||
@@ -436,6 +441,10 @@ function createGatewayServerSplitShards() {
|
||||
]
|
||||
.map((shardName) => ({
|
||||
configs: ["test/vitest/vitest.gateway-server.config.ts"],
|
||||
env:
|
||||
shardName === "agentic-control-plane-startup-health-runtime"
|
||||
? GATEWAY_STARTUP_HEALTH_RUNTIME_ENV
|
||||
: undefined,
|
||||
includePatterns: groups.get(shardName) ?? [],
|
||||
requiresDist: false,
|
||||
runner:
|
||||
|
||||
@@ -132,6 +132,10 @@ describe("scripts/lib/ci-node-test-plan.mjs", () => {
|
||||
expect(bundled.find((shard) => shard.shardName === "core-unit-fast")?.runner).toBe(
|
||||
DEFAULT_NODE_TEST_RUNNER,
|
||||
);
|
||||
expect(
|
||||
bundled.find((shard) => shard.shardName === "agentic-control-plane-startup-health-runtime")
|
||||
?.env,
|
||||
).toEqual({ OPENCLAW_VITEST_NO_OUTPUT_TIMEOUT_MS: "60000" });
|
||||
expect(
|
||||
bundled.find((shard) => shard.shardName === "agentic-control-plane-startup-core")?.runner,
|
||||
).toBe(DEFAULT_NODE_TEST_RUNNER);
|
||||
@@ -194,6 +198,11 @@ describe("scripts/lib/ci-node-test-plan.mjs", () => {
|
||||
(group) => group.shard_name === "agentic-control-plane-startup-core",
|
||||
)?.runner,
|
||||
).toBe(DEFAULT_NODE_TEST_RUNNER);
|
||||
expect(
|
||||
compact
|
||||
.flatMap((shard) => shard.groups)
|
||||
.find((group) => group.shard_name === "agentic-control-plane-startup-health-runtime")?.env,
|
||||
).toEqual({ OPENCLAW_VITEST_NO_OUTPUT_TIMEOUT_MS: "60000" });
|
||||
expect(
|
||||
compact
|
||||
.filter((shard) => shard.groups.some((group) => !group.includePatterns))
|
||||
@@ -666,6 +675,9 @@ describe("scripts/lib/ci-node-test-plan.mjs", () => {
|
||||
controlPlaneShards.map((shard) => ({
|
||||
checkName: `checks-node-${shard.shardName}`,
|
||||
configs: ["test/vitest/vitest.gateway-server.config.ts"],
|
||||
...(shard.shardName === "agentic-control-plane-startup-health-runtime"
|
||||
? { env: { OPENCLAW_VITEST_NO_OUTPUT_TIMEOUT_MS: "60000" } }
|
||||
: {}),
|
||||
includePatterns: shard.includePatterns,
|
||||
requiresDist: false,
|
||||
runner:
|
||||
|
||||
Reference in New Issue
Block a user