Skip to content

Commit 0dfdb56

Browse files
authored
CDRIVER-5924 test on Graviton (#1905)
1 parent 136c3db commit 0dfdb56

File tree

4 files changed

+87
-2
lines changed

4 files changed

+87
-2
lines changed

.evergreen/config_generator/components/sasl/openssl.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from typing import List
2-
31
from shrub.v3.evg_build_variant import BuildVariant
42

53
from config_generator.etc.utils import TaskRef
@@ -28,6 +26,7 @@
2826
('ubuntu2004-arm64', 'gcc', None, ['cyrus']),
2927
('ubuntu2004', 'gcc', None, ['cyrus']),
3028
('windows-vsCurrent', 'vs2017x64', None, ['cyrus']),
29+
('amazon2023-arm64-latest-large-m8g', 'gcc', None, ['cyrus']),
3130
]
3231

3332
TEST_MATRIX = [
@@ -40,6 +39,9 @@
4039

4140
# Test 4.2 with Debian 10 since 4.2 does not ship on Ubuntu 20.04+.
4241
('debian10', 'gcc', None, 'cyrus', ['auth'], ['server', 'replica'], ['4.2']),
42+
43+
# Test with Graviton processor:
44+
('amazon2023-arm64-latest-large-m8g', 'gcc', None, 'cyrus', ['auth'], ['server', 'replica', 'sharded'], ['latest']),
4345
]
4446
# fmt: on
4547
# pylint: enable=line-too-long

.evergreen/config_generator/etc/distros.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,11 @@ def ls_distro(name, **kwargs):
101101
*ls_distro(name='windows-vsCurrent', os='windows', os_type='windows', vs_ver='vsCurrent'), # Windows Server 2019
102102
]
103103

104+
GRAVITON_DISTROS = [
105+
Distro(name='amazon2023-arm64-latest-large-m8g', os='amazon2023', os_type='linux', os_ver='2023', arch='arm64'),
106+
Distro(name='amazon2-arm64-latest-large-m8g', os='amazon2', os_type='linux', os_ver='2', arch='arm64'),
107+
]
108+
104109
# See: https://evergreen.mongodb.com/distros
105110
# Ensure no-arch distros are ordered before arch-specific distros.
106111
ALL_DISTROS = [
@@ -113,6 +118,7 @@ def ls_distro(name, **kwargs):
113118
*UBUNTU_DISTROS,
114119
*UBUNTU_ARM64_DISTROS,
115120
*WINDOWS_DISTROS,
121+
*GRAVITON_DISTROS
116122
]
117123

118124

