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(ci): cover storage-drivers lane activation and target coverage
Steven Enamakel034ed94d0286
diff --git a/.github/workflows/storage-mongodb.yml b/.github/workflows/storage-mongodb.ymlindex 75919575e3..17fb6ec3b2 100644--- a/.github/workflows/storage-mongodb.yml+++ b/.github/workflows/storage-mongodb.yml@@ -17,8 +17,8 @@# - nightly on main, so a driver regression that slipped past a path filter# (for instance a vendor bump) is still caught within a day;# - on demand.-# It is not a required check: it is a lane of its own, so a slow mongod never-# holds up CI Lane results.+# It is not a required check: it is a workflow of its own, so a slow mongod+# never holds up the PR lanes.name: Storage (MongoDB)on:diff --git a/scripts/__tests__/self-hosted-lanes.test.mjs b/scripts/__tests__/self-hosted-lanes.test.mjsindex 67fb54a173..2c8d13214a 100644--- a/scripts/__tests__/self-hosted-lanes.test.mjs+++ b/scripts/__tests__/self-hosted-lanes.test.mjs@@ -235,6 +235,52 @@ test("untouched areas leave only the always-on gates", () => {);});+test("the storage area arms only the storage-drivers lane, with the sqlite and file drivers on", () => {+ for (const profile of ["hosted", "ex63"]) {+ const plan = buildPlan({+ profile,+ areas: { ...NONE, storage: true },+ env: profile === "ex63" ? EX63_ENV : {},+ });+ const on = plan.lanes.flatMap((l) =>+ l.checks.filter((c) => c.when).map((c) => `${l.name}:${c.name}`),+ );+ assert.deepEqual(+ on.filter((id) => id.startsWith("storage-drivers:")),+ [+ "storage-drivers:storage-e2e",+ "storage-drivers:storage-lib-tests",+ "storage-drivers:storage-session-store-tests",+ ],+ profile,+ );+ const lane = plan.lanes.find((l) => l.name === "storage-drivers");+ assert.equal(lane.active, true, profile);+ for (const check of lane.checks) {+ assert.match(check.run, /--features [a-z,-]*storage-sqlite,storage-file/);+ }+ // Every root storage target runs in the lane, so a new one cannot be+ // forgotten: the targets on disk are exactly the targets in the command.+ const e2e = lane.checks.find((c) => c.name === "storage-e2e").run;+ const onDisk = fs+ .readdirSync(path.join(repoRoot, "tests"))+ .filter((f) => /^(storage_.*_e2e|cli_storage_url_e2e)\.rs$/.test(f))+ .map((f) => f.replace(/\.rs$/, ""))+ .sort();+ const inLane = [...e2e.matchAll(/--test (\S+)/g)].map((m) => m[1]).sort();+ assert.deepEqual(inLane, onDisk, profile);+ if (profile === "hosted") {+ assert.deepEqual(+ hostedMatrix(plan).map((g) => g.group),+ ["checks", "storage"],+ );+ }+ }+ // Without the area the lane stays off.+ const off = buildPlan({ profile: "hosted", areas: NONE });+ assert.equal(off.lanes.find((l) => l.name === "storage-drivers").active, false);+});+test("hosted matrix only spins up groups with active lanes", () => {const docsOnly = hostedMatrix(buildPlan({ profile: "hosted", areas: { ...NONE, docs: true } }),