Split from #11509 (pull #11513 adds the backoff after a failure).
What. Today a look is queued on app.serving and the browser is opened at once; an app that is still warming up gets a failed picture and the look waits out a 30 s backoff. Before the first try, wait (bounded, a few seconds) until the app answers its health check, then take the pictures; one that never answers is recorded as not answering, without opening a browser.
Acceptance. A test with an app that answers only after a delay: one capture call, and it succeeds; an app that never answers: no capture call, one recorded reason.
Split from #11509 (pull #11513 adds the backoff after a failure).
What. Today a look is queued on
app.servingand the browser is opened at once; an app that is still warming up gets a failed picture and the look waits out a 30 s backoff. Before the first try, wait (bounded, a few seconds) until the app answers its health check, then take the pictures; one that never answers is recorded as not answering, without opening a browser.Acceptance. A test with an app that answers only after a delay: one capture call, and it succeeds; an app that never answers: no capture call, one recorded reason.