Skip to content

restore C++ driver tests #2057

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion .evergreen/config_generator/components/earthly.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"Valid options for the SASL configuration parameter"
TLSOption = Literal["OpenSSL", "off"]
"Options for the TLS backend configuration parameter (AKA 'ENABLE_SSL')"
CxxVersion = Literal["none"] # TODO: Once CXX-3103 is released, add latest C++ release tag.
CxxVersion = Literal["master", "r4.1.0", "none"]
"C++ driver refs that are under CI test"

# A separator character, since we cannot use whitespace
Expand Down
2 changes: 1 addition & 1 deletion .evergreen/generated_configs/functions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ functions:
DRYRUN: "1"
args:
- -c
- uv run --frozen --only-group format tools/format.py --mode=check
- uv run --frozen --only-group=format tools/format.py --mode=check
cse-sasl-cyrus-darwinssl-compile:
- command: expansions.update
params:
Expand Down
328 changes: 328 additions & 0 deletions .evergreen/generated_configs/tasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1124,6 +1124,47 @@ tasks:
- name: check-headers
commands:
- func: check-headers
- name: "check:sasl=Cyrus\_\u2022\_tls=OpenSSL\_\u2022\_test_mongocxx_ref=master"
run_on:
- amazon2
- debian11-large
- debian12-large
- ubuntu2204-large
- ubuntu2404-large
tags: [earthly, pr-merge-gate, alpine3.16-clang, alpine3.16-gcc, alpine3.17-clang, alpine3.17-gcc, alpine3.18-clang, alpine3.18-gcc, alpine3.19-clang, alpine3.19-gcc, archlinux-clang, archlinux-gcc, u18-clang, u18-gcc, u20-clang, u20-gcc, u22-clang, u22-gcc]
commands:
- command: subprocess.exec
type: setup
params:
binary: bash
args:
- -c
- docker login -u "${artifactory_username}" --password-stdin artifactory.corp.mongodb.com <<<"${artifactory_password}"
- command: subprocess.exec
type: setup
params:
binary: ./tools/earthly.sh
working_dir: mongoc
args:
- +env-warmup
- --sasl=Cyrus
- --tls=OpenSSL
- --test_mongocxx_ref=master
- --env=${MONGOC_EARTHLY_ENV}
- --c_compiler=${MONGOC_EARTHLY_C_COMPILER}
- command: subprocess.exec
type: test
params:
binary: ./tools/earthly.sh
working_dir: mongoc
args:
- +run
- --targets=test-example test-cxx-driver
- --sasl=Cyrus
- --tls=OpenSSL
- --test_mongocxx_ref=master
- --env=${MONGOC_EARTHLY_ENV}
- --c_compiler=${MONGOC_EARTHLY_C_COMPILER}
- name: "check:sasl=Cyrus\_\u2022\_tls=OpenSSL\_\u2022\_test_mongocxx_ref=none"
run_on:
- amazon2
Expand Down Expand Up @@ -1165,6 +1206,88 @@ tasks:
- --test_mongocxx_ref=none
- --env=${MONGOC_EARTHLY_ENV}
- --c_compiler=${MONGOC_EARTHLY_C_COMPILER}
- name: "check:sasl=Cyrus\_\u2022\_tls=OpenSSL\_\u2022\_test_mongocxx_ref=r4.1.0"
run_on:
- amazon2
- debian11-large
- debian12-large
- ubuntu2204-large
- ubuntu2404-large
tags: [earthly, pr-merge-gate, alpine3.16-clang, alpine3.16-gcc, alpine3.17-clang, alpine3.17-gcc, alpine3.18-clang, alpine3.18-gcc, alpine3.19-clang, alpine3.19-gcc, archlinux-clang, archlinux-gcc, u18-clang, u18-gcc, u20-clang, u20-gcc, u22-clang, u22-gcc]
commands:
- command: subprocess.exec
type: setup
params:
binary: bash
args:
- -c
- docker login -u "${artifactory_username}" --password-stdin artifactory.corp.mongodb.com <<<"${artifactory_password}"
- command: subprocess.exec
type: setup
params:
binary: ./tools/earthly.sh
working_dir: mongoc
args:
- +env-warmup
- --sasl=Cyrus
- --tls=OpenSSL
- --test_mongocxx_ref=r4.1.0
- --env=${MONGOC_EARTHLY_ENV}
- --c_compiler=${MONGOC_EARTHLY_C_COMPILER}
- command: subprocess.exec
type: test
params:
binary: ./tools/earthly.sh
working_dir: mongoc
args:
- +run
- --targets=test-example test-cxx-driver
- --sasl=Cyrus
- --tls=OpenSSL
- --test_mongocxx_ref=r4.1.0
- --env=${MONGOC_EARTHLY_ENV}
- --c_compiler=${MONGOC_EARTHLY_C_COMPILER}
- name: "check:sasl=Cyrus\_\u2022\_tls=off\_\u2022\_test_mongocxx_ref=master"
run_on:
- amazon2
- debian11-large
- debian12-large
- ubuntu2204-large
- ubuntu2404-large
tags: [earthly, pr-merge-gate, alpine3.16-clang, alpine3.16-gcc, alpine3.17-clang, alpine3.17-gcc, alpine3.18-clang, alpine3.18-gcc, alpine3.19-clang, alpine3.19-gcc, archlinux-clang, archlinux-gcc, u18-clang, u18-gcc, u20-clang, u20-gcc, u22-clang, u22-gcc]
commands:
- command: subprocess.exec
type: setup
params:
binary: bash
args:
- -c
- docker login -u "${artifactory_username}" --password-stdin artifactory.corp.mongodb.com <<<"${artifactory_password}"
- command: subprocess.exec
type: setup
params:
binary: ./tools/earthly.sh
working_dir: mongoc
args:
- +env-warmup
- --sasl=Cyrus
- --tls=off
- --test_mongocxx_ref=master
- --env=${MONGOC_EARTHLY_ENV}
- --c_compiler=${MONGOC_EARTHLY_C_COMPILER}
- command: subprocess.exec
type: test
params:
binary: ./tools/earthly.sh
working_dir: mongoc
args:
- +run
- --targets=test-example test-cxx-driver
- --sasl=Cyrus
- --tls=off
- --test_mongocxx_ref=master
- --env=${MONGOC_EARTHLY_ENV}
- --c_compiler=${MONGOC_EARTHLY_C_COMPILER}
- name: "check:sasl=Cyrus\_\u2022\_tls=off\_\u2022\_test_mongocxx_ref=none"
run_on:
- amazon2
Expand Down Expand Up @@ -1206,6 +1329,88 @@ tasks:
- --test_mongocxx_ref=none
- --env=${MONGOC_EARTHLY_ENV}
- --c_compiler=${MONGOC_EARTHLY_C_COMPILER}
- name: "check:sasl=Cyrus\_\u2022\_tls=off\_\u2022\_test_mongocxx_ref=r4.1.0"
run_on:
- amazon2
- debian11-large
- debian12-large
- ubuntu2204-large
- ubuntu2404-large
tags: [earthly, pr-merge-gate, alpine3.16-clang, alpine3.16-gcc, alpine3.17-clang, alpine3.17-gcc, alpine3.18-clang, alpine3.18-gcc, alpine3.19-clang, alpine3.19-gcc, archlinux-clang, archlinux-gcc, u18-clang, u18-gcc, u20-clang, u20-gcc, u22-clang, u22-gcc]
commands:
- command: subprocess.exec
type: setup
params:
binary: bash
args:
- -c
- docker login -u "${artifactory_username}" --password-stdin artifactory.corp.mongodb.com <<<"${artifactory_password}"
- command: subprocess.exec
type: setup
params:
binary: ./tools/earthly.sh
working_dir: mongoc
args:
- +env-warmup
- --sasl=Cyrus
- --tls=off
- --test_mongocxx_ref=r4.1.0
- --env=${MONGOC_EARTHLY_ENV}
- --c_compiler=${MONGOC_EARTHLY_C_COMPILER}
- command: subprocess.exec
type: test
params:
binary: ./tools/earthly.sh
working_dir: mongoc
args:
- +run
- --targets=test-example test-cxx-driver
- --sasl=Cyrus
- --tls=off
- --test_mongocxx_ref=r4.1.0
- --env=${MONGOC_EARTHLY_ENV}
- --c_compiler=${MONGOC_EARTHLY_C_COMPILER}
- name: "check:sasl=off\_\u2022\_tls=OpenSSL\_\u2022\_test_mongocxx_ref=master"
run_on:
- amazon2
- debian11-large
- debian12-large
- ubuntu2204-large
- ubuntu2404-large
tags: [earthly, pr-merge-gate, alpine3.16-clang, alpine3.16-gcc, alpine3.17-clang, alpine3.17-gcc, alpine3.18-clang, alpine3.18-gcc, alpine3.19-clang, alpine3.19-gcc, archlinux-clang, archlinux-gcc, u18-clang, u18-gcc, u20-clang, u20-gcc, u22-clang, u22-gcc]
commands:
- command: subprocess.exec
type: setup
params:
binary: bash
args:
- -c
- docker login -u "${artifactory_username}" --password-stdin artifactory.corp.mongodb.com <<<"${artifactory_password}"
- command: subprocess.exec
type: setup
params:
binary: ./tools/earthly.sh
working_dir: mongoc
args:
- +env-warmup
- --sasl=off
- --tls=OpenSSL
- --test_mongocxx_ref=master
- --env=${MONGOC_EARTHLY_ENV}
- --c_compiler=${MONGOC_EARTHLY_C_COMPILER}
- command: subprocess.exec
type: test
params:
binary: ./tools/earthly.sh
working_dir: mongoc
args:
- +run
- --targets=test-example test-cxx-driver
- --sasl=off
- --tls=OpenSSL
- --test_mongocxx_ref=master
- --env=${MONGOC_EARTHLY_ENV}
- --c_compiler=${MONGOC_EARTHLY_C_COMPILER}
- name: "check:sasl=off\_\u2022\_tls=OpenSSL\_\u2022\_test_mongocxx_ref=none"
run_on:
- amazon2
Expand Down Expand Up @@ -1247,6 +1452,88 @@ tasks:
- --test_mongocxx_ref=none
- --env=${MONGOC_EARTHLY_ENV}
- --c_compiler=${MONGOC_EARTHLY_C_COMPILER}
- name: "check:sasl=off\_\u2022\_tls=OpenSSL\_\u2022\_test_mongocxx_ref=r4.1.0"
run_on:
- amazon2
- debian11-large
- debian12-large
- ubuntu2204-large
- ubuntu2404-large
tags: [earthly, pr-merge-gate, alpine3.16-clang, alpine3.16-gcc, alpine3.17-clang, alpine3.17-gcc, alpine3.18-clang, alpine3.18-gcc, alpine3.19-clang, alpine3.19-gcc, archlinux-clang, archlinux-gcc, u18-clang, u18-gcc, u20-clang, u20-gcc, u22-clang, u22-gcc]
commands:
- command: subprocess.exec
type: setup
params:
binary: bash
args:
- -c
- docker login -u "${artifactory_username}" --password-stdin artifactory.corp.mongodb.com <<<"${artifactory_password}"
- command: subprocess.exec
type: setup
params:
binary: ./tools/earthly.sh
working_dir: mongoc
args:
- +env-warmup
- --sasl=off
- --tls=OpenSSL
- --test_mongocxx_ref=r4.1.0
- --env=${MONGOC_EARTHLY_ENV}
- --c_compiler=${MONGOC_EARTHLY_C_COMPILER}
- command: subprocess.exec
type: test
params:
binary: ./tools/earthly.sh
working_dir: mongoc
args:
- +run
- --targets=test-example test-cxx-driver
- --sasl=off
- --tls=OpenSSL
- --test_mongocxx_ref=r4.1.0
- --env=${MONGOC_EARTHLY_ENV}
- --c_compiler=${MONGOC_EARTHLY_C_COMPILER}
- name: "check:sasl=off\_\u2022\_tls=off\_\u2022\_test_mongocxx_ref=master"
run_on:
- amazon2
- debian11-large
- debian12-large
- ubuntu2204-large
- ubuntu2404-large
tags: [earthly, pr-merge-gate, alpine3.16-clang, alpine3.16-gcc, alpine3.17-clang, alpine3.17-gcc, alpine3.18-clang, alpine3.18-gcc, alpine3.19-clang, alpine3.19-gcc, archlinux-clang, archlinux-gcc, u18-clang, u18-gcc, u20-clang, u20-gcc, u22-clang, u22-gcc]
commands:
- command: subprocess.exec
type: setup
params:
binary: bash
args:
- -c
- docker login -u "${artifactory_username}" --password-stdin artifactory.corp.mongodb.com <<<"${artifactory_password}"
- command: subprocess.exec
type: setup
params:
binary: ./tools/earthly.sh
working_dir: mongoc
args:
- +env-warmup
- --sasl=off
- --tls=off
- --test_mongocxx_ref=master
- --env=${MONGOC_EARTHLY_ENV}
- --c_compiler=${MONGOC_EARTHLY_C_COMPILER}
- command: subprocess.exec
type: test
params:
binary: ./tools/earthly.sh
working_dir: mongoc
args:
- +run
- --targets=test-example test-cxx-driver
- --sasl=off
- --tls=off
- --test_mongocxx_ref=master
- --env=${MONGOC_EARTHLY_ENV}
- --c_compiler=${MONGOC_EARTHLY_C_COMPILER}
- name: "check:sasl=off\_\u2022\_tls=off\_\u2022\_test_mongocxx_ref=none"
run_on:
- amazon2
Expand Down Expand Up @@ -1288,6 +1575,47 @@ tasks:
- --test_mongocxx_ref=none
- --env=${MONGOC_EARTHLY_ENV}
- --c_compiler=${MONGOC_EARTHLY_C_COMPILER}
- name: "check:sasl=off\_\u2022\_tls=off\_\u2022\_test_mongocxx_ref=r4.1.0"
run_on:
- amazon2
- debian11-large
- debian12-large
- ubuntu2204-large
- ubuntu2404-large
tags: [earthly, pr-merge-gate, alpine3.16-clang, alpine3.16-gcc, alpine3.17-clang, alpine3.17-gcc, alpine3.18-clang, alpine3.18-gcc, alpine3.19-clang, alpine3.19-gcc, archlinux-clang, archlinux-gcc, u18-clang, u18-gcc, u20-clang, u20-gcc, u22-clang, u22-gcc]
commands:
- command: subprocess.exec
type: setup
params:
binary: bash
args:
- -c
- docker login -u "${artifactory_username}" --password-stdin artifactory.corp.mongodb.com <<<"${artifactory_password}"
- command: subprocess.exec
type: setup
params:
binary: ./tools/earthly.sh
working_dir: mongoc
args:
- +env-warmup
- --sasl=off
- --tls=off
- --test_mongocxx_ref=r4.1.0
- --env=${MONGOC_EARTHLY_ENV}
- --c_compiler=${MONGOC_EARTHLY_C_COMPILER}
- command: subprocess.exec
type: test
params:
binary: ./tools/earthly.sh
working_dir: mongoc
args:
- +run
- --targets=test-example test-cxx-driver
- --sasl=off
- --tls=off
- --test_mongocxx_ref=r4.1.0
- --env=${MONGOC_EARTHLY_ENV}
- --c_compiler=${MONGOC_EARTHLY_C_COMPILER}
- name: clang-format
tags: [clang-format]
commands:
Expand Down