Files
go-sms-V2/CHANGELOG.md
T

33 lines
3.7 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Changelog(go-sms-v2 重建仓)
> 本仓 CHANGELOG 自重建起记(POC 明细见归档仓 /data/poc-archive/repos/go-sms.git 的 CHANGELOG.md,已冻结)。
## 2026-11-13(晚)· 内网 Gitea 上库(协作触发条款生效)
- 独立机 Gitea(192.168.5.27:24401)验证通过(Tory/公钥「5.18 SmsDev」);`origin` 落位,**push main=f1af4fb(20 提交,~3.4MB 内网秒级)**;push 纪律=日终随 bundle;托管裁决修订与网络事实修正见 techContext。
## 2026-11-13(下午)· S1-B D1 中间件就绪 + B 层全域 P1 搬运 + channel P2 + D5-P1 + lint 清零
- **D1.1/1.2**(5986680):compose SSD 基线(MySQL 10G/2000/10000/redo 1G 实测生效)+ Kafka 恢复 compose 管理(新网络 QUORUM_VOTERS 自解析,healthy)。
- **D1.3-1.6**:9 镜像 8 就位(minio 遗留,见验收单);init 链全通;**迁移链 v1~v19 空库独建+seed-admin**(发现:init_schema 快照与迁移链双跑 FK 冲突,快照降级参考资产);集成六件绿;首份 SSD 基线快照+24h 门槛起计;gateway :8081 冒烟 ok。
- **B 层 P1 全域 12 域落位**(interceptor/template/auth/account/channel/router/send/report/openapi/access/uplink/api+cmd),两阶段等价法;唯一跨域适配=channel.{LinkStatus,Receipt,BatchAck}→pool.*。
- **D2.5-P2**(234dc5e):channel 拆 pool 子包(Deps 六方法断环/LogKind 移驻/测试 pool_test 化/访问器补齐),行为零改动双绿。
- **D5-P1**(5c8393e):api 38 文件+双入口,gateway 65.9MB 编译通。
- **lint 清零**(e03b63d):27 条→0;全仓 -race 36 包绿;router MySQL 硬断言 p99=9.4ms/1620s。
- **修直**:集成测试连字符标识符反引号化×3+BatchInsert 实现侧引号化(0e4c79d);watch_1m 端口参数化(704f6f0)。
- 验收单:`docs/acceptance/s1-b-layer-d1.md`。
## 2026-11-13 · S1①环境 + S1②git init/A 层搬运
### S1① 环境四件 + 编译循环终验
- **Docker CE 29.7.2** + compose plugin v5.5.0 + buildx 0.36.1 + containerd 2.3.3(aliyun docker-ce trixie 源,apt https 中途停滞 → curl 熔断续传 + dpkg -i 直装);data-root=/data/docker;registry-mirrors=daocloud+1ms;user 入 docker 组;json-file 日志轮转 50m×3;hello-world 拉跑 ✓。
- **Go 1.25.0**(/usr/local/go,aliyun golang 镜像,sha256 `2852af0c…b613` 校验 ✓;GOPROXY=goproxy.cn,direct / GOTOOLCHAIN=local / GOFLAGS=-mod=mod;模块缓存预热 434M)+ **gcc 14.2**(-race 前置)+ **golangci-lint v2.1.6**(~/go/bin)。
- **编译循环终验(CPU Plan B,设计规范 §6)**:20 轮 `go clean -cache` + `go build ./...`,≈35-48s/轮,复现率 **0**、dmesg 零新增 → 裁决**正常推进**(Go 工具链对宿主 VEX 缺陷免疫坐实)。
- 备份 cron:`30 3 * * * /usr/local/sbin/backup-v2.sh` → /data/backup/v2-YYYY-MM-DD.bundle(保留 14 天;首份已落)。
### S1② git init 新历史 + A 层搬运
- `2a6a66f` 地基:memory-bank 全文库 + .clinerules + README + .gitignore(自 poc-final 5e09a4cc)。
- `e47610f` **A 层整包搬运 273 文件 +33973**(源=poc-final,零改动;module 名保持 `go-sms`):协议四栈 / pkg 标准件 12 包 / util 计费纯函数 / middleware / 迁移链 repository·mysql v1~v19 + clickhouse / model·entity / config / service·audit·balance / app / cmd·{migrate,reconcile,cmppbench} / tools·gen-dict / _bench / test·integration / api·openapi.yaml / 监控三件 / 运维资产(compose+kind+CI 两套+Makefile+runbook+scripts 种子)/ cspell / 前端基建(web 根配置 + src 基建目录,mocks 51 端点;views 31 页留 B 层)。
- 支撑闭包口径:A 层 + config/entity/repository×2/audit/balance/app 六件(middleware、reconcile、migrate、集成测试的最小依赖闭包,零 B 层拖带)。
- **质量门**:build ✓ / vet ✓ / `go test -race -cover` **23 包全绿 65s**(sqlite/miniredis 离线口径);集成 -tags=integration 待七中间件起后跑。