Commit Graph

1528 Commits

Author SHA1 Message Date
Julien Boeuf 38c0cdee34 Fix double-free issue for optional_message.
Also better end to end testing of plumbing of plugin error message.
2016-06-06 14:46:08 +02:00
yang-g 34b5861e5c Spliting filegroup. 2016-06-03 17:51:00 -07:00
yang-g aaee544d69 merge and resolve conflicts 2016-06-03 15:34:01 -07:00
yang-g 17487f9a22 Make grpc++ independent of protobuf 2016-06-03 15:21:15 -07:00
Yuchen Zeng c8074527b2 Remove unnecessary headers 2016-06-03 14:36:11 -07:00
Jan Tattermusch b0bb674df3 Merge pull request #6636 from yang-g/grpc_cli
Add proto file support in grpc_cli
2016-06-03 16:12:36 -04:00
Jan Tattermusch 05808c4208 Merge pull request #6731 from vjpai/beheader
Remove unused portions of C++ QPS testing
2016-06-03 16:09:51 -04:00
Jan Tattermusch 2ff798629c Merge pull request #6664 from dklempner/server_builder_plugin_test
Fix a missing initialization
2016-06-02 20:28:39 -04:00
yang-g 15759f610e Let Next set ok=true when receiving error status 2016-06-01 11:21:27 -07:00
Craig Tiller d4aa7cf5a5 Fix negation 2016-05-31 13:59:25 -07:00
Craig Tiller 1adb13143f Add comment 2016-05-31 13:04:32 -07:00
Craig Tiller dbd03b5e2d Make client_channels be across all clients, not per-client 2016-05-31 13:00:33 -07:00
vjpai 711472f846 Remove unused gflags and gtest includes 2016-05-31 12:57:38 -07:00
vjpai d8364f7af5 Deprecate perf_db use 2016-05-31 12:54:04 -07:00
Yuchen Zeng c92fe25af5 Add mutex for stream in ProtoReflectionDescriptorDatabase, fix headers check 2016-05-25 07:18:57 -07:00
Craig Tiller e0ddc35aa3 Speed up tests 2016-05-23 15:57:48 -07:00
Craig Tiller 825cd4533c Cleanup redundant tests 2016-05-23 15:54:38 -07:00
Craig Tiller e67f7b6b54 Fix timeout on async server shutdown
Server was continuing to make requests for new calls forever, which were
starving out the shutdown sequence. Change order and win.
2016-05-23 14:50:24 -07:00
Craig Tiller c4c6ecf8e9 Merge github.com:grpc/grpc into test_affine 2016-05-23 12:48:55 -07:00
Jan Tattermusch b90e6c9b4a Merge pull request #6670 from ctiller/guess_cpu
Better guesses at benchmarks turned unit tests cpu cost
2016-05-22 21:17:08 -04:00
Jan Tattermusch d44b15a0c6 Merge pull request #6436 from jboeuf/credentials_refactoring
Refactoring the core security code.
2016-05-22 17:29:43 -04:00
Craig Tiller bc7593de7a Revert "Revert "Remove spam""
This reverts commit e76528ce26.
2016-05-21 13:05:44 -07:00
Craig Tiller 34c6e87598 Simpler trick to force a listening cq 2016-05-21 13:05:01 -07:00
Craig Tiller e76528ce26 Revert "Remove spam"
This reverts commit 3f3312e7e9.
2016-05-21 12:43:17 -07:00
Craig Tiller 3f3312e7e9 Remove spam 2016-05-21 12:35:29 -07:00
Craig Tiller ae09d9dca9 Fixes and code simplification 2016-05-20 22:23:37 -07:00
Yuchen Zeng 91c51a7aba Add proto_server_reflection_test 2016-05-20 14:48:08 -07:00
Craig Tiller c0cb23b885 Merge branch 'guess_cpu' into test_affine 2016-05-20 11:17:31 -07:00
Craig Tiller bd24a4611f Better guesses at benchmarks turned unit tests cpu cost 2016-05-20 11:15:58 -07:00
Craig Tiller 139040b8be Merge github.com:grpc/grpc into test_affine 2016-05-20 10:56:52 -07:00
Craig Tiller 718ce51af8 Fix server plugin test 2016-05-20 10:44:23 -07:00
Craig Tiller e004958fd6 Fix formatting, mem leak, stall 2016-05-20 10:31:09 -07:00
Craig Tiller aae6c2cb96 Fix server plugin test 2016-05-20 08:58:30 -07:00
David Klempner b941d5a4aa Fix a missing initialization 2016-05-19 21:00:47 -07:00
yang-g fe3e8b7313 remote unused member 2016-05-19 15:30:05 -07:00
Yuchen Zeng ace4986e65 Update reflection implementation along with API changes 2016-05-19 15:10:22 -07:00
Jan Tattermusch 54140f9760 Merge pull request #6608 from yang-g/interop
Assert we get a valid creds.
2016-05-19 13:20:43 -07:00
Jan Tattermusch 1226387698 Merge pull request #6585 from ctiller/connect_first
Make qps workers connect before even warmup stage begins
2016-05-19 13:20:00 -07:00
Julien Boeuf a4880374f9 Merge branch 'master' of github.com:grpc/grpc into credentials_refactoring 2016-05-18 22:12:43 -07:00
Jan Tattermusch b9f11c3fa2 Merge pull request #6625 from sreecha/stress_test_misc
Misc changes to stress test framework (to reduce false positives and tools for debugging)
2016-05-18 18:41:35 -07:00
Craig Tiller 9766f4f424 Merge github.com:grpc/grpc into test_affine 2016-05-18 16:55:35 -07:00
yang-g df012d048a Add proto file support in grpc_cli 2016-05-18 16:15:15 -07:00
Jan Tattermusch aa51f63da3 Merge pull request #6463 from dgquintas/fix_compression_interop
Fixed compression interop and re-enable for C++.
2016-05-18 07:29:04 -07:00
Sree Kuchibhotla 4dd02fc63c Misc changes 2016-05-17 18:37:52 -07:00
Sree Kuchibhotla eaa3072744 Make the rpc timeout configurable 2016-05-17 17:18:23 -07:00
Yuchen Zeng 749005efcc Merge remote-tracking branch 'upstream/master' into reflection_separate_lib 2016-05-17 14:06:44 -07:00
yang-g ed9ae72e7b Assert we get a valid creds. 2016-05-16 14:09:23 -07:00
Craig Tiller c3b88b079e Better testing 2016-05-16 11:21:17 -07:00
Craig Tiller 1102faffca Merge branch 'connect_first' into test_affine 2016-05-14 13:27:02 -07:00
Craig Tiller f7a670fe6d Merge branch 'server_channel_affinity' of github.com:sreecha/grpc into affine 2016-05-14 13:05:41 -07:00
David Klempner 6fb122dc6e Add calls to grpc_recycle_unused_port to two of the tests which call
grpc_pick_unused_port a lot.
2016-05-13 15:24:17 -07:00
Craig Tiller 52237e3a96 clang-format 2016-05-13 14:37:25 -07:00
Craig Tiller 63d24f1c7d Make qps workers connect before even warmup stage begins 2016-05-13 14:36:09 -07:00
Vijay Pai b4cb249107 steaming -> streaming 2016-05-12 09:28:15 -07:00
Yuchen Zeng f86bbdefc9 Merge pull request #6373 from y-zeng/server-builder-plugin
Server builder plugin
2016-05-11 17:26:29 -07:00
Jorge Canizales 86803d1dea Merge pull request #6470 from yang-g/error_with_trailer
Add a C++ test for server returning error with debug info in trailer.
2016-05-11 14:12:38 -07:00
Jan Tattermusch b85e9d43f0 fix formatting 2016-05-11 10:21:45 -07:00
Sree Kuchibhotla 088891119f Merge branch 'master' into server_channel_affinity 2016-05-11 08:35:25 -07:00
Jan Tattermusch d6dabf9e9d Merge pull request #6449 from sreecha/stress_client_reconnects
Interop/Stress client that is resilient to server restarts
2016-05-10 20:35:22 -07:00
Julien Boeuf 19cd009ec1 clang-format 2016-05-10 15:27:48 -07:00
Julien Boeuf bae6a4cb43 Merge branch 'master' of https://github.com/grpc/grpc into credentials_refactoring 2016-05-10 15:26:17 -07:00
Sree Kuchibhotla 8dbe2cb071 Merge branch 'master' into server_channel_affinity 2016-05-10 10:33:25 -07:00
yang-g 39e71c33d1 fix compiling error 2016-05-10 10:21:41 -07:00
Jan Tattermusch fffd296bc5 Merge pull request #6279 from dgquintas/lb_proto_v1
Updated load balancer proto to v1
2016-05-10 10:15:42 -07:00
Yuchen Zeng 26a1785cfc Resolve conflicts 2016-05-06 15:50:15 -07:00
Yuchen Zeng 7d099a5c90 Fix naming and comment problems 2016-05-06 13:21:36 -07:00
yang-g 080528abb7 Add parsing back to protobuf example 2016-05-06 13:12:00 -07:00
Sree Kuchibhotla 4f5b2916cc fix clang formatting 2016-05-06 10:48:17 -07:00
yang-g 4c07008610 Add a test for server returning error with debug info in trailer. 2016-05-05 23:35:20 -07:00
David Garcia Quintas 303d3082a0 Fixed compression interop and re-enable for C++.
Also added some defense in depth for compression algorithms in the
receive path.
2016-05-05 18:26:13 -07:00
Jan Tattermusch a21c7e9207 add support for scenario categories 2016-05-05 18:10:35 -07:00
Yuchen Zeng 0333a49afa Use stream rpc to ensure all related requests go to a single server. 2016-05-05 16:29:43 -07:00
Sree Kuchibhotla c5549fcd0a Remove redundant error check 2016-05-05 16:12:54 -07:00
Sree Kuchibhotla 5130427b30 Add remaining inteorp tests to stress client 2016-05-05 15:39:36 -07:00
Sree Kuchibhotla ad0f792254 Interop client that is resilient to server restarts 2016-05-05 15:39:36 -07:00
Yuchen Zeng c84ed6813e Proto server reflection 2016-05-04 16:57:08 -07:00
Julien Boeuf 8ca294e417 Refactoring the core security code.
As opposed to a flat directory, we now have the following structure:

