Add service to checksum PackageFiles on primary
Problem to solve
https://gitlab.com/gitlab-org/gitlab-ee/issues/13839 is too big so this breaks out the first chunk of work for it.
Intended users
- Systems administrators
Proposal
- Add to
packagestable (or a new associated table), similar toproject_repository_states:verification_failureverification_retry_atverification_retry_countlast_verification_ran_at
- Modify
PackageFile.calculate_checksum!so it updates the new fields - Add
Geo::PackageFileVerificationPrimaryService(or repurposeUploadChecksumWorker) which takes a PackageFile- Calls
PackageFile.calculate_checksum!and saves - In a later iteration, this will create a
Geo::ResetPackageFileChecksumEventStore
- Calls
Permissions and Security
N/A
Documentation
N/A
Testing
TBD
What does success look like, and how can we measure that?
There is a Geo::PackageFileVerificationPrimaryService (or repurpose UploadChecksumWorker) which saves a checksum on a primary, given a Package, and saves success/failure data.
What is the type of buyer?
- Premium
- Ultimate
Links / references
Edited by Michael Kozono