Skip to content

Conversation

@julio-lopez
Copy link
Collaborator

@julio-lopez julio-lopez commented Oct 18, 2024

Tests included.
Known to be safe portion of the changes proposed in #3901

julio-lopez and others added 4 commits October 18, 2024 16:22
The caller needs to get the epoch manager to determine
whether or not the epoch manager is enabled. The caller
now passes the epoch manager to `runTaskEpochMaintenanceQuick`
@codecov
Copy link

codecov bot commented Oct 19, 2024

Codecov Report

Attention: Patch coverage is 75.00000% with 3 lines in your changes missing coverage. Please review.

Project coverage is 76.02%. Comparing base (cb455c6) to head (b0fafd0).
Report is 307 commits behind head on master.

Files with missing lines Patch % Lines
repo/maintenance/maintenance_run.go 75.00% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4185      +/-   ##
==========================================
+ Coverage   75.86%   76.02%   +0.16%     
==========================================
  Files         470      501      +31     
  Lines       37301    38483    +1182     
==========================================
+ Hits        28299    29258     +959     
- Misses       7071     7277     +206     
- Partials     1931     1948      +17     

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

@julio-lopez
Copy link
Collaborator Author

julio-lopez commented Oct 19, 2024

Copy link
Contributor

@redgoat650 redgoat650 left a comment

Choose a reason for hiding this comment

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

Looks good to me

@julio-lopez julio-lopez marked this pull request as ready for review October 21, 2024 19:03
@julio-lopez julio-lopez merged commit 90c4a3c into kopia:master Oct 21, 2024
@julio-lopez julio-lopez deleted the fix/epoch-quick branch October 21, 2024 19:06
Copy link
Collaborator

@ashmrtn ashmrtn left a comment

Choose a reason for hiding this comment

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

LGTM, just a couple of comments about minimizing code duplication for boilerplate assertions. Not critical, but could be nice if we stand up more tests like this in the future

Copy link
Collaborator Author

@julio-lopez julio-lopez left a comment

Choose a reason for hiding this comment

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

@ashmrtn
Good suggestions. Thanks.
Done in #4191

@julio-lopez julio-lopez changed the title fix(general): run epoch maintenance for quick maintenance fix(general): run epoch maintenance in quick maintenance Oct 25, 2024
alvistar pushed a commit to alvistar/kopia that referenced this pull request Oct 29, 2024
Changes:

* test that quick maintenance runs when epoch manager is enabled

* fix(general): run epoch maintenance for quick maintenance
  Change based on a known-to-be-safe portion of the changes proposed in kopia#3901

* cleanup: pass epoch manager to `runTaskEpochMaintenanceQuick`
The caller needs to get the epoch manager to determine
whether or not the epoch manager is enabled. The caller
now passes the epoch manager to `runTaskEpochMaintenanceQuick`

* wrap the error inside runTaskEpochMaintenanceQuick
mcamou pushed a commit to mcamou/kopia that referenced this pull request Oct 30, 2024
Changes:

* test that quick maintenance runs when epoch manager is enabled

* fix(general): run epoch maintenance for quick maintenance
  Change based on a known-to-be-safe portion of the changes proposed in kopia#3901

* cleanup: pass epoch manager to `runTaskEpochMaintenanceQuick`
The caller needs to get the epoch manager to determine
whether or not the epoch manager is enabled. The caller
now passes the epoch manager to `runTaskEpochMaintenanceQuick`

* wrap the error inside runTaskEpochMaintenanceQuick
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.

4 participants