文件
hyb-oa/.trellis/tasks/05-30-deploy-mobile-public-audit/audit.md
T

2.3 KiB
原始文件 Blame 文件历史

部署与审计记录

Deployment

  • 部署目标:https://oa.hyinda.com
  • 部署代码基线:df56d6f,包含移动端工作提交 ba7391e
  • 部署命令:SYNC_ENV=0 LIVE_SMOKE_BASE_URL=https://oa.hyinda.com bash deploy/trialrun/deploy.sh
  • 环境边界:未同步本地 .env
  • 远端结果:Docker build、Prisma migrate status、seed config/trialrun 完成;无待应用 migration
  • 注意项:rsync 提示一个历史 artifact 非空目录无法删除,但未阻断构建、启动和 smoke

Public Checks

  • node deploy/trialrun/validate-env-contract.js:PASS
  • curl -fsS https://oa.hyinda.com/ready:PASS
  • node scripts/qa/check-public-bundle-copy.mjs https://oa.hyinda.com:PASS,findings=0
  • LIVE_SMOKE_BASE_URL=https://oa.hyinda.com bash scripts/qa/run-live-smoke-readiness.sh:PASS
  • live smoke:3 passed
  • live OCR sample:PASS,可解释终态为重复票据类别
  • pending OCR 扫描:SKIP missing DATABASE_URL

Mobile Visual Checks

  • 公网资源移动专项:E2E_BASE_URL=https://oa.hyinda.com npx playwright test tests/e2e/dg7-mobile-information-dedupe.spec.ts tests/e2e/r124-mobile-entry-matrix.spec.ts --workers=1 --reporter=list
  • 结果:6 passed
  • 截图目录:
    • output/playwright/mobile-ia-flow-remediation/
    • output/playwright/r124-mobile-entry-matrix/
  • 抽查页面:移动首页财务卡、待我处理 Tab、移动我的、移动报销。

Code Audit Findings

  • ba7391e 的移动端改动符合已确认边界:请假只读额度、财务卡条件出现、搜索标签 当前列表搜索、审批文案 待我处理、移动我的去掉无条件财务入口。
  • client/src 中未发现旧用户文案 待我审批、搜索报销、搜索采购 或 付款批次未启用 仍作为当前 UI 输出。
  • 发现 live smoke 旧断言:员工 smoke 仍强制要求侧栏 团队,但当前 NavLinks 已按角色隐藏员工团队入口。
  • 已修正:assertMainNavVisible 支持 expectTeam 选项,管理员仍检查团队入口,员工断言团队入口不可见。

Remaining Risk

  • 本轮自动化覆盖公网浏览器和企业微信 UA 近似视口,但没有替代真实手机企业微信真机确认。
  • pending OCR 只因本地缺 DATABASE_URL 记录 SKIP;不代表公网 OCR 队列异常。