-
Notifications
You must be signed in to change notification settings - Fork 34
[CloudRun] Implement Cloudrun to Cloudrun test #164
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 68 commits
Commits
Show all changes
82 commits
Select commit
Hold shift + click to select a range
ad3d5ca
cloudrun server test
sourabhsinghs 45f84dc
Merge branch 'main' into feature/cloudrun/server-test
sourabhsinghs 6859957
cloudrun server test
sourabhsinghs 39c5cbe
check patch
eshitachandwani 87317ec
correct logging import and remove clourun server flag
eshitachandwani a9f88b0
client test not working
eshitachandwani 0142857
changes
eshitachandwani 579f782
running tests
eshitachandwani 64cd9f1
run black and isort
eshitachandwani 1a1c974
pylint error
eshitachandwani 6d5e0de
pylint error
eshitachandwani bc64577
remove unwanted files
eshitachandwani b9be8ca
address comments
eshitachandwani 521bf5e
pylint
eshitachandwani 8455a1e
address comments
eshitachandwani d04238e
pylint
eshitachandwani 10e9589
black
eshitachandwani 91ddacc
working cloudrun_server test
eshitachandwani bc72f63
formatting
eshitachandwani a70ea9b
pylint
eshitachandwani 2685397
pylint
eshitachandwani 75184b9
address comments
eshitachandwani 0b235ee
black
eshitachandwani 486c554
add cloudrunlogs
eshitachandwani 47447cf
flag file
eshitachandwani ab09f9c
test suit
eshitachandwani 9af09ec
pull from main
eshitachandwani 2c270c2
create_resource
eshitachandwani 65f29bf
address comments
eshitachandwani 54e9052
black
eshitachandwani b2de1cd
test
eshitachandwani 3bd8806
add flag
eshitachandwani 4cd2532
secure mode remove
eshitachandwani 9062441
secure channel
eshitachandwani 69184c1
region change for kokoro
eshitachandwani 56fb5c0
no vpc for kokoro
eshitachandwani 6e33d57
comments
eshitachandwani 0ee079b
format
eshitachandwani 9f26af5
pylint
eshitachandwani ce1e662
pylint
eshitachandwani 83802a4
pylint
eshitachandwani 1f9c4f3
merge and running tests
eshitachandwani 2962dca
merge and running tests
eshitachandwani 148e100
black
eshitachandwani 7f66c2f
black
eshitachandwani 5e203e9
minors
eshitachandwani 025630f
minor
eshitachandwani 3bf7296
Merge branch 'main' into eshita_cr_cr
eshitachandwani f5de981
minor
eshitachandwani 43a00d8
minor
eshitachandwani 9bc7575
Merge branch 'eshita_cr_cr' of https://github.com/eshitachandwani/psm…
eshitachandwani 71a6052
Merge branch 'main' into eshita_cr_cr
eshitachandwani 7df6058
comments
eshitachandwani 0d754b1
Merge branch 'eshita_cr_cr' of https://github.com/eshitachandwani/psm…
eshitachandwani 68cd017
comments
eshitachandwani 07abd39
comment
eshitachandwani 140a74e
address comments
eshitachandwani d0f08db
secure_mode
eshitachandwani d3c7461
format
eshitachandwani 459d9e3
Merge branch 'main' into eshita_cr_cr
eshitachandwani 30307b6
cleanup
eshitachandwani 84526b4
Merge branch 'eshita_cr_cr' of https://github.com/eshitachandwani/psm…
eshitachandwani e45e55d
fix test
eshitachandwani 366c8ef
change name
eshitachandwani bcfa2f8
client run
eshitachandwani 532b519
black
eshitachandwani 3ecea0b
black
eshitachandwani 196bab9
test run
eshitachandwani 35b302f
client script
eshitachandwani 42e0620
final changes
eshitachandwani 54d588f
changes
eshitachandwani 61cb473
Merge branch 'main' into eshita_cr_cr
eshitachandwani c4576cb
change policy
eshitachandwani 3f14141
Merge branch 'eshita_cr_cr' of https://github.com/eshitachandwani/psm…
eshitachandwani 8939071
policy
eshitachandwani a32ba27
policy
eshitachandwani aa7e4b1
Refactor secure channel creation, add call creds logging
sergiitk 677ec69
temporary change: extend the retry timeout for live kokoro debugging
sergiitk c731f68
Call creds should work now
sergiitk 5e1b6ad
oops forgot to refresh the creds
sergiitk 13a1624
missed target audience format
sergiitk 553182a
add region to delete resource
eshitachandwani 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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,72 @@ | ||
| # Copyright 2025 gRPC authors. | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
| """ | ||
| Run test xds client. | ||
|
|
||
| Typical usage examples: | ||
|
|
||
| # Help. | ||
| ./run.sh ./bin/run_test_client_cloud_run.py --help | ||
|
|
||
| """ | ||
| import logging | ||
|
|
||
| from absl import app | ||
| from absl import flags | ||
|
|
||
| from bin.lib import common | ||
| from framework import xds_flags | ||
| from framework import xds_k8s_flags | ||
| from framework.infrastructure.mesh_resource_manager import ( | ||
| cloud_run_mesh_manager, | ||
| ) | ||
|
|
||
| logger = logging.getLogger(__name__) | ||
|
|
||
| flags.adopt_module_key_flags(xds_flags) | ||
| flags.adopt_module_key_flags(xds_k8s_flags) | ||
| flags.adopt_module_key_flags(common) | ||
|
|
||
|
|
||
| def main(argv): | ||
| if len(argv) > 1: | ||
| raise app.UsageError("Too many command-line arguments.") | ||
|
|
||
| xds_flags.set_socket_default_timeout_from_flag() | ||
|
|
||
| run_kwargs = dict() | ||
| td = cloud_run_mesh_manager.CloudRunMeshManager( | ||
| **common.td_attrs(), region=xds_flags.CLOUD_RUN_REGION.value | ||
| ) | ||
|
|
||
| # Default server target pattern. | ||
| server_target = f"xds:///{xds_flags.SERVER_XDS_HOST.value}" | ||
| if xds_flags.SERVER_XDS_PORT.value != 80: | ||
| server_target = f"{server_target}:{xds_flags.SERVER_XDS_PORT.value}" | ||
|
|
||
| run_kwargs["server_target"] = server_target | ||
|
|
||
| mesh = td.create_mesh() | ||
| run_kwargs[ | ||
| "config_mesh" | ||
| ] = f"projects/{td.project}/locations/global/meshes/{mesh.name}" | ||
| logger.info("Config Mesh: %s", mesh.name) | ||
| client_runner = common.make_cloud_run_client_runner( | ||
| run_kwargs["config_mesh"], server_target | ||
| ) | ||
| client_runner.run(**run_kwargs) | ||
|
|
||
|
|
||
| if __name__ == "__main__": | ||
| app.run(main) |
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 |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| # Common config file for Cloudrun PSM tests. | ||
| --cloud_run_region=us-central1 | ||
| --cloud_run_region=us-east7 |
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.
Uh oh!
There was an error while loading. Please reload this page.