Repository navigation
Conversation
riofutab
added a commit
to riofutab/sub2api
that referenced
this pull request
Nov 10, 2026
riofutab
added a commit
to riofutab/sub2api
that referenced
this pull request
Nov 10, 2026
- 并入上游已合 PR:Wei-Shaw#8381 Wei-Shaw#8566 Wei-Shaw#8631 Wei-Shaw#8637 Wei-Shaw#8161 Wei-Shaw#8346 Wei-Shaw#8642 Wei-Shaw#8367 Wei-Shaw#8357 Wei-Shaw#8622,Wei-Shaw#8621 仅并测试 - 并入上游开放 PR:Wei-Shaw#8627 单请求最多冷却一个账号、Wei-Shaw#8619 Gemini 兼容下发思考、Wei-Shaw#8596 Wei-Shaw#8597 Wei-Shaw#8598 测试同步 - 新增迁移 249_add_usage_logs_api_key_cost_index_notx,与现有 249 迁移并存 - 后端 unit 测试、golangci-lint、前端 lint/typecheck/全部 vitest 通过;repository 集成测试未跑
Contributor
Author
|
已同步最新 main(含 #8603),原来的 OpenAI 分配测试失败修复已进入本分支。本次仍只保留两个 Grok 测试文件的修改。相关测试通过 安全扫描另报 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Grok 免费额度测试会在后台刷新尚未结束时重置共享缓存,并无锁读取 stub 计数器,导致后端单元测试竞态和偶发崩溃。
本 PR 只调整两个测试文件:等待 in-flight 刷新完成后清理实际使用的缓存;用加锁快照读取 stub 状态;恢复额度时检查真实缓存值,避免缓存未命中造成误通过。生产代码保持原样。
已同步 main
530c5e3a4,包含已合并的 #8603,旧 CI 中 OpenAI 分配测试的修复已进入本分支。验证
-race -count=10 -shuffle=on -cpu=1,2,4通过。安全扫描另报
GO-2026-6859:当前 Go 1.27.3 的net/http漏洞,扫描器标注修复版本为 1.27.4。日志。已核对backend/go.mod、Dockerfile 和工作流与 main 一致,需统一升级工具链及版本断言。Closes #8593
关联 #8425;其他独立测试修复为 #8597、#8598。