Skip to content

CDRIVER-5924 test on Graviton #1905

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .evergreen/config_generator/components/sasl/openssl.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from typing import List

from shrub.v3.evg_build_variant import BuildVariant

from config_generator.etc.utils import TaskRef
Expand Down Expand Up @@ -28,6 +26,7 @@
('ubuntu2004-arm64', 'gcc', None, ['cyrus']),
('ubuntu2004', 'gcc', None, ['cyrus']),
('windows-vsCurrent', 'vs2017x64', None, ['cyrus']),
('amazon2023-arm64-latest-large-m8g', 'gcc', None, ['cyrus']),
]

TEST_MATRIX = [
Expand All @@ -40,6 +39,9 @@

# Test 4.2 with Debian 10 since 4.2 does not ship on Ubuntu 20.04+.
('debian10', 'gcc', None, 'cyrus', ['auth'], ['server', 'replica'], ['4.2']),

# Test with Graviton processor:
('amazon2023-arm64-latest-large-m8g', 'gcc', None, 'cyrus', ['auth'], ['server', 'replica', 'sharded'], ['latest']),
]
# fmt: on
# pylint: enable=line-too-long
Expand Down
6 changes: 6 additions & 0 deletions .evergreen/config_generator/etc/distros.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@ def ls_distro(name, **kwargs):
*ls_distro(name='windows-vsCurrent', os='windows', os_type='windows', vs_ver='vsCurrent'), # Windows Server 2019
]

GRAVITON_DISTROS = [
Distro(name='amazon2023-arm64-latest-large-m8g', os='amazon2023', os_type='linux', os_ver='2023', arch='arm64'),
Distro(name='amazon2-arm64-latest-large-m8g', os='amazon2', os_type='linux', os_ver='2', arch='arm64'),
]

# See: https://evergreen.mongodb.com/distros
# Ensure no-arch distros are ordered before arch-specific distros.
ALL_DISTROS = [
Expand All @@ -113,6 +118,7 @@ def ls_distro(name, **kwargs):
*UBUNTU_DISTROS,
*UBUNTU_ARM64_DISTROS,
*WINDOWS_DISTROS,
*GRAVITON_DISTROS
]


