Skip to content

Conversation

@julio-lopez
Copy link
Collaborator

Followup to #4185

Credits to @ashmrtn for the feedback.

Broken down individual changes into separate commits to facilitate review.

Comment on lines -68 to -74
// verify quick maintenance was run
sch, err = maintenance.GetSchedule(ctx, env.RepositoryWriter)

require.NoError(t, err)

require.NotEmpty(t, sch.Runs, "maintenance runs")
require.False(t, sch.NextQuickMaintenanceTime.IsZero(), "unexpected NextQuickMaintenanceTime")
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This was already in the verifyEpochTaskRanInQuickMaintenance helper.

@codecov
Copy link

codecov bot commented Oct 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.08%. Comparing base (cb455c6) to head (6b0e01b).
Report is 308 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4191      +/-   ##
==========================================
+ Coverage   75.86%   76.08%   +0.21%     
==========================================
  Files         470      501      +31     
  Lines       37301    38483    +1182     
==========================================
+ Hits        28299    29280     +981     
- Misses       7071     7258     +187     
- Partials     1931     1945      +14     

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

@julio-lopez julio-lopez force-pushed the cleanup/quick-epoch-comp branch from 6d0a7ee to 6b0e01b Compare October 22, 2024 06:55
@julio-lopez julio-lopez marked this pull request as ready for review October 22, 2024 06:55
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 👍

@julio-lopez julio-lopez merged commit f5b023a into kopia:master Oct 22, 2024
@julio-lopez julio-lopez deleted the cleanup/quick-epoch-comp branch October 22, 2024 19:27
@julio-lopez
Copy link
Collaborator Author

Thanks @redgoat650

alvistar pushed a commit to alvistar/kopia that referenced this pull request Oct 29, 2024
* move common functionality into `verifyEpochTaskRanInQuickMaintenance` helper
* add `verifyEpochManagerIsEnabled` helper
* add `setRepositoryOwner` helper
* rename helper
mcamou pushed a commit to mcamou/kopia that referenced this pull request Oct 30, 2024
* move common functionality into `verifyEpochTaskRanInQuickMaintenance` helper
* add `verifyEpochManagerIsEnabled` helper
* add `setRepositoryOwner` helper
* rename helper
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.

2 participants