-
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
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
9e942c2
remove unused TOPOLOGY
kevinAlbs 76c6fa1
remove `authentication-tests-openssl-static`
kevinAlbs 87a5547
remove `debug-compile-asan-openssl-cse`
kevinAlbs 8f7e39b
remove `debug-compile-sasl-darwinssl-cse`
kevinAlbs f4ddf21
remove `debug-compile-sasl-openssl-cse`
kevinAlbs 6785486
remove `debug-compile-sasl-winssl`
kevinAlbs fee77c1
remove `debug-compile-sasl-winssl-cse`
kevinAlbs eac5fde
add `TestSuite_CheckLive` to `/counters` tests
kevinAlbs 785fbaf
expect `hello` and OP_MSG for load balanced tests
kevinAlbs 92faa4a
add mock-server-test variant
kevinAlbs 4842907
remove `test-asan-memcheck-mock-server`
kevinAlbs d2ab768
format test-mongoc-loadbalanced.c
kevinAlbs c4f89b6
move `match_loadBalanced` declarations up
kevinAlbs 62baae0
remove `run mock server tests` from legacy config
kevinAlbs File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
from shrub.v3.evg_build_variant import BuildVariant | ||
from shrub.v3.evg_command import EvgCommandType | ||
from shrub.v3.evg_task import EvgTaskRef | ||
|
||
from config_generator.components.funcs.fetch_det import FetchDET | ||
from config_generator.components.funcs.run_simple_http_server import RunSimpleHTTPServer | ||
from config_generator.etc.utils import Task | ||
from config_generator.etc.utils import bash_exec | ||
|
||
def tasks(): | ||
return [ | ||
Task( | ||
name="mock-server-test", | ||
run_on="ubuntu2204-small", | ||
commands=[ | ||
# Call fetch-det to define PYTHON3_BINARY expansion required for run-simple-http-server. | ||
FetchDET.call(), | ||
RunSimpleHTTPServer.call(), | ||
bash_exec( | ||
command_type=EvgCommandType.TEST, | ||
add_expansions_to_env=True, | ||
working_dir='mongoc', | ||
script='.evergreen/scripts/compile.sh', | ||
), | ||
bash_exec( | ||
command_type=EvgCommandType.TEST, | ||
working_dir='mongoc', | ||
script='.evergreen/scripts/run-mock-server-tests.sh', | ||
) | ||
], | ||
) | ||
] | ||
|
||
def variants(): | ||
return [ | ||
BuildVariant( | ||
name="mock-server-test", | ||
display_name="Mock Server Test", | ||
tasks=[EvgTaskRef(name='mock-server-test')], | ||
expansions={ | ||
'CC': 'gcc', | ||
'ASAN': 'on', | ||
'CFLAGS': '-fno-omit-frame-pointer', | ||
'EXTRA_CONFIGURE_FLAGS': '-DENABLE_EXTRA_ALIGNMENT=OFF', | ||
'SANITIZE': 'address,undefined', | ||
} | ||
), | ||
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 generatorfunctions.py
.