-
Notifications
You must be signed in to change notification settings - Fork 546
CXX-2700 Add search index management e2e testing against Atlas #1002
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
13 commits
Select commit
Hold shift + click to select a range
5ae0813
sync spec tests with drivers ticket
joshbsiegel d6f31fd
modify search_index_view to return std::string when appropriate
joshbsiegel d089d02
update CMakeLists with new test file
joshbsiegel 0a51294
small change in operations.cpp to handle std::string return
joshbsiegel f87a5aa
add prose tests as specified in drivers ticket
joshbsiegel 567f9ff
add brackets to does_search_index_exist_on_cursor
joshbsiegel 40b78f9
wait_for_search_index timeout
joshbsiegel d7159e8
overload create_one to allow only definition to be specified
joshbsiegel 5c2e736
evergreen config
joshbsiegel e715a11
logic simplification
joshbsiegel e2c6866
convert test helper to be more generic, no longer require function na…
joshbsiegel 143584a
add 5th test case and fix implementation to pass
joshbsiegel 13cf51a
add print statement to last test
joshbsiegel 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 |
---|---|---|
|
@@ -312,7 +312,11 @@ functions: | |
if [ ! -d "drivers-evergreen-tools" ]; then | ||
git clone [email protected]:mongodb-labs/drivers-evergreen-tools.git --depth=1 | ||
fi | ||
|
||
echo "DRIVERS_TOOLS: $(pwd)/drivers-evergreen-tools" > det-expansion.yml | ||
# Set DRIVERS_TOOLS expansion. | ||
- command: expansions.update | ||
params: | ||
file: det-expansion.yml | ||
"run_kms_servers": | ||
- command: shell.exec | ||
params: | ||
|
@@ -1134,6 +1138,56 @@ tasks: | |
- func: "run_kms_servers" | ||
- func: "test" | ||
|
||
- name: test_search_index_helpers | ||
commands: | ||
- func: "install_c_driver" | ||
- func: "compile" | ||
- command: shell.exec | ||
params: | ||
shell: bash | ||
working_dir: mongo-cxx-driver | ||
script: | | ||
export MONGODB_URI=${MONGODB_URI} | ||
|
||
if [ -n "${lib_dir}" ]; then | ||
export LD_LIBRARY_PATH=$(pwd)/../mongoc/${lib_dir}/ | ||
else | ||
export LD_LIBRARY_PATH=$(pwd)/../mongoc/lib/ | ||
fi | ||
|
||
./build/src/mongocxx/test/test_driver "atlas search indexes prose tests" | ||
|
||
task_groups: | ||
- name: test_atlas_task_group_search_indexes | ||
setup_group: | ||
- func: "setup" | ||
- func: "clone_drivers-evergreen-tools" | ||
- command: subprocess.exec | ||
params: | ||
working_dir: mongo-cxx-driver | ||
binary: bash | ||
add_expansions_to_env: true | ||
env: | ||
MONGODB_VERSION: '7.0' | ||
args: | ||
- ${DRIVERS_TOOLS}/.evergreen/atlas/setup-atlas-cluster.sh | ||
- command: expansions.update | ||
# Expected to set MONGODB_URI expansion. | ||
params: | ||
file: mongo-cxx-driver/atlas-expansion.yml | ||
teardown_group: | ||
- command: subprocess.exec | ||
params: | ||
working_dir: mongo-cxx-driver | ||
binary: bash | ||
add_expansions_to_env: true | ||
args: | ||
- ${DRIVERS_TOOLS}/.evergreen/atlas/teardown-atlas-cluster.sh | ||
setup_group_can_fail_task: true | ||
setup_group_timeout_secs: 1800 | ||
tasks: | ||
- test_search_index_helpers | ||
|
||
####################################### | ||
# MongoDB Version Matrix # | ||
####################################### | ||
|
@@ -1623,6 +1677,7 @@ buildvariants: | |
tasks: | ||
- name: clang-tidy | ||
- name: compile_without_tests | ||
- name: test_atlas_task_group_search_indexes | ||
|
||
- name: ubuntu2204-debug-gcc | ||
display_name: "Ubuntu 22.04 Debug (GCC)" | ||
|
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
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.
I ran into some issues with reading the values of the
std::vector<bsoncxx::string::view_or_value>
returned from this function due to ownership semantics. After talking to @eramongodb, we came to the conclusion that it would be easier and more clear to just make this astd::vector<std::string>
. This minor change seen across this PR.