test: give the pool witness re-mint wait production slack
Co-Authored-By: GPT-6 Astra <noreply@openai.com>
internal/host/region_ha_g2_pool_root_linux_test.go+14 −1
Intent
<paseo-system version="1" kind="agent-message" source-agent-id="8a3d302a-eac7-407c-b61c-f5ccc66b5544" message-id="8c97e54a-2b18-4c6e-b8dd-e4478ed83fde"> Agent manager 8a3d302: known. Paul is restoring the amadan.net credential now (a fresh PAT through git credential approve). Keep building and testing locally, and don't touch credentials. I'll tell you when pushes work. </paseo-system>
<task-notification> <task-id>bm2u1rfar</task-id> <tool-use-id>toolu_019PhCBVFjHAYWaPhsbR6RsH</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/5555438b-7fa2-408d-b2c4-9fa87ea89332/tasks/bm2u1rfar.output</output-file> <status>completed</status> <summary>Background command "Run both witnesses live in parallel" completed (exit code 0)</summary> </task-notification>
diff --git a/internal/host/region_ha_g2_pool_root_linux_test.go b/internal/host/region_ha_g2_pool_root_linux_test.go| index 5a9db5b52..aacf00a81 100644 |
| --- a/internal/host/region_ha_g2_pool_root_linux_test.go |
| +++ b/internal/host/region_ha_g2_pool_root_linux_test.go |
| @@ -630,7 +630,20 @@ func TestRootG2PoolIngress(t *testing.T) { |
| g2Must(t, a.pools("ha")) |
| g2Must(t, a.isolationReady("withdrawal/"+fault+"/eligible")) |
| g2Serial(t, storage.deploy) |
| - g2Wait(t, "A reminted eligible row", 60*time.Second, func() bool { row, err := a.reg.Get(g2Host); return err == nil && row != nil }) |
| + remintStarted := time.Now() |
| + nextSerial := remintStarted.Add(20 * time.Second) |
| + g2Wait(t, "A reminted eligible row for "+fault, 180*time.Second, func() bool { |
| + row, err := a.reg.Get(g2Host) |
| + if err == nil && row != nil { |
| + return true |
| + } |
| + if !time.Now().Before(nextSerial) { |
| + g2Serial(t, storage.deploy) |
| + nextSerial = time.Now().Add(20 * time.Second) |
| + } |
| + return false |
| + }) |
| + t.Logf("withdrawal/%s time_to_remint=%s", fault, time.Since(remintStarted)) |
| aRef := a.state().Ref |
| g2Served(t, client, "withdrawal/"+fault+"/awake", g2Host, aRef, func() { |
| g2Stopped(t, g2Peer(t, g2RPC{Action: "state"}), g2Host) |