Try to make multiroot smoke test less flaky (#311127)

* Try to make multiroot smoke test less flaky

The 'Multiroot > shows results from all folders' smoke test on macOS
browser was failing because openFileQuickAccessAndWait() retries 9 times
in ~160ms with no backoff when it sees 'No matching results'. On a fresh
remote/browser server start, the workspace folders may not have been
attached yet (extension host still starting), so file search legitimately
returns 'No matching results' and all 9 retries fire before the workspace
is ready.

Add an incremental backoff between retries so slow workspace/file-search
initialization on CI has a chance to catch up.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Update test/automation/src/quickaccess.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Rob Lourens
2026-04-17 18:10:47 -07:00
committed by GitHub
parent 841ccf5c43
commit 995d3dce7c

View File

@@ -98,6 +98,13 @@ export class QuickAccess {
}
await this.quickInput.closeQuickInput();
// Back off between retries so that slow file search
// indexing (e.g. browser/remote on CI) has a chance to
// catch up before we hammer it again.
if (retries < 9) {
await this.code.wait(250 * retries);
}
}
if (!success) {