-
Notifications
You must be signed in to change notification settings - Fork 455
CDRIVER-4645 add mock-server-test
variant
#1277
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
Conversation
Seems redundant with `asan-cse-sasl-cyrus-openssl-ubuntu1804-clang-compile`
Seems redundant with `cse-sasl-cyrus-darwinssl-macos-1100-clang-compile`.
Seems redundant with `cse-sasl-cyrus-openssl-*` tasks.
Seems redundant with `sasl-cyrus-winssl-*` tasks.
Seems redundant with `cse-sasl-cyrus-winssl-*` tasks.
CDRIVER-4193 changes to use OP_MSG and hello for handshake when in loadbalanced
Replaced by the new `mock-server-test` task.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor suggestions; otherwise, LGTM.
mock_server_receives_legacy_hello (server, "{'loadBalanced': true}"); | ||
request = mock_server_receives_hello_op_msg (server); | ||
const bson_t *match_loadBalanced = tmp_bson ("{'loadBalanced': true}"); | ||
ASSERT (request_matches_msg (request, MONGOC_MSG_NONE, &match_loadBalanced, 1)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ASSERT (request_matches_msg (request, MONGOC_MSG_NONE, &match_loadBalanced, 1)); | |
ASSERT ( | |
request_matches_msg (request, MONGOC_MSG_NONE, &match_loadBalanced, 1)); |
This file has not been formatted.
request = | ||
mock_server_receives_legacy_hello (server, "{'loadBalanced': true}"); | ||
request = mock_server_receives_hello_op_msg (server); | ||
const bson_t *match_loadBalanced = tmp_bson ("{'loadBalanced': true}"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggest moving reused variable up above outside the current "test block" to denote its value is not specific to this block.
"test-asan-memcheck-mock-server", | ||
tags=["test-asan"], | ||
get_build="debug-compile-asan-clang", | ||
commands=[func("run mock server tests", ASAN="on", SSL="ssl")], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove "run mock server tests"
function in legacy config generator functions.py
.
Summary
This PR partially resolves CDRIVER-4645.
mock-server-test
variant.Here is a patch build for the new
mock-server-test
variant: https://spruce.mongodb.com/version/646a3d470305b97abfa79790Unused tasks
This validate.py script can print unused tasks. Before these changes, this is the output:
Here is the rationale for the tasks that were removed in this PR:
asan-cse-sasl-cyrus-openssl-ubuntu1804-clang-compile
.cse-sasl-cyrus-darwinssl-macos-1100-clang-compile
.cse-sasl-cyrus-openssl-*
tasks.sasl-cyrus-winssl-*
tasks.cse-sasl-cyrus-winssl-*
tasks.mock-server-test
task.The remaining tasks may still provide value and have not been removed. They may be used or migrated in a future PR.
Adding the mock-server-test variant
The
mock-server-test
has been added to the new Evergreen config generator. It uses theubuntu2204-small
distro to agree with suggestions in Guidelines around Evergreen distros.gcc
is used sinceclang
does not appear installed onubuntu2204
distros:The
mock-server-test
variant has been added to the GitHub Patch Definitions to run the task on each GitHub PR.