- security
  -context
  - credentials
    - composite
    - fake
    - google_default
    - iam
    - jwt
    - oauth2
    - plugin
    - ssl
  - transport
  - util

We have not refactored the test code yet but this PR is already large
enough...
2016-05-04 15:51:28 -07:00
Craig Tiller e4d2748f2f Fix async_end2end_test flow control
Completion queues + flow control + single threading is hard.

We need a read outstanding on a call to grant flow control tokens to the
remote end.

To do that we need to request a read *before* we wait for the write to
be finished, otherwise, in the case of a large write we'll block waiting
for flow control tokens.

Built on #6402
2016-05-03 12:19:33 -07:00
Yuchen Zeng 3b8f3354de Add plugins at the time of static initialization 2016-05-03 12:18:13 -07:00
Craig Tiller 5f51757f39 Merge github.com:grpc/grpc into large_async_secure_and_fixed 2016-05-03 09:53:13 -07:00
Sree Kuchibhotla b69251c2f6 Merge branch 'master' into server_channel_affinity 2016-05-03 09:33:13 -07:00
Vijay Pai d7b1e704a8 Cover large message sent securely or insecurely over async 2016-05-02 15:10:21 -07:00
Vijay Pai df8b62cea7 Add coverage for secure async end2end testing 2016-05-02 14:34:24 -07:00
Jan Tattermusch e88030a2c2 Merge pull request #6340 from ctiller/fail_fast_breaks_qps
Disable fail fast for qps driver
2016-05-02 14:26:52 -07:00
Yuchen Zeng c049035bed Add GRPC_ prefix for macros 2016-04-29 14:05:08 -07:00
Yuchen Zeng 018bf1a864 modified has_async_methods and has_sync_methods of TestServerBuilderPlugin 2016-04-29 13:39:17 -07:00
Yuchen Zeng a42ec21341 Server builder plugin 2016-04-29 13:05:36 -07:00
Sree Kuchibhotla a2b549578f Merge branch 'master' into server_channel_affinity 2016-04-29 11:01:37 -07:00
Craig Tiller 97244d5810 clang-format, make code more self-documenting 2016-04-29 08:05:57 -07:00
Craig Tiller 5c123fd22b Add a shard channel arg to client channel construction
C core automatically shares subchannels between channels. Therefore our
multiple channel performance tests were really testing single channel
performance.
2016-04-28 20:48:24 -07:00
Craig Tiller b6e4440880 Disable fail fast for qps driver 2016-04-28 08:21:52 -07:00
Sree Kuchibhotla cfa6401328 Merge branch 'master' into server_channel_affinity 2016-04-27 15:03:02 -07:00
Sree Kuchibhotla f5266d31c8 Merge branch 'master' into stress_test_misc 2016-04-27 15:02:40 -07:00
yang-g 6b16aaae96 merge and resolve conflict 2016-04-26 16:23:53 -07:00
Sree Kuchibhotla 44b9cd7584 Fix the sanity error reported by check_sources_and_headers.py 2016-04-26 12:15:48 -07:00
Sree Kuchibhotla 8c065a7b22 clang format 2016-04-26 12:11:42 -07:00
Sree Kuchibhotla 30499760db Merge branch 'master' into server_channel_affinity 2016-04-26 11:27:14 -07:00
David Garcia Quintas 7f0793ad62 Updated load balancer proto to v1 2016-04-25 16:48:26 -07:00
Sree Kuchibhotla 3714e302c0 Simplify QPS Metrics collection 2016-04-22 10:17:28 -07:00
Nicolas Noble 241dea56c8 Merge pull request #6147 from ctiller/strong-includes
Rollup of changes from latest import
2016-04-21 18:59:06 -07:00
Craig Tiller 7beea147e5 Merge github.com:grpc/grpc into strong-includes 2016-04-21 17:07:36 -07:00
Sree Kuchibhotla 1f5e262589 Add the option of adding a non-listening server completion queue. This makes writing certain test cases (like hybrid_end2end tests) easier 2016-04-21 12:28:15 -07:00
Vijay Pai dfdfe26958 Make sure that there is at least one scenario, otherwise indicates malformed
input
2016-04-21 11:38:31 -07:00
yang-g e291402306 Merge remote-tracking branch 'upstream/master' into proto_comments 2016-04-20 16:38:26 -07:00
Vijay Pai 8909428a1a clang-format 2016-04-20 14:21:30 -07:00
vjpai 92abf1cfd4 Merge branch 'master' into qps_driver_youre_fired 2016-04-20 13:06:25 -07:00
vjpai 1f13c820ed Eliminate unused source file 2016-04-20 13:04:35 -07:00
vjpai 29089c7b41 Deprecation of qps_driver and use of shell scripts, in progress 2016-04-20 12:38:16 -07:00
vjpai 87bac959ee Eradicate Uniform, Deterministic, and Pareto interarrival
distributions since we don't use them and it's not sensible
to add them
2016-04-20 09:35:35 -07:00
Jan Tattermusch e9a8d89dc2 fix formatting 2016-04-15 15:38:17 -07:00
Jan Tattermusch 33c161dffa populate ScenarioResult.summary in JSON report 2016-04-15 14:53:54 -07:00
yang-g 2e08941a37 Use the comments before syntax line as file comments. 2016-04-15 10:46:41 -07:00
Jan Tattermusch 6321cec58e fix formatting 2016-04-14 20:00:29 -07:00
Jan Tattermusch 453442eefb fix formatting 2016-04-14 18:05:42 -07:00
yang-g 8282b755a2 Clarify the comments 2016-04-14 17:13:24 -07:00
yang-g b8aa58b2cd Add a test 2016-04-14 15:53:45 -07:00
Jan Tattermusch 969ffaf5c6 Enable JSON reports for qps drivers 2016-04-14 13:13:25 -07:00
Jan Tattermusch f2ba7fe037 integrate ScenarioResult proto into qps driver 2016-04-14 13:13:25 -07:00
Craig Tiller 8f98e0b9dd Add missing file 2016-04-11 23:39:12 -07:00
Craig Tiller aef1ebe8f9 Merge github.com:grpc/grpc into strong-includes 2016-04-11 20:13:08 -07:00
Craig Tiller 3ab2fe0094 Rollup of changes from the latest import 2016-04-11 20:11:18 -07:00
David Garcia Quintas 3a43cc06a8 Added codegen_test_full
Which makes sure target that depend on both codegen and grpc build.
2016-04-08 16:59:51 -07:00
Craig Tiller 0bda0b3e55 Configure performance scenarios with json
Run those json configurations as part of presubmits
2016-04-06 10:14:44 -07:00
Nicolas Noble e3e91a3d3f Merge pull request #6033 from ctiller/channel_max_reconnect_backoff
Channel max reconnect backoff
2016-04-05 13:37:46 -07:00
Craig Tiller eb9b6dbf11 Merge branch 'master' into ignore_connectivity 2016-04-04 23:28:28 -07:00
Craig Tiller 8e3b16cfd9 Merge github.com:grpc/grpc into channel_max_reconnect_backoff 2016-04-04 13:50:38 -07:00
Nicolas Noble abcebb0798 Merge pull request #5419 from ctiller/cleaner-posix2
Move all event handling code behind one grand unified interface
2016-04-01 15:20:50 -07:00
Craig Tiller 75dbc1eb67 Fixes 2016-04-01 13:01:26 -07:00
Craig Tiller 399b3c42de Fix client_crash_test, implement idempotency, fail_fast for C++ 2016-04-01 12:24:18 -07:00
Jan Tattermusch 8cddd87738 Merge pull request #6005 from sreecha/stress_exit_codes
Terminate with error exit code in case of any failure
2016-04-01 07:27:03 -07:00
Craig Tiller 1a2c5aa9ef Merge github.com:grpc/grpc into cleaner-posix2 2016-04-01 07:18:35 -07:00
Jan Tattermusch 4da87600dc Merge pull request #6041 from vjpai/i_know_virtual_destructors
Add virtual destructor to satisfy a requirement of some compilers
2016-03-31 17:54:43 -07:00
Craig Tiller 4c43ed325c Merge github.com:grpc/grpc into cleaner-posix2 2016-03-31 13:12:41 -07:00
Craig Tiller 31efd7e864 Merge github.com:grpc/grpc into copyright-fix 2016-03-31 11:08:13 -07:00
Craig Tiller 8479c972e4 Merge github.com:grpc/grpc into cleaner-posix2 2016-03-31 10:26:53 -07:00
Sree Kuchibhotla b538472a8a Merge branch 'master' into stress_exit_codes 2016-03-31 09:59:54 -07:00
Sree Kuchibhotla fefc916b80 Merge branch 'master' into stress_exit_codes 2016-03-31 09:58:48 -07:00
Sree Kuchibhotla 16dd3e46e8 Reduce log verbosity of stress_test client by default. Correct a typo 2016-03-31 09:46:20 -07:00
Vijay Pai 62bc488c12 Merge branch 'master' into i_know_virtual_destructors 2016-03-31 09:35:51 -07:00
vjpai bd06e441cc Add virtual destructor to satisfy a requirement of some compilers 2016-03-31 09:33:51 -07:00
Craig Tiller 6169d5f7b0 Update copyrights 2016-03-31 07:46:18 -07:00
Craig Tiller 076c2b807b Merge github.com:grpc/grpc into channel_max_reconnect_backoff 2016-03-30 17:12:29 -07:00
Craig Tiller e50d7be28c Merge github.com:grpc/grpc into cleaner-posix2 2016-03-30 08:34:37 -07:00
Craig Tiller 6771361fad Merge github.com:grpc/grpc into optionalize_roundrobin 2016-03-30 08:05:58 -07:00
Craig Tiller f45496fdb0 Fix include path 2016-03-30 07:41:19 -07:00
Vijay Pai 98f2f754b8 Used TYPED_TEST to parametrize
Include all 4 sync/async client/server combos
2016-03-29 00:54:11 -07:00
Vijay Pai 40d1a2cb87 clang-format 2016-03-29 00:38:09 -07:00
Vijay Pai bbbbf621e4 Add a concurrent test for sync client, async server case 2016-03-29 00:35:26 -07:00
Craig Tiller 14e0d9862f Begin optionalizing lb policies: initial code movement 2016-03-28 17:11:26 -07:00
Craig Tiller 8a03448a8c Merge github.com:grpc/grpc into cleaner-posix2 2016-03-28 16:09:04 -07:00
Craig Tiller b7f3f6eec4 Fix copyright 2016-03-25 17:13:09 -07:00
Craig Tiller 9533d042d4 Fix includes 2016-03-25 17:11:06 -07:00
Jan Tattermusch f3d7638435 Merge pull request #5877 from vjpai/make_generic_payloads_great_again
Properly set server payload config in QPS tests
2016-03-25 16:26:39 -07:00
Craig Tiller 2e1903638e Fix copyrights 2016-03-25 14:33:26 -07:00
Craig Tiller f40df23eeb Auto-changes 2016-03-25 13:38:14 -07:00
Vijay Pai b830fb3a03 Merge branch 'master' into make_generic_payloads_great_again 2016-03-24 12:54:25 -07:00
Jan Tattermusch 9a1fa344e7 Merge pull request #5892 from yang-g/copy_generic_byte_buffer
Make a copy of ByteBuffer when writing
2016-03-23 11:13:28 -07:00
yang-g f64befd27f Make a copy of ByteBuffer when writing 2016-03-21 14:04:10 -07:00
vjpai a4942a012d @jtattermusch correctly pointed out that we are not setting
payload config in our server config. This affect any generic server
tests that use anything other than 0-byte responses: essentially,
server-streaming or bidi throughput tests.
2016-03-21 12:44:02 -07:00
David Garcia Quintas ca2886a05c Made the code simpler to parse for humans 2016-03-21 12:04:18 -07:00
David Garcia Quintas 711766dc75 Ensure that no #includes are inside of a namespace. 2016-03-21 11:30:59 -07:00
Craig Tiller 59743d6971 Merge github.com:grpc/grpc into cleaner-posix2 2016-03-21 08:56:25 -07:00
Jan Tattermusch 3924afbf9c Merge pull request #5752 from vjpai/make_open_loop_again
More fixes for performance benchmarking code
2016-03-18 09:21:39 -07:00
Craig Tiller 0239ba8ebf Merge github.com:grpc/grpc into cleaner-posix2 2016-03-17 07:49:27 -07:00
Craig Tiller 7cd6ed7da3 Merge github.com:grpc/grpc into cleaner-posix2 2016-03-16 07:53:26 -07:00
David Garcia Quintas cd21266b5f Merge branch 'master' of github.com:grpc/grpc into codegen_lib 2016-03-15 17:10:45 -07:00
Jan Tattermusch 39b082ae8c Merge pull request #5652 from grpc/revert-5599-revert-5572-srv_ctx
Revert "Revert "Properly integrate async API with server-side cancellations.""
2016-03-15 14:03:54 -07:00
Vijay Pai 847baf6fe0 clang-format and fix a typo caused by saving 2016-03-14 17:23:50 -07:00
vjpai 63326281d7 1. Remove all deadlines from the RPCs and shutdown in this code.
These tests (especially unconstrained versions) can get very
   backlogged and may take a while to finish. We sometimes flake waiting
   for that. This is not hazardous (IMO), as the scripts that run these
   tests already have timeouts to make sure that these don't truly go on
   forever.

