docs: add TDD workflow to AGENTS.md - #45
Merged
Merged
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
- 门禁对齐 lefthook.yml 与 .github/workflows/ci.yml:clippy 与 test 都必须带 --workspace --exclude astgrep-web --exclude astgrep-gui。原命令用 --all-features / 裸 cargo test,会把 CI 明确排除的 web/gui 拉进来, 产生 CI 上不存在的失败 - 补上 CI 有而文档完全漏掉的 cargo deny check 与 cargo audit - 说明 lefthook 的 pre-commit / pre-push 与该门禁是同一套命令 - 注明 main 当前本身为红(Build & Test 编译失败 + Security Audit 报 2 个 vulnerability),要求先在未改动的 main 上跑基线以区分既有失败 - 移除未引入的 insta 引用 rust-toolchain.toml 引用保留——本仓库确实有该文件。
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.
Add a test-driven development (Red → Green → Refactor) discipline section to AGENTS.md.
Codifies for coding agents:
Round 2 修订
cargo deny check与cargo audit——而Security Audit正是当前红灯之一。已补上。--all-features会拉进 CI 明确排除的 crate:CI 与lefthook.yml都用--workspace --exclude astgrep-web --exclude astgrep-gui;裸cargo test只测 root package。已对齐,并说明 lefthook 的 pre-commit/pre-push 是同一套命令。main当前本身为红(Build & Test编译失败 +Security Audit2 个 vulnerability,main最近 3 次 run 全 failure):要求先在未改动的main上跑基线以区分既有失败。本 PR 的 CI 红灯与本 PR 无关(纯文档改动)。insta未引入:已移除。rust-toolchain.toml引用保留——本仓库确实有该文件。批次层面
flux-gauss#106(原批次遗漏)。GaussDB_Heptadecagon需要一个 submodule 指针 bump PR(目前不存在)。docs/tdd-policy.md,各仓库只留实测过的命令块 + 一个 drift 检查,避免下次修一行要开 13 个 PR。