Add CI failure diagnostics

This commit is contained in:
732642856
2026-06-24 15:22:54 +08:00
parent dec62c450a
commit 9a9f403d2b
6 changed files with 53 additions and 4 deletions
+2
View File
@@ -303,3 +303,5 @@
- 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 通过。
- 云端复查:PR #6 head `5399c6f``validate``test``release-quality-gate` 均失败;step metadata 显示依赖安装和 Vite 环境诊断已成功,失败仍发生在 pytest/quality gate 内部。GitHub annotations 仍只显示 exit code,日志/API 受权限限制;本机 Docker daemon 未运行,暂不能用 Linux 容器复现。
- 增补 CI 失败诊断:`.github/workflows/test.yml` 的 pytest 改为 `-vv --maxfail=1 --junitxml=artifacts/pytest.xml` 并上传 `pytest-diagnostics``ci.yml``release-quality-gate.yml` 将 quality gate stdout tee 到 artifact 并上传,下一轮云端失败可直接定位首个 Linux runner 差异。