ci: ran the mnemopi suite in the workspace bucket

The stated reason for the exclusion no longer holds: no test in
packages/mnemopi loads the fastembed model. The suites that touch embeddings
inject a deterministic in-process provider via setEmbeddingProviderForTests,
and the model-cache suite mocks globalThis.fetch, so nothing downloads or
reads a ~270MB model. On a clean checkout with no model cached, all 448 tests
across 73 files pass on linux-x64 in 11.7s.

packages/mnemopi moves into fastWorkspacePackages, which the workspace bucket
runs and which local-ts already covered through localOnlyWorkspacePackages, so
the local full run is unchanged.
This commit is contained in:
Cyrus
2026-08-01 14:05:41 +08:00
parent 1e492d6ff9
commit 8bbe1ed01d
+3 -7
View File
@@ -82,9 +82,6 @@ const codingAgentBucketPlans: Record<CodingAgentBucket, { label: string; paralle
// Smaller workspace packages stay separate from native/TUI/integration suites so
// their short TS suites can run together. CI still downloads the Linux x64 native
// addon before this bucket: shared utility barrels may load native-backed modules.
// mnemopi is intentionally excluded — its embedding suites depend on a ~270MB
// fastembed model absent from CI runners, so they flake/time out under the parallel
// bucket; run `bun --cwd=packages/mnemopi test` locally instead.
const fastWorkspacePackages = [
"packages/hashline",
"packages/wire",
@@ -94,6 +91,7 @@ const fastWorkspacePackages = [
"packages/ai",
"packages/snapcompact",
"packages/agent",
"packages/mnemopi",
];
// These suites cover the native package, TUI/browser-ish behavior, local servers,
@@ -107,10 +105,8 @@ const nativeAndIntegrationPackages = [
];
// Packages the CI buckets deliberately skip but a local full run should still
// cover. mnemopi's embedding suites need a ~270MB fastembed model absent from CI
// runners (so it flakes/times out there); robomp-web lives under python/robomp
// and is outside every CI TS bucket.
const localOnlyWorkspacePackages = ["packages/mnemopi", "python/robomp/web"];
// cover. robomp-web lives under python/robomp and is outside every CI TS bucket.
const localOnlyWorkspacePackages = ["python/robomp/web"];
const codingAgentNativePathPatterns = [
/(^|\/)[^/]*(bash|native|browser|cmux|mnemopi|hindsight|memory)[^/]*\.test\.ts$/i,