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

2.5 KiB
原始文件 Blame 文件历史

部署移动端收口并公网复检审计

Goal

将已提交的移动端入口与文案收口改动部署到公网,并完成公网自动复检、代码审计和移动端视觉检查,给出是否可让用户在线测试的结论。

Background

  • 用户已批准“开始部署 公网复检”,并要求随后审计代码和视觉效果。
  • 待部署工作提交为 ba7391e 收口移动端入口与文案(05-30-mobile-confirmed-entry-copy-followups),归档提交为 df56d6f chore(task): 归档移动端入口与文案收敛。
  • 公网是准生产环境,必须使用 SYNC_ENV=0 部署,避免覆盖远端 .env。

Scope

  • 执行当前 main 分支到公网的既有部署脚本。
  • 公网复检:/ready、部署脚本内 smoke、public bundle 文案扫描、可用凭据条件下的 live smoke。
  • 移动视觉检查:重点覆盖移动首页、移动请假、移动报销、移动采购、移动审批、移动我的。
  • 代码审计:复核本次提交对移动入口、文案、条件显示、测试和 spec 的影响,列出风险与建议。

Out Of Scope

  • 不修改生产 .env。
  • 不做真实付款、银行流水导入、ERP 写入或企业微信写入。
  • 不新增业务功能或修复非本轮部署阻断之外的问题。
  • 不把自动化企业微信 UA 验证等同于真实手机企业微信验收。

Acceptance Criteria

  • SYNC_ENV=0 bash deploy/trialrun/deploy.sh 完成或给出明确阻断原因。
  • 公网 /ready 通过。
  • 公网只读 smoke / readiness 按可用凭据执行,缺凭据时记录 SKIP 而非伪装通过。
  • 公网移动视觉截图或 Playwright 检查覆盖本轮变更页面。
  • 代码审计覆盖 ba7391e 的前端页面、测试和 spec 变更。
  • 给出是否可在线测试、剩余风险和下一步建议。

Test Plan

  • node deploy/trialrun/validate-env-contract.js
  • SYNC_ENV=0 bash deploy/trialrun/deploy.sh
  • curl -fsS https://oa.hyinda.com/ready
  • LIVE_SMOKE_BASE_URL=https://oa.hyinda.com bash scripts/qa/run-live-smoke-readiness.sh(凭据存在时)
  • cd client && 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
  • 额外移动端截图或截图审查输出到 output/playwright/05-30-deploy-mobile-public-audit/
  • python3 ./.trellis/scripts/task.py validate 05-30-deploy-mobile-public-audit
  • node scripts/qa/check-trellis-governance.mjs
  • git diff --check