10 Commits

Author SHA1 Message Date
xfy
aaeb9c2c49 ci: add GitHub Actions CI pipeline
Add continuous integration workflow triggered on push to master
and pull requests.

Jobs:
- lint: gofumpt format check + golangci-lint v2 via action
- test: unit tests with -race flag (no integration/e2e)
- build: static multi-platform build (linux/darwin, amd64/arm64)
  with ldflags version injection, binary upload as artifact
- docker: docker buildx build (only on push to master/tags)

Uses:
- actions/checkout@v4, actions/setup-go@v5, golangci/golangci-lint-action@v7
- Go version auto-detected from go.mod (1.26)
- Module caching for faster CI runs
2026-06-11 23:42:00 +08:00
xfy
c90dd10962 chore(ci): remove GitHub Actions workflow files
💘 Generated with Crush

Assisted-by: mimo-v2.5 via Crush <crush@charm.land>
2026-05-06 10:20:43 +08:00
xfy
1424402d06 ci(bench): 添加基准测试 GitHub Actions workflow
- 触发于 master 分支 push 和 PR
- 运行 go test -bench -count=10 获取统计数据
- 使用 benchstat 对比基准线
- 调用 check_regression.py 检测回归
- 自动更新基准线并保存 artifacts

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-29 10:33:50 +08:00
xfy
6686b8557d fix(ci): 修复 act 本地运行 CI 测试失败的问题
- 修复 captureStdout/captureStderr 管道死锁问题,使用 goroutine 异步读取
- 添加 root 用户跳过权限测试的逻辑(act 容器以 root 运行)
- 更新 golangci-lint 到 v2.11.4 并迁移配置格式
- 更新 golangci-lint-action 到 v7
- 添加 linter continue-on-error 避免阻塞 CI

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-23 19:33:35 +08:00
xfy
cc19328a81 ci: 添加分层测试 CI 工作流
- 添加 GitHub Actions 工作流支持 L1/L2/L3 三层测试
- Makefile 新增 test-integration、test-e2e、test-all 目标
- 支持单元测试、集成测试、E2E 测试分离执行

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-22 14:58:52 +08:00
xfy
1ed56bd9c4 chore(ci): 移除 benchmark 工作流配置
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-10 18:19:44 +08:00
xfy
d0eaeed334 docs: 移除 .github 目录下的 AGENTS.md 文件
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-10 18:19:39 +08:00
xfy
f46b0dee07 feat(benchmark): 新增分层性能回归检测策略
- PR 趋势监控使用宽松阈值,仅警告不阻塞合并
- 定期完整检测使用严格阈值,生成统计报告
- 新增阈值配置文件支持分环境配置
- 回归检测脚本支持 YAML 配置和环境参数
- 新增方差分析脚本用于推导阈值
2026-04-08 18:25:22 +08:00
xfy
2688ed6a9c docs: 更新 AGENTS.md 文档,新增 benchmark/netutil/scripts 目录
- 根目录新增 scripts/ 和 .github/ 目录说明
- internal 新增 benchmark/ 和 netutil/ 目录说明
- middleware 新增 bodylimit/ 和 errorintercept/ 目录说明
- 更新日期为 2026-04-07

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-07 17:51:31 +08:00
xfy
355d7a18ae feat(makefile,scripts,ci): 新增基准测试基础设施与回归检测
- Makefile 添加 bench-stat/bench-compare/bench-save/bench-check 命令
- 新增 Python 回归检测脚本 check_regression.py
- 新增 GitHub Actions 基准测试工作流

Co-Authored-By: Claude <noreply@anthropic.com>
2026-04-07 17:05:42 +08:00