Skip to content

Commit 4e00057

Browse files
committed
test(NODE-4574): skip zstd and snappy on gallium
1 parent 2e47102 commit 4e00057

File tree

2 files changed

+20
-10
lines changed

2 files changed

+20
-10
lines changed

.evergreen/config.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2160,8 +2160,6 @@ buildvariants:
21602160
- test-auth-ldap
21612161
- test-socks5
21622162
- test-socks5-tls
2163-
- test-zstd-compression
2164-
- test-snappy-compression
21652163
- test-tls-support-latest
21662164
- test-tls-support-6.0
21672165
- test-tls-support-5.0
@@ -2219,8 +2217,6 @@ buildvariants:
22192217
- test-auth-ldap
22202218
- test-socks5
22212219
- test-socks5-tls
2222-
- test-zstd-compression
2223-
- test-snappy-compression
22242220
- test-tls-support-latest
22252221
- test-tls-support-6.0
22262222
- test-tls-support-5.0
@@ -2272,8 +2268,6 @@ buildvariants:
22722268
- test-atlas-data-lake
22732269
- test-socks5
22742270
- test-socks5-tls
2275-
- test-zstd-compression
2276-
- test-snappy-compression
22772271
- test-tls-support-latest
22782272
- test-tls-support-6.0
22792273
- test-tls-support-5.0

.evergreen/generate_evergreen_tasks.js

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ TASKS.push(
227227
]
228228
);
229229

230-
['zstd', 'snappy'].forEach(compressor => {
230+
for (const compressor of ['zstd', 'snappy']) {
231231
TASKS.push({
232232
name: `test-${compressor}-compression`,
233233
tags: ['latest', compressor],
@@ -245,7 +245,7 @@ TASKS.push(
245245
{ func: 'run-compression-tests' }
246246
]
247247
});
248-
});
248+
}
249249

250250
TLS_VERSIONS.forEach(VERSION => {
251251
TASKS.push({
@@ -549,8 +549,8 @@ const oneOffFuncAsTasks = oneOffFuncs.map(oneOffFunc => ({
549549
]
550550
}));
551551

552-
[ '5.0', 'rapid', 'latest' ].forEach(version => {
553-
[ 'c071d5a8d59ddcad40f22887a12bdb374c2f86af', 'master' ].forEach(ref => {
552+
['5.0', 'rapid', 'latest'].forEach(version => {
553+
['c071d5a8d59ddcad40f22887a12bdb374c2f86af', 'master'].forEach(ref => {
554554
oneOffFuncAsTasks.push({
555555
name: `run-custom-csfle-tests-${version}-${ref === 'master' ? ref : 'pinned-commit'}`,
556556
tags: ['run-custom-dependency-tests'],
@@ -622,6 +622,22 @@ BUILD_VARIANTS.push({
622622
tasks: AUTH_DISABLED_TASKS.map(({ name }) => name)
623623
});
624624

625+
// TODO(NODE-4575): unskip zstd and snappy on node 16
626+
for (const variant of BUILD_VARIANTS.filter(variant => {
627+
if (variant.expansions) return variant.expansions.NODE_LTS_NAME === 'gallium';
628+
return variant.name.endsWith('gallium');
629+
})) {
630+
const zstdIndex = variant.tasks.findIndex(taskName => taskName === 'test-zstd-compression');
631+
if (zstdIndex !== -1) {
632+
variant.tasks.splice(zstdIndex, 1);
633+
}
634+
635+
const snappyIndex = variant.tasks.findIndex(taskName => taskName === 'test-snappy-compression');
636+
if (snappyIndex !== -1) {
637+
variant.tasks.splice(snappyIndex, 1);
638+
}
639+
}
640+
625641
const fileData = yaml.load(fs.readFileSync(`${__dirname}/config.in.yml`, 'utf8'));
626642
fileData.tasks = (fileData.tasks || [])
627643
.concat(BASE_TASKS)

0 commit comments

Comments
 (0)