Skip to content

Commit 3cf34ec

Browse files
authored
chore(ci): pin pymongo to 3.12.2 MONGOSH-1072 (#1165)
1 parent 4bba40a commit 3cf34ec

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

testing/integration-testing-hooks.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,9 @@ export async function getMlaunchPath(): Promise<{ exec: string[], env: Record<st
120120
return mlaunchPath = { exec: [ python, exec ], env: { PYTHONPATH: tmpdir } };
121121
}
122122
ciLog('Trying to install mlaunch in ', tmpdir);
123-
await execFile('pip3', ['install', '--target', tmpdir, 'mtools[mlaunch]']);
123+
// Pin pymongo to 3.12.2 because mlaunch does not seem to be compatible
124+
// with 4.0, see https://jira.mongodb.org/browse/MONGOSH-1072
125+
await execFile('pip3', ['install', '--target', tmpdir, 'mtools[mlaunch]', 'pymongo==3.12.2']);
124126
ciLog('Installation complete');
125127
[ exec ] = await tryExtensions(mlaunchPy);
126128
if (exec) {

0 commit comments

Comments
 (0)