nasa / Common-Metadata-Repository

Apache License 2.0
340 stars 94 forks source link

CMR-9618: As CMR Developer, I want KMS cache refresh job to be scheduled in AWS EventBridge #2050

Closed TylerHeald1 closed 8 months ago

TylerHeald1 commented 9 months ago

AWS EventBridge rule has been created in SIT that can call a Lambda that then makes a call to a CMR endpoint that kicks off the RefreshKMSCache job. The following tools have been created to assist with the whole process

  1. Python tool that creates EventBridge rule with the already deployed job-router Lambda as a target
  2. Python tool that runs jobs locally on a schedule so that jobs will still be run on a schedule once Quartz is removed
codecov-commenter commented 9 months ago

Codecov Report

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

Comparison is base (f716367) 58.15% compared to head (75b3ea8) 58.15%. Report is 7 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #2050 +/- ## ======================================= Coverage 58.15% 58.15% ======================================= Files 1041 1041 Lines 69501 69491 -10 Branches 1950 1949 -1 ======================================= - Hits 40417 40414 -3 + Misses 27249 27242 -7 Partials 1835 1835 ```

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

TylerHeald1 commented 9 months ago

A couple tickets have been made for further work in the job-utilities/job-router area that isn't needed for this ticket. CMR-9688: Add multi-task functionality to job-router CMR-9689: Allow local job scheduler to start on CMR local start-up

TylerHeald1 commented 8 months ago

Had to rename folders so that it works better with the python unittest process, still working on some unittest items

jmaeng72 commented 8 months ago

The bamboo build will not trigger the unit tests for this python project. Do we want to add the auto-run of python unit tests to the bamboo build?

TylerHeald1 commented 8 months ago

EDIT: bamboo builds trigger tests and create code package