Add release quality gate workflow

This commit is contained in:
732642856
2026-06-24 15:17:40 +08:00
parent 408b3bf5c1
commit dec62c450a
6 changed files with 90 additions and 1 deletions
+3
View File
@@ -300,3 +300,6 @@
- 继续复查 PR #6 ActionsRuff 已转绿,但 `quick quality gate``pytest suite` 仍失败;在 `/tmp/yinduzhanxing-ci-repro` 干净 clone 复现,根因为 `test_fragment_audit_blocks_registry_surface_drift` 假设 `.git/lost-found` 一定存在,以及 `test_kp_system.py` 依赖未纳入 Git 的 `VedicAstro/vedicastro/data/KP_SL_Divisions.csv`
- 修复 clean checkout 测试依赖:碎片审计测试改为检查 lost-found 字段结构而非要求本机残留数量;KP 外部 oracle CSV 缺失时明确 `pytest.skip`,保留内建 360° wrap 测试。
- 发布包链路进展:`python3 -m build --no-isolation --wheel --sdist` 成功生成 wheel/sdist`python3 -m twine check dist/*` 通过;全新 venv 安装 wheel 后 `jyotish-engine --help` 可用。
- PR merge ref 复现:在 `/tmp/yinduzhanxing-pr6-merge` 拉取 `refs/pull/6/merge` 得到 `b614b03`;未安装前端依赖时可复现 `vite: command not found`,执行 `npm ci --prefix jyotish-app``python3 -m pytest tests/test_frontend_productization.py::test_local_frontend_and_api_runtime_smoke -q` 通过,`python3 scripts/run_quality_gate.py --profile quick --skip-yoga-logic` 通过,说明当前可复现路径不再指向产品代码行为缺陷。
- 完成 release-only workflow:新增 `.github/workflows/release-quality-gate.yml`,支持 `workflow_dispatch` 与关键路径 PR 触发,安装 Python/Node/Playwright Chromium 后运行 `python scripts/run_quality_gate.py --profile release --frontend-click-timeout 240``.github/workflows/ci.yml``.github/workflows/test.yml` 增加 Python/Node/npm/Vite 诊断,便于云端失败时定位依赖安装差异。
- TDD/验证完成:新增 `test_github_release_quality_gate_runs_browser_release_profile` 静态契约;`python3 -B -m pytest tests/test_frontend_productization.py::test_github_release_quality_gate_runs_browser_release_profile tests/test_frontend_productization.py::test_quality_gate_declares_fast_browser_release_profiles -q` 通过;`.github/workflows/*.yml` PyYAML 解析通过;`git diff --check` 通过;`python3 scripts/run_quality_gate.py --profile quick --skip-yoga-logic` 通过,核心质量门 199 个 pytest、npm build 与 runtime smoke 通过。