Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
test: retain platform gates and expose explicit e2e entry
DavidShen04394cfbde13
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 8f64e52e7f..98e2993a21 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -143,6 +143,11 @@ jobs:# package script 会传递 npm_execpath,让子进程复用当前 pnpm 入口。run: pnpm run test:workspaces --tier unit+ # 真实进程与 Unix socket 覆盖独立执行一次,不混入日常 unit 或两个分片。+ - name: Run Pi manager integration tests+ if: matrix.shard == 1+ run: pnpm run test:workspaces --tier integration --workspace @cindy/maker-pi-manager+# localDb suites are outside the unit tier; exercise these DB boundaries on both OSes.- name: Run companion database regressionsif: matrix.shard == 1@@ -205,8 +210,13 @@ jobs:GITHUB_TOKEN: ${{ github.token }}run: pnpm install:ripgrep+ # 保留 Windows 路径、进程与锁的自测覆盖,但两个分片只执行一次。+ - name: Run Windows test runner self-tests+ if: matrix.shard == 1+ run: pnpm test:runner+- name: Run client and package unit tests- # test:runner 只在 verify-checks 跑一次。通过 package script 传递+ # 通过 package script 传递# npm_execpath,避免 Windows 子进程退回 PATH 上的 pnpm.cmd。run: pnpm run test:workspaces --tier unitdiff --git a/package.json b/package.jsonindex c5bf3fb7aa..69f10af773 100644--- a/package.json+++ b/package.json@@ -128,6 +128,7 @@"test:unit": "pnpm test:runner && node scripts/test-workspaces.mjs --tier unit","test:unit:related": "node scripts/test-workspaces.mjs --tier unit --related","test:integration": "pnpm test:runner && node scripts/test-workspaces.mjs --tier integration",+ "test:e2e": "pnpm test:runner && node scripts/test-workspaces.mjs --tier e2e","test:all": "pnpm test:runner && node scripts/test-workspaces.mjs --all","test:git-integration": "pnpm test:runner && node scripts/test-workspaces.mjs --tier git-integration","test:db": "pnpm test:runner && node scripts/test-workspaces.mjs --tier db",diff --git a/scripts/__tests__/dev-docs-contract.test.mjs b/scripts/__tests__/dev-docs-contract.test.mjsindex b4d1d8915d..e0e32bd8a3 100644--- a/scripts/__tests__/dev-docs-contract.test.mjs+++ b/scripts/__tests__/dev-docs-contract.test.mjs@@ -294,6 +294,8 @@ test("client CI keeps the complete two-shard unit gate on Windows", () => {assert.match(shards, /^ XDT_UNIT_TEST_SHARD: \$\{\{ matrix\.shard \}\}\/2$/m);assert.match(shards, /^ run: pnpm run test:workspaces --tier unit$/m);assert.doesNotMatch(shards, /pnpm test:unit(?:\s|$)/);+ assert.equal([...shards.matchAll(/^ run: pnpm test:runner$/gm)].length, 1);+ assert.match(shards, /^ - name: Run Windows test runner self-tests\r?\n if: matrix\.shard == 1\r?\n run: pnpm test:runner$/m);const gate = workflowJob(workflow, "windows-unit");assert.ok(gate, "client CI must preserve the stable Windows unit check");@@ -321,6 +323,8 @@ test("client CI runs Linux checks and complete unit shards in parallel behind stassert.match(shards, /^ XDT_UNIT_TEST_SHARD: \$\{\{ matrix\.shard \}\}\/2$/m);assert.match(shards, /^ run: pnpm run test:workspaces --tier unit$/m);assert.doesNotMatch(shards, /pnpm test:(?:unit|runner)/);+ assert.equal([...shards.matchAll(/--tier integration --workspace @cindy\/maker-pi-manager/g)].length, 1);+ assert.match(shards, /^ - name: Run Pi manager integration tests\r?\n if: matrix\.shard == 1\r?\n run: pnpm run test:workspaces --tier integration --workspace @cindy\/maker-pi-manager$/m);const gate = workflowJob(workflow, "verify");assert.ok(gate, "client CI must preserve the stable verify check");diff --git a/scripts/__tests__/test-workspaces.test.mjs b/scripts/__tests__/test-workspaces.test.mjsindex 298353fe0e..dfb6f0fe06 100644--- a/scripts/__tests__/test-workspaces.test.mjs+++ b/scripts/__tests__/test-workspaces.test.mjs@@ -101,6 +101,12 @@ test("root unit and all scripts run runner self-tests before workspace sweep", (test("root db and guard delegate to the workspace runner", () => {const scripts = readRootScripts();+ for (const tier of ["integration", "e2e"]) {+ assert.equal(+ scripts[`test:${tier}`],+ `pnpm test:runner && node scripts/test-workspaces.mjs --tier ${tier}`,+ );+ }assert.equal(scripts["test:git-integration"],"pnpm test:runner && node scripts/test-workspaces.mjs --tier git-integration",