Use dynamic import for parallel tester

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 6.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Server Serverless 2023-02-06
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The parallel tester works by splitting eligible jstests into batches (~4), and then serially load ing them into a Thread spawned for each batch. This approach will not work with jstests which are not wrapped with an IIFE, and will not work when all tests are eventually modules. Instead, we should use dynamic import to load these tests, ensuring they are in their own scope.

              Assignee:
              Matt Broadstone
              Reporter:
              Matt Broadstone
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: