fix(server+ci): CI 收尾 — go-integration 真 bug + e2e 免疫代理 #3
Reference in New Issue
Block a user
Delete Branch "worktree-macos-killswitch"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
CI 收尾:go-integration 真 bug + e2e 免疫代理
DinD 修复(PR #2)后暴露的两个 docker CI job,诊断并修复:
Go integration —— 真 test-drift bug(早前会话改动遗留)
auth/integration_test:Register/Login 补ip+DeviceMeta参数(sessions/device-meta 改动后陈旧调用致构建失败)usage/usage_integration_test:补ad_bonus_minutes列(migration 000020)+ 重写 ad-unlock 累加式断言devices/devices_integration_test:套餐种子 pro=5→3(migration 000019)devices/context.go(生产 1 行):CtxKeyUserID别名到codes.CtxKeyUserID——原为独立devices.ctxKey类型,与 auth 注入的codes.ctxKey类型不同 → context 取键失配(休眠 bug,中间件目前仅测试接线;修好防未来接线踩坑)E2E —— 环境问题(非脚本)
删 ci.yml 多余
apt-get(openssl/curl/python3 已在 golang:1.25 镜像内;原 apt 走 Docker Desktop 代理→本机 clash 死口徒增脆性)。脚本本身直跑通过。验证
go test -tags integration -count=1 -p 1 ./...全 ok;go build ./...clean。至此 CI 12 job 全部可绿(前一轮 shellcheck/openapi 是偶发,本机同款命令 exit 0)。
🤖 Generated with Claude Code