codex/xyx #1
Reference in New Issue
Block a user
No description provided.
Delete Branch "codex/xyx"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
服务端测试回归,当前不建议合并。
在 PR 头提交
910a426上运行:npm run test -w apps/server -- --runInBand
结果为 3 个 test suite / 7 个 test 失败;同一命令在基线
b5ef91b上是 46/46 suites、429 tests 全部通过。问题集中在 apps/server/src/integration/dingtalk.service.ts:225-228:新的 token 缓存命中条件要求 accessTokenCredentialKey 与当前凭证一致,但现有 DingTalk 单测只预置 accessToken 和 tokenExpiresAt,导致缓存不再命中,测试中的首个业务 API mock 被误当成 access_token 响应。受影响的 suite:integration/dingtalk.service.spec.ts、attendance/dingtalk-attendance.service.spec.ts、integration/dingtalk.group-delete.spec.ts。
请更新这些缓存 token 测试桩(或改为显式 mock token 请求),并建议补充三类覆盖:数据库保存配置优先、数据库配置缺失时回退环境变量、凭证变化时刷新 token。修复后再合并。
Pull request closed