Skip to content

Commit 7f61a11

Browse files
committed
fix(release): 更新 smoke release 命令面检查
1 parent cdda810 commit 7f61a11

3 files changed

Lines changed: 14 additions & 5 deletions

File tree

README.en.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,13 @@ Run the release smoke test:
505505
python scripts/smoke_release.py
506506
```
507507

508+
The current smoke run mainly verifies:
509+
510+
- the installed wheel behaves as a CLI-only distribution;
511+
- `plugin inspect` reports the expected CLI-only / setup-hint semantics;
512+
- removed public commands such as `plugin export` still fail as argparse invalid choices;
513+
- retained commands such as `memory inspect` remain read-only in an empty project.
514+
508515
For release candidates, also run the isolated `pipx` install smoke test when `pipx` is available:
509516

510517
```bash

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,13 @@ python -m build
504504
python scripts/smoke_release.py
505505
```
506506

507+
当前 smoke 主要验证:
508+
509+
- CLI-only wheel 安装是否可用;
510+
- `plugin inspect` 是否返回正确的 CLI-only / setup hint 语义;
511+
- 已移除的公开命令(如 `plugin export`)是否继续表现为 argparse invalid choice;
512+
- `memory inspect` 等保留命令在空项目中的只读行为。
513+
507514
发布候选版本建议在本机具备 `pipx` 时运行隔离安装验证:
508515

509516
```bash

scripts/smoke_release.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,6 @@ def run_cli_smoke(aisee: Path, project_dir: Path) -> None:
178178
cwd=project_dir,
179179
env=env,
180180
)
181-
schemas = assert_json_command([str(aisee), "schemas", "list", "--json"], cwd=project_dir, env=env)
182-
assert_json_command([str(aisee), "schemas", "check", "--json"], cwd=project_dir, env=env)
183-
assert_json_command([str(aisee), "schemas", "format", "--check", "--json"], cwd=project_dir, env=env)
184181
memory = assert_json_command([str(aisee), "memory", "inspect", "--json"], cwd=project_dir, env=env)
185182
if "codex_marketplace" not in doctor:
186183
raise RuntimeError("doctor output did not include codex_marketplace")
@@ -190,8 +187,6 @@ def run_cli_smoke(aisee: Path, project_dir: Path) -> None:
190187
raise RuntimeError("plugin export invalid choice output should mention the removed subcommand")
191188
if export_dest.exists():
192189
raise RuntimeError("plugin export invalid choice should not create the destination directory")
193-
if schemas.get("source") is not None:
194-
raise RuntimeError("schema list should not report packaged schema source in installed wheel")
195190
if memory.get("status") != "missing" or memory.get("meta", {}).get("writes") is not False:
196191
raise RuntimeError("memory inspect should be a read-only missing-status command in an empty CLI-only project")
197192

0 commit comments

Comments
 (0)