From 995d3dce7c54fdf48474e8387bf863eb2aa69a7e Mon Sep 17 00:00:00 2001 From: Rob Lourens Date: Fri, 17 Apr 2026 18:10:47 -0700 Subject: [PATCH] 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> --- test/automation/src/quickaccess.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/automation/src/quickaccess.ts b/test/automation/src/quickaccess.ts index f28ec436636..1f70668f667 100644 --- a/test/automation/src/quickaccess.ts +++ b/test/automation/src/quickaccess.ts @@ -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) {