From d0eaeed334a834b39e822f5d2ee2cceef60d3450 Mon Sep 17 00:00:00 2001 From: xfy Date: Fri, 10 Apr 2026 18:19:39 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E7=A7=BB=E9=99=A4=20.github=20?= =?UTF-8?q?=E7=9B=AE=E5=BD=95=E4=B8=8B=E7=9A=84=20AGENTS.md=20=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 --- .github/AGENTS.md | 37 --------------------------------- .github/workflows/AGENTS.md | 41 ------------------------------------- 2 files changed, 78 deletions(-) delete mode 100644 .github/AGENTS.md delete mode 100644 .github/workflows/AGENTS.md diff --git a/.github/AGENTS.md b/.github/AGENTS.md deleted file mode 100644 index 3bc207b..0000000 --- a/.github/AGENTS.md +++ /dev/null @@ -1,37 +0,0 @@ - - - -# .github - -## Purpose -GitHub 配置目录,包含 CI/CD 工作流定义,自动化构建、测试和基准测试回归检测。 - -## Subdirectories - -| Directory | Purpose | -|-----------|---------| -| `workflows/` | GitHub Actions 工作流定义 | - -## For AI Agents - -### Working In This Directory -- CI 工作流在 PR 和推送时自动触发 -- 基准测试回归检测防止性能退化合并 -- 工作流使用 Makefile 命令执行任务 - -### Testing Requirements -- CI 自动运行测试,无需手动触发 -- 本地可通过 `make check` 预验证 - -### Common Patterns -- 工作流触发条件:push 到 master、PR 创建/更新 -- 测试步骤:fmt → lint → test → benchmark -- 回归检测:比较基准测试结果差异 - -## Dependencies - -### Internal -- `../Makefile` - 构建命令定义 -- `../scripts/` - 辅助脚本 - - \ No newline at end of file diff --git a/.github/workflows/AGENTS.md b/.github/workflows/AGENTS.md deleted file mode 100644 index 6d18ebc..0000000 --- a/.github/workflows/AGENTS.md +++ /dev/null @@ -1,41 +0,0 @@ - - - -# workflows - -## Purpose -GitHub Actions 工作流定义,自动化构建、测试和基准测试回归检测流程。 - -## Key Files - -| File | Description | -|------|-------------| -| `benchmark.yml` | 基准测试工作流,运行性能测试并检测回归 | - -## For AI Agents - -### Working In This Directory -- 工作流使用 Go 最新稳定版本 -- 基准测试结果存储用于历史比较 -- 回归检测失败会阻止 PR 合并 - -### Testing Requirements -- 工作流自动执行,本地可通过 `make benchmark` 预运行 -- 回归阈值在 `scripts/check_regression.py` 中定义 - -### Common Patterns -- 触发条件:`on: push, pull_request` -- 步骤:checkout → setup-go → make benchmark → check_regression -- 失败处理:输出报告,标记 PR 检查失败 - -## Dependencies - -### Internal -- `../../Makefile` - 构建命令 -- `../../scripts/check_regression.py` - 回归检测脚本 - -### External -- GitHub Actions - 运行环境 -- Go toolchain - 编译和测试 - - \ No newline at end of file