repository-service-tuf / repository-service-tuf-worker

Repository Service for TUF: Worker
MIT License
8 stars 15 forks source link

Optimize custom target delegation retrieval #490

Closed MVrachev closed 5 months ago

MVrachev commented 5 months ago

Instead of loading targets and iterating through all its target roles I saved the delegated roles in a Redis environment for quick and shorter retrieval.

Additionally, inside _run_online_roles_bump I load targets only when we need it.

Signed-off-by: Martin Vrachev martin.vrachev@broadcom.com

codecov[bot] commented 5 months ago

Codecov Report

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

Project coverage is 100.00%. Comparing base (714a29d) to head (3aff9c4). Report is 24 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #490 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 15 15 Lines 1071 1123 +52 ========================================= + Hits 1071 1123 +52 ```

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