Flaky Autocompletion Test in Cli Repl on Windows

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • Developer Tools

      Flaky autocompletion test in packages/cli-repl/src/cli-repl.spec.ts where collection-name completion intermittently fails on CI (e.g., Windows / slower variants).

      A CliRepl autocompletion test in packages/cli-repl/src/cli-repl.spec.ts intermittently fails on CI: after inserting a collection with a random name and typing db.testcoll followed by Tab twice, the output sometimes remains just db.testcoll with no completion candidates, indicating a timing/caching race between collection creation and the completer’s collection-name cache refresh. This appears to be a pre-existing flaky test, see linked tickets.

      mongosh_win32_n24_test_cli_repl_patch_a93e3abe9a314c890f7042ab74206b0cff6ce911_6a5f52ac831015000712caf6_26_07_21_11_06_23:

      2026/07/21 07:21:46.160]   1) CliRepl
      [2026/07/21 07:21:46.160]        with an actual server
      [2026/07/21 07:21:46.160]          autocompletion
      [2026/07/21 07:21:46.160]            includes collection names:
      [2026/07/21 07:21:46.160]      AssertionError: expected 'db.testcoll' to include 'testcollection17846327353621'
      [2026/07/21 07:21:46.160]       at Context.<anonymous> (Z:\data\mci\c322\src\packages\cli-repl\src\cli-repl.spec.ts:2184:27)

            Assignee:
            Unassigned
            Reporter:
            Alena Khineika
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: