test(ci): 测试门禁 - 更新断言与放宽后端用例超时
This commit is contained in:
4
.github/workflows/quality.yml
vendored
4
.github/workflows/quality.yml
vendored
@@ -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: |
|
||||
|
||||
@@ -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` 迁移与回滚方案;不得在生产服务器手工改数据库或代码。
|
||||
|
||||
@@ -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("服务协议名称与条款");
|
||||
|
||||
Reference in New Issue
Block a user