build: add server-rs smoke scripts

This commit is contained in:
2026-04-21 01:53:40 +08:00
parent fdab91e54d
commit c9850c8caf
6 changed files with 443 additions and 6 deletions

View File

@@ -14,6 +14,7 @@
6.`../../scripts/dev.ps1``../../scripts/dev.sh` 驱动的本地开发启动链路
7.`../../scripts/test.ps1``../../scripts/test.sh` 驱动的本地测试链路
8.`../../scripts/check.ps1``../../scripts/check.sh` 驱动的本地统一检查链路
9.`../../scripts/smoke.ps1``../../scripts/smoke.sh` 驱动的本地启动与协议冒烟链路
## 2. 当前阶段说明
@@ -81,6 +82,12 @@
3. 当只需聚焦单个 package 时,可通过 `-Package``SERVER_RS_CHECK_PACKAGE` 收窄 `clippy / check / test` 目标。
4. `cargo fmt --all --check` 仍固定覆盖整个 workspace避免多 package 下格式基线漂移。
当前本地 smoke 链路约定:
1. `../../scripts/smoke.ps1``../../scripts/smoke.sh` 会先构建 `api-server`,再拉起临时本地进程完成冒烟验证。
2. smoke 当前固定校验 `/healthz` 的 raw 响应、envelope 响应以及 `x-request-id``x-api-version``x-route-version``x-response-time-ms` 头。
3. smoke 通过后可作为“Axum 服务可独立启动且基础 contract 可联通”的本地自动化证据。
## 3. 边界约束
1. `api-server` 负责 HTTP、SSE、Cookie、Header、路由与协议装配。