Fix geo-install CI: retry reconfigure if needed

Summary

Fixes the geo-install CI job intermittent failure when enabling Geo on a fresh GDK install.

Problem

On fresh installs with geo.enabled=true, the first gdk reconfigure may fail because the postgresql-geo runit service doesn't exist yet. The service is created when the Procfile is generated, but depending on timing, the restart attempt can happen before the service directory is fully set up.

This causes intermittent failures with the error:

ERROR: unknown runit service: /home/gdk/gdk/services/postgresql-geo

Solution

Run gdk reconfigure a second time only if the first one fails. This:

  • Fixes the intermittent failure by retrying when the service wasn't ready
  • Optimizes the common case where the first reconfigure succeeds (no unnecessary second run)

Testing

This fix was validated while testing the org migration POC in !5555.

Edited by Michael Kozono

Merge request reports

Loading