feat: add component-level context and boundary lint rules#941
Conversation
Add .claude/rules/ with path-scoped rules for trainer, common/support, and general test conventions. Enable depguard in .golangci.yml with per-suite boundary rules preventing cross-suite imports. Move shared image helpers from tests/kfto/ to tests/common/support/ to eliminate existing violations. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
📝 WalkthroughWalkthroughConfiguration change flagged: Estimated code review effort: 2 (Simple) | ~15 minutes Related IssuesObjectives from linked issues: Issue Suggested labels: ci, testing, lint, documentation Suggested reviewers: Confirm CODEOWNERS for No praise offered. Verify: (1) 🚥 Pre-merge checks | ✅ 10✅ Passed checks (10 passed)
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 |
|
@h0pers wondering if we can make the rules common for both Claude and Cursor as well. Without repeating the md files, perhaps a suggestion like |
What this PR does / why we need it:
Implements AI Scaffolding Tier 3 checks 3.1 and 3.3 for the distributed-workloads repo:
.claude/rules/with path-scoped rules fortests/trainer/,tests/common/support/, and general test conventions (mandatory tags, namespace isolation, resource naming, import boundaries).depguardin.golangci.ymlwith per-suite boundary rules preventing cross-suite imports betweentests/kfto/,tests/trainer/,tests/fms/, andtests/odh/. Move shared image helpers (GetAlpacaDatasetImage,GetBloomModelImage) fromtests/kfto/totests/common/support/environment.goto resolve existing cross-suite import violations.Which issue(s) this PR fixes:
Fixes #940
Summary by CodeRabbit
Documentation
Bug Fixes
Chores