feat: update billing metrics and CPA baseline

This commit is contained in:
chuan
2026-08-21 00:43:34 +08:00
parent 4474069a29
commit b2a79b80dc
14 changed files with 166 additions and 39 deletions
+10 -8
View File
@@ -4,12 +4,12 @@
| 项目 | 当前值 |
|---|---|
| CLIProxyAPI Tag | `v7.2.135` |
| submodule 提交 | `ee2c494788f8a089c58f7ae9aa6ebd1b422211cb` |
| patched 构建版本 | `v7.2.135-dev` |
| CLIProxyAPI Tag | `v7.2.137` |
| submodule 提交 | `85d2faddd17e6f4f8675a84ee28b131f702e8eaa` |
| patched 构建版本 | `v7.2.137-dev` |
| Native ABI | `1` |
| RPC schema | `4` |
| Go | `1.26.6` |
| Go | `1.26.x` |
| 本地运行目录 | `.runtime` |
| 本地管理页面 | `http://127.0.0.1:8317/management.html` |
| 远端目录 | `root@akko.pchuan.top:/root/cpa` |
@@ -29,19 +29,21 @@ DeepSeek 必须配置在 CPA 的 `codex-api-key` 通道,`base-url` 使用 `htt
## 已知上游测试失败
CLIProxyAPI `ee2c4947` 在 Debian WSL 中运行 `go test ./... -count=1` 时有以下失败:
CLIProxyAPI `85d2fadd` 在 Debian WSL 中运行 `go test ./... -count=1` 时有以下失败:
| 测试 | 实际值 | 期望值 |
|---|---|---|
| `TestApplyClaudeHeaders_DisableDeviceProfileStabilization` | `X-Stainless-Os=MacOS` | `Linux` |
| `TestApplyClaudeHeaders_LegacyModePreservesConfiguredUserAgentOverrideForClaudeClients` | `X-Stainless-Os=MacOS` | `Linux` |
| `TestClaudeExecutor_NonClaudeRequestUsesClaudeCode220CLIFingerprint` | `X-Stainless-Os=MacOS` | `Linux` |
| `TestInPlaceByteWritesAreReviewed` | `internal/home/client.go` 清单项已过期 | 文件已无原地字节写入 |
| `TestInPlaceByteWritesAreReviewed` | `internal/pluginstore/auth.go` 清单项已过期 | 文件已无原地字节写入 |
2026-08-18 已在未应用任何 billing 补丁的纯上游 `ee2c4947` 临时 worktree 中复现相同结果。三项补丁没有修改 `internal/runtime/executor`,因此同一提交、同一 WSL 环境、同一失败内容再次出现时,直接记为已知上游失败,不再创建干净 worktree复测。
2026-08-20 已在未应用任何 billing 补丁的纯上游 `85d2fadd` 临时 worktree 中复现以上 5 项。三项补丁修改 `internal/runtime/executor``internal/util``internal/home``internal/pluginstore`,因此同一提交、同一 WSL 环境、同一失败内容再次出现时,直接记为已知上游失败,不修复、不再创建干净 worktree复测。
出现以下任一情况时重新验证:
- submodule 提交不再是 `ee2c4947`
- submodule 提交不再是 `85d2fadd`
- 上游修改了 `internal/runtime/executor/claude_executor_test.go``claude_executor_request.go``helps/claude_device_profile.go`
- 失败测试、行号、实际值或期望值发生变化;
- 三项补丁开始修改 `internal/runtime/executor`
@@ -108,7 +110,7 @@ CPA 版本必须使用当前最新 Tag 加 `-dev`,提交取 submodule HEAD
```bash
cd .externals/CLIProxyAPI
version=v7.2.135-dev
version=v7.2.137-dev
commit="$(git rev-parse --short=8 HEAD)"
build_date="$(date -u +%Y-%m-%dT%H:%M:%SZ)"
CGO_ENABLED=1 go build -buildvcs=false \