Skip to content

HMS-9584: Add test to verify cleanup function of expired snapshots#777

Open
mayurilahane wants to merge 1 commit intomainfrom
mlahane/9584
Open

HMS-9584: Add test to verify cleanup function of expired snapshots#777
mayurilahane wants to merge 1 commit intomainfrom
mlahane/9584

Conversation

@mayurilahane
Copy link
Contributor

Summary

  • Check for expired snapshots in Red Hat and EPEL repositories
  • Verify stage(91 days) and prod(366 days) environments
  • Make sure to have at least 1 snapshot in the repo

Testing steps

@mayurilahane mayurilahane changed the title test: add snapshot expiry check HMS-9584: Add test to verify cleanup function of expired snapshots Dec 4, 2025
@xbhouse
Copy link
Contributor

xbhouse commented Dec 4, 2025

@mayurilahane mayurilahane marked this pull request as ready for review December 5, 2025 04:21
@mayurilahane
Copy link
Contributor Author

Test will fail until we fix snapshot cleanup operation
raised a bug for it - https://issues.redhat.com/browse/HMS-9846

@marusak
Copy link
Member

marusak commented Dec 5, 2025

@rverdile Could you please check this out and also why those snapshots are not being deleted? Thanks!

Copy link
Contributor

@TenSt TenSt left a comment

Choose a reason for hiding this comment

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

lgtm

@TenSt TenSt self-assigned this Dec 5, 2025
@rverdile
Copy link
Contributor

rverdile commented Dec 5, 2025

@rverdile Could you please check this out and also why those snapshots are not being deleted? Thanks!

@marusak looking

@rverdile
Copy link
Contributor

rverdile commented Dec 5, 2025

Copy link
Contributor

@rverdile rverdile left a comment

Choose a reason for hiding this comment

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

just some comments about logging. otherwise this should be good once the tests can pass

@mayurilahane mayurilahane force-pushed the mlahane/9584 branch 2 times, most recently from f780ca3 to 6f02341 Compare December 10, 2025 02:18
@mayurilahane
Copy link
Contributor Author

Waiting for cleanup function to remove expired snapshots to pass this test

- Check for expired snapshots in Red Hat and EPEL repositories
- Verify stage(91 days) and prod(366 days) environments
- Make sure to have at least 1 snapshot in the repo
@swadeley
Copy link
Member

/retest

@swadeley swadeley closed this Jan 27, 2026
@swadeley swadeley reopened this Jan 27, 2026
@swadeley
Copy link
Member

Error: Found expired snapshots in 26 repos:

@marusak
Copy link
Member

marusak commented Jan 27, 2026

Yes, this will work once https://issues.redhat.com/browse/HMS-9885 is fixed

@rverdile
Copy link
Contributor

Now that content-services/content-sources-backend#1393 has merged, snapshot cleanup has started running again in stage. It's cleaning up the old snapshots in batches, so it will take ~4 days, but they should all be cleaned up soon.

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

Labels

blocked Cannot be merged at the moment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants