A local-first multi-agent app development platform, built on PenguinHarness
ci: shard the Windows job in two and drop its platform-independent steps (#385)
Yaowei Zhengd34e3116235d
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex de193430..18b75bdf 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -95,13 +95,33 @@ jobs:- name: Terminal smoke (node-pty under Electron's Node)run: node packages/desktop/scripts/terminal-smoke.mjs- # Windows: the same build/typecheck/test gates on windows-latest (the ubuntu job above stays the- # required one). The runner ships Git-Bash on PATH, so core's exec_command tests run through the- # shell resolver's bash pick; genuinely POSIX-only tests skip themselves via process.platform- # guards (not CI filters), so local Windows devs see the same behavior. Line endings come from- # .gitattributes (LF working tree), keeping build outputs and fixtures byte-identical.- # No format:check (same files as ubuntu) and no live-LLM e2e here (ubuntu-only budget).+ # Windows: the same build/test gates on windows-latest (the ubuntu job above stays the+ # required one), split into two shards so the process-heavy suites don't share a small+ # runner: `server` gives the pty-streaming suites the whole machine and carries the+ # installer checks, while `packages` runs core alone first (its exec_command suites spawn+ # real shells and read their output under timeouts, races they lose when oversubscribed)+ # and the remaining packages together after it. Every package's tests run exactly once+ # across the two shards. The runner ships Git-Bash on PATH, so core's exec_command tests+ # run through the shell resolver's bash pick; genuinely POSIX-only tests skip themselves+ # via process.platform guards (not CI filters), so local Windows devs see the same+ # behavior. Line endings come from .gitattributes (LF working tree), keeping build+ # outputs and fixtures byte-identical. No format:check and no typecheck (same files as+ # ubuntu, and both results are platform-independent, so the ubuntu job gates them); no+ # live-LLM e2e here (ubuntu-only budget).ci-windows:+ strategy:+ fail-fast: false+ matrix:+ include:+ - shard: server+ tests: pnpm --filter @prismshadow/penguin-server test+ installer: true+ - shard: packages+ tests: >-+ pnpm --filter @prismshadow/penguin-core test &&+ pnpm -r --filter '!@prismshadow/penguin-core' --filter '!@prismshadow/penguin-server' test+ installer: false+ name: ci-windows (${{ matrix.shard }})runs-on: windows-lateststeps:- uses: actions/checkout@v5@@ -120,15 +140,13 @@ jobs:- name: Build (tsup)run: pnpm build- - name: Typecheck (tsc)- run: pnpm typecheck-- name: Unit tests (vitest)- run: pnpm test+ run: ${{ matrix.tests }}# The Linux job cannot validate PowerShell syntax; parse (never execute) the installer# scripts with the real PowerShell parser so a broken install.ps1 cannot ship.- name: Parse installer scripts (PowerShell)+ if: matrix.installershell: pwshrun: |$failed = $false@@ -148,6 +166,7 @@ jobs:if ($failed) { exit 1 }- name: Windows installer tests+ if: matrix.installershell: pwshrun: ./scripts/test-installer.ps1diff --git a/changelog/unreleased/2026-08-21-ci-windows-speed.md b/changelog/unreleased/2026-08-21-ci-windows-speed.mdnew file mode 100644index 00000000..b63d0067--- /dev/null+++ b/changelog/unreleased/2026-08-21-ci-windows-speed.md@@ -0,0 +1,16 @@+# Split the Windows CI job into two test shards++- **Date:** 2026-08-21+- **Type:** process+- **Scope:** `ci`+- **PR:** [#385](https://github.com/Prism-Shadow/penguin-harness/pull/385)++[中文版](2026-08-21-ci-windows-speed.zh.md)++Split `ci-windows` into two parallel shards and dropped the steps that duplicated platform-independent gates, cutting the Windows wall clock roughly in half while every package's tests still run exactly once on Windows.++## Details++- The `server` shard runs the server package's suite alone — the process-heaviest suite gets the whole runner to itself — and carries the PowerShell installer parse and the Windows installer tests.+- The `packages` shard runs core's suite alone first (its `exec_command` tests spawn real shells under timeouts and lose races on an oversubscribed runner), then the remaining six packages together.+- Dropped the Windows `typecheck` step: tsc's result is platform-independent and the ubuntu job gates it — the reasoning the job already applied to `format:check`.diff --git a/changelog/unreleased/2026-08-21-ci-windows-speed.zh.md b/changelog/unreleased/2026-08-21-ci-windows-speed.zh.mdnew file mode 100644index 00000000..bb2613c7--- /dev/null+++ b/changelog/unreleased/2026-08-21-ci-windows-speed.zh.md@@ -0,0 +1,16 @@+# Windows CI 作业拆分为两个测试分片++- **Date:** 2026-08-21+- **Type:** process+- **Scope:** `ci`+- **PR:** [#385](https://github.com/Prism-Shadow/penguin-harness/pull/385)++[English](2026-08-21-ci-windows-speed.md)++把 `ci-windows` 拆成两个并行分片,并去掉了与平台无关门禁重复的步骤,Windows 侧墙钟时间约减半;每个包的测试在 Windows 上仍然恰好各跑一次。++## 详情++- `server` 分片单独运行 server 包的套件——进程开销最大的套件独占整台 runner——并承担 PowerShell 安装脚本解析与 Windows 安装器测试。+- `packages` 分片先单独运行 core 的套件(其 `exec_command` 测试会真实拉起 shell 并在超时内读取输出,在超订阅的 runner 上会输掉竞态),再一并运行其余六个包。+- 去掉了 Windows 上的 `typecheck` 步骤:tsc 的结果与平台无关,由 ubuntu 作业守门——与该作业对 `format:check` 已有的处理同理。