2. Make the time spent in the benchmark phase actually be
   benchmark_seconds rather than benchmark_seconds-warmup_seconds
   as it is currently.
2016-03-14 17:12:52 -07:00
Paul Querna 47d841de4d Add support for IP Addresses in Subject Alt Names. 2016-03-14 16:40:17 -07:00
Dan Born 047fe1f005 Merge pull request #5580 from daniel-j-born/test_creds
Allow use of alternative credential types.
2016-03-14 12:04:36 -07:00
vjpai ee6902bcef Merge branch 'master' into revert-5599-revert-5572-srv_ctx 2016-03-14 09:47:40 -07:00
vjpai 2697f2141f Merge branch 'master' into debug_qps_stream 2016-03-10 23:53:43 -08:00
David Garcia Quintas b942640497 clang-format 2016-03-08 16:25:11 -08:00
Aaron Isotton 24e69bf02a Added a channel argument to set the maximum reconnect backoff duration. Extended the interop test to test the custom reconnect backoffs.
This closes #5377.
2016-03-08 14:21:31 -08:00
David Garcia Quintas 81932891af Merge branch 'master' of github.com:grpc/grpc into codegen_lib 2016-03-08 14:12:18 -08:00
Craig Tiller baaf65546a Fix formatting 2016-03-07 22:39:11 -08:00
Craig Tiller 4560bda1da Merge github.com:grpc/grpc into cleaner-posix2 2016-03-07 20:17:10 -08:00
Craig Tiller 710d58cfae Disable profiling in qps_worker for now 2016-03-07 20:00:50 -08:00
Sree Kuchibhotla b0d1567e8e Revert "Revert "Properly integrate async API with server-side cancellations."" 2016-03-07 10:51:02 -08:00
David Garcia Quintas 4ac52fa6dd WIP. Added codegen_test 2016-03-06 20:31:39 -08:00
Sree Kuchibhotla edd96e4926 Revert "Properly integrate async API with server-side cancellations." 2016-03-04 14:32:50 -05:00
Dan Born 51221f1e7e clang reformat. 2016-03-03 17:44:50 -08:00
Dan Born f2f7d57c01 Allow use of alternative credential types. 2016-03-03 17:26:12 -08:00
Vijay Pai dbf47fabd4 Better comments. 2016-03-03 16:25:06 -08:00
Vijay Pai 2e729387f7 clang-format 2016-03-03 14:22:12 -08:00
Vijay Pai 13ee2f2df3 Properly integrate async API with server-side cancellations.
There is a comment above IsCancelled that says when it is ok to use this.
2016-03-03 13:57:32 -08:00
vjpai b7117e409b Merge branch 'master' into debug_qps_stream 2016-03-03 06:59:16 -08:00
Craig Tiller 0cb803d9ca Always ref writable streams
We suffered a bug whereby doing a follow-up write to another write could
resurrect a deleted stream, causing all sorts of crash.

