Skip to content

Conversation

@julio-lopez
Copy link
Collaborator

@julio-lopez julio-lopez commented Oct 24, 2025

Fixes field names in CleanupMarkersStats persistent struct.
Also renames variables for consistency.

@julio-lopez julio-lopez force-pushed the refactor/maint-cleanup-marker-stats branch 2 times, most recently from ecfb08f to 5a1bff7 Compare October 24, 2025 19:30
@codecov
Copy link

codecov bot commented Oct 24, 2025

Codecov Report

❌ Patch coverage is 85.71429% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 78.02%. Comparing base (cb455c6) to head (2cd7b58).
⚠️ Report is 704 commits behind head on master.

Files with missing lines Patch % Lines
repo/maintenancestats/stats_cleanup_markers.go 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4911      +/-   ##
==========================================
+ Coverage   75.86%   78.02%   +2.15%     
==========================================
  Files         470      538      +68     
  Lines       37301    31235    -6066     
==========================================
- Hits        28299    24370    -3929     
+ Misses       7071     4820    -2251     
- Partials     1931     2045     +114     

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@julio-lopez julio-lopez force-pushed the refactor/maint-cleanup-marker-stats branch from 5a1bff7 to 2cd7b58 Compare October 24, 2025 20:51
@julio-lopez julio-lopez requested a review from Copilot October 24, 2025 20:53
Copy link

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 fixes naming inconsistencies in the CleanupMarkersStats struct and related variables. The changes correct field names to use consistent capitalization ("Watermark" instead of "WaterMark") and rename local variables to be more descriptive by adding "Count" suffix.

Key changes:

  • Renamed struct field from DeletedDeletionWaterMarkBlobCount to DeletedWatermarkBlobCount for consistent capitalization
  • Renamed local variables from deletedEpochMarkers/deletedDeletionWaterMarks to deletedEpochMarkersCount/deletedWatermarksCount for clarity
  • Updated all references including JSON tags, test data, and function calls

Reviewed Changes

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

File Description
repo/maintenancestats/stats_cleanup_markers.go Updated struct field name, JSON serialization, and summary message to use consistent "Watermark" capitalization
repo/maintenancestats/builder_test.go Updated test cases to reflect the renamed struct field and JSON tag
internal/epoch/epoch_manager_test.go Updated test assertion to use the renamed struct field
internal/epoch/epoch_manager.go Renamed local variables for clarity and updated struct field assignment

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

@julio-lopez julio-lopez marked this pull request as ready for review October 24, 2025 23:08
@julio-lopez julio-lopez merged commit 25b1492 into kopia:master Oct 24, 2025
30 of 31 checks passed
@julio-lopez julio-lopez deleted the refactor/maint-cleanup-marker-stats branch October 24, 2025 23:09
@julio-lopez
Copy link
Collaborator Author

FYI @Lyndon-Li

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant