Geo: replicate DependencyListExportUpload uploads
What does this MR do and why?
Adds Geo SSF (self-service framework) replication and verification for the dependency_list_export_uploads partition table so Dependencies::DependencyListExport attachments are mirrored from the primary to secondary Geo sites alongside the other upload partitions.
Generated with scripts/geo/generate-blob-replicator:
scripts/geo/generate-blob-replicator \
--replicable-name=dependency_list_export_upload \
--model-class=Dependencies::DependencyListExport \
--table-name=dependency_list_export_uploads \
--sharding-key=organization_id,namespace_id,project_id \
--milestone=19.1 \
--upload-partitionReferences
- Closes #589907 (closed).
- Parent epic: &20933
How to set up and validate locally
Requires a primary + secondary Geo setup (e.g. two GDKs).
-
On both sites, run migrations:
bin/rake db:migrate db:migrate:geo -
On the primary, enable replication:
Feature.enable(:geo_dependency_list_export_upload_replication) -
Generate a dependency list export on the primary (UI: trigger a dependency list export for a group/project, or call
Dependencies::ExportServicedirectly). -
On the secondary, confirm the registry row was created and replication + verification succeeded:
Geo::DependencyListExportUploadRegistry.last=> state:'synced', verification_state:'succeeded' -
Confirm the file is present at the secondary's upload path and that
verification_checksummatches the primary's. -
Optionally re-verify:
Geo::DependencyListExportUploadRegistry.last.verification_pending!
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist.