Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

test(ios-simulator): document manual HID validation instead of PR workflow

DavidShen98d3803c77cf
diff --git a/.github/workflows/ios-simulator-hid-regression.yml b/.github/workflows/ios-simulator-hid-regression.yml
deleted file mode 100644
index 332a39dcda..0000000000
--- a/.github/workflows/ios-simulator-hid-regression.yml
+++ /dev/null
@@ -1,38 +0,0 @@
-name: ios-simulator-hid-regression
-
-on:
- pull_request:
- paths:
- - ".github/workflows/ios-simulator-hid-regression.yml"
- - "packages/ios-simulator-runtime/native/hid-compatibility.swift"
- - "packages/ios-simulator-runtime/native/ios-simulator-sidecar.swift"
- - "packages/ios-simulator-runtime/native/tests/hid-compatibility-checks.swift"
- - "packages/ios-simulator-runtime/src/native-sidecar/hid-compatibility.test.ts"
- workflow_dispatch:
-
-permissions:
- contents: read
-
-concurrency:
- group: ios-simulator-hid-regression-${{ github.event.pull_request.number || github.ref }}
- cancel-in-progress: true
-
-jobs:
- hid-regression:
- runs-on: macos-15
- timeout-minutes: 10
- steps:
- - name: Checkout client
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
-
- # Uses the exact Swift source linked into the helper. These checks use
- # synthetic screen metadata and do not boot or control any simulator.
- - name: Compile HID regression checks
- run: |
- xcrun swiftc \
- packages/ios-simulator-runtime/native/hid-compatibility.swift \
- packages/ios-simulator-runtime/native/tests/hid-compatibility-checks.swift \
- -o "$RUNNER_TEMP/cindy-hid-checks"
-
- - name: Run HID regression checks
- run: '"$RUNNER_TEMP/cindy-hid-checks"'
diff --git a/packages/ios-simulator-runtime/src/native-sidecar/hid-compatibility.test.ts b/packages/ios-simulator-runtime/src/native-sidecar/hid-compatibility.test.ts
index ad4efeb24d..0969ebb24e 100644
--- a/packages/ios-simulator-runtime/src/native-sidecar/hid-compatibility.test.ts
+++ b/packages/ios-simulator-runtime/src/native-sidecar/hid-compatibility.test.ts
@@ -9,6 +9,17 @@ import { expect, it } from "vitest";
const run = promisify(execFile);
+/**
+ * 手动验证(macOS,已安装 Xcode 工具链及仓库依赖):
+ * 1. 通过 DEVELOPER_DIR 选择待验证的 Xcode 安装目录下的 Contents/Developer,
+ * 用 xcrun swiftc --version 确认工具链;分别验证 Xcode 26.6 和 27。
+ * 2. 在仓库根目录执行:
+ * pnpm --filter @cindy/ios-simulator-runtime exec vitest run src/native-sidecar/hid-compatibility.test.ts
+ * 3. 确认该用例通过且未跳过。它编译生产共用的 Swift 源码,检查屏幕目标映射、
+ * 异步完成与超时隔离;临时二进制会自动清理。
+ * Linux/Windows 会跳过此用例,不能视为 HID 回归已验证。这里使用合成屏幕元数据,
+ * 不启动模拟器;真实模拟器的点击、拖动及旋转后触控仍需单独验收。
+ */
it.skipIf(process.platform !== "darwin")(
"executes the helper's screen-target and delivery-completion regression checks",
async () => {