-
Notifications
You must be signed in to change notification settings - Fork 594
refactor(general): fix field names in CompactSingleEpochStats
#4947
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
julio-lopez
commented
Nov 3, 2025
- Followup to feat(general): add stats to maintenance run - CompactSingleEpoch #4941
There was a problem hiding this 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 refactors field names in the CompactSingleEpochStats struct to be more descriptive and accurate. The changes rename fields from generic "compacted blob" terminology to more specific "superseded index" terminology to better reflect the actual purpose of these statistics.
Key changes:
- Renamed
CompactedBlobCounttoSupersededIndexBlobCountandCompactedBlobSizetoSupersededIndexTotalSize - Updated JSON field names and serialization methods accordingly
- Updated all references in tests and usage sites
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| repo/maintenancestats/stats_compact_single_epoch.go | Updated struct field names, JSON tags, serialization methods, and summary formatting |
| repo/maintenancestats/builder_test.go | Updated test cases to use new field names and expected JSON output |
| internal/epoch/epoch_manager_test.go | Updated test assertions to reference the renamed field |
| internal/epoch/epoch_manager.go | Updated struct initialization to use new field names |
335e118 to
8c6e401
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #4947 +/- ##
==========================================
+ Coverage 75.86% 78.02% +2.16%
==========================================
Files 470 542 +72
Lines 37301 31309 -5992
==========================================
- Hits 28299 24430 -3869
+ Misses 7071 4838 -2233
- Partials 1931 2041 +110 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this 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 4 out of 4 changed files in this pull request and generated no new comments.