Skip to content

Conversation

@julio-lopez
Copy link
Collaborator

@julio-lopez julio-lopez requested a review from Copilot November 3, 2025 04:39
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 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 CompactedBlobCount to SupersededIndexBlobCount and CompactedBlobSize to SupersededIndexTotalSize
  • 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

@codecov
Copy link

codecov bot commented Nov 3, 2025

Codecov Report

❌ Patch coverage is 66.66667% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 78.02%. Comparing base (cb455c6) to head (8c6e401).
⚠️ Report is 726 commits behind head on master.

Files with missing lines Patch % Lines
...epo/maintenancestats/stats_compact_single_epoch.go 33.33% 2 Missing ⚠️
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.
📢 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 marked this pull request as ready for review November 3, 2025 05:00
Copilot AI review requested due to automatic review settings November 3, 2025 05:00
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

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

@julio-lopez julio-lopez merged commit 952058a into kopia:master Nov 3, 2025
29 of 31 checks passed
@julio-lopez julio-lopez deleted the refactor/fix-names branch November 3, 2025 05:01
@julio-lopez
Copy link
Collaborator Author

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