The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
test(e2e): improve shard suite assertion logic
Steven Enamakel3990317d2347
diff --git a/scripts/__tests__/e2e-run-shards.test.mjs b/scripts/__tests__/e2e-run-shards.test.mjsindex 178ce523c9..ea88b25314 100644--- a/scripts/__tests__/e2e-run-shards.test.mjs+++ b/scripts/__tests__/e2e-run-shards.test.mjs@@ -70,6 +70,13 @@ test("local Linux E2E shards cover every CI suite", () => {for (const { spec } of scheduled) assert.ok(fs.existsSync(spec), `scheduled native spec exists: ${spec}`);const suites = new Set(scheduled.map(({ suite }) => suite));const assignedSuites = new Set(localShards.flatMap(({ suites: list }) => list.split(",")));- assert.deepEqual([...suites].sort(), [...assignedSuites].sort());- assert.ok(localShards.every(({ suites: list }) => list.split(",").some((suite) => suites.has(suite))));+ const activeAssignedSuites = new Set([...assignedSuites].filter((suite) => suites.has(suite)));+ assert.equal(suites.size, 11, "the native runner schedules only its 11 nonempty suites");+ assert.deepEqual([...suites].sort(), [...activeAssignedSuites].sort());+ assert.ok(+ localShards.every(({ suites: list }) =>+ list.split(",").some((suite) => activeAssignedSuites.has(suite)),+ ),+ "every OS shard group contains at least one nonempty native suite",+ );});