From de22bd4e4c4234cf9bcdef235e0aec8320accfe4 Mon Sep 17 00:00:00 2001 From: 732642856 <732642856@qq.com> Date: Wed, 24 Jun 2026 13:55:42 +0800 Subject: [PATCH] Stabilize PR quality gate profile --- .github/workflows/ci.yml | 6 +++--- progress.md | 4 +++- task_plan.md | 4 +++- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1bc74cff..06951c5e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,14 +31,14 @@ jobs: python -m pip install -r requirements.txt -r requirements-dev.txt npm ci --prefix jyotish-app - - name: Run Ruff lint for v6.0.33 quality gate files + - name: Run Ruff lint for quality gate files run: ruff check scripts/run_quality_gate.py tests/test_varga_bphs.py tests/test_ashtakavarga_invariants.py tests/test_cli_smoke.py tests/test_yoga_rules_integrity.py - name: Run Python syntax check run: python -m py_compile scripts/*.py jyotish_vedic/*.py mcp_server.py - - name: Run quality gate - run: python scripts/run_quality_gate.py --skip-yoga-logic + - name: Run quick quality gate + run: python scripts/run_quality_gate.py --profile quick --skip-yoga-logic - name: Build frontend run: npm run build --prefix jyotish-app diff --git a/progress.md b/progress.md index cb7b26cd..99a73dad 100644 --- a/progress.md +++ b/progress.md @@ -291,4 +291,6 @@ - 完成完整 browser/release profile:`python3 scripts/run_quality_gate.py --profile browser --frontend-click-timeout 240` 与 `python3 scripts/run_quality_gate.py --profile release --frontend-click-timeout 240` 均通过;release 覆盖 release hygiene、195+核心 pytest、runtime smoke、真实浏览器 all smoke、golden cases 与 Yoga 逻辑校验。 - 修复 release profile 暴露的 Yoga 逻辑校验 Bug:`scripts/validate_logic_v2.py` 现在用 `extract_skill_rule_ids` 安全跳过算法级无 `rule_id` Yoga,并默认使用当前仓库路径,不再在 import 时把 `~/.workbuddy/.../scripts` 插入 `sys.path` 污染后续 `import prashna`。 - 验证细节:新增 `test_yoga_logic_validation_tolerates_algorithmic_yogas_without_rule_id` 与 `test_yoga_logic_validation_import_does_not_shadow_project_modules` 先红灯后转绿;`validate_logic_v2.py` 输出 Precision 96.48%、Recall 93.99%、F1 95.22%,并写入当前仓库 `references/validation_logic_report.json`。 -- 云端同步检查:`git ls-remote https://github.com/732642856/yinduzhanxing.git` 可访问,远端 `codex/release-hygiene-ci` 仍在 `11bdee3...`;当前本地大量改动已暂存/修改但尚未 commit/push,下一步应提交并推送分支。 +- 云端同步完成:本地改动已提交为 `83cc859 Productize jyotish app release surface` 并推送到远端 `codex/release-hygiene-ci`;GitHub API 确认现有 PR #6 处于 open,head 已更新到 `83cc859`。 +- 修复 PR CI 云端稳定性风险:`.github/workflows/ci.yml` 将质量门命令从默认 browser profile 改为 `python scripts/run_quality_gate.py --profile quick --skip-yoga-logic`,避免 GitHub Actions 在未安装 Playwright/真实浏览器依赖时误跑 browser click smoke;完整 browser/release profile 仍作为发布前本地/手动守门。 +- 验证完成:`python3 -B -m pytest tests/test_frontend_productization.py::test_quality_gate_declares_fast_browser_release_profiles tests/test_frontend_productization.py::test_release_quality_gate_tracks_untracked_product_files -q` 通过;`.github/workflows/*.yml` 均可被 PyYAML 解析。 diff --git a/task_plan.md b/task_plan.md index 34a8af88..e629e30d 100644 --- a/task_plan.md +++ b/task_plan.md @@ -92,4 +92,6 @@ - [x] Sayanadi/Shayanadi Avastha 与 D24/D30/D60 深度模板产品化:新增 `/api/deep_varga_avastha` 聚合层,复用 `avastha_calculator.py`、`divisional_charts_extended.py`、`trimshamsa_d30.py`,Skill Workbench 展示 Avastha 主导状态、深分盘模板与风险标记。 - [x] 二轮整机/Git/开源对标审计与全球排名更新:注册表 68 技法、37 API、碎片审计 0 问题;补齐 `deep_varga_avastha` 注册表/目录/审计映射,确认第一类产品化缺口已闭环。 - [x] 发布/仓库卫生第一步:release profile 新增关键产品文件未跟踪守门,28 个产品关键 untracked 文件已纳入 Git 暂存,`audit_fragments.py --strict` 当前报告 untracked_count=0。 -- [ ] 下一步:完整 browser/release profile 与云端分支同步检查,确认普通用户从 GitHub 拉取后网页/API/PWA/报告/高级 Skill Workbench 路径完整。 +- [x] 完整 browser/release profile 与云端分支同步检查:browser/release profile 均通过,分支 `codex/release-hygiene-ci` 已推送到远端并更新现有 PR #6。 +- [x] PR CI 云端稳定性修复:`.github/workflows/ci.yml` 显式使用 `--profile quick --skip-yoga-logic`,避免 PR 环境因未安装真实浏览器/Playwright 依赖而误触 browser click smoke。 +- [ ] 下一步:检查 GitHub Actions 运行结果与发布包链路,必要时补充 release-only workflow 的 browser/release 守门。