CI / Static checks (push) Has been cancelled
CI / Production build (push) Has been cancelled
CI / API integration (push) Has been cancelled
CI / Taro builds (acheng-campus-food) (push) Has been cancelled
CI / Taro builds (atelier-solopreneur) (push) Has been cancelled
CI / Taro builds (linjing-editorial) (push) Has been cancelled
CI / Browser regression (push) Has been cancelled
441 lines
14 KiB
Plaintext
441 lines
14 KiB
Plaintext
|
|
> @personal-brand/api@ test /home/que01/Project/persionalBrand/apps/api
|
|
> tsx --test test/**/*.test.ts
|
|
|
|
TAP version 13
|
|
# Subtest: 构建 worker 异常退出时返回明确非零结果
|
|
ok 1 - 构建 worker 异常退出时返回明确非零结果
|
|
---
|
|
duration_ms: 80.679734
|
|
type: 'test'
|
|
...
|
|
# Subtest: 构建 worker watchdog 超时会终止子进程并返回 timedOut
|
|
ok 2 - 构建 worker watchdog 超时会终止子进程并返回 timedOut
|
|
---
|
|
duration_ms: 36.587105
|
|
type: 'test'
|
|
...
|
|
# Subtest: 构建进度更新不触发发布状态机的顺序校验
|
|
ok 3 - 构建进度更新不触发发布状态机的顺序校验
|
|
---
|
|
duration_ms: 1.684099
|
|
type: 'test'
|
|
...
|
|
# Subtest: 构建进度更新按品牌隔离,任务不存在时抛出 404
|
|
ok 4 - 构建进度更新按品牌隔离,任务不存在时抛出 404
|
|
---
|
|
duration_ms: 0.989713
|
|
type: 'test'
|
|
...
|
|
# Subtest: 重新构建时可以清除上一次遗留的错误信息
|
|
ok 5 - 重新构建时可以清除上一次遗留的错误信息
|
|
---
|
|
duration_ms: 0.32377
|
|
type: 'test'
|
|
...
|
|
# Subtest: 发布状态机仍拒绝越级变更并允许合法上传流转
|
|
ok 6 - 发布状态机仍拒绝越级变更并允许合法上传流转
|
|
---
|
|
duration_ms: 0.879665
|
|
type: 'test'
|
|
...
|
|
# Subtest: 失败任务重试时可回到 built 并清除错误
|
|
ok 7 - 失败任务重试时可回到 built 并清除错误
|
|
---
|
|
duration_ms: 0.423466
|
|
type: 'test'
|
|
...
|
|
# Subtest: settings presentation never exposes plaintext credentials
|
|
ok 8 - settings presentation never exposes plaintext credentials
|
|
---
|
|
duration_ms: 2.507469
|
|
type: 'test'
|
|
...
|
|
# Subtest: update validates URL and private key before persistence
|
|
ok 9 - update validates URL and private key before persistence
|
|
---
|
|
duration_ms: 2.477873
|
|
type: 'test'
|
|
...
|
|
# Subtest: update encrypts a valid private key and preserves existing settings
|
|
ok 10 - update encrypts a valid private key and preserves existing settings
|
|
---
|
|
duration_ms: 2.609961
|
|
type: 'test'
|
|
...
|
|
# Subtest: upload blocks a currently building task before credentials are read
|
|
ok 11 - upload blocks a currently building task before credentials are read
|
|
---
|
|
duration_ms: 2.803565
|
|
type: 'test'
|
|
...
|
|
# Subtest: upload rejects invalid app configuration before building
|
|
ok 12 - upload rejects invalid app configuration before building
|
|
---
|
|
duration_ms: 0.739001
|
|
type: 'test'
|
|
...
|
|
# Subtest: failed build records logs and build failure state
|
|
ok 13 - failed build records logs and build failure state
|
|
---
|
|
duration_ms: 11.162244
|
|
type: 'test'
|
|
...
|
|
# Subtest: missing artifact records build failure without invoking upload
|
|
ok 14 - missing artifact records build failure without invoking upload
|
|
---
|
|
duration_ms: 1.657659
|
|
type: 'test'
|
|
...
|
|
# Subtest: upload rejects missing credentials before build
|
|
ok 15 - upload rejects missing credentials before build
|
|
---
|
|
duration_ms: 0.580422
|
|
type: 'test'
|
|
...
|
|
# Subtest: local mode reports configuration and returns a relative local upload URL
|
|
ok 16 - local mode reports configuration and returns a relative local upload URL
|
|
---
|
|
duration_ms: 19.254692
|
|
type: 'test'
|
|
...
|
|
# Subtest: upload service validates media type and traversal keys before persistence
|
|
ok 17 - upload service validates media type and traversal keys before persistence
|
|
---
|
|
duration_ms: 5.35153
|
|
type: 'test'
|
|
...
|
|
# Subtest: refactored admin controllers preserve their declared API routes
|
|
ok 18 - refactored admin controllers preserve their declared API routes
|
|
---
|
|
duration_ms: 2.171245
|
|
type: 'test'
|
|
...
|
|
# Subtest: root module composes bounded feature modules only
|
|
ok 19 - root module composes bounded feature modules only
|
|
---
|
|
duration_ms: 0.224672
|
|
type: 'test'
|
|
...
|
|
# Subtest: 创建普通套餐订单时保存价格快照和预计金额
|
|
ok 20 - 创建普通套餐订单时保存价格快照和预计金额
|
|
---
|
|
duration_ms: 3.15675
|
|
type: 'test'
|
|
...
|
|
# Subtest: 普通套餐不能在没有明细时创建
|
|
ok 21 - 普通套餐不能在没有明细时创建
|
|
---
|
|
duration_ms: 1.103406
|
|
type: 'test'
|
|
...
|
|
# Subtest: 客户只能取消自己的 received 订单
|
|
ok 22 - 客户只能取消自己的 received 订单
|
|
---
|
|
duration_ms: 0.528334
|
|
type: 'test'
|
|
...
|
|
# Subtest: 取消不存在或不属于当前客户的订单返回不存在
|
|
ok 23 - 取消不存在或不属于当前客户的订单返回不存在
|
|
---
|
|
duration_ms: 0.329831
|
|
type: 'test'
|
|
...
|
|
# Subtest: 订单状态只能按定义的状态机流转
|
|
ok 24 - 订单状态只能按定义的状态机流转
|
|
---
|
|
duration_ms: 0.789666
|
|
type: 'test'
|
|
...
|
|
# Subtest: 更新订单标签时拒绝其他品牌的标签
|
|
ok 25 - 更新订单标签时拒绝其他品牌的标签
|
|
---
|
|
duration_ms: 0.44106
|
|
type: 'test'
|
|
...
|
|
# Subtest: 开发 seed 引用的本地媒体都有随仓库分发的源文件
|
|
ok 26 - 开发 seed 引用的本地媒体都有随仓库分发的源文件
|
|
---
|
|
duration_ms: 1.65813
|
|
type: 'test'
|
|
...
|
|
# Subtest: 小程序产物根目录锚定仓库根目录,不随 API 进程工作目录变化
|
|
ok 27 - 小程序产物根目录锚定仓库根目录,不随 API 进程工作目录变化
|
|
---
|
|
duration_ms: 1.317639
|
|
type: 'test'
|
|
...
|
|
# Subtest: 按模板包 key 生成唯一的微信小程序产物目录
|
|
ok 28 - 按模板包 key 生成唯一的微信小程序产物目录
|
|
---
|
|
duration_ms: 0.275849
|
|
type: 'test'
|
|
...
|
|
# Subtest: 显式配置的产物根目录按仓库根目录解析相对路径
|
|
ok 29 - 显式配置的产物根目录按仓库根目录解析相对路径
|
|
---
|
|
duration_ms: 0.170942
|
|
type: 'test'
|
|
...
|
|
# Subtest: 发布产物路径隔离品牌、模板版本和 attempt
|
|
ok 30 - 发布产物路径隔离品牌、模板版本和 attempt
|
|
---
|
|
duration_ms: 0.400984
|
|
type: 'test'
|
|
...
|
|
# Subtest: 发布产物路径拒绝可能越界的品牌或模板字段
|
|
ok 31 - 发布产物路径拒绝可能越界的品牌或模板字段
|
|
---
|
|
duration_ms: 0.578859
|
|
type: 'test'
|
|
...
|
|
# Subtest: 后台配置的请求地址优先于环境变量,改域名不需要动服务端配置
|
|
ok 32 - 后台配置的请求地址优先于环境变量,改域名不需要动服务端配置
|
|
---
|
|
duration_ms: 1.515873
|
|
type: 'test'
|
|
...
|
|
# Subtest: 后台地址允许带路径前缀,保存前会去掉结尾斜杠
|
|
ok 33 - 后台地址允许带路径前缀,保存前会去掉结尾斜杠
|
|
---
|
|
duration_ms: 0.593416
|
|
type: 'test'
|
|
...
|
|
# Subtest: 优先使用 MINIAPP_API_BASE_URL,去掉结尾斜杠
|
|
ok 34 - 优先使用 MINIAPP_API_BASE_URL,去掉结尾斜杠
|
|
---
|
|
duration_ms: 0.192292
|
|
type: 'test'
|
|
...
|
|
# Subtest: 没有显式配置时由 PUBLIC_BASE_URL 加默认 /api 推导
|
|
ok 35 - 没有显式配置时由 PUBLIC_BASE_URL 加默认 /api 推导
|
|
---
|
|
duration_ms: 0.18611
|
|
type: 'test'
|
|
...
|
|
# Subtest: 非 https 的公网地址必须被拒绝,避免再次打出 localhost 包
|
|
ok 36 - 非 https 的公网地址必须被拒绝,避免再次打出 localhost 包
|
|
---
|
|
duration_ms: 0.437694
|
|
type: 'test'
|
|
...
|
|
# Subtest: 本地调试地址允许 http,方便开发环境构建
|
|
ok 37 - 本地调试地址允许 http,方便开发环境构建
|
|
---
|
|
duration_ms: 0.195187
|
|
type: 'test'
|
|
...
|
|
# Subtest: AppID 取品牌配置优先,回落 WEAPP_APP_ID,并拒绝占位值
|
|
ok 38 - AppID 取品牌配置优先,回落 WEAPP_APP_ID,并拒绝占位值
|
|
---
|
|
duration_ms: 0.381347
|
|
type: 'test'
|
|
...
|
|
# Subtest: 构建中的任务在超过阈值未更新时视为已中断
|
|
ok 39 - 构建中的任务在超过阈值未更新时视为已中断
|
|
---
|
|
duration_ms: 1.370659
|
|
type: 'test'
|
|
...
|
|
# Subtest: 非 building 状态永远不算中断,避免误伤正常流程
|
|
ok 40 - 非 building 状态永远不算中断,避免误伤正常流程
|
|
---
|
|
duration_ms: 0.278604
|
|
type: 'test'
|
|
...
|
|
# Subtest: 时间戳异常时按未中断处理,宁可挡住重试也不允许并发构建
|
|
ok 41 - 时间戳异常时按未中断处理,宁可挡住重试也不允许并发构建
|
|
---
|
|
duration_ms: 0.20209
|
|
type: 'test'
|
|
...
|
|
# Subtest: 阈值可通过环境变量覆盖,非法值回退到默认 30 分钟
|
|
ok 42 - 阈值可通过环境变量覆盖,非法值回退到默认 30 分钟
|
|
---
|
|
duration_ms: 0.285577
|
|
type: 'test'
|
|
...
|
|
# Subtest: 构建超时阈值支持环境变量并有独立默认值
|
|
ok 43 - 构建超时阈值支持环境变量并有独立默认值
|
|
---
|
|
duration_ms: 0.203984
|
|
type: 'test'
|
|
...
|
|
# Subtest: CommonJS 形态的 miniprogram-ci 从 default 上取 Project 与 upload
|
|
ok 44 - CommonJS 形态的 miniprogram-ci 从 default 上取 Project 与 upload
|
|
---
|
|
duration_ms: 1.180822
|
|
type: 'test'
|
|
...
|
|
# Subtest: 已是命名导出的模块可以直接使用
|
|
ok 45 - 已是命名导出的模块可以直接使用
|
|
---
|
|
duration_ms: 0.218942
|
|
type: 'test'
|
|
...
|
|
# Subtest: 缺少 Project 或 upload 时抛出明确错误,而不是 undefined is not a constructor
|
|
ok 46 - 缺少 Project 或 upload 时抛出明确错误,而不是 undefined is not a constructor
|
|
---
|
|
duration_ms: 0.67514
|
|
type: 'test'
|
|
...
|
|
# Subtest: 单行私钥(换行被输入框吞掉)可以还原为合法 PEM 并恢复签名能力
|
|
ok 47 - 单行私钥(换行被输入框吞掉)可以还原为合法 PEM 并恢复签名能力
|
|
---
|
|
duration_ms: 46.62352
|
|
type: 'test'
|
|
...
|
|
# Subtest: 字面量 \\n 转义的私钥同样可以还原
|
|
ok 48 - 字面量 \\n 转义的私钥同样可以还原
|
|
---
|
|
duration_ms: 35.171352
|
|
type: 'test'
|
|
...
|
|
# Subtest: 规范化是幂等的,不会反复改写已正确的 PEM
|
|
ok 49 - 规范化是幂等的,不会反复改写已正确的 PEM
|
|
---
|
|
duration_ms: 93.585148
|
|
type: 'test'
|
|
...
|
|
# Subtest: 损坏或非 PEM 内容会被判定为无效,而不是静默保存
|
|
ok 50 - 损坏或非 PEM 内容会被判定为无效,而不是静默保存
|
|
---
|
|
duration_ms: 45.896122
|
|
type: 'test'
|
|
...
|
|
# Subtest: 同一任务同一阶段的有效 lease 拒绝并发操作
|
|
ok 51 - 同一任务同一阶段的有效 lease 拒绝并发操作
|
|
---
|
|
duration_ms: 2.956083
|
|
type: 'test'
|
|
...
|
|
# Subtest: 过期 lease 会先收敛为 timed_out,再允许新的 attempt 接管
|
|
ok 52 - 过期 lease 会先收敛为 timed_out,再允许新的 attempt 接管
|
|
---
|
|
duration_ms: 0.652408
|
|
type: 'test'
|
|
...
|
|
# Subtest: 服务进程重建后从持久化记录恢复,并接管已过期的 build attempt
|
|
ok 53 - 服务进程重建后从持久化记录恢复,并接管已过期的 build attempt
|
|
---
|
|
duration_ms: 0.790237
|
|
type: 'test'
|
|
...
|
|
# Subtest: heartbeat 遇到过期上传 lease 时将任务阶段收敛为 timed_out
|
|
ok 54 - heartbeat 遇到过期上传 lease 时将任务阶段收敛为 timed_out
|
|
---
|
|
duration_ms: 0.830002
|
|
type: 'test'
|
|
...
|
|
# Subtest: 错误 lease 不能结束操作,正确 lease 结束上传后更新阶段状态
|
|
ok 55 - 错误 lease 不能结束操作,正确 lease 结束上传后更新阶段状态
|
|
---
|
|
duration_ms: 0.85031
|
|
type: 'test'
|
|
...
|
|
# Subtest: heartbeat 续租并更新日志,结束后的 attempt 拒绝迟到 heartbeat
|
|
ok 56 - heartbeat 续租并更新日志,结束后的 attempt 拒绝迟到 heartbeat
|
|
---
|
|
duration_ms: 1.451821
|
|
type: 'test'
|
|
...
|
|
# Subtest: 执行结束时 lease 已过期会持久化 timed_out,而不是回滚为 running
|
|
ok 57 - 执行结束时 lease 已过期会持久化 timed_out,而不是回滚为 running
|
|
---
|
|
duration_ms: 0.48344
|
|
type: 'test'
|
|
...
|
|
# Subtest: 上传工作目录位于系统临时目录,不会落在仓库内
|
|
ok 58 - 上传工作目录位于系统临时目录,不会落在仓库内
|
|
---
|
|
duration_ms: 1.278095
|
|
type: 'test'
|
|
...
|
|
# Subtest: miniprogram-ci 的相对路径缓存目录落在临时工作目录而不是仓库
|
|
ok 59 - miniprogram-ci 的相对路径缓存目录落在临时工作目录而不是仓库
|
|
---
|
|
duration_ms: 889.708804
|
|
type: 'test'
|
|
...
|
|
# Subtest: 上传会在临时工作目录下启动,失败也不会在仓库留下目录
|
|
ok 60 - 上传会在临时工作目录下启动,失败也不会在仓库留下目录
|
|
---
|
|
duration_ms: 35.854056
|
|
type: 'test'
|
|
...
|
|
# Subtest: 上传在独立进程执行,失败时返回可读错误且不抛出未捕获异常
|
|
ok 61 - 上传在独立进程执行,失败时返回可读错误且不抛出未捕获异常
|
|
---
|
|
duration_ms: 64.635283
|
|
type: 'test'
|
|
...
|
|
# Subtest: 上传超时会终止子进程并返回明确错误
|
|
ok 62 - 上传超时会终止子进程并返回明确错误
|
|
---
|
|
duration_ms: 5.145082
|
|
type: 'test'
|
|
...
|
|
# Subtest: miniprogram-ci compatibility patches keep overridden runtime APIs usable
|
|
ok 63 - miniprogram-ci compatibility patches keep overridden runtime APIs usable
|
|
---
|
|
duration_ms: 681.182262
|
|
type: 'test'
|
|
...
|
|
# Subtest: public default brand context fails fast when configuration is missing
|
|
ok 64 - public default brand context fails fast when configuration is missing
|
|
---
|
|
duration_ms: 2.103899
|
|
type: 'test'
|
|
...
|
|
# Subtest: every API route has an explicit authorization and success coverage contract
|
|
ok 65 - every API route has an explicit authorization and success coverage contract
|
|
---
|
|
duration_ms: 503.725354
|
|
type: 'test'
|
|
...
|
|
# Subtest: preview resources verify raster content and diagnose invalid or oversized assets
|
|
ok 66 - preview resources verify raster content and diagnose invalid or oversized assets
|
|
---
|
|
duration_ms: 84.808494
|
|
type: 'test'
|
|
...
|
|
# Subtest: preview resources reject image checksum drift and unavailable archives
|
|
ok 67 - preview resources reject image checksum drift and unavailable archives
|
|
---
|
|
duration_ms: 63.867568
|
|
type: 'test'
|
|
...
|
|
# Subtest: template preview matrix discovers newly added package manifests
|
|
ok 68 - template preview matrix discovers newly added package manifests
|
|
---
|
|
duration_ms: 14.07272
|
|
type: 'test'
|
|
...
|
|
# Subtest: template preview matrix keeps every deployed package, industry, and version isolated
|
|
ok 69 - template preview matrix keeps every deployed package, industry, and version isolated
|
|
---
|
|
duration_ms: 923.427842
|
|
type: 'test'
|
|
...
|
|
# Subtest: 模板版本按 SemVer 而不是导入时间判断最新版
|
|
ok 70 - 模板版本按 SemVer 而不是导入时间判断最新版
|
|
---
|
|
duration_ms: 1.899655
|
|
type: 'test'
|
|
...
|
|
# Subtest: 模板版本排序正确处理预发布版本和同版本稳定性
|
|
ok 71 - 模板版本排序正确处理预发布版本和同版本稳定性
|
|
---
|
|
duration_ms: 0.468962
|
|
type: 'test'
|
|
...
|
|
1..71
|
|
# tests 71
|
|
# suites 0
|
|
# pass 71
|
|
# fail 0
|
|
# cancelled 0
|
|
# skipped 0
|
|
# todo 0
|
|
# duration_ms 2561.461139
|