Skip to content

CLOUDP-318518: Community private-preview docs #102

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 14 commits into from
May 14, 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
29 changes: 12 additions & 17 deletions .evergreen-functions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,14 @@ functions:
source .generated/context.export.env
scripts/evergreen/e2e/setup_cloud_qa.py delete

dump_diagnostic_information_from_all_namespaces:
- command: subprocess.exec
params:
working_dir: src/github.com/mongodb/mongodb-kubernetes
add_to_path:
- bin
binary: scripts/evergreen/e2e/dump_diagnostic_information_from_all_namespaces.sh

### Publish and release image ###

# Tags and pushes an image into an external Docker registry. The source image
Expand Down Expand Up @@ -733,25 +741,12 @@ functions:
params:
include_expansions_in_env:
- GH_TOKEN
- code_snippets_commit_output
working_dir: src/github.com/mongodb/mongodb-kubernetes
binary: scripts/code_snippets/sample_commit_output.sh

gke_multi_cluster_snippets:
- *switch_context
- command: shell.exec
params:
shell: bash
working_dir: src/github.com/mongodb/mongodb-kubernetes
include_expansions_in_env:
- version_id
- code_snippets_teardown
- code_snippets_reset
- task_name
script: |
./scripts/code_snippets/gke_multi_cluster_test.sh


gke_multi_cluster_no_mesh_snippets:
# it executes a script by convention: ./scripts/code_snippets/${task_name}_test.sh
test_code_snippets:
- *switch_context
- command: shell.exec
params:
Expand All @@ -763,4 +758,4 @@ functions:
- code_snippets_reset
- task_name
script: |
./scripts/code_snippets/gke_multi_cluster_no_mesh_test.sh
./scripts/code_snippets/${task_name}_test.sh
16 changes: 12 additions & 4 deletions .evergreen-tasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,24 @@ tasks:
vars:
image_name: ops-manager

- name: gke_multi_cluster_snippets
# Code snippets tasks
# Each task is selected by convention by running scripts/code_snippets/${task_name}_test.sh
- name: task_gke_multi_cluster_snippets
tags: [ "code_snippets" ]
commands:
- func: gke_multi_cluster_snippets
- func: test_code_snippets
- func: sample_commit_output

- name: gke_multi_cluster_no_mesh_snippets
- name: task_gke_multi_cluster_no_mesh_snippets
tags: [ "code_snippets" ]
commands:
- func: gke_multi_cluster_no_mesh_snippets
- func: test_code_snippets
- func: sample_commit_output

- name: task_kind_community_search_snippets
tags: [ "code_snippets", "patch-run" ]
commands:
- func: test_code_snippets
- func: sample_commit_output

## Below are only e2e runs for .evergreen.yml ##
Expand Down
36 changes: 34 additions & 2 deletions .evergreen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ variables:
- func: build_multi_cluster_binary

- &setup_and_teardown_group_gke_code_snippets
setup_task_can_fail_task: true
setup_group:
- func: clone
- func: setup_gcloud_cli
Expand All @@ -95,6 +96,18 @@ variables:
teardown_group:
- func: upload_code_snippets_logs

- &setup_and_teardown_group_kind_code_snippets
setup_task_can_fail_task: true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is it okay to fail?

Copy link
Contributor Author

@lsierant lsierant May 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's not OK to fail, but if the setup task fails (e.g. there was a problem creating kind cluster) and setup_task_can_fail_task is false then setup errors are ignored. So making it true means it's actually NOT OK to fail and we want the whole run to fail.

setup_group:
- func: clone
- func: cleanup_exec_environment
- func: download_kube_tools
- func: configure_docker_auth
- func: setup_kubernetes_environment
teardown_task:
- func: upload_e2e_logs
- func: upload_code_snippets_logs

- &setup_and_teardown_task_cloudqa
setup_task_can_fail_task: true
setup_task:
Expand Down Expand Up @@ -183,6 +196,10 @@ parameters:
value: "false"
description: set this to true if you would like to delete the resources created in the code snippet tests, but keep the clusters

- key: code_snippets_commit_output
value: "false"
description: set this to true if you would like the pipeline to automatically push a branch with updated snippets outputs
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this push a prod push or development push?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's prod and dev in this context? It's pushing the outputs and automatically creates a branch with diffs against master.



# Triggered manually or by PCT.
patch_aliases:
Expand Down Expand Up @@ -608,8 +625,14 @@ task_groups:
<<: *setup_and_teardown_group_gke_code_snippets
max_hosts: -1
tasks:
- gke_multi_cluster_snippets
- gke_multi_cluster_no_mesh_snippets
- task_gke_multi_cluster_snippets
- task_gke_multi_cluster_no_mesh_snippets

- name: kind_code_snippets_task_group
<<: *setup_and_teardown_group_kind_code_snippets
max_hosts: -1
tasks:
- task_kind_community_search_snippets

# Task group for deploying mongodbcommunity resources and testing the (former) MCO
- name: e2e_mdb_community_task_group
Expand Down Expand Up @@ -1837,6 +1860,15 @@ buildvariants:
tasks:
- name: gke_code_snippets_task_group

- name: private_kind_code_snippets
display_name: private_kind_code_snippets
allowed_requesters: ["patch"]
run_on:
- ubuntu2204-large
<<: *base_om8_dependency
tasks:
- name: kind_code_snippets_task_group

### Build variants for manual patch only

- name: publish_om60_images
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,6 @@ docker/mongodb-kubernetes-tests/.test_identifiers*
logs-debug/
/ssdlc-report/*
.gocache/

docs/**/log/*
docs/**/test.sh.run.log
2 changes: 1 addition & 1 deletion RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

* **MongoDBSearch (Community Private Preview)**: Added support for deploying MongoDB Search (Community Private Preview Edition) that enables full-text and vector search capabilities for MongoDBCommunity deployments.
* Added new MongoDB CRD which is watched by default by the operator.
* For more information please see: `TBD LINK TO DOC MARKDOWN`
* For more information please see: [docs/community-search/quick-start/README.md](docs/community-search/quick-start/README.md)
* Private Preview phase comes with some limitations:
* minimum MongoDB Community version: 8.0.
* TLS must be disabled in MongoDB (communication between mongot and mongod is in plaintext for now).
Expand Down
Loading