diff --git a/.trellis/tasks/05-31-deploy-asset-ledger-consistency-public-check/implement.md b/.trellis/tasks/05-31-deploy-asset-ledger-consistency-public-check/implement.md index 517a86a8..533bdc0c 100644 --- a/.trellis/tasks/05-31-deploy-asset-ledger-consistency-public-check/implement.md +++ b/.trellis/tasks/05-31-deploy-asset-ledger-consistency-public-check/implement.md @@ -30,3 +30,33 @@ cd client && E2E_BASE_URL=https://oa.hyinda.com npx playwright test tests/e2e/lo - 不执行真实付款、银行流水导入、真实支付接口、ERP 写入、企业微信写入或数据库重置。 - 不把 SKIP 写成 PASS。 - 如部署失败,保留失败点,停止告知用户可线上测试,并优先判断是否需要回滚或拆修复任务。 + +## 执行结果 + +- 用户已批准公网部署。 +- 部署基线:`c669401`。 +- 部署命令: + +```bash +SYNC_ENV=0 LIVE_SMOKE_BASE_URL=https://oa.hyinda.com bash deploy/trialrun/deploy.sh +``` + +- 部署边界: + - `SYNC_ENV=0`,未覆盖远端 `.env`。 + - 未执行真实付款、银行流水导入、真实支付接口、ERP 写入、企业微信写入或数据库重置。 +- 部署脚本结果: + - 部署环境契约校验通过。 + - 远端前端与 server 镜像构建通过。 + - 远端 Prisma migrate deploy 显示无待执行迁移,migration status 通过。 + - 远端 seed config / seed trialrun 完成。 + - 部署脚本内置公网 bundle 文案扫描 findings=0。 + - 部署脚本网页 live smoke 因本机缺少完整 `LIVE_SMOKE_*` 凭据而 SKIP。 +- 独立公网复检: + - `curl -fsS https://oa.hyinda.com/ready` 通过。 + - `node scripts/qa/check-public-bundle-copy.mjs https://oa.hyinda.com`:findings=0。 + - `LIVE_SMOKE_BASE_URL=https://oa.hyinda.com bash scripts/qa/run-live-smoke-readiness.sh`:PASS;其中真实登录 live smoke、真实 OCR 和 pending OCR 因缺少本机凭据/样票/本地数据库连接按规则记录 SKIP。 + - `cd client && E2E_BASE_URL=https://oa.hyinda.com npx playwright test tests/e2e/login-portal-ux.spec.ts tests/e2e/visual-portal.spec.ts --workers=1 --reporter=list`:15 passed。 + - `cd client && E2E_BASE_URL=https://oa.hyinda.com npx playwright test tests/e2e/pc-finance-admin-visual-wave4.spec.ts tests/e2e/r103-cross-page-ui-consistency.spec.ts --workers=1 --reporter=list`:7 passed。 +- 结论: + - 公网部署与可访问复检通过。 + - 可以告知用户访问公网查看本轮资产、台账和工作台相关效果;但不能宣称缺凭据的真实登录 live smoke 或真实 OCR 已通过。 diff --git a/.trellis/tasks/05-31-deploy-asset-ledger-consistency-public-check/prd.md b/.trellis/tasks/05-31-deploy-asset-ledger-consistency-public-check/prd.md index e34be17d..9eb20158 100644 --- a/.trellis/tasks/05-31-deploy-asset-ledger-consistency-public-check/prd.md +++ b/.trellis/tasks/05-31-deploy-asset-ledger-consistency-public-check/prd.md @@ -73,14 +73,14 @@ git diff --check ## Acceptance Criteria -- [ ] 用户明确批准公网部署。 -- [ ] 当前 `main` 成功部署到公网 OA,记录部署基线提交 hash。 -- [ ] 部署使用 `SYNC_ENV=0`,未覆盖远端 `.env`。 -- [ ] 远端 `/ready` 通过。 -- [ ] 公网前端资源文案扫描 findings=0,确认无 ERP 产品暴露回退。 -- [ ] live readiness 通过;如凭据缺失,按规则记录 SKIP,不声明真实登录通过。 -- [ ] 至少一组公网 Playwright 重点页面检查通过。 -- [ ] 任务文档记录部署结果、复检结果和是否可让用户线上查看。 +- [x] 用户明确批准公网部署。 +- [x] 当前 `main` 成功部署到公网 OA,记录部署基线提交 hash。 +- [x] 部署使用 `SYNC_ENV=0`,未覆盖远端 `.env`。 +- [x] 远端 `/ready` 通过。 +- [x] 公网前端资源文案扫描 findings=0,确认无 ERP 产品暴露回退。 +- [x] live readiness 通过;如凭据缺失,按规则记录 SKIP,不声明真实登录通过。 +- [x] 至少一组公网 Playwright 重点页面检查通过。 +- [x] 任务文档记录部署结果、复检结果和是否可让用户线上查看。 ## Out of Scope diff --git a/.trellis/tasks/05-31-deploy-asset-ledger-consistency-public-check/task.json b/.trellis/tasks/05-31-deploy-asset-ledger-consistency-public-check/task.json index f10ccb27..1c8b6ec0 100644 --- a/.trellis/tasks/05-31-deploy-asset-ledger-consistency-public-check/task.json +++ b/.trellis/tasks/05-31-deploy-asset-ledger-consistency-public-check/task.json @@ -3,7 +3,7 @@ "name": "deploy-asset-ledger-consistency-public-check", "title": "部署资产与台账一致性修复并公网复检", "description": "将资产、业务台账一致性和本地启动修复发布到公网 OA,并完成 /ready、bundle 文案、live readiness 与重点页面复检。", - "status": "planning", + "status": "in_progress", "dev_type": "deployment", "scope": "public-deploy,trialrun-smoke", "package": "hyb-oa", @@ -31,4 +31,4 @@ ], "notes": "", "meta": {} -} +} \ No newline at end of file