Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
ci: reserve Linux shard time for Broker and Electron tests
WolveBrown08d4039c87fa
diff --git a/docs/ci.md b/docs/ci.mdindex 47967ed84c..6c331c552f 100644--- a/docs/ci.md+++ b/docs/ci.md@@ -137,10 +137,10 @@ instead, slowest first, each to the shard with the least time so far. Thetimes are `scripts/testing/vitest-shard-weights.json`: for each platform(`linux`, `win32`, `darwin`), each file's median seconds on that platform'srunners, for every file over five seconds and every e2e file. A file not in it-counts one second, or the median e2e time if it is an e2e file. Shard 1 of-each platform also runs the `node --test` suites after vitest, about two-minutes on the macOS and Windows runners, so the sequencer starts that shard-at those seconds (`NODE_TESTS_SECONDS`) and gives it that much less vitest.+counts one second, or the median e2e time if it is an e2e file. In a full run,+shard 1 also runs the `node --test` suites after vitest. The sequencer reserves+their measured time (`NODE_TESTS_SECONDS`), about 90 seconds on Linux and two+minutes on macOS and Windows, and gives that shard less vitest work.Every file still runs exactly once, and each shard job logs a`duration-sequencer:` line with its share.diff --git a/scripts/testing/duration-sequencer.test.ts b/scripts/testing/duration-sequencer.test.tsindex e104300d66..d4a021a875 100644--- a/scripts/testing/duration-sequencer.test.ts+++ b/scripts/testing/duration-sequencer.test.ts@@ -49,7 +49,9 @@ describe("vitest shard balance", () => {});it.each(CI_PLATFORMS)("gives no $os shard much more recorded time than the others", ({ platform, count, files }) => {- const { loads } = planShards(files, loadShardWeights(ROOT, platform), count, NODE_TESTS_SECONDS[platform] ?? 0);+ const nodeTests = NODE_TESTS_SECONDS[platform];+ expect(nodeTests, `node:test runs on ${platform} shard 1`).toBeGreaterThan(0);+ const { loads } = planShards(files, loadShardWeights(ROOT, platform), count, nodeTests);const mean = loads.reduce((sum, load) => sum + load, 0) / loads.length;// equal file counts put three of the four slowest e2e files in one shard: ~1.4x the meanexpect(Math.max(...loads) / mean, `recorded seconds per shard: ${loads.join(", ")}`).toBeLessThan(1.05);diff --git a/scripts/testing/duration-sequencer.ts b/scripts/testing/duration-sequencer.tsindex 4ac50fcff8..d24136845c 100644--- a/scripts/testing/duration-sequencer.ts+++ b/scripts/testing/duration-sequencer.ts@@ -48,9 +48,8 @@ function unlistedE2eSeconds(weights: ShardWeights): number {}// Shard 1 of a platform's run also runs the node:test suites after vitest-// (ci.yml's matrix.node_tests): about two minutes on the macOS and Windows-// runners in November 2026, against a 30-minute job cap.-export const NODE_TESTS_SECONDS: Readonly<Partial<Record<NodeJS.Platform, number>>> = { darwin: 120, win32: 105 };+// (ci.yml's matrix.node_tests). These are measured on each platform's runners.+export const NODE_TESTS_SECONDS: Readonly<Partial<Record<NodeJS.Platform, number>>> = { darwin: 120, linux: 90, win32: 105 };// Longest-processing-time first: sort by seconds (ties by key, so the result// never depends on the order vitest found the files), then give each file to