Skip to content

Search: e2e for sharded with single mongot#823

Merged
lsierant merged 4 commits intosearch/sharded-clusterfrom
lsierant/sharded-cluster-single-mongot-e2e
Feb 23, 2026
Merged

Search: e2e for sharded with single mongot#823
lsierant merged 4 commits intosearch/sharded-clusterfrom
lsierant/sharded-cluster-single-mongot-e2e

Conversation

@lsierant
Copy link
Contributor

@lsierant lsierant commented Feb 23, 2026

Missing e2e test for sharded search with one mongot instance

Copy link
Contributor Author

lsierant commented Feb 23, 2026

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@lsierant lsierant mentioned this pull request Feb 23, 2026
@lsierant lsierant force-pushed the lsierant/sharded-cluster-single-mongot-e2e branch from d64c803 to cb1b272 Compare February 23, 2026 11:51
@lsierant lsierant force-pushed the lsierant/sharded-cluster-single-mongot-e2e branch from cb1b272 to d854b2f Compare February 23, 2026 12:25
@lsierant lsierant force-pushed the search/sharded-cluster branch from fd1daca to 22f9e5a Compare February 23, 2026 12:25
Copy link
Collaborator

@viveksinghggits viveksinghggits left a comment

Choose a reason for hiding this comment

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

Looks pretty good.

Comment on lines +51 to +62
exec_command = ["tar", "xf", "-", "-C", "/".join(dest_path.split("/")[:-1]) or "/"]
resp = stream(
self.core_v1.connect_get_namespaced_pod_exec,
self.pod_name,
self.namespace,
command=exec_command,
stderr=True,
stdin=True,
stdout=True,
tty=False,
_preload_content=False,
)
Copy link
Collaborator

Choose a reason for hiding this comment

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

would it make sense to directly use kubectl cp instead? If we do that we might not have to create the tar of the file separately.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it would work well when running locally or directly on the evg host. But in CI this is going to run inside the test pod. We don't do kubectl there I believe

Comment on lines +100 to +116
w = Watch()
for event in w.stream(
self.core_v1.list_namespaced_pod,
namespace=self.namespace,
label_selector="app=mongodb-tools",
timeout_seconds=120,
):
pod = event["object"]
if pod.status.phase == "Running":
# Check if container is ready
if pod.status.container_statuses:
for container_status in pod.status.container_statuses:
if container_status.ready:
logger.info(f"{self.pod_name} is ready")
w.stop()
return
raise TimeoutError(f"Timed out waiting for {self.pod_name} to be ready")
Copy link
Collaborator

Choose a reason for hiding this comment

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

I see we already have utilities get_pod_when_running and get_pod_when_ready in docker/mongodb-kubernetes-tests/kubetester/init.py, should we try to leverage them instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, definitely! Will change that

namespace=namespace,
)

# if try_load(resource):
Copy link
Collaborator

@Julien-Ben Julien-Ben Feb 23, 2026

Choose a reason for hiding this comment

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

nit: Should we uncomment/remove ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good catch!

Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: given how long is the test I think we should add a comment at the beginning to give an overview

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

tags: [ "pr_patch", "staging", "e2e_test_suite", "cloudqa", "cloudqa_non_static" ]
run_on:
- ubuntu2404-medium
- ubuntu2404-large
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: do we need to bump it for the whole cloudqa suite ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

let's leave it as it is for now, we'll address this later at the merging to master phase

@lsierant lsierant force-pushed the lsierant/sharded-cluster-single-mongot-e2e branch from d854b2f to 90007b8 Compare February 23, 2026 15:29
@lsierant lsierant force-pushed the search/sharded-cluster branch from 22f9e5a to 23f196b Compare February 23, 2026 15:29
@lsierant lsierant marked this pull request as ready for review February 23, 2026 19:53
@lsierant lsierant requested a review from a team as a code owner February 23, 2026 19:53
@lsierant lsierant requested review from anandsyncs and lucian-tosa and removed request for a team, anandsyncs and lucian-tosa February 23, 2026 19:53
Copy link
Contributor Author

evergreen retry

Copy link
Contributor Author

evergreen refresh

@lsierant lsierant merged commit a624e47 into search/sharded-cluster Feb 23, 2026
12 of 30 checks passed
@lsierant lsierant deleted the lsierant/sharded-cluster-single-mongot-e2e branch February 23, 2026 20:30
viveksinghggits pushed a commit that referenced this pull request Feb 25, 2026
Missing e2e test for sharded search with one mongot instance
lsierant added a commit that referenced this pull request Mar 1, 2026
Missing e2e test for sharded search with one mongot instance
lsierant added a commit that referenced this pull request Mar 2, 2026
Missing e2e test for sharded search with one mongot instance
lsierant added a commit that referenced this pull request Mar 3, 2026
Missing e2e test for sharded search with one mongot instance
lsierant added a commit that referenced this pull request Mar 6, 2026
Missing e2e test for sharded search with one mongot instance
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants