Skip to content

Commit a9f3786

Browse files
authored
Merge pull request #1715 from TraderAlice/codex/test-suite-registry
refactor(tests): register higher-tier suites and colocate units
2 parents f5aab25 + 3a2e05e commit a9f3786

241 files changed

Lines changed: 2899 additions & 3597 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/ci.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ jobs:
6666
run: npx tsc --noEmit
6767
timeout-minutes: 5
6868

69+
- name: Typecheck registered suites
70+
run: pnpm exec tsc -p tests/tsconfig.json --noEmit
71+
timeout-minutes: 5
72+
6973
workspace-build:
7074
needs: source-contracts
7175
if: >-

‎.github/workflows/cli-artifact-acceptance.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
bun-version-file: .bun-version
4949
- run: pnpm install --frozen-lockfile --filter='!@traderalice/desktop'
5050
- run: pnpm build:server
51-
- run: pnpm exec vitest run scripts/cli-signature.spec.mjs scripts/verify-cli-release.spec.mjs
51+
- run: pnpm exec vitest run tests/integration/cli-release-artifacts/cli-signature.spec.mjs tests/integration/cli-release-artifacts/verify-cli-release.spec.mjs
5252
- run: pnpm build:bun-runtime:feasibility
5353
- run: pnpm build:bun:release
5454
- name: Verify the packaged bytes again

‎.github/workflows/cli-installer-smoke.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ on:
4545
- "scripts/sign-cli-macos.mjs"
4646
- "scripts/verify-cli-release.mjs"
4747
- "scripts/build-cli-package-channels.mjs"
48-
- "scripts/build-cli-package-channels.spec.mjs"
48+
- "tests/integration/cli-release-artifacts/build-cli-package-channels.spec.mjs"
4949
- "scripts/pack-cli-npm-packages.mjs"
5050
- "scripts/pack-cli-npm-packages.spec.mjs"
5151
- "scripts/cli-package-manager-smoke.mjs"
5252
- "scripts/cli-release-fixture.mjs"
53-
- "scripts/cli-release-fixture.spec.mjs"
53+
- "tests/integration/cli-release-artifacts/cli-release-fixture.spec.mjs"
5454
- "scripts/cli-system-package-manager-smoke.mjs"
5555
- "scripts/cli-aur-container-smoke.mjs"
5656
- "scripts/cli-aur-container-smoke.spec.mjs"
@@ -60,7 +60,7 @@ on:
6060
- "scripts/cli-legacy-cutover-smoke.spec.mjs"
6161
- "scripts/prepare-cli-previous-release.mjs"
6262
- "scripts/prepare-cli-dev-assets.mjs"
63-
- "scripts/prepare-cli-dev-assets.spec.mjs"
63+
- "tests/integration/cli-release-artifacts/prepare-cli-dev-assets.spec.mjs"
6464
- "scripts/prepare-cli-neutral-inputs.mjs"
6565
- "scripts/prepare-cli-neutral-inputs.spec.mjs"
6666
- "THIRD_PARTY_NOTICES.md"

‎.github/workflows/dev-pr-clean-build.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,6 @@ jobs:
4444

4545
- name: Build complete workspace
4646
run: pnpm build
47+
48+
- name: Typecheck registered suites
49+
run: pnpm exec tsc -p tests/tsconfig.json --noEmit

‎PLANS.md‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,6 @@ the durable truth after it changes. Git history is the archive.
3939
signatures and shared final-archive acceptance for #1670. Draft PR acceptance
4040
remains pending.
4141

42-
- [[plans/test-system-grouping.md]] — Reorganize existing tests by unit,
43-
integration and E2E scope; register only higher-tier suites, consolidate and
44-
prune existing tests. No new test cases or coverage expansion.
45-
4642
- [[plans/compact-notifications.md]] — Approved compact type-specific pop-out
4743
notifications, bounded news/Inbox grouping and optional news thumbnails;
4844
implementation and Draft PR review only, no merge authority.

