From cb63b65092b159f642990ce348261074681af023 Mon Sep 17 00:00:00 2001 From: ddcat666 <26564566+ddcat666@users.noreply.github.com> Date: Tue, 29 Sep 2026 08:27:33 +0800 Subject: [PATCH] =?UTF-8?q?test(ci):=20=E6=B5=8B=E8=AF=95=E9=97=A8?= =?UTF-8?q?=E7=A6=81=20-=20=E6=9B=B4=E6=96=B0=E6=96=AD=E8=A8=80=E4=B8=8E?= =?UTF-8?q?=E6=94=BE=E5=AE=BD=E5=90=8E=E7=AB=AF=E7=94=A8=E4=BE=8B=E8=B6=85?= =?UTF-8?q?=E6=97=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/quality.yml | 4 +++- docs/content/docs/progress/pending-test.mdx | 13 +++++++++++++ web/test/auth-registration-agreement.test.ts | 3 ++- 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/.github/workflows/quality.yml b/.github/workflows/quality.yml index e0188375e..d03e65dd6 100644 --- a/.github/workflows/quality.yml +++ b/.github/workflows/quality.yml @@ -51,7 +51,9 @@ jobs: shell: bash run: | set -o pipefail - go test -json ./... | tee "$RUNNER_TEMP/go-tests.jsonl" + # The app package takes roughly nine minutes on a local full run; + # leave margin for slower runners and dependency-backed integration tests. + go test -json -timeout=20m ./... | tee "$RUNNER_TEMP/go-tests.jsonl" - name: Ensure dependency-backed tests were not skipped shell: bash run: | diff --git a/docs/content/docs/progress/pending-test.mdx b/docs/content/docs/progress/pending-test.mdx index 91f41947b..cd19cc12a 100644 --- a/docs/content/docs/progress/pending-test.mdx +++ b/docs/content/docs/progress/pending-test.mdx @@ -2774,3 +2774,16 @@ SSE 现在按 revision 变化发送紧凑快照,无变化只 heartbeat;客 - [ ] 使用真实 Agent 会话完成审批后仅移动节点、再提交生成的端到端验收;后端回归已覆盖该语义,真实模型会话尚未执行。 - [ ] 对含音轨视频做人工听觉验收;当前隔离视频已由浏览器运行时确认音频解码和音量控制可用。 - [ ] 修复或单独核对插件视图数量断言后,再执行后端全量测试;本轮不修改与媒体/Agent 无关的插件注册逻辑。 + +## Pi Agent runtime 与存储边界预发布验证(2026-09-29) + +- 已实现:在线画布 Agent 切换到 Pi 原生会话 runtime;Go 保留权限、工具审批、模型桥和控制检查点,Pi JSONL 会话按运行 ID 持久化;画布能力工具、错误映射、技能渐进读取、运行时镜像依赖和存储运行策略已有回归覆盖。 +- 已修正验证门禁:旧的 2026-09-23 记录称 `TestPluginViewIncludesDocumentationForEveryOfficialProtocol` 固定期望 97、实际 99;当前断言已改为根据官方包和内置插件动态计算数量,该专项现已通过。不要把该历史记录当作当前未解决的失败。 +- 本地自动验证:后端 `go test ./... -count=1 -timeout=15m` 全量通过;PostgreSQL 资产迁移、资源字节修复及画布版本历史依赖用例通过。前端类型检查、退场 lint、全量测试(2096 项)和生产构建通过;文档站 `bun run types:check` 通过。 +- 本机没有 `redis-server`,因此 Redis 租约及缓存白名单两个真实 Redis 用例在全量本地运行中会跳过;质量工作流已安装 Redis、连接 PostgreSQL,并强制检查 5 个依赖型用例均真实执行并通过。需以 GitHub Actions 的结果作为合并/发布门禁。 + +仍待真实环境验收: + +- [ ] GitHub Actions 确认 PostgreSQL / Redis 依赖测试、前后端检查、支付插件双架构 smoke 和 amd64/arm64 镜像构建全部通过后再部署。 +- [ ] 部署后使用真实登录态验证 Agent 多轮会话、Skill 按需读取、工具审批/继续、进程重启后的会话恢复,以及用户/画布之间的会话隔离;不以健康检查替代该链路。 +- [ ] 在隔离数据库备份上验收 schema v42 的 `cloud_agent_pi_sessions` 迁移与回滚方案;不得在生产服务器手工改数据库或代码。 diff --git a/web/test/auth-registration-agreement.test.ts b/web/test/auth-registration-agreement.test.ts index 56a56bf28..a8029aad8 100644 --- a/web/test/auth-registration-agreement.test.ts +++ b/web/test/auth-registration-agreement.test.ts @@ -60,7 +60,8 @@ describe("注册服务协议", () => { const wallet = readFileSync(resolve(import.meta.dir, "../src/services/api/wallet.ts"), "utf8"); const panel = readFileSync(resolve(import.meta.dir, "../src/pages/admin/components/access-settings-panel.tsx"), "utf8"); - expect(auth).toContain("agreementTitle?: string; agreementContent?: string"); + expect(auth).toContain("agreementTitle?: string;"); + expect(auth).toContain("agreementContent?: string;"); expect(wallet).toContain("agreementTitle?: string"); expect(wallet).toContain("agreementContent?: string"); expect(panel).toContain("服务协议名称与条款");