.evergreen/generated_configs/tasks.yml

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3652,6 +3652,79 @@ tasks:
36523652
- func: bootstrap-mongo-orchestration
36533653
- func: run-simple-http-server
36543654
- func: run-tests
3655+
- name: sasl-cyrus-openssl-amazon2023-arm64-latest-large-m8g-gcc-compile
3656+
run_on: amazon2023-arm64-latest-large-m8g
3657+
tags: [sasl-matrix-openssl, compile, amazon2023-arm64-latest-large-m8g, gcc, sasl-cyrus]
3658+
commands:
3659+
- func: find-cmake-latest
3660+
- func: sasl-cyrus-openssl-compile
3661+
vars:
3662+
CC: gcc
3663+
CXX: g++
3664+
- func: upload-build
3665+
- name: sasl-cyrus-openssl-amazon2023-arm64-latest-large-m8g-gcc-test-latest-replica-auth
3666+
run_on: amazon2023-arm64-latest-large-m8g
3667+
tags: [sasl-matrix-openssl, test, amazon2023-arm64-latest-large-m8g, gcc, sasl-cyrus, auth, replica, latest, openssl]
3668+
depends_on: [{ name: sasl-cyrus-openssl-amazon2023-arm64-latest-large-m8g-gcc-compile }]
3669+
commands:
3670+
- func: fetch-build
3671+
vars:
3672+
BUILD_NAME: sasl-cyrus-openssl-amazon2023-arm64-latest-large-m8g-gcc-compile
3673+
- command: expansions.update
3674+
params:
3675+
updates:
3676+
- { key: CC, value: gcc }
3677+
- { key: CXX, value: g++ }
3678+
- { key: AUTH, value: auth }
3679+
- { key: MONGODB_VERSION, value: latest }
3680+
- { key: TOPOLOGY, value: replica_set }
3681+
- { key: SSL, value: openssl }
3682+
- func: fetch-det
3683+
- func: bootstrap-mongo-orchestration
3684+
- func: run-simple-http-server
3685+
- func: run-tests
3686+
- name: sasl-cyrus-openssl-amazon2023-arm64-latest-large-m8g-gcc-test-latest-server-auth
3687+
run_on: amazon2023-arm64-latest-large-m8g
3688+
tags: [sasl-matrix-openssl, test, amazon2023-arm64-latest-large-m8g, gcc, sasl-cyrus, auth, server, latest, openssl]
3689+
depends_on: [{ name: sasl-cyrus-openssl-amazon2023-arm64-latest-large-m8g-gcc-compile }]
3690+
commands:
3691+
- func: fetch-build
3692+
vars:
3693+
BUILD_NAME: sasl-cyrus-openssl-amazon2023-arm64-latest-large-m8g-gcc-compile
3694+
- command: expansions.update
3695+
params:
3696+
updates:
3697+
- { key: CC, value: gcc }
3698+
- { key: CXX, value: g++ }
3699+
- { key: AUTH, value: auth }
3700+
- { key: MONGODB_VERSION, value: latest }
3701+
- { key: TOPOLOGY, value: server }
3702+
- { key: SSL, value: openssl }
3703+
- func: fetch-det
3704+
- func: bootstrap-mongo-orchestration
3705+
- func: run-simple-http-server
3706+
- func: run-tests
3707+
- name: sasl-cyrus-openssl-amazon2023-arm64-latest-large-m8g-gcc-test-latest-sharded-auth
3708+
run_on: amazon2023-arm64-latest-large-m8g
3709+
tags: [sasl-matrix-openssl, test, amazon2023-arm64-latest-large-m8g, gcc, sasl-cyrus, auth, sharded, latest, openssl]
3710+
depends_on: [{ name: sasl-cyrus-openssl-amazon2023-arm64-latest-large-m8g-gcc-compile }]
3711+
commands:
3712+
- func: fetch-build
3713+
vars:
3714+
BUILD_NAME: sasl-cyrus-openssl-amazon2023-arm64-latest-large-m8g-gcc-compile
3715+
- command: expansions.update
3716+
params:
3717+
updates:
3718+
- { key: CC, value: gcc }
3719+
- { key: CXX, value: g++ }
3720+
- { key: AUTH, value: auth }
3721+
- { key: MONGODB_VERSION, value: latest }
3722+
- { key: TOPOLOGY, value: sharded_cluster }
3723+
- { key: SSL, value: openssl }
3724+
- func: fetch-det
3725+
- func: bootstrap-mongo-orchestration
3726+
- func: run-simple-http-server
3727+
- func: run-tests
36553728
- name: sasl-cyrus-openssl-debian10-gcc-compile
36563729
run_on: debian10-large
36573730
tags: [sasl-matrix-openssl, compile, debian10, gcc, sasl-cyrus]

.evergreen/generated_configs/variants.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ buildvariants:
234234
- name: sasl-cyrus-openssl-ubuntu2004-arm64-gcc-compile
235235
- name: sasl-cyrus-openssl-ubuntu2004-gcc-compile
236236
- name: sasl-cyrus-openssl-windows-2019-vs2017-x64-compile
237+
- name: sasl-cyrus-openssl-amazon2023-arm64-latest-large-m8g-gcc-compile
237238
- name: sasl-cyrus-openssl-rhel8-power-gcc-test-4.2-server-auth
238239
batchtime: 1440
239240
- name: sasl-cyrus-openssl-rhel8-power-gcc-test-4.4-server-auth
@@ -273,6 +274,9 @@ buildvariants:
273274
- name: sasl-cyrus-openssl-windows-2019-vs2017-x64-test-latest-server-auth
274275
- name: sasl-cyrus-openssl-debian10-gcc-test-4.2-server-auth
275276
- name: sasl-cyrus-openssl-debian10-gcc-test-4.2-replica-auth
277+
- name: sasl-cyrus-openssl-amazon2023-arm64-latest-large-m8g-gcc-test-latest-server-auth
278+
- name: sasl-cyrus-openssl-amazon2023-arm64-latest-large-m8g-gcc-test-latest-replica-auth
279+
- name: sasl-cyrus-openssl-amazon2023-arm64-latest-large-m8g-gcc-test-latest-sharded-auth
276280
- name: sasl-matrix-winssl
277281
display_name: sasl-matrix-winssl
278282
expansions: {}

0 commit comments

Comments
 (0)