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: keep local E2E shards aligned with CI
Steven Enamakel57fbcea4887f
diff --git a/app/scripts/e2e-run-shards.sh b/app/scripts/e2e-run-shards.shindex 62fb5b63f6..87d823552c 100755--- a/app/scripts/e2e-run-shards.sh+++ b/app/scripts/e2e-run-shards.sh@@ -31,6 +31,7 @@ SHARDS=("foundation:auth,navigation,system""chat:chat,skills,journeys""providers:providers,notifications"+ "provider-web:provider-web""webhooks:webhooks""connectors:connectors""payments:payments"diff --git a/scripts/__tests__/e2e-run-shards.test.mjs b/scripts/__tests__/e2e-run-shards.test.mjsnew file mode 100644index 0000000000..a667a1e072--- /dev/null+++ b/scripts/__tests__/e2e-run-shards.test.mjs@@ -0,0 +1,44 @@+import assert from "node:assert/strict";+import fs from "node:fs";+import path from "node:path";+import test from "node:test";+import { fileURLToPath } from "node:url";++const repoRoot = path.join(+ path.dirname(fileURLToPath(import.meta.url)),+ "..",+ "..",+);++test("local Linux E2E shards cover every CI suite", () => {+ const runner = fs.readFileSync(+ path.join(repoRoot, "app", "scripts", "e2e-run-shards.sh"),+ "utf8",+ );+ const workflow = fs.readFileSync(+ path.join(repoRoot, ".github", "workflows", "e2e-reusable.yml"),+ "utf8",+ );++ const runnerStart = runner.indexOf("SHARDS=(");+ const runnerEnd = runner.indexOf("\n)", runnerStart);+ assert.notEqual(runnerStart, -1, "local shard list is present");+ assert.notEqual(runnerEnd, -1, "local shard list is closed");+ const localShards = Array.from(+ runner.slice(runnerStart, runnerEnd).matchAll(/^\s*"([^:"]+):([^"]+)"$/gm),+ ([, name, suites]) => ({ name, suites }),+ );++ const ciShards = [];+ const seen = new Set();+ for (const [, name, suites] of workflow.matchAll(+ /^\s*- \{ name: ([\w-]+), suites: "([^"]+)" \}$/gm,+ )) {+ if (!seen.has(name)) {+ seen.add(name);+ ciShards.push({ name, suites });+ }+ }++ assert.deepEqual(localShards, ciShards);+});