Skip to content

Geo Replicables: Reverify all failed registries

What does this MR do and why?

Closes #520355 (closed)

This change is focused on adding support to the Geo Replicables list view that allows customers to commit bulk Reverify actions to only registries whose Verification status is Failed.

Screenshots or screen recordings

Before After
Before Screenshot_2025-09-10_at_1.50.54_PM

Demo

Screen_Recording_2025-09-12_at_1.30.21_PM

How to set up and validate locally

Setup Geo (optional)

Important: To properly test Geo you will need a separate GDK setup. Setup is straightforward but takes some time. Another option is to validate the code functionally and if needed schedule a call to sync and I can screen share my instance.

  1. Ensure no other GDKs are running. gdk stop/gdk kill
  2. Open an empty directory and install and run Geo with the one-line command found on the Easy installation instructions
  3. Access your primary and secondary Geo instances via 127.0.0.1:3000 and 127.0.0.1:3001.

Testing

Resync All

  1. Access your primary GDK Geo Page (127.0.0.1:3000/admin/geo)
  2. Scroll down to the very bottom Replication details section
  3. Click one of the blue links (ex: Project Repositories)
  4. Click the Reverify all bulk action at the top right and confirm the modal
  5. Ensure all registries verification status gets reset to Pending (may need to refresh due to background job)

Reverify all failed

  1. Follow steps 1-3 in the section above
  2. Access rails console on your Secondary (rails c)
  3. Execute registry = Geo::ProjectRepositoryRegistry.first
    • This assigned the first ProjectRepositoryRegistry to a variable registry
  4. Execute registry.verification_pending! and then registry.verification_failed_with_message!('Error during verification', ArgumentError.new("asdf"))
    • This simulates a Verification Failure
  5. Repeat this for a few more (registry = Geo::ProjectRepositoryRegistry.second / registry = Geo::ProjectRepositoryRegistry.third)
  6. Click the chevron down next to Reverify all bulk action button and click Reverify all failed and confirm the modal
  7. Ensure only those you set to Failed have their verification status reset to Pending (may need to refresh due to background job)

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Zack Cuddy

Merge request reports

Loading