Address review feedback for MCP backend session affinity#4116
Merged
Conversation
- Extract ensureBackendServices from DeployWorkload to reduce cyclomatic complexity and remove the nolint:gocyclo directive - Downgrade slog.Info to slog.Debug for statefulset apply (silent success) - Remove stale nolint:gosec comment on statefulset log line - Add debug-level logging to deleteIfExists for finalization visibility - Fix test conventions: context.Background() to t.Context(), inline func to ptr.To, add ptr import Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
yrobla
approved these changes
Mar 12, 2026
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4116 +/- ##
==========================================
- Coverage 68.84% 68.79% -0.06%
==========================================
Files 458 458
Lines 46274 46280 +6
==========================================
- Hits 31859 31839 -20
- Misses 11953 11979 +26
Partials 2462 2462 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
Summary
Follow-up to #3992, addressing review feedback from @yrobla and code review findings:
ensureBackendServicesfromDeployWorkloadto reduce cyclomatic complexity and drop//nolint:gocyclodeleteIfExistsso finalization is observable for troubleshootingslog.Info("applied statefulset")toslog.Debugper logging guidelines (silent success)//nolint:goseccommentcontext.Background()→t.Context(), inlinefunc() *int32→ptr.To(int32(1))Test plan
task lint-fixpasses (0 issues)task testpasses (unit tests for changed packages)🤖 Generated with Claude Code