From 2e2ab21ac8e5ec515ea9dd37a2512d0c00767e54 Mon Sep 17 00:00:00 2001 From: Neal Beeken Date: Thu, 29 Aug 2024 14:25:02 -0400 Subject: [PATCH 1/2] chore: change node-latest task to use latest node version --- .evergreen/config.yml | 5 +++-- .evergreen/generate_evergreen_tasks.js | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.evergreen/config.yml b/.evergreen/config.yml index 6fec13aab8e..b912ff0ff78 100644 --- a/.evergreen/config.yml +++ b/.evergreen/config.yml @@ -4708,7 +4708,7 @@ buildvariants: display_name: rhel8 Node Latest run_on: rhel80-large expansions: - NODE_LTS_VERSION: 20 + NODE_LTS_VERSION: latest CLIENT_ENCRYPTION: true tasks: - test-latest-server @@ -4749,9 +4749,10 @@ buildvariants: - test-latest-load-balanced - test-auth-kerberos - test-auth-ldap - - test-socks5 - test-socks5-csfle - test-socks5-tls + - test-zstd-compression + - test-snappy-compression - test-tls-support-latest - test-tls-support-8.0 - test-tls-support-7.0 diff --git a/.evergreen/generate_evergreen_tasks.js b/.evergreen/generate_evergreen_tasks.js index 52d5d2124e3..13b5deec497 100644 --- a/.evergreen/generate_evergreen_tasks.js +++ b/.evergreen/generate_evergreen_tasks.js @@ -395,7 +395,7 @@ for (const { name: `${osName}-node-latest`, display_name: `${osDisplayName} Node Latest`, run_on, - expansions: { NODE_LTS_VERSION: LATEST_LTS }, + expansions: { NODE_LTS_VERSION: 'latest' }, tasks: tasks.map(({ name }) => name) }; if (clientEncryption) { From 1628884f0cef755766420843f1adc056a526b382 Mon Sep 17 00:00:00 2001 From: Neal Beeken Date: Thu, 29 Aug 2024 16:37:46 -0400 Subject: [PATCH 2/2] chore: skip on node 22.7.0 --- test/integration/crud/insert.test.js | 6 ++++++ test/integration/crud/unicode.test.js | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/test/integration/crud/insert.test.js b/test/integration/crud/insert.test.js index f154827d92a..c7c212d91d9 100644 --- a/test/integration/crud/insert.test.js +++ b/test/integration/crud/insert.test.js @@ -1,4 +1,5 @@ 'use strict'; +const semver = require('semver'); const { assert: test, ignoreNsNotFound, setupDatabase } = require('../shared'); const { format: f } = require('util'); const { expect } = require('chai'); @@ -1680,6 +1681,11 @@ describe('crud - insert', function () { }, test: function (done) { + if (semver.satisfies(process.versions.node, '22.7.0')) { + this.skipReason = 'Node.js 22.7.0 has a UTF-8 encoding bug'; + this.skip(); + } + var regexp = /foobaré/; var configuration = this.configuration; diff --git a/test/integration/crud/unicode.test.js b/test/integration/crud/unicode.test.js index b4332e4afc4..ab39df20fb0 100644 --- a/test/integration/crud/unicode.test.js +++ b/test/integration/crud/unicode.test.js @@ -1,4 +1,5 @@ 'use strict'; +const semver = require('semver'); const { assert: test, setupDatabase } = require('../shared'); const { expect } = require('chai'); @@ -13,6 +14,11 @@ describe('Unicode', function () { }, test: function (done) { + if (semver.satisfies(process.versions.node, '22.7.0')) { + this.skipReason = 'Node.js 22.7.0 has a UTF-8 encoding bug'; + this.skip(); + } + var configuration = this.configuration; var client = configuration.newClient(configuration.writeConcernMax(), { maxPoolSize: 1 }); client.connect(function (err, client) {