Skip to content

[CloudRun] Implement Cloudrun to Cloudrun test#164

Merged
eshitachandwani merged 82 commits into
grpc:mainfrom
eshitachandwani:eshita_cr_cr
May 7, 2025
Merged

[CloudRun] Implement Cloudrun to Cloudrun test#164
eshitachandwani merged 82 commits into
grpc:mainfrom
eshitachandwani:eshita_cr_cr

Conversation

@eshitachandwani

@eshitachandwani eshitachandwani commented Mar 28, 2025

Copy link
Copy Markdown
Member

Tests the case where the client and the server are running in cloudrun. Verifies that 100 RPCs reach the server correctly and return with the correct response.

@eshitachandwani

Copy link
Copy Markdown
Member Author

@sergiitk sergiitk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, but I'd like to have another look before merging

Comment thread .kokoro/psm_interop_kokoro_lib.sh
Comment thread framework/infrastructure/gcp/cloud_run.py Outdated
Comment thread framework/test_app/runners/cloud_run/cloud_run_xds_client_runner.py Outdated
Comment thread framework/test_app/runners/cloud_run/cloud_run_xds_client_runner.py Outdated
Comment thread framework/test_app/runners/cloud_run/cloud_run_xds_client_runner.py Outdated
Comment thread framework/test_app/runners/cloud_run/cloud_run_xds_client_runner.py Outdated
Comment thread framework/infrastructure/gcp/api.py Outdated
Comment thread framework/rpc/grpc.py Outdated
Comment thread framework/test_app/runners/cloud_run/cloud_run_xds_client_runner.py Outdated
Comment thread tests/cloud_run_csm_outbound_test.py Outdated

@sergiitk sergiitk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We need to get rid of granting roles/run.invoker to allUsers. See my comment on policy_body with further explanations.

Comment thread framework/infrastructure/gcp/api.py Outdated
Comment thread framework/test_app/runners/cloud_run/cloud_run_xds_client_runner.py Outdated
Comment thread framework/test_cases/cloud_run_testcase.py Outdated
Comment thread bin/lib/common.py Outdated
Comment thread bin/run_test_client_cloud_run.py Outdated
Comment thread framework/test_app/runners/cloud_run/cloud_run_xds_client_runner.py Outdated

@sergiitk sergiitk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm getting the following error.

Traceback (most recent call last):
  File "/Users/sergiitk/Development/psm-interop/tests/cloud_run_csm_outbound_test.py", line 74, in test_cloud_run_to_cloud_run
    self.assertXdsConfigExistsWithRetry(
  File "/Users/sergiitk/Development/psm-interop/framework/xds_k8s_testcase.py", line 591, in assertXdsConfigExistsWithRetry
    retryer(
  File "/Users/sergiitk/Development/psm-interop/venv/lib/python3.10/site-packages/tenacity/__init__.py", line 423, in __call__
    do = self.iter(retry_state=retry_state)
  File "/Users/sergiitk/Development/psm-interop/venv/lib/python3.10/site-packages/tenacity/__init__.py", line 369, in iter
    return self.retry_error_callback(retry_state=retry_state)
  File "/Users/sergiitk/Development/psm-interop/framework/helpers/retryers.py", line 147, in error_handler
    raise RetryError(
framework.helpers.retryers.RetryError: Retry error calling framework.xds_k8s_testcase.XdsKubernetesBaseTestCase.assertXdsConfigExists: timeout 0:10:00 (h:mm:ss) exceeded. Last exception: AssertionError: unexpectedly None
Could not find correct bootstrap config before timeout 0:10:00 (h:mm:ss)

Comment thread framework/infrastructure/gcp/api.py Outdated
Comment thread framework/infrastructure/gcp/cloud_run.py Outdated
Comment thread framework/rpc/grpc.py Outdated
Comment thread framework/rpc/grpc.py Outdated
Comment thread framework/rpc/grpc.py Outdated
Comment thread framework/rpc/grpc.py Outdated
Comment thread framework/test_app/client_app.py Outdated
Comment thread framework/test_app/runners/cloud_run/cloud_run_xds_client_runner.py Outdated
Comment thread framework/test_app/runners/cloud_run/cloud_run_xds_client_runner.py Outdated
Comment thread framework/xds_k8s_testcase.py Outdated
@sergiitk

sergiitk commented May 7, 2025

Copy link
Copy Markdown
Member

@sergiitk sergiitk changed the title cloudrun to cloudrun test [CloudRun] Implement Cloudrun to Cloudrun test May 7, 2025
@eshitachandwani

eshitachandwani commented May 7, 2025

Copy link
Copy Markdown
Member Author

@eshitachandwani

eshitachandwani commented May 7, 2025

Copy link
Copy Markdown
Member Author

@eshitachandwani
eshitachandwani merged commit b57b402 into grpc:main May 7, 2025
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.

5 participants