Fix: when a stream becomes writable (vs when we start writing) take a
ref on the stream, and only relinquish it once we're done writing.
2016-03-02 22:34:23 -08:00
Craig Tiller 98990726a0 Revert "Update reconnect_interop_server.cc" 2016-03-02 22:04:00 -08:00
David Garcia Quintas eef5c01cf4 clang-format 2016-03-02 20:38:49 -08:00
David Garcia Quintas 94c80d8389 copyrights 2016-03-02 20:35:07 -08:00
Craig Tiller c6611efb67 Revert "Update reconnect_interop_client.cc" 2016-03-02 17:43:09 -08:00
Yang Gao f7d6d3821a Merge pull request #5539 from grpc/makdharma-comment
Update reconnect_interop_server.cc
2016-03-02 21:56:22 +00:00
makdharma 38a560b6ba Update reconnect_interop_server.cc 2016-03-02 13:50:58 -08:00
makdharma bd50f305a3 Update reconnect_interop_client.cc 2016-03-02 13:49:51 -08:00
Yang Gao e788e8bf8d Merge pull request #5523 from vjpai/e2e_stc
Fix ServerTryCancel in end2end tests
2016-03-02 07:45:45 +00:00
Vijay Pai 6c016efa34 ServerTryCancel was not actually respecting the API since it
could be an arbitrary amount of time between when the cancel is tried
and actually observable.
2016-03-01 16:27:53 -08:00
Sree Kuchibhotla 9e5a05af8a Fix clang format issue 2016-03-01 09:40:12 -08:00
Sree Kuchibhotla 8d543e8e30 Fix ResponseStreamServerCancelAfter test flake 2016-02-29 18:22:25 -08:00
Jan Tattermusch 8ba6a6b321 Merge pull request #5402 from sreecha/stress_test_scripts
Stress test scripts to launch in GKE
2016-02-29 15:01:54 -08:00
Sree Kuchibhotla e1dd18a945 Fix copyright 2016-02-29 13:28:55 -08:00
Dan Born ef7e42660c Merge pull request #5405 from daniel-j-born/custom_test_creds
Allow new credential types to be added to tests.
2016-02-29 12:52:59 -08:00
Vijay Pai c47c9497fa clang-format 2016-02-26 14:39:59 -08:00
vjpai 60a7e3336d Finish clients fully before finishing servers 2016-02-26 10:30:17 -08:00
vjpai e7042b5ddf Simplify Mark processing code 2016-02-25 20:28:05 -08:00
Craig Tiller 7c07aacb0f Fix async e2e 2016-02-25 20:18:53 -08:00
Vijay Pai 02eda41d21 Do stream operations in a more idiomatic way: Write, WritesDone, Read until fail, Finish 2016-02-25 19:43:57 -08:00
Vijay Pai 544b98fca3 Merge pull request #5293 from dgquintas/alarm_cpp
Made Alarm's constructor a template for deadline
2016-02-25 14:46:14 -08:00
Dan Born 9084418426 Merge branch 'master' into custom_test_creds 2016-02-25 14:23:26 -08:00
Vijay Pai bdfec2c86c SimultaneousReadWritesDone test was not observing the contract on the
streaming API. In particular, Finish should not be called until the client
is sure that there is no more message to be read (as documented in
the comments for ClientStreamingInterface::Finish)
2016-02-25 11:51:21 -08:00
Nicolas "Pixel" Noble 7204010c05 Fixing format and copyright. 2016-02-25 07:39:36 +01:00
Dan Born 1b5a264eb8 Allow new credential types to be added to tests. 2016-02-24 18:52:39 -08:00
Yang Gao 0f62f5d9a7 Merge pull request #5401 from daniel-j-born/test_creds
Injectable test credentials provider interface.
2016-02-24 16:24:29 -08:00
Dan Born 53a94ef4e7 Use standard include paths. 2016-02-24 15:44:43 -08:00
Dan Born 7275f36411 Initialize mutex to nullptr. 2016-02-24 15:09:16 -08:00
Dan Born f30941cd95 Injectable test credentials provider interface. 2016-02-24 14:55:02 -08:00
vjpai e2d39e08f9 Timer->UsageTimer consistently 2016-02-24 12:36:15 -08:00
Sree Kuchibhotla 559e45becd Scripts to launch stress tests in GKE 2016-02-24 11:15:53 -08:00
Nicolas Noble 86b258c462 Merge pull request #5388 from vjpai/bourne_again
Use traditional Bourne shell syntax for piping stdout and stderr
2016-02-24 10:29:22 -08:00
vjpai 6483c32f7c BSD platforms (such as Mac) are likely to have /bin/sh refer to traditional
Bourne shell syntax, not Bash syntax. Change "|&" to "2>&1 |" since that's the
traditional way to redirect stdout and stderr to a pipe
2016-02-24 09:29:12 -08:00
Craig Tiller 4ea4599a50 Merge github.com:grpc/grpc into naming-crisis 2016-02-23 17:13:38 -08:00
Vijay Pai 953e41a01a Merge pull request #5321 from vjpai/openloop
TSAN/ASAN timeout and QPS rate adjustments
2016-02-23 13:02:55 -08:00
David G. Quintas 0a5f61325a Merge pull request #5213 from ctiller/fix-proto-docker
Proto API for LB request/responses (redux)
2016-02-23 11:19:01 -08:00
Sree Kuchibhotla 44ca2c2640 Examples 2016-02-23 10:03:00 -08:00
David Garcia Quintas e2f243ba7c clang format 2016-02-23 09:38:41 -08:00
Craig Tiller 19fa540100 Fix copyrights 2016-02-23 08:19:39 -08:00
David Garcia Quintas 45add8a445 Merge branch 'master' of github.com:grpc/grpc into alarm_cpp 2016-02-22 23:15:28 -08:00
David G. Quintas 27b3f776da Merge pull request #5311 from vjpai/qa
Add a test for immediate and historic alarms
2016-02-22 23:05:15 -08:00
Craig Tiller 6541cabe9d clang-fmt 2016-02-22 22:41:53 -08:00
Craig Tiller 70ab4c5cef Merge github.com:grpc/grpc into fix-proto-docker 2016-02-22 22:29:51 -08:00
Craig Tiller c866f7281f Merge github.com:grpc/grpc into naming-crisis 2016-02-22 22:23:43 -08:00
Craig Tiller 521423c8cf Regenerate files, fix bugs 2016-02-22 22:22:22 -08:00
David Garcia Quintas 0160873273 PR comments addressed 2016-02-22 17:49:45 -08:00
Sree Kuchibhotla acbcdb6d94 Merge pull request #5347 from yang-g/check_error_in_read
Discard the read buffer on stream error
2016-02-22 17:45:43 -08:00
Vijay Pai e32ef7acde Make timeout instant as well 2016-02-22 17:25:51 -08:00
Vijay Pai b586cd0eb5 Merge branch 'master' into openloop 2016-02-22 16:16:03 -08:00
Vijay Pai a412162e9e Merge branch 'master' into qa 2016-02-22 16:15:32 -08:00
Craig Tiller 732a875fe8 Add a sanity test for name aliasing 2016-02-22 15:59:19 -08:00
Makarand Dharmapurikar bfc7adaa71 Added option to echo back user agent for testing 2016-02-22 15:42:18 -08:00
David G. Quintas 4f2745030d Merge pull request #5332 from yang-g/interop_echo_metadata
Add custom_metadata test case
2016-02-22 14:05:58 -08:00
yang-g 364be644d0 copyright of course 2016-02-22 10:04:43 -08:00
yang-g ad0df7bf1f Discard the read buffer on stream error 2016-02-22 10:00:20 -08:00
Craig Tiller fc6fec2a2d Merge pull request #5258 from vjpai/poll_override2
Avoid a race when overriding default poll function
2016-02-21 22:59:52 -08:00
yang-g c10348a555 Add custom_metadata test case 2016-02-19 16:05:10 -08:00
Vijay Pai 2d435b9178 Fix the slowdown factor 2016-02-19 00:42:08 -08:00
Vijay Pai 3b28872210 1. Adjust tsan/asan/msan slowdowns according to documentation
tsan documentation says 2-20x, so set it at 20x
asan documentation says 1.2-2.7x, so set it at 3x
msan documentation says 2-4x, so set it at 4x
This is now much less optimistic than before

2. Reactive tsan tests for qps_test
3. Set CPU load for qps_openloop_test
4. Divide qps_openloop_test Poisson rate by the slowdown factor of
   the configuration
2016-02-19 00:28:28 -08:00
yang-g 12a0a2c20b move tls type name to .cc file 2016-02-19 00:22:20 -08:00
yang-g 4c8aed3dba Add a helper to return all the secure types 2016-02-19 00:19:39 -08:00
yang-g 17197ddc71 Revert "make an enum"
This reverts commit 5152cd29f8.
2016-02-19 00:04:22 -08:00