Commit Graph

632 Commits

Author SHA1 Message Date
mohanli-ml 2ec0868ebf
Merge pull request #23860 from mohanli-ml/channelz-sampler-work
Channelz sampler
2020-09-09 14:07:01 -07:00
“Mohan 35a4133e4b Solve the sanity check problem for Json 2020-09-08 22:44:54 -07:00
“Mohan dee219a28f Make entity description type as Json instead of string 2020-09-08 21:41:25 -07:00
“Mohan f85569e5a7 Address cooments including channel_creds checking, UNIMPLEMENTED checking 2020-09-08 11:30:11 -07:00
“Mohan 4039a8d405 Make minor changes to pass github check 2020-09-08 11:29:23 -07:00
Alisha Nanda 94a72c151b
Changed timeout to ns rather than us. 2020-09-03 16:50:42 +00:00
Alisha Nanda 4282e968c4
Re-add in all changes, fix check failures. 2020-09-03 04:01:22 +00:00
Alisha Nanda a4eedc1510 Revert "Merge branch 'master' of https://github.com/ananda1066/grpc"
This reverts commit 35e0e96b09, reversing
changes made to b78bc85185.
2020-09-03 01:57:03 +00:00
Alisha Nanda 88d99b4603 Add timeout flag to gRPC cli
Signed-off-by: Alisha Nanda <alishananda@google.com>
2020-09-01 22:10:35 +00:00
Karthik Ravi Shankar 751b9c105f Move ClientContext from ::grpc_impl to ::grpc
Reverts: https://github.com/grpc/grpc/pull/19261
2020-08-11 16:28:50 -07:00
Karthik Ravi Shankar 15cce00f52
Revert "Revert "Fold Channel and CompletionQueue from grpc_impl to grpc"" 2020-08-06 20:42:54 -07:00
Karthik Ravi Shankar f3f9e8941a
Revert "Fold Channel and CompletionQueue from grpc_impl to grpc" 2020-08-06 15:56:09 -07:00
Karthik Ravi Shankar 390132c87f Merge branch 'master' into channel 2020-08-04 11:48:10 -07:00
Karthik Ravi Shankar 3c2f4b40e3 Fold Channel and CompletionQueue from grpc_impl to grpc
Reverts: https://github.com/grpc/grpc/pull/19067
2020-07-30 16:45:28 -07:00
Esun Kim 9494b834b1 Add TestEnvironment to tests 2020-07-30 13:58:01 -07:00
Alexander Polcyn f57879ac56 Flag protect new logs 2020-07-22 21:22:05 -07:00
Alexander Polcyn 4bdbd4caef Log the peer address of grpc_cli CallMethod RPCs to stderr 2020-07-20 18:18:42 -07:00
Esun Kim c736cf073c Added call to grpc::testing::TestEnvironment in more tests 2020-07-01 13:27:08 -07:00
Esun Kim 165ee5007a Replaced grpc::string with std::string 2020-06-29 17:56:36 -07:00
apolcyn 30cfd114b3
Merge pull request #23110 from apolcyn/fix_grpc_cli
Allow configuring default service configs in grpc_cli via --default_service_config
2020-06-02 12:41:30 -07:00
Alexander Polcyn 0a452b9d19 Allow configuring default service configs in grpc_cli 2020-06-02 10:51:29 -07:00
yihuaz ba0c9d6924 fix clang-format issue 2020-05-25 15:07:27 -07:00
yihuaz 1d69b7d676 add local creds to grpc_cli 2020-05-24 15:01:14 -07:00
Thomas Etter f5c9fd94a5 do not write unnecessary new lines in the grpc_cli as the formatters already write them 2020-05-09 13:34:03 +02:00
ZhenLian d75de51e43 [10/n] remove hard-coded credential paths and rebuild the project 2020-04-29 10:51:56 -07:00
Jan Tattermusch a960546ff9
Revert "[7/n] Avoid using hardcoded test credentials" 2020-04-28 17:41:24 +02:00
ZhenLian cd7e22c6a4
Merge pull request #22695 from grpc/zhen_core_test_improvement_8
[7/n] Avoid using hardcoded test credentials
2020-04-27 15:42:11 -07:00
ZhenLian c13f3c5a50 test using ReadFile 2020-04-25 11:49:51 -07:00
ZhenLian 2c84dec7da try adding extern 2020-04-21 10:08:34 -07:00
ZhenLian dd44231a32 [No Review] Test 2020-04-19 16:04:41 -07:00
ZhenLian 7cb9d43da2
Merge pull request #22689 from grpc/zhen_core_test_improvement_7
[6/n] Avoid using hardcoded test credentials
2020-04-17 18:22:32 -07:00
ZhenLian f64554b698 [NO Review] grpc_tool_test.cc 2020-04-17 16:47:44 -07:00
Donna Dionne 6ec6c24dc1 Fixing code review comments. 2020-04-13 22:16:42 -07:00
Donna Dionne d76fc080c4 Fixing build warnings getting ready for merge. 2020-04-13 10:32:23 -07:00
Donna Dionne ddb98d6b52 Fixing code review comments:
- added more tests and improved structuring of backend service
- fixing grpc_tool tests (due to adding of new test serices/methods
2020-04-12 16:28:39 -07:00
Alexander Polcyn 962a8f28f9 Add a flag to set a grpclb+pick_first service config in
CreateTestChannel; use CreateTestChannel in qps_json_driver
2020-04-03 12:28:55 -07:00
Esun Kim b308241343 Fix clang-tidy issues 2020-03-03 12:27:41 -08:00
Mark D. Roth bc5e3fb661 Convert channelz code to use new JSON API 2020-01-30 10:57:53 -08:00
Lidi Zheng c34bef4ca4 Format all Bazel files with buildifier 2019-11-05 14:03:52 -08:00
Vijay Pai e35c869aaf Remove unused-parameter warnings, round 2 (19 of 19) 2019-10-21 09:16:35 -07:00
Vijay Pai 47f2b461ef clang-format 2019-10-17 09:08:55 -07:00
Vijay Pai 53e19e8de2 Remove unused parameter warning (20 of 20) 2019-10-17 08:52:15 -07:00
Lidi Zheng f12df974ae
Merge pull request #20401 from tanjunchen/clean-up
Fix spelling in comments
2019-10-01 17:49:55 -07:00
chentanjun 4ecc1fe6a4 fix the wrong word 2019-10-01 05:13:33 +08:00
Jan Tattermusch 5cc45de443 disable some broken test on windows RBE 2019-09-30 13:28:02 +02:00
Jan Tattermusch 6ebc1c616f set uses_polling=False for some bazel tests 2019-09-24 09:50:00 +02:00
Prashant Jaikumar 141c2d24d1 Add support for running C++ tests on iOS 2019-08-14 20:44:22 -07:00
Andrew Scherkus 4bf0048194 Document --noremotedb flag for grpc_cli.
It's surprising that grpc_cli always attempts to use the reflection
service even when providing local proto files. Document the
existence of a flag that surpresses this behavior.
2019-07-16 13:14:28 -04:00
rmstar ce282e7d7e
Merge pull request #19395 from rmstar/c++_on_ios
Fix C++ tests to run on iOS
2019-06-28 11:03:22 -07:00
Moiz Haidry fbd5957ee8 Sanity and build fixes 2019-06-21 12:28:55 -07:00
Moiz Haidry 63083d4472 Code cleanup 2019-06-21 11:19:34 -07:00
Moiz Haidry 3ce20819cf Modify codegen to use grpc_impl namespace and other cleanups 2019-06-21 10:51:57 -07:00
Prashant Jaikumar fbfb93c88f Fix C++ tests to run on iOS
- Define grpc_iomgr_run_in_background in iomgr_posix_cfstream.cc
- Use *_IF_SUPPORTED() for death tests
- Move global test init, teardown to SetUpTestCase, TearDownTestCase as GTMGoogleTestRun doesn't run main()
2019-06-20 18:16:20 -07:00
Karthik Ravi Shankar 522ddfe273 Move ClientContext to grpc_impl
ClientContext is another file which needs to be moved from grpc to
grpc_impl for referencing it.
2019-06-05 16:31:39 -07:00
Yang Gao 84529002a1
Merge pull request #19114 from qiwzhang/use_grpc
Expose interop tests and add --tls_key_file flag for interop_server
2019-05-29 00:00:11 -07:00
Wayne Zhang bd2756e482 Fix format 2019-05-28 15:39:53 -07:00
Wayne Zhang edc506849f Expose interop test for others 2019-05-22 15:24:33 -07:00
Karthik Ravi Shankar 40210d3b8a Move Channel to grpc_impl 2019-05-17 09:12:33 -07:00
Karthik Ravi Shankar 772a74aced Revert changes to Channel 2019-05-15 14:24:17 -07:00
Karthik Ravi Shankar baef4b1d60 Merge branch 'master' into grpc_namespace_channel_new 2019-04-30 17:39:48 -07:00
Karthik Ravi Shankar 549230467b
Merge pull request #18720 from grpc/revert-18717-grpc_namespace_server_revert
Revert "Revert "Merge pull request #18458 from grpc/grpc_namespace_server""
2019-04-30 17:30:29 -07:00
Karthik Ravi Shankar e3a0c85960 Merge branch 'master' into grpc_namespace_channel_new 2019-04-30 14:30:03 -07:00
Karthik Ravi Shankar 5274deb32b Fix the rebase and build 2019-04-23 14:12:48 -07:00
Karthik Ravi Shankar 60bdeef9f4 Move Channel also to impl for now 2019-04-23 14:03:06 -07:00
Karthik Ravi Shankar e57182ab61 Fix the compile errors for tests and namespace. 2019-04-23 14:00:56 -07:00
Karthik Ravi Shankar 603d014f0e Changes to fold credentials into grpc_impl from grpc 2019-04-23 13:54:26 -07:00
Karthik Ravi Shankar 858b5cca20 Fix clang_format_code.sh issues and move the internal calls to new name 2019-04-23 11:45:11 -07:00
Nicolas "Pixel" Noble b9a279c030 Resolving ambiguous call to CreateCustomChannel. 2019-04-22 23:53:53 +02:00
Karthik Ravi Shankar 973fa6950e Fold Channel into grpc_impl from grpc namespace 2019-04-11 12:04:23 -07:00
Karthik Ravi Shankar 2e88231fc0
Revert "Revert "Merge pull request #18458 from grpc/grpc_namespace_server"" 2019-04-10 15:04:05 -07:00
Karthik Ravi Shankar f03b309787 Revert "Merge pull request #18458 from grpc/grpc_namespace_server"
This reverts commit dc1089a6d1, reversing
changes made to 31843787cc.

This change also includes - Revert "Merge pull request #17932 from soheilhy/gprpp-mutex"

This reverts commit df4b6a763d, reversing
changes made to dc1089a6d1.
2019-04-10 13:54:05 -07:00
Karthik Ravi Shankar dad3f34207
Revert "Revert "Revert "Folding the Channel class into the grpc_impl namespace.""" 2019-04-10 12:14:04 -07:00
Karthik Ravi Shankar 53c5bf5ced Merge branch 'master' into revert-18076-revert-17797-channel 2019-04-08 16:04:24 -07:00
Karthik Ravi Shankar 9875fabdd4 Merge branch 'master' into revert-18076-revert-17797-channel 2019-04-08 12:55:07 -07:00
Karthik Ravi Shankar c50dd23ea7 Merge branch 'master' into grpc_namespace_server 2019-04-04 15:56:09 -07:00
Karthik Ravi Shankar 8a2807c2a6 Merge branch 'master' into grpc_namespace_server 2019-04-03 12:46:41 -07:00
Karthik Ravi Shankar f0d82d57e2 Merge branch 'master' into grpc_namespace_server_credentials 2019-04-01 13:59:12 -07:00
Yang Gao ca846bbcbb
Merge pull request #18524 from yang-g/cli
Log error to stderr
2019-03-27 17:16:19 -07:00
yang-g 8f77928e04 Log error to stderr 2019-03-26 14:13:40 -07:00
Karthik Ravi Shankar ecfc107f32 Make more changes to remove grpc qualifier from tests 2019-03-21 18:40:00 -07:00
Karthik Ravi Shankar 04af168cf8 Move Server into grpc_impl from grpc 2019-03-20 13:05:36 -07:00
Karthik Ravi Shankar 54171e276f Fold server credentials from grpc to grpc_impl namespace 2019-03-20 10:00:34 -07:00
Michael Behr 7217dcd099 Merge remote-tracking branch 'upstream/master' into interop-client-additional-metadata 2019-03-06 12:40:09 -05:00
Nicolas Noble 91ad888497
Revert "Revert "Folding the Channel class into the grpc_impl namespace."" 2019-02-27 16:53:23 -08:00
Michael Behr 473041e06b Format code. 2019-02-27 10:52:45 -05:00
yang-g 456f748b2f Revert "Merge pull request #18146 from grpc/revert-17308-shutdown"
This reverts commit 9079e98dfc, reversing
changes made to 76a38bfcc2.
2019-02-25 10:11:06 -08:00
Michael Behr 60f060e078 Let interop_client send additional metadata, controlled by a flag. 2019-02-25 11:26:22 -05:00
Yang Gao 4bc2ca4de6
Revert "Move grpc_shutdown internals to a detached thread" 2019-02-22 16:34:24 -08:00
yang-g 0df63d3c98 Merge branch 'master' into shutdown 2019-02-15 21:51:03 -08:00
Soheil Hassas Yeganeh db38d4ca9b
Merge pull request #17939 from vertextao/gpr_mu_cv-leak-test
Add ASAN-only leak detection for gpr_mu/cv and fix the newly caught leaks
2019-02-15 21:43:32 -05:00
Nicolas Noble 2ad245cb0c
Revert "Folding the Channel class into the grpc_impl namespace." 2019-02-15 09:52:15 -08:00
xtao 7766912dda
fix more detected mu/cv leaks 2019-02-16 00:00:50 +08:00
Nicolas "Pixel" Noble de332cfcee Merge branch 'master' of https://github.com/grpc/grpc into channel 2019-02-13 22:11:47 +01:00
Jan Tattermusch bc19ba1668
Merge pull request #18037 from xichengliudui/fixtypos
Fix various typos in .cc and .md and .py files
2019-02-13 13:24:34 +01:00
Nicolas "Pixel" Noble 63db582516 Merge branch 'master' of https://github.com/grpc/grpc into channel 2019-02-13 00:19:23 +01:00
yang-g bc946d6c6d merge with head and resolve conflicts 2019-02-12 15:00:32 -08:00
xichengliudui d9b508c896 Fix various typos in .cc and .md and .py files 2019-02-12 11:11:43 -05:00
Jan Tattermusch 18856a87fc
Merge branch 'master' into updatefiles 2019-02-06 11:45:11 +01:00
ncteisen 82171553cf clang fmt 2019-02-01 15:23:44 -08:00
ncteisen fa74259769 Reintroduce commented debugging tips 2019-02-01 13:19:34 -08:00
ncteisen 632aa8125f reintroduce anon namespace 2019-02-01 13:15:19 -08:00
ncteisen c215e8e359 Fix internal build 2019-02-01 12:14:06 -08:00
xichengliudui 8548a932fb Update .cc and .md files 2019-01-30 11:24:09 -05:00
Nicolas "Pixel" Noble cabbd35014 Reformat. 2019-01-24 23:42:12 +01:00
Nicolas "Pixel" Noble 2fd079ff7c Channel folding. 2019-01-23 21:40:07 +01:00
yang-g 47e5771181 Fix grpc_tool_test 2019-01-17 10:25:41 -08:00
yang-g 67742ef63f Fix BUILD files. Manually edit bzl files 2018-12-06 14:37:52 -08:00
Hope Casey-Allen 9d2b3f35b9 Fix another problem in grpc_tool_test 2018-12-04 09:32:50 -08:00
Hope Casey-Allen b7f283b06f Fix bazel rbe tests 2018-12-03 16:04:30 -08:00
yang-g e75fc243da change tests to use the new class instead of grpc_test_init 2018-11-30 08:57:38 -08:00
Jan Tattermusch e5f9f5ef46 disable grpc_tool_test on msan 2018-11-14 16:40:35 +01:00
Hope Casey-Allen e42afb0d63 Make namespace more explicit. 2018-11-07 19:48:14 -08:00
Noah Eisen 5cf95f0b52
Merge pull request #16991 from ncteisen/channelz-get-server-core
Channelz part 10: GetServer
2018-10-26 12:18:59 -07:00
ncteisen 693f46841a Add GetServer to core 2018-10-24 17:31:30 -07:00
ncteisen 4fa389b137 Unifying grpc build hacks 2018-10-24 17:25:51 -07:00
Yang Gao 6bfb966271
Revert "Revert "grpc_cli json support"" 2018-10-16 15:49:46 -07:00
David G. Quintas a464b4ce39
Revert "grpc_cli json support" 2018-10-16 14:42:37 -07:00
Yang Gao 191766c0f2
Merge pull request #16766 from gfecher/master
grpc_cli json support
2018-10-16 09:12:58 -07:00
Feso 00bb2a035e Reformatted code as per clang-format 2018-10-16 00:14:09 +01:00
Feso 29c131f790 Refactored based on code review 2018-10-13 19:17:26 +01:00
Feso d74162f83a Merge remote-tracking branch 'upstream/master' 2018-10-04 21:31:14 +01:00
Spencer Fang e6b1edf42a Split grpc_cli target into two targets
Let's have a util target that contains everything except for the CLI
front end. This way, users can depend on the util classes without
any risk of CLI flag collisions.
2018-10-04 12:00:28 -07:00
Feso 44cecbb2f7 grpc_cli json support 2018-10-03 00:50:57 +01:00
Nathan Herring d55ef6cc03 Fix inverted logic for --call_creds=none.
Fixes #16622. Follow up to change 6e3938c. Thanks to @bluecmd for pointing it out.
2018-10-01 10:13:04 +02:00
Yang Gao 8bce2a643b
Merge pull request #16299 from Capstan/cli-client-cert
Add flags to use client certs for cli.
2018-09-13 08:39:50 -07:00
Nathan Herring 916a686ef3 Revert "Use grpc_slice_unref_internal"
This reverts commit 147826a909.
2018-09-11 09:32:06 +02:00
Nathan Herring 2d8c682cac Revert "Missing #include"
This reverts commit 234fdc6fbf.
2018-09-11 09:31:39 +02:00
ncteisen ef1a390d1d Merge branch 'master' of https://github.com/grpc/grpc into channelz-server 2018-09-10 11:19:53 -07:00
Noah Eisen 2edfddb66f
Merge pull request #16055 from ncteisen/channelz-subchannels
Channelz Part 4: Add Subchannel Support
2018-09-10 11:12:52 -07:00
Nathan Herring 0cf90ae506
Merge branch 'master' into cli-client-cert 2018-09-10 10:54:30 +02:00
Yang Gao 179b4e81a0
Merge pull request #16297 from Capstan/cli-call-creds
Create a --call_creds flag for grpc_cli.
2018-09-09 23:20:48 -07:00
ncteisen 5946ae5eff Merge branch 'channelz-subchannels' into channelz-server 2018-09-08 10:19:26 -07:00
ncteisen 2f76fd452e Merge branch 'master' of https://github.com/grpc/grpc into channelz-subchannels 2018-09-08 10:15:51 -07:00
Noah Eisen 99680244c4
Merge pull request #16209 from ncteisen/bugprone-undefined-memory-manipulation
Clang Tidy: Bugprone Undefined Memory Manipulation
2018-08-31 10:07:25 -07:00
ncteisen f8a4aae119 Fix all instances of bugprone-undefined-memory-manipulation 2018-08-29 14:24:02 -07:00
ncteisen 6076b1d798 Merge branch 'channelz-subchannels' into channelz-server 2018-08-28 12:55:40 -07:00
ncteisen 4b5b019d56 Merge branch 'master' of https://github.com/grpc/grpc into channelz-subchannels 2018-08-28 12:53:57 -07:00
Nathan Herring 234fdc6fbf Missing #include 2018-08-21 23:28:45 +02:00
Nathan Herring 147826a909 Use grpc_slice_unref_internal 2018-08-21 23:16:22 +02:00
Josh Haberman 8a80364a9f Cleaned up BUILD file, which fixed a dependency problem with protobuf. 2018-08-16 06:50:10 -07:00
ncteisen 3aa987a29a Add channelz server support 2018-08-14 17:26:40 -07:00
ncteisen c850354423 Merge branch 'master' of https://github.com/grpc/grpc into channelz-subchannels 2018-08-11 21:19:14 -04:00
Nathan Herring c173b196d6 Add flags to use client certs for cli.
This allows `grpc_cli` to act with the specific client identity when using SSL. It does _not_ however set the cert when using Google Default Credentials, as it does not have the necessary options to provide a client cert and key.
2018-08-09 11:29:05 -05:00
Nathan Herring 6e3938c829 This replaces mutually-exclusive flags for a single selector flag which defines the call credentials to composite over any channel credentials. It is the call credentials version of #16204.
Fixes issue #16205.
2018-08-09 11:11:37 -05:00
Nathan Herring e1a0f235e1 Shorten flag value to gdc. 2018-08-07 15:27:40 -07:00
Nathan Herring 3b2b237b3b Make `google_default_credentials` be an additional channel type. 2018-08-07 09:22:33 -07:00
ncteisen 6dfc4dd49a Merge branch 'master' of https://github.com/grpc/grpc into channelz-subchannels 2018-08-02 17:25:09 -07:00
Nathan Herring 9ddb23442b Clang format. 2018-08-01 13:08:03 +02:00
Nathan Herring ab8b628b31 Create a --channel_creds_type flag for grpc_cli.
This replaces several mutually-exclusive flags for a single selector flag which defines
the base channel type. It also allows child classes to selectively override the defaults
and provide additional channel types (e.g., LOAS in the mono repo).

Fixes issue #16060.
2018-08-01 12:41:37 +02:00
Nathan Herring 0fee91e002 More clang format 2018-07-21 08:21:18 +02:00