Skip to content

Commit 5c986b1

Browse files
authored
test(NODE-6820): test on Graviton processor (#4936)
1 parent 1a0ec07 commit 5c986b1

3 files changed

Lines changed: 40 additions & 2 deletions

File tree

.evergreen/ci_matrix_constants.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ const UBUNTU_OS = 'ubuntu1804-large';
2020
const UBUNTU_20_OS = 'ubuntu2004-small';
2121
const UBUNTU_22_OS = 'ubuntu2204-large';
2222
const DEBIAN_OS = 'debian11-small';
23+
const GRAVITON_OS = 'amazon2023-arm64-latest-large-m8g';
2324

2425
module.exports = {
2526
MONGODB_VERSIONS,
@@ -37,5 +38,6 @@ module.exports = {
3738
UBUNTU_OS,
3839
UBUNTU_20_OS,
3940
UBUNTU_22_OS,
40-
DEBIAN_OS
41+
DEBIAN_OS,
42+
GRAVITON_OS
4143
};

.evergreen/config.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4079,3 +4079,17 @@ buildvariants:
40794079
NODE_LTS_VERSION: 24
40804080
CLIENT_ENCRYPTION: true
40814081
MONGODB_BUNDLED: true
4082+
- name: amazon-linux-2023-arm64-graviton4
4083+
display_name: Graviton4 AL2023 Node24
4084+
run_on: amazon2023-arm64-latest-large-m8g
4085+
expansions:
4086+
NODE_LTS_VERSION: 24
4087+
CLIENT_ENCRYPTION: true
4088+
TEST_CSFLE: true
4089+
tasks:
4090+
- test-latest-server
4091+
- test-latest-replica_set
4092+
- test-latest-sharded_cluster
4093+
- test-latest-server-v1-api
4094+
- test-zstd-compression
4095+
- test-snappy-compression

.evergreen/generate_evergreen_tasks.js

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ const {
1717
MACOS_OS,
1818
UBUNTU_20_OS,
1919
DEBIAN_OS,
20-
UBUNTU_22_OS
20+
UBUNTU_22_OS,
21+
GRAVITON_OS
2122
} = require('./ci_matrix_constants');
2223

2324
// TODO(NODE-7499): unpin npm version once Node 22 ships a bundled npm that can upgrade itself
@@ -875,6 +876,27 @@ BUILD_VARIANTS.push({
875876
expansions: nodelessExpansions
876877
});
877878

879+
const gravitonTasks = [
880+
'test-latest-server',
881+
'test-latest-replica_set',
882+
'test-latest-sharded_cluster',
883+
'test-latest-server-v1-api',
884+
'test-zstd-compression',
885+
'test-snappy-compression'
886+
];
887+
888+
BUILD_VARIANTS.push({
889+
name: 'amazon-linux-2023-arm64-graviton4',
890+
display_name: `Graviton4 AL2023 Node${LATEST_LTS}`,
891+
run_on: GRAVITON_OS,
892+
expansions: {
893+
NODE_LTS_VERSION: LATEST_LTS,
894+
CLIENT_ENCRYPTION: true,
895+
TEST_CSFLE: true
896+
},
897+
tasks: gravitonTasks
898+
});
899+
878900
// TODO(NODE-4897): Debug socks5 tests on node latest
879901
for (const variant of BUILD_VARIANTS.filter(
880902
variant => variant.expansions && ['latest'].includes(variant.expansions.NODE_LTS_VERSION)

0 commit comments

Comments
 (0)