Skip to content

Commit 8559064

Browse files
committed
fixups: get everything to work! :)
1 parent 87d1dd8 commit 8559064

File tree

6 files changed

+309
-237
lines changed

6 files changed

+309
-237
lines changed

.evergreen.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10604,7 +10604,7 @@ buildvariants:
1060410604
tags: []
1060510605
expansions:
1060610606
executable_os_id: darwin-arm64
10607-
mongosh_server_test_version: "8.2.0-rc4"
10607+
mongosh_server_test_version: "8.2.0"
1060810608
node_js_version: "20.19.5"
1060910609
mongosh_skip_node_version_check: ""
1061010610
tasks:
@@ -10637,7 +10637,7 @@ buildvariants:
1063710637
tags: []
1063810638
expansions:
1063910639
executable_os_id: darwin-arm64
10640-
mongosh_server_test_version: "8.2.0-rc4-enterprise"
10640+
mongosh_server_test_version: "8.2.0-enterprise"
1064110641
node_js_version: "20.19.5"
1064210642
mongosh_skip_node_version_check: ""
1064310643
tasks:
@@ -11099,7 +11099,7 @@ buildvariants:
1109911099
tags: ["nightly-driver"]
1110011100
expansions:
1110111101
executable_os_id: darwin-arm64
11102-
mongosh_server_test_version: "8.2.0-rc4"
11102+
mongosh_server_test_version: "8.2.0"
1110311103
node_js_version: "20.19.5"
1110411104
mongosh_skip_node_version_check: ""
1110511105
tasks:
@@ -11132,7 +11132,7 @@ buildvariants:
1113211132
tags: ["nightly-driver"]
1113311133
expansions:
1113411134
executable_os_id: darwin-arm64
11135-
mongosh_server_test_version: "8.2.0-rc4-enterprise"
11135+
mongosh_server_test_version: "8.2.0-enterprise"
1113611136
node_js_version: "20.19.5"
1113711137
mongosh_skip_node_version_check: ""
1113811138
tasks:
@@ -11614,7 +11614,7 @@ buildvariants:
1161411614
tags: []
1161511615
expansions:
1161611616
executable_os_id: win32
11617-
mongosh_server_test_version: "8.2.0-rc4"
11617+
mongosh_server_test_version: "8.2.0"
1161811618
node_js_version: "20.19.5"
1161911619
mongosh_skip_node_version_check: ""
1162011620
tasks:
@@ -11646,7 +11646,7 @@ buildvariants:
1164611646
tags: []
1164711647
expansions:
1164811648
executable_os_id: win32
11649-
mongosh_server_test_version: "8.2.0-rc4-enterprise"
11649+
mongosh_server_test_version: "8.2.0-enterprise"
1165011650
node_js_version: "20.19.5"
1165111651
mongosh_skip_node_version_check: ""
1165211652
tasks:

.evergreen/constants.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ exports.MONGODB_VERSIONS = [
3737
{ shortName: '70xe', versionSpec: '7.0.x-enterprise' },
3838
{ shortName: '80xc', versionSpec: '8.0.x' },
3939
{ shortName: '80xe', versionSpec: '8.0.x-enterprise' },
40-
{ shortName: '82rc', versionSpec: '8.2.0-rc4' },
41-
{ shortName: '82rce', versionSpec: '8.2.0-rc4-enterprise' },
40+
{ shortName: '82rc', versionSpec: '8.2.0' },
41+
{ shortName: '82rce', versionSpec: '8.2.0-enterprise' },
4242
{ shortName: 'latest', versionSpec: 'latest-alpha-enterprise' },
4343
];
4444

packages/build/src/packaging/download-crypt-library.ts

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ import type { PackageVariant } from '../config';
77
import { getDistro, getArch } from '../config';
88

99
export async function downloadCryptLibrary(
10-
variant: PackageVariant | 'host'
10+
variant: PackageVariant | 'host',
11+
versionSpec = ''
1112
): Promise<{ cryptLibrary: string; version: string }> {
1213
let opts: DownloadOptions = {};
1314
opts.arch = variant === 'host' ? undefined : getArch(variant);
@@ -32,18 +33,19 @@ export async function downloadCryptLibrary(
3233
'crypt-store',
3334
variant
3435
);
35-
// Download mongodb for latest server version, including rapid releases
36-
// (for the platforms that they exist for, i.e. for ppc64le/s390x only pick stable releases).
37-
let versionSpec = '8.0.12'; // TODO(MONGOSH-2192): Switch back to 'continuous' and deal with affected platform support.
3836

39-
// For 8.2.0-rc4, we use the equivalent crypt shared library version for testing.
40-
if (process.env.MONGOSH_SERVER_TEST_VERSION === '8.2.0-rc4-enterprise') {
41-
versionSpec = '8.2.0-rc4';
42-
} else if (/ppc64|s390x/.test(opts.arch || process.arch)) {
43-
versionSpec = '8.0.12';
44-
} else if ((opts.platform || process.platform) === 'darwin') {
45-
versionSpec = '8.0.5'; // TBD(MONGOSH-2192,SERVER-101020): Figure out at what point we use a later version.
37+
if (!versionSpec) {
38+
// Download mongodb for latest server version, including rapid releases
39+
// (for the platforms that they exist for, i.e. for ppc64le/s390x only pick stable releases).
40+
versionSpec = '8.0.12'; // TODO(MONGOSH-2192): Switch back to 'continuous' and deal with affected platform support.
41+
42+
if (/ppc64|s390x/.test(opts.arch || process.arch)) {
43+
versionSpec = '8.0.12';
44+
} else if ((opts.platform || process.platform) === 'darwin') {
45+
versionSpec = '8.0.5'; // TBD(MONGOSH-2192,SERVER-101020): Figure out at what point we use a later version.
46+
}
4647
}
48+
4749
const { downloadedBinDir: libdir, version } =
4850
await downloadMongoDbWithVersionInfo(cryptTmpTargetDir, versionSpec, opts);
4951
const cryptLibrary = path.join(
@@ -54,7 +56,9 @@ export async function downloadCryptLibrary(
5456
);
5557
// Make sure that the binary exists and is readable.
5658
await fs.access(cryptLibrary, fsConstants.R_OK);
57-
console.info('mongosh: downloaded', cryptLibrary, 'version', version);
59+
console.info(
60+
`mongosh: downloaded ${cryptLibrary} version ${version} (requested: ${versionSpec})`
61+
);
5862
return { cryptLibrary, version };
5963
}
6064

0 commit comments

Comments
 (0)