Skip to content

Add coding conventions derived from recent PR review feedback#4636

Open
yrobla wants to merge 3 commits intomainfrom
add-testing-rules-from-pr-4497
Open

Add coding conventions derived from recent PR review feedback#4636
yrobla wants to merge 3 commits intomainfrom
add-testing-rules-from-pr-4497

Conversation

@yrobla
Copy link
Copy Markdown
Contributor

@yrobla yrobla commented Apr 7, 2026

Summary

Captures patterns flagged in reviews across interface design, testing, operator development, and PR hygiene — so they apply automatically going forward rather than being caught in review.

Fixes #

Type of change

  • Bug fix
  • New feature
  • Refactoring (no behavior change)
  • Dependency update
  • Documentation
  • Other (describe):

Test plan

  • Unit tests (task test)
  • E2E tests (task test-e2e)
  • Linting (task lint-fix)
  • Manual testing (describe below)

Changes

File Change

Does this introduce a user-facing change?

Special notes for reviewers

@yrobla yrobla requested a review from Copilot April 7, 2026 14:27
@github-actions github-actions bot added the size/S Small PR: 100-299 lines changed label Apr 7, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the repository’s Claude rule docs to codify recurring review feedback (interface design, testing practices, operator status consistency, and PR hygiene) so those expectations are enforced consistently going forward.

Changes:

  • Add new Go style guidance for interface design, URL validation, bounded caches, and concurrency comment accuracy.
  • Expand testing rules with E2E expectations, discouraging test hooks in production structs, and requiring timeouts for blocking concurrency barriers.
  • Add operator and PR-creation guidance around status condition parity and keeping PRs single-scope.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
.claude/rules/vmcp-anti-patterns.md Adds a new vMCP anti-pattern covering mutex-protected mutable domain objects.
.claude/rules/testing.md Tightens test naming guidance and adds new sections for E2E behavior coverage and concurrency/testing patterns.
.claude/rules/pr-creation.md Adds a “PR Scope” section to discourage mixed-scope PRs.
.claude/rules/operator.md Adds guidance to keep status conditions consistent across parallel CRD types.
.claude/rules/go-style.md Adds new Go conventions around interfaces, string constants, URL validation, bounded caches, and concurrency comments.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 7, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 68.86%. Comparing base (27e21d0) to head (41c82dc).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4636      +/-   ##
==========================================
+ Coverage   68.85%   68.86%   +0.01%     
==========================================
  Files         508      508              
  Lines       52604    52604              
==========================================
+ Hits        36220    36227       +7     
+ Misses      13586    13581       -5     
+ Partials     2798     2796       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@yrobla yrobla force-pushed the add-testing-rules-from-pr-4497 branch from 638b7e0 to 089dae9 Compare April 7, 2026 14:35
@github-actions github-actions bot added size/XS Extra small PR: < 100 lines changed and removed size/S Small PR: 100-299 lines changed labels Apr 7, 2026
@yrobla yrobla force-pushed the add-testing-rules-from-pr-4497 branch from 089dae9 to 0cc2756 Compare April 7, 2026 14:37
@yrobla yrobla requested a review from Copilot April 7, 2026 14:37
@github-actions github-actions bot added size/XS Extra small PR: < 100 lines changed and removed size/XS Extra small PR: < 100 lines changed labels Apr 7, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@yrobla yrobla requested a review from Copilot April 8, 2026 09:10
@yrobla yrobla force-pushed the add-testing-rules-from-pr-4497 branch from 8f72233 to 9d94929 Compare April 8, 2026 09:13
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions github-actions bot added size/S Small PR: 100-299 lines changed and removed size/XS Extra small PR: < 100 lines changed labels Apr 8, 2026
@yrobla yrobla force-pushed the add-testing-rules-from-pr-4497 branch from 9d94929 to 11a8d8e Compare April 8, 2026 10:28
@github-actions github-actions bot added size/S Small PR: 100-299 lines changed and removed size/S Small PR: 100-299 lines changed labels Apr 8, 2026
@yrobla yrobla force-pushed the add-testing-rules-from-pr-4497 branch from 11a8d8e to d4cf699 Compare April 8, 2026 10:31
@github-actions github-actions bot added size/S Small PR: 100-299 lines changed and removed size/S Small PR: 100-299 lines changed labels Apr 8, 2026
taskbot added 3 commits April 8, 2026 14:43
Captures patterns flagged in reviews across interface design,
testing, operator development, and PR hygiene — so they apply
automatically going forward rather than being caught in review.
@yrobla yrobla force-pushed the add-testing-rules-from-pr-4497 branch from d4cf699 to 41c82dc Compare April 8, 2026 12:43
@github-actions github-actions bot added size/S Small PR: 100-299 lines changed and removed size/S Small PR: 100-299 lines changed labels Apr 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/S Small PR: 100-299 lines changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants