[SERVER-73541] Use dynamic import for parallel tester Created: 02/Feb/23  Updated: 29/Oct/23  Resolved: 03/Feb/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.3.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Matt Broadstone Assignee: Matt Broadstone
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Server Serverless 2023-02-06
Participants:

 Description   

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.



 Comments   
Comment by Githook User [ 03/Feb/23 ]

Author:

{'name': 'Matt Broadstone', 'email': 'mbroadst@mongodb.com', 'username': 'mbroadst'}

Message: SERVER-73541 Use dynamic import when loading parallel tester tests
Branch: master
https://github.com/mongodb/mongo/commit/ee66aa703f68534866af61d17b6f72e0e229a001

Generated at Thu Feb 08 06:24:57 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.