fix(2): cryptpad roundtrip — more patient pad-creation wait (240s + reload) for cold fresh deploy
Full-suite custom-tier run showed the pad #/2/pad/edit fragment didn't appear within 80s on a fresh cold deploy (passed on the warm probe). Bump _open_pad hash-wait to ~240s + one mid-way reload. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@ -43,11 +43,23 @@ def _open_pad(ctx, url):
|
||||
deadline_seconds=150,
|
||||
)
|
||||
pad_url = url
|
||||
for _ in range(40): # up to ~80s for the pad to be created/loaded (cold-cache LESS compile)
|
||||
# Up to ~240s for CryptPad to create/load the fragment-keyed pad. A FRESH per-run deploy is
|
||||
# cold (server datastore + LESS compile + first-ever websocket), and `/` → 200 (the recipe
|
||||
# health gate) can be reached before CryptPad's API is ready to mint a pad — so be patient and,
|
||||
# if no pad after ~80s, reload once to unstick a load that stalled before pad creation.
|
||||
for i in range(120):
|
||||
page.wait_for_timeout(2000)
|
||||
if "#/2/pad/edit/" in page.url:
|
||||
pad_url = page.url
|
||||
break
|
||||
if i == 40:
|
||||
try:
|
||||
harness_browser.goto_with_retry(
|
||||
page, url, accept_statuses=(200,), goto_timeout_ms=60_000,
|
||||
wait_until="load", deadline_seconds=120,
|
||||
)
|
||||
except Exception: # noqa: BLE001 — best-effort unstick
|
||||
pass
|
||||
return page, pad_url
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user