Expand Down
73 changes: 73 additions & 0 deletions .evergreen/generated_configs/tasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3452,6 +3452,79 @@ tasks:
- func: bootstrap-mongo-orchestration
- func: run-simple-http-server
- func: run-tests
- name: sasl-cyrus-openssl-amazon2023-arm64-latest-large-m8g-gcc-compile
run_on: amazon2023-arm64-latest-large-m8g
tags: [sasl-matrix-openssl, compile, amazon2023-arm64-latest-large-m8g, gcc, sasl-cyrus]
commands:
- func: find-cmake-latest
- func: sasl-cyrus-openssl-compile
vars:
CC: gcc
CXX: g++
- func: upload-build
- name: sasl-cyrus-openssl-amazon2023-arm64-latest-large-m8g-gcc-test-latest-replica-auth
run_on: amazon2023-arm64-latest-large-m8g
tags: [sasl-matrix-openssl, test, amazon2023-arm64-latest-large-m8g, gcc, sasl-cyrus, auth, replica, latest, openssl]
depends_on: [{ name: sasl-cyrus-openssl-amazon2023-arm64-latest-large-m8g-gcc-compile }]
commands:
- func: fetch-build
vars:
BUILD_NAME: sasl-cyrus-openssl-amazon2023-arm64-latest-large-m8g-gcc-compile
- command: expansions.update
params:
updates:
- { key: CC, value: gcc }
- { key: CXX, value: g++ }
- { key: AUTH, value: auth }
- { key: MONGODB_VERSION, value: latest }
- { key: TOPOLOGY, value: replica_set }
- { key: SSL, value: openssl }
- func: fetch-det
- func: bootstrap-mongo-orchestration
- func: run-simple-http-server
- func: run-tests
- name: sasl-cyrus-openssl-amazon2023-arm64-latest-large-m8g-gcc-test-latest-server-auth
run_on: amazon2023-arm64-latest-large-m8g
tags: [sasl-matrix-openssl, test, amazon2023-arm64-latest-large-m8g, gcc, sasl-cyrus, auth, server, latest, openssl]
depends_on: [{ name: sasl-cyrus-openssl-amazon2023-arm64-latest-large-m8g-gcc-compile }]
commands:
- func: fetch-build
vars:
BUILD_NAME: sasl-cyrus-openssl-amazon2023-arm64-latest-large-m8g-gcc-compile
- command: expansions.update
params:
updates:
- { key: CC, value: gcc }
- { key: CXX, value: g++ }
- { key: AUTH, value: auth }
- { key: MONGODB_VERSION, value: latest }
- { key: TOPOLOGY, value: server }
- { key: SSL, value: openssl }
- func: fetch-det
- func: bootstrap-mongo-orchestration
- func: run-simple-http-server
- func: run-tests
- name: sasl-cyrus-openssl-amazon2023-arm64-latest-large-m8g-gcc-test-latest-sharded-auth
run_on: amazon2023-arm64-latest-large-m8g
tags: [sasl-matrix-openssl, test, amazon2023-arm64-latest-large-m8g, gcc, sasl-cyrus, auth, sharded, latest, openssl]
depends_on: [{ name: sasl-cyrus-openssl-amazon2023-arm64-latest-large-m8g-gcc-compile }]
commands:
- func: fetch-build
vars:
BUILD_NAME: sasl-cyrus-openssl-amazon2023-arm64-latest-large-m8g-gcc-compile
- command: expansions.update
params:
updates:
- { key: CC, value: gcc }
- { key: CXX, value: g++ }
- { key: AUTH, value: auth }
- { key: MONGODB_VERSION, value: latest }
- { key: TOPOLOGY, value: sharded_cluster }
- { key: SSL, value: openssl }
- func: fetch-det
- func: bootstrap-mongo-orchestration
- func: run-simple-http-server
- func: run-tests
- name: sasl-cyrus-openssl-debian10-gcc-compile
run_on: debian10-large
tags: [sasl-matrix-openssl, compile, debian10, gcc, sasl-cyrus]
Expand Down
4 changes: 4 additions & 0 deletions .evergreen/generated_configs/variants.yml
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ buildvariants:
- name: sasl-cyrus-openssl-ubuntu2004-arm64-gcc-compile
- name: sasl-cyrus-openssl-ubuntu2004-gcc-compile
- name: sasl-cyrus-openssl-windows-2019-vs2017-x64-compile
- name: sasl-cyrus-openssl-amazon2023-arm64-latest-large-m8g-gcc-compile
- name: sasl-cyrus-openssl-rhel8-power-gcc-test-4.2-server-auth
batchtime: 1440
- name: sasl-cyrus-openssl-rhel8-power-gcc-test-4.4-server-auth
Expand Down Expand Up @@ -273,6 +274,9 @@ buildvariants:
- name: sasl-cyrus-openssl-windows-2019-vs2017-x64-test-latest-server-auth
- name: sasl-cyrus-openssl-debian10-gcc-test-4.2-server-auth
- name: sasl-cyrus-openssl-debian10-gcc-test-4.2-replica-auth
- name: sasl-cyrus-openssl-amazon2023-arm64-latest-large-m8g-gcc-test-latest-server-auth
- name: sasl-cyrus-openssl-amazon2023-arm64-latest-large-m8g-gcc-test-latest-replica-auth
- name: sasl-cyrus-openssl-amazon2023-arm64-latest-large-m8g-gcc-test-latest-sharded-auth
- name: sasl-matrix-winssl
display_name: sasl-matrix-winssl
expansions: {}
Expand Down