sigstore / rekor

Software Supply Chain Transparency Log
https://sigstore.dev
Apache License 2.0
857 stars 160 forks source link

Add script to delete indexes from Redis #2120

Closed cmurphy closed 1 month ago

cmurphy commented 1 month ago

Add a script to check what indexes are in the EntryIndex table in a MySQL database and deletes those indexes from the Redis database. This is meant to be done after Rekor is migrated to using --search_index.storage_provider=mysql and the MySQL table has been backfilled with all the indexes. Deleting the data allows us to downsize the Redis instance.

Summary

Release Note

Documentation

codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 68.63%. Comparing base (488eb97) to head (326bf52). Report is 111 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #2120 +/- ## ========================================== + Coverage 66.46% 68.63% +2.17% ========================================== Files 92 92 Lines 9258 7288 -1970 ========================================== - Hits 6153 5002 -1151 + Misses 2359 1542 -817 + Partials 746 744 -2 ``` | [Flag](https://app.codecov.io/gh/sigstore/rekor/pull/2120/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=sigstore) | Coverage Δ | | |---|---|---| | [e2etests](https://app.codecov.io/gh/sigstore/rekor/pull/2120/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=sigstore) | `50.38% <ø> (+2.82%)` | :arrow_up: | | [unittests](https://app.codecov.io/gh/sigstore/rekor/pull/2120/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=sigstore) | `48.92% <ø> (+1.23%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=sigstore#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.