Skip to content

fix: remove workspace stub assertion from repo-local runtime smoke#39

Merged
Li-Sanze merged 1 commit into
mainfrom
fix/smoke-stub-assertion
May 24, 2026
Merged

fix: remove workspace stub assertion from repo-local runtime smoke#39
Li-Sanze merged 1 commit into
mainfrom
fix/smoke-stub-assertion

Conversation

@Li-Sanze
Copy link
Copy Markdown
Collaborator

问题

pre-commit hook 的 check-runtime-smoke.sh 断言 .sopify-skills/sopify.json 存在,但该文件由 install/bootstrap 层创建,runtime engine 从不写它。导致所有 commit 必须 --no-verify 绕过。

修复

  • 删除 repo-local runtime smoke 中越界的 workspace stub 断言(sopify.json 存在性 + 字段排除检查,共 −18 行)
  • 更新注释:明确 stub 验证属于 check-install-payload-bundle-smoke.py

验证

  • bash scripts/check-runtime-smoke.sh
  • python3 scripts/check-install-payload-bundle-smoke.py
  • python3 -m pytest tests/test_bundle_smoke.py -q → 5 passed ✅
  • pre-commit hook 全量通过 ✅

The sopify.json workspace stub is created by install/bootstrap, not by
the runtime engine. Move stub validation responsibility to
check-install-payload-bundle-smoke.py where it belongs.

Fixes pre-commit hook failure on repo-local runtime smoke check.

Release-Sync: yes

Release-Version: 2026-05-24.205420

Release-Date: 2026-05-24
@Li-Sanze Li-Sanze merged commit 2bc7b1f into main May 24, 2026
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant