Skip to content

Commit f076c82

Browse files
changes
1 parent 4842cd8 commit f076c82

File tree

5 files changed

+149
-42
lines changed

5 files changed

+149
-42
lines changed

.evergreen/config.yml

Lines changed: 41 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2105,7 +2105,23 @@ tasks:
21052105
- func: install dependencies
21062106
- func: bootstrap mongo-orchestration
21072107
- func: run socks5 tests
2108-
- name: test-zstd-compression
2108+
- name: test-snappy-compression
2109+
tags:
2110+
- latest
2111+
- snappy
2112+
commands:
2113+
- command: expansions.update
2114+
type: setup
2115+
params:
2116+
updates:
2117+
- {key: VERSION, value: latest}
2118+
- {key: TOPOLOGY, value: replica_set}
2119+
- {key: AUTH, value: auth}
2120+
- {key: COMPRESSOR, value: snappy}
2121+
- func: install dependencies
2122+
- func: bootstrap mongo-orchestration
2123+
- func: run-compression-tests
2124+
- name: test-zstd-1.x-compression
21092125
tags:
21102126
- latest
21112127
- zstd
@@ -2120,11 +2136,14 @@ tasks:
21202136
- {key: COMPRESSOR, value: zstd}
21212137
- func: install dependencies
21222138
- func: bootstrap mongo-orchestration
2139+
- func: install package
2140+
vars:
2141+
PACKAGE: '@mongodb-js/[email protected]'
21232142
- func: run-compression-tests
2124-
- name: test-snappy-compression
2143+
- name: test-zstd-2.x-compression
21252144
tags:
21262145
- latest
2127-
- snappy
2146+
- zstd
21282147
commands:
21292148
- command: expansions.update
21302149
type: setup
@@ -2133,7 +2152,7 @@ tasks:
21332152
- {key: VERSION, value: latest}
21342153
- {key: TOPOLOGY, value: replica_set}
21352154
- {key: AUTH, value: auth}
2136-
- {key: COMPRESSOR, value: snappy}
2155+
- {key: COMPRESSOR, value: zstd}
21372156
- func: install dependencies
21382157
- func: bootstrap mongo-orchestration
21392158
- func: run-compression-tests
@@ -4785,6 +4804,8 @@ buildvariants:
47854804
- test-socks5
47864805
- test-socks5-csfle
47874806
- test-socks5-tls
4807+
- test-zstd-1.x-compression
4808+
- test-zstd-2.x-compression
47884809
- test-tls-support-latest
47894810
- test-tls-support-8.0
47904811
- test-tls-support-7.0
@@ -4841,6 +4862,8 @@ buildvariants:
48414862
- test-socks5
48424863
- test-socks5-csfle
48434864
- test-socks5-tls
4865+
- test-zstd-1.x-compression
4866+
- test-zstd-2.x-compression
48444867
- test-tls-support-latest
48454868
- test-tls-support-8.0
48464869
- test-tls-support-7.0
@@ -4897,6 +4920,8 @@ buildvariants:
48974920
- test-socks5
48984921
- test-socks5-csfle
48994922
- test-socks5-tls
4923+
- test-zstd-1.x-compression
4924+
- test-zstd-2.x-compression
49004925
- test-tls-support-latest
49014926
- test-tls-support-8.0
49024927
- test-tls-support-7.0
@@ -4953,8 +4978,9 @@ buildvariants:
49534978
- test-socks5
49544979
- test-socks5-csfle
49554980
- test-socks5-tls
4956-
- test-zstd-compression
49574981
- test-snappy-compression
4982+
- test-zstd-1.x-compression
4983+
- test-zstd-2.x-compression
49584984
- test-tls-support-latest
49594985
- test-tls-support-8.0
49604986
- test-tls-support-7.0
@@ -5009,8 +5035,9 @@ buildvariants:
50095035
- test-auth-ldap
50105036
- test-socks5-csfle
50115037
- test-socks5-tls
5012-
- test-zstd-compression
50135038
- test-snappy-compression
5039+
- test-zstd-1.x-compression
5040+
- test-zstd-2.x-compression
50145041
- test-tls-support-latest
50155042
- test-tls-support-8.0
50165043
- test-tls-support-7.0
@@ -5055,6 +5082,8 @@ buildvariants:
50555082
- test-latest-server-v1-api
50565083
- test-socks5
50575084
- test-socks5-tls
5085+
- test-zstd-1.x-compression
5086+
- test-zstd-2.x-compression
50585087
- test-tls-support-latest
50595088
- test-tls-support-8.0
50605089
- test-tls-support-7.0
@@ -5099,6 +5128,8 @@ buildvariants:
50995128
- test-latest-server-v1-api
51005129
- test-socks5
51015130
- test-socks5-tls
5131+
- test-zstd-1.x-compression
5132+
- test-zstd-2.x-compression
51025133
- test-tls-support-latest
51035134
- test-tls-support-8.0
51045135
- test-tls-support-7.0
@@ -5143,6 +5174,8 @@ buildvariants:
51435174
- test-latest-server-v1-api
51445175
- test-socks5
51455176
- test-socks5-tls
5177+
- test-zstd-1.x-compression
5178+
- test-zstd-2.x-compression
51465179
- test-tls-support-latest
51475180
- test-tls-support-8.0
51485181
- test-tls-support-7.0
@@ -5187,8 +5220,9 @@ buildvariants:
51875220
- test-latest-server-v1-api
51885221
- test-socks5
51895222
- test-socks5-tls
5190-
- test-zstd-compression
51915223
- test-snappy-compression
5224+
- test-zstd-1.x-compression
5225+
- test-zstd-2.x-compression
51925226
- test-tls-support-latest
51935227
- test-tls-support-8.0
51945228
- test-tls-support-7.0

.evergreen/generate_evergreen_tasks.js

Lines changed: 54 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -211,23 +211,60 @@ TASKS.push(
211211
]
212212
);
213213

214-
for (const compressor of ['zstd', 'snappy']) {
215-
TASKS.push({
216-
name: `test-${compressor}-compression`,
217-
tags: ['latest', compressor],
218-
commands: [
219-
updateExpansions({
220-
VERSION: 'latest',
221-
TOPOLOGY: 'replica_set',
222-
AUTH: 'auth',
223-
COMPRESSOR: compressor
224-
}),
225-
{ func: 'install dependencies' },
226-
{ func: 'bootstrap mongo-orchestration' },
227-
{ func: 'run-compression-tests' }
228-
]
229-
});
230-
}
214+
TASKS.push({
215+
name: `test-snappy-compression`,
216+
tags: ['latest', 'snappy'],
217+
commands: [
218+
updateExpansions({
219+
VERSION: 'latest',
220+
TOPOLOGY: 'replica_set',
221+
AUTH: 'auth',
222+
COMPRESSOR: 'snappy'
223+
}),
224+
{ func: 'install dependencies' },
225+
{ func: 'bootstrap mongo-orchestration' },
226+
{ func: 'run-compression-tests' }
227+
]
228+
});
229+
230+
TASKS.push({
231+
name: `test-zstd-1.x-compression`,
232+
tags: ['latest', 'zstd'],
233+
commands: [
234+
updateExpansions({
235+
VERSION: 'latest',
236+
TOPOLOGY: 'replica_set',
237+
AUTH: 'auth',
238+
COMPRESSOR: 'zstd'
239+
}),
240+
{ func: 'install dependencies' },
241+
{ func: 'bootstrap mongo-orchestration' },
242+
{
243+
func: 'install package',
244+
vars: {
245+
PACKAGE: '@mongodb-js/[email protected]'
246+
}
247+
},
248+
{ func: 'run-compression-tests' }
249+
]
250+
});
251+
252+
TASKS.push({
253+
name: `test-zstd-2.x-compression`,
254+
tags: ['latest', 'zstd'],
255+
commands: [
256+
updateExpansions({
257+
VERSION: 'latest',
258+
TOPOLOGY: 'replica_set',
259+
AUTH: 'auth',
260+
COMPRESSOR: 'zstd'
261+
}),
262+
{ func: 'install dependencies' },
263+
{ func: 'bootstrap mongo-orchestration' },
264+
// no need to manually install zstd - we specify 2.x as a dev dependency in package.json
265+
{ func: 'run-compression-tests' }
266+
]
267+
});
231268

232269
const AWS_LAMBDA_HANDLER_TASKS = [];
233270
// Add task for testing lambda example without aws auth.

package-lock.json

Lines changed: 47 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)