‎apps/desktop/src/update-lifecycle.spec.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { DesktopUpdateLifecycle } from './update-lifecycle.js'
66
const roots: string[] = []
77
afterEach(async () => { await Promise.all(roots.splice(0).map(root => rm(root, { recursive: true, force: true }))) })
88
async function root() { const value = await mkdtemp(join(tmpdir(), 'desktop-lifecycle-')); roots.push(value); return value }
9-
it('retains native handoff through process restart until exact binary AND required services are ready', async () => {
9+
it('retains native handoff through controller recreation until exact binary AND required services are ready', async () => {
1010
const dir = await root(); let version = '0.94.1-beta.2'
1111
const service = new DesktopUpdateLifecycle(dir, () => version)
1212
const prepare = vi.fn(async () => { expect((await service.snapshot())?.inFlight).toBe('desktop:prepare') })

‎docs/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ GitHub navigation.
1313
| [[docs/project-structure.md]] | [Project structure](project-structure.md) | Process boundaries, source ownership, state roots, architectural entry points |
1414
| [[docs/development-workflow.md]] | [Development workflow](development-workflow.md) | Branches, delivery modes, PRs, promotions, external review, risk gates |
1515
| [[docs/update-lifecycle.md]] | [Update lifecycle](update-lifecycle.md) | Shared inventory, exact-target planning, durable owner coordination and rehearsal |
16-
| [[docs/testing.md]] | [Testing](testing.md) | Unit/integration/E2E scope and registration, topic migration, required gates/run receipts, ownership, execution conditions, selectors, and package-local semantics |
16+
| [[docs/testing.md]] | [Testing](testing.md) | Unit/integration/E2E scope and suite registration, required gates/run receipts, ownership, execution conditions, selectors, and package-local semantics |
1717
| [[docs/managed-workspace-runtime.md]] | [Managed Workspace runtime](managed-workspace-runtime.md) | Electron packaging, managed Pi, PortableGit/Bash, runtime profile, Workspace PATH |
1818
| [[docs/harness-web-surfaces.md]] | [Harness web surfaces](harness-web-surfaces.md) | Harness manifests, managed Studio ports, readiness, routing, transport, lifecycle, and embedding |
1919
| [[docs/model-semantics-and-runtime-injection.md]] | [Model semantics and runtime injection](model-semantics-and-runtime-injection.md) | AI credential access, model semantics, Workspace selection, and native Agent projection |

‎docs/broker-packs.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ Run the focused checks before the repository-wide gates:
262262
```bash
263263
pnpm broker-packs:build
264264
pnpm broker-packs:upgrade-smoke
265-
pnpm vitest run src/services/broker-packs/installer.spec.ts \
265+
pnpm vitest run tests/integration/broker-pack-installation/installer.spec.ts \
266266
services/uta/src/domain/trading/brokers/registry.spec.ts \
267267
ui/src/components/uta/CreateUTADialog.spec.tsx
268268
npx tsc --noEmit

‎docs/cli-installer.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ For installer changes run:
585585

586586
```bash
587587
bash -n install
588-
pnpm exec vitest run packages/cli/src/install.spec.mjs
588+
pnpm exec vitest run tests/e2e/cli-installer/install.spec.mjs
589589
pnpm test:system:installer
590590
npx tsc --noEmit
591591
pnpm test
@@ -597,9 +597,9 @@ For a managed SSH or AliceProject cross-target change, also run:
597597
pnpm test:system:remote
598598
pnpm exec vitest run \\
599599
packages/cli/src/remote.spec.mjs \\
600-
packages/cli/src/project-transfer.spec.ts \\
600+
tests/integration/project-transfer/project-transfer.spec.ts \\
601601
packages/cli/src/project-transfer-ssh.spec.ts \\
602-
packages/cli/src/project-transfer-stream.spec.ts
602+
tests/integration/project-transfer/project-transfer-stream.spec.ts
603603
```
604604

605605
OpenAlice assumes the target is already reachable through ordinary SSH. These

‎docs/cli-package-managers.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,8 +332,8 @@ For channel changes run:
332332

333333
```bash
334334
pnpm exec vitest run \
335-
scripts/cli-release-fixture.spec.mjs \
336-
scripts/build-cli-package-channels.spec.mjs \
335+
tests/integration/cli-release-artifacts/cli-release-fixture.spec.mjs \
336+
tests/integration/cli-release-artifacts/build-cli-package-channels.spec.mjs \
337337
scripts/pack-cli-npm-packages.spec.mjs \
338338
scripts/release-workflow.spec.ts \
339339
packages/cli/src/package-manager.spec.mjs

0 commit comments

Comments
 (0)