Skip to content

Commit a61d646

Browse files
authored
Merge branch 'main' into kh/increase-test-shell-timeout
2 parents ecc7598 + 4eccc32 commit a61d646

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+2987
-2764
lines changed

.evergreen.yml

Lines changed: 1005 additions & 1883 deletions
Large diffs are not rendered by default.

.evergreen/compilation-context-expansions.test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ rhel83-fips=false
3535
rhel83-zseries-small=false
3636
rhel90-arm64-small=false
3737
rhel90-small=false
38-
rhel92-fips=false
38+
rhel93-fips=false
3939
suse12-sp5-large=false
4040
suse15sp4-small=false
4141
ubuntu1804-arm64-large=false

.evergreen/evergreen.yml.in

Lines changed: 47 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ const MONGODB_VERSIONS = [
1515
{ shortName: '60xe', versionSpec: '6.0.x-enterprise' },
1616
{ shortName: '70xc', versionSpec: '7.0.x' },
1717
{ shortName: '70xe', versionSpec: '7.0.x-enterprise' },
18-
{ shortName: '80xc', versionSpec: '8.0.0-rc17' },
19-
{ shortName: '80xe', versionSpec: '8.0.0-rc17-enterprise' },
18+
{ shortName: '80xc', versionSpec: '8.0.x' },
19+
{ shortName: '80xe', versionSpec: '8.0.x-enterprise' },
2020
{ shortName: 'latest', versionSpec: 'latest-alpha-enterprise' }
2121
];
2222
const NODE_VERSIONS = [
@@ -47,8 +47,11 @@ for (const packageInfo of MONGOSH_PACKAGES) {
4747
for (const { shortName: mShort, versionSpec: mVersion } of MONGODB_VERSIONS) {
4848
let variants = packageInfo.variants ?? defaultVariants;
4949
variants = (mShort === '42xe') ?
50-
// The MongoDB 4.2 enterprise server does not work on Ubuntu 20.04
51-
variants.filter(v => v !== 'linux') :
50+
// The MongoDB 4.2 enterprise server does not work on Ubuntu 20.04 or arm64 macOS
51+
variants.filter(v => v !== 'linux' && v !== 'darwin') :
52+
// Unit tests on macOS use arm64 and therefore require 6.0+
53+
(['42xc', '42xe', '44xc', '44xe', '50xc', '50xe'].includes(mShort)) ?
54+
variants.filter(v => v !== 'darwin') :
5255
variants;
5356
const id = `m${mShort}_n${nShort}_${packageInfo.name.replace(/-/g, '_')}`;
5457
ALL_UNIT_TESTS.push({
@@ -68,6 +71,12 @@ const { RELEASE_PACKAGE_MATRIX } = require('../config/release-package-matrix');
6871
%>
6972
exec_timeout_secs: 10800
7073

74+
pre:
75+
- command: shell.exec
76+
params:
77+
shell: bash
78+
script: |
79+
rm -rf "$HOME/.mongodb/mongosh"
7180
post_error_fails_task: true
7281
post:
7382
- command: shell.exec
@@ -1198,7 +1207,7 @@ tasks:
11981207
# E2E TESTS
11991208
###
12001209
<% for (const { executableOsId, compileBuildVariant } of RELEASE_PACKAGE_MATRIX) {
1201-
for (const mVersion of ['stable', '8.0.0-rc17', '6.0.x']) {
1210+
for (const mVersion of ['stable', '7.0.x', '6.0.x']) {
12021211
for (const fipsVariant of ['fips', 'nofips']) {
12031212
%>
12041213
- name: e2e_tests_<% out(executableOsId.replace(/-/g, '_')) %><% out(mVersion === 'stable' ? '' : '_' + mVersion.replace(/[^a-zA-Z0-9]/g, '')) %><% out(fipsVariant === 'fips' ? '_fips' : '') %>
@@ -1493,10 +1502,10 @@ tasks:
14931502
# Need to run builds for every possible build variant.
14941503
buildvariants:
14951504
- name: darwin_unit
1496-
display_name: "MacOS Big Sur (Unit tests)"
1497-
run_on: macos-11
1505+
display_name: "MacOS 14 arm64 (Unit tests)"
1506+
run_on: macos-14-arm64
14981507
expansions:
1499-
executable_os_id: darwin-x64
1508+
executable_os_id: darwin-arm64
15001509
tasks:
15011510
- name: check
15021511
<% for (const test of ALL_UNIT_TESTS.filter(t => t.variants.includes('darwin'))) { %>
@@ -1676,13 +1685,13 @@ buildvariants:
16761685
run_on: rhel70-large
16771686
tags: ["nightly-driver"]
16781687
tasks:
1679-
- name: e2e_tests_linux_x64
1688+
- name: e2e_tests_linux_x64_70x
16801689
- name: e2e_rhel76_x64
16811690
display_name: "RHEL 7.6 x64 (E2E Tests)"
16821691
run_on: rhel76-large
16831692
tags: ["nightly-driver"]
16841693
tasks:
1685-
- name: e2e_tests_linux_x64
1694+
- name: e2e_tests_linux_x64_70x
16861695
- name: e2e_rhel80_x64
16871696
display_name: "RHEL 8.0 x64 (E2E Tests)"
16881697
run_on: rhel80-small
@@ -1695,6 +1704,14 @@ buildvariants:
16951704
expansions:
16961705
disable_openssl_shared_config_for_bundled_openssl: true
16971706
tags: ["nightly-driver"]
1707+
tasks:
1708+
- name: e2e_tests_linux_x64_70x
1709+
- name: e2e_rhel93_x64
1710+
display_name: "RHEL 9.3 x64 (E2E Tests)"
1711+
run_on: rhel93-small
1712+
expansions:
1713+
disable_openssl_shared_config_for_bundled_openssl: true
1714+
tags: ["nightly-driver"]
16981715
tasks:
16991716
- name: e2e_tests_linux_x64
17001717
- name: e2e_rhel83_x64
@@ -1705,9 +1722,9 @@ buildvariants:
17051722
- name: e2e_tests_linux_x64
17061723
- name: e2e_tests_linux_x64_openssl11
17071724
- name: e2e_tests_linux_x64_openssl11_fips
1708-
- name: e2e_rhel92_x64
1709-
display_name: "RHEL 9.2 x64 (E2E Tests, FIPS-available OS)"
1710-
run_on: rhel92-fips
1725+
- name: e2e_rhel93_fips_x64
1726+
display_name: "RHEL 9.3 x64 (E2E Tests, FIPS-available OS)"
1727+
run_on: rhel93-fips
17111728
tags: ["nightly-driver"]
17121729
tasks:
17131730
- name: e2e_tests_linux_x64
@@ -1738,8 +1755,8 @@ buildvariants:
17381755
run_on: ubuntu2404-small
17391756
tags: ["nightly-driver"]
17401757
tasks:
1741-
- name: e2e_tests_linux_x64_800rc17
1742-
- name: e2e_tests_linux_x64_openssl3_800rc17
1758+
- name: e2e_tests_linux_x64
1759+
- name: e2e_tests_linux_x64_openssl3
17431760
- name: e2e_debian10_x64
17441761
display_name: "Debian 10 x64 (E2E Tests)"
17451762
run_on: debian10-small
@@ -1752,14 +1769,14 @@ buildvariants:
17521769
run_on: debian11-small
17531770
tags: ["nightly-driver"]
17541771
tasks:
1755-
- name: e2e_tests_linux_x64
1756-
- name: e2e_tests_linux_x64_openssl11
1772+
- name: e2e_tests_linux_x64_70x
1773+
- name: e2e_tests_linux_x64_openssl11_70x
17571774
- name: e2e_amazon2_x64
17581775
display_name: "Amazon Linux 2 x64 (E2E Tests)"
17591776
run_on: amazon2-large
17601777
tags: ["nightly-driver"]
17611778
tasks:
1762-
- name: e2e_tests_linux_x64
1779+
- name: e2e_tests_linux_x64_70x
17631780
- name: e2e_amazon2023_x64
17641781
display_name: "Amazon Linux 2023 x64 (E2E Tests)"
17651782
run_on: amazon2023.0-small
@@ -1773,7 +1790,7 @@ buildvariants:
17731790
run_on: suse12-sp5-large
17741791
tags: ["nightly-driver"]
17751792
tasks:
1776-
- name: e2e_tests_linux_x64
1793+
- name: e2e_tests_linux_x64_70x
17771794
- name: e2e_suse15_x64
17781795
display_name: "SLES 15 x64 (E2E Tests)"
17791796
run_on: suse15sp4-small
@@ -1801,13 +1818,13 @@ buildvariants:
18011818
display_name: "Ubuntu 24.04 arm64 (E2E Tests)"
18021819
run_on: ubuntu2404-arm64-small
18031820
tasks:
1804-
- name: e2e_tests_linux_arm64_800rc17
1805-
- name: e2e_tests_linux_arm64_openssl3_800rc17
1821+
- name: e2e_tests_linux_arm64
1822+
- name: e2e_tests_linux_arm64_openssl3
18061823
- name: e2e_amazon2_arm64
18071824
display_name: "Amazon Linux 2 arm64 (E2E Tests)"
18081825
run_on: amazon2-arm64-large
18091826
tasks:
1810-
- name: e2e_tests_linux_arm64
1827+
- name: e2e_tests_linux_arm64_70x
18111828
- name: e2e_amazon2023_arm64
18121829
display_name: "Amazon Linux 2023 arm64 (E2E Tests)"
18131830
run_on: amazon2023.0-arm64-small
@@ -1823,6 +1840,14 @@ buildvariants:
18231840
- name: e2e_rhel90_arm64
18241841
display_name: "RHEL 9.0 arm64 (E2E Tests)"
18251842
run_on: rhel90-arm64-small
1843+
expansions:
1844+
disable_openssl_shared_config_for_bundled_openssl: true
1845+
tasks:
1846+
- name: e2e_tests_linux_arm64_70x
1847+
- name: e2e_tests_linux_arm64_openssl3_70x
1848+
- name: e2e_rhel93_arm64
1849+
display_name: "RHEL 9.3 arm64 (E2E Tests)"
1850+
run_on: rhel93-arm64-small
18261851
expansions:
18271852
disable_openssl_shared_config_for_bundled_openssl: true
18281853
tasks:

.evergreen/install-node.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export BASEDIR="$PWD/.evergreen"
55
if echo $NODE_JS_VERSION | grep -q ^16 ; then
66
NPM_VERSION=9.9.2 # 9.9.3 does not install well on Windows
77
else
8-
NPM_VERSION=10.x
8+
NPM_VERSION=10.8.3 # 10.9.0 does not install well on Windows
99
fi
1010

1111
if [ "$OS" == "Windows_NT" ]; then

.evergreen/node-20-latest.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"version": "20.17.0",
2+
"version": "20.18.0",
33
"major": 20,
4-
"minor": 17,
4+
"minor": 18,
55
"patch": 0,
66
"tag": "",
77
"codename": "iron",
@@ -10,7 +10,7 @@
1010
"lts": "2023-10-24T00:00:00.000Z",
1111
"maintenance": "2024-10-22T00:00:00.000Z",
1212
"end": "2026-04-30T00:00:00.000Z",
13-
"releaseDate": "2024-08-21T00:00:00.000Z",
13+
"releaseDate": "2024-10-03T00:00:00.000Z",
1414
"isLts": true,
1515
"files": [
1616
"aix-ppc64",

.evergreen/setup-env.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ set -x
44
export BASEDIR="$PWD/.evergreen"
55
export PATH="/cygdrive/c/python/Python311/Scripts:/cygdrive/c/python/Python311:/cygdrive/c/Python311/Scripts:/cygdrive/c/Python311:/opt/python/3.6/bin:$BASEDIR/mingit/cmd:$BASEDIR/mingit/mingw64/libexec/git-core:$BASEDIR/git-2:$BASEDIR/npm-10/node_modules/.bin:$BASEDIR/node-v$NODE_JS_VERSION-win-x64:/opt/java/jdk16/bin:/opt/chefdk/gitbin:/cygdrive/c/cmake/bin:/opt/mongodbtoolchain/v3/bin:$PATH"
66

7+
export MONGOSH_TEST_ONLY_MAX_LOG_FILE_COUNT=100000
78
export IS_MONGOSH_EVERGREEN_CI=1
89
export DEBUG="mongodb*,$DEBUG"
910

AUTHORS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,5 @@ dylrich <[email protected]>
3939
pulkitkalra-mdb <[email protected]>
4040
Alena Khineika <[email protected]>
4141
Orgad Shaneh <[email protected]>
42+
Kræn Hansen <[email protected]>
43+
Gagik Amaryan <[email protected]>

0 commit comments

Comments
 (0)