aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
Commit message (Collapse)AuthorAge
...
| * Fix a compiler warning.Gravatar Craig Tiller2015-01-09
|/
* Remove libevent.Gravatar ctiller2015-01-08
| | | | | | | | | | | | | | | | | | | | | | | Fixed any exposed bugs across the stack. Add a poll() based implementation. Heavily leverages pollset infrastructure to allow small polls to be the norm. Exposes a mechanism to plug in epoll/kqueue for platforms where we have them. Simplify iomgr callbacks to return one bit of success or failure (instead of the multi valued result that was mostly unused previously). This will ease the burden on new implementations, and the previous system provided no real value anyway. Removed timeouts on endpoint read/write routines. This simplifies porting burden by providing a more orthogonal interface, and the functionality can always be replicated when desired by using an alarm combined with endpoint_shutdown. I'm fairly certain we ended up with this interface because it was convenient to do from libevent. Things that need attention still: - adding an fd to a pollset is O(n^2) - but this is probably ok given that we'll not use this for multipolling once platform specific implementations are added. - we rely on the backup poller too often - especially for SSL handshakes and for client connection establishment we should have a better mechanism ([] [] - Linux needs to use epoll for multiple fds, FreeBSD variants (including Darwin) need to use kqueue. ([] [] - Linux needs to use eventfd for poll kicking. ([] Change on 2015/01/07 by ctiller <ctiller@google.com> ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=83461069
* Fixing include paths for cmdline.Gravatar nnoble2015-01-07
|
* Add deadline API on server side.Gravatar yangg2015-01-06
| | | | | | | Change on 2015/01/06 by yangg <yangg@google.com> ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=83351442
* Adding plugins to the mako rendering system.Gravatar nnoble2015-01-06
| | | | | | | Change on 2015/01/05 by nnoble <nnoble@google.com> ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=83302581
* Seed random numbers in each process based on pid.Gravatar ctiller2015-01-05
| | | | | | | | | | This causes get_unused_port_or_die to try different port numbers in each concurrently running tests, and consequently enables some parallelism of test processes. Change on 2015/01/05 by ctiller <ctiller@google.com> ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=83289374
* Fix the socket pair fixtures to include the http filters.Gravatar klempner2014-12-29
| | | | | | | | | Without this these tests start failing if the server starts checking that it received the necessary headers. Change on 2014/12/23 by klempner <klempner@google.com> ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=82748741
* Add Flags to override host and enable prod ssl root.Gravatar chenw2014-12-29
| | | | | | | Change on 2014/12/22 by chenw <chenw@google.com> ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=82679415
* Add SSL root for production GFE.Gravatar chenw2014-12-29
| | | | | | | Change on 2014/12/19 by chenw <chenw@google.com> ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=82554526
* Port [] alarm management to GRPC.Gravatar ctiller2014-12-29
| | | | | | | | | | | | | This change implements a platform independent alarm manager in alarm.c. It's integrated with iomgr, and some tests are cleaned up. The alarm implementation itself is a fairly direct port of LazyAlarmList from eventmanager. SpinLock has been replaced for now with gpr_mu, and other atomic operations have been dropped (again, for now). A majority of tests have been ported. Change on 2014/12/19 by ctiller <ctiller@google.com> ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=82551363
* Adding support for service account credentials.Gravatar jboeuf2014-12-29
| | | | | | | | | | - Tested end to end with a JSON key I generated for my account using the fetch_oauth2 binary. - The same fetch_oauth2 binary can get a token from the GCE metadata service on a VM in cloud. Change on 2014/12/19 by jboeuf <jboeuf@google.com> ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=82548689
* Make override hostname an argument for testing against prod gfe.Gravatar yangg2014-12-29
| | | | | | | Change on 2014/12/19 by yangg <yangg@google.com> ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=82544544
* Client side implementation of creating channel with credentials.Gravatar yangg2014-12-29
| | | | | | | | | The old test_ssl_channel related code is deleted and the new create channel call is used for interop tests. Change on 2014/12/19 by yangg <yangg@google.com> ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=82540921
* Add a test where client side sees a deadline expired status.Gravatar yangg2014-12-19
| | | | | | | | The test is not completely right and I filed [] to track it. Change on 2014/12/18 by yangg <yangg@google.com> ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=82442464
* Fix opensource build test.Gravatar ctiller2014-12-19
| | | | | | | | | | | | | It's a string of unit tests, so size should actually be small. Setting timeout to long means we have 15 minutes to test everything, which should fit for now. Also fixes a compile error. Once this goes in, TAP should start running our tests again. Change on 2014/12/17 by ctiller <ctiller@google.com> ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=82395309
* gRPC: Avoid AF_INET6 sockets when the ::1 loopback address doesn't exist.Gravatar pmarks2014-12-19
| | | | | | | | | | | On Linux with disable_ipv6=1, we can create sockets bound to [::]:port, yet connecting to that address triggers an Unreachable error. Since IPv6 is useless on such machines, it's cleaner to turn it off than expose users to a half-broken state. Change on 2014/12/17 by pmarks <pmarks@google.com> ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=82387437
* Set host to channel's target when creating a call.Gravatar yangg2014-12-19
| | | | | | | Change on 2014/12/17 by yangg <yangg@google.com> ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=82377896
* Add ServerContext. It is currently empty and deadline and metadata will come toGravatar yangg2014-12-19
| | | | | | | | it in subsequent cl's. Change on 2014/12/17 by yangg <yangg@google.com> ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=82372934
* Fix include guards.Gravatar ctiller2014-12-17
| | | | | | | Change on 2014/12/17 by ctiller <ctiller@google.com> ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=82354016
* Prepare QPS tests for running in GCEGravatar vpai2014-12-17
| | | | | | | | | | | Edit build.json to include qps tests and credentials Perform required MOE edits for running qps tests in VM Minor changes to underlying source files to support issues like more restrictive warning flags in cloud. Change on 2014/12/17 by vpai <vpai@google.com> ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=82349829
* Remove endpoint/ directories.Gravatar ctiller2014-12-17
| | | | | | | | | | Fold endpoint interface into iomgr, move secure_endpoint into security/. This will make it easier for endpoint to rely on some iomgr defined types (like pollset). Change on 2014/12/17 by ctiller <ctiller@google.com> ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=82338036
* Adding JWT generation and signing code for service accounts credentials.Gravatar jboeuf2014-12-16
| | | | | | | Change on 2014/12/16 by jboeuf <jboeuf@google.com> ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=82279249
* Add slow client consumer test case for flow control test.Gravatar chenw2014-12-16
| | | | | | | | The client will sleep 500 milliseconds before read next message in reponse streaming. Change on 2014/12/16 by chenw <chenw@google.com> ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=82265748
* Make alarm initialization take a timespec now.Gravatar ctiller2014-12-16
| | | | | | | | | This will allow combining of gpr_now() calls, and make it easier to test the alarm code in the future. Change on 2014/12/16 by ctiller <ctiller@google.com> ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=82246768
* Remove a (very) deprecated file.Gravatar ctiller2014-12-16
| | | | | | | Change on 2014/12/15 by ctiller <ctiller@google.com> ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=82201880
* Trailing metadata support.Gravatar ctiller2014-12-16
| | | | | | | | | Actually exposing it from the C API. Also removing grpc_status, since it's mostly useless. Change on 2014/12/15 by ctiller <ctiller@google.com> ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=82180546
* GOAWAY & Reconnection support.Gravatar ctiller2014-12-15
| | | | | | | | | | | | Clients stay connected to a server after it shutdowns until all active calls have completed, and then they drop. After a GOAWAY or a disconnect, clients will attempt to re-resolve and reconnect to the server. Change on 2014/12/15 by ctiller <ctiller@google.com> ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=82178515
* Add time averaged stats for future alarm list work.Gravatar ctiller2014-12-15
| | | | | | | | | This is a trivial C89-ification of the []2 implementation of the same idea. Indeed the implementation files and tests have been branched from the [] versions. Change on 2014/12/15 by ctiller <ctiller@google.com> ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=82168822
* Simplify alarm API.Gravatar ctiller2014-12-15
| | | | | | | | | This change removes a corner case that needs to be handled (what happens if you add an alarm twice?). This corner case was never used, nor tested. Change on 2014/12/15 by ctiller <ctiller@google.com> ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=82168179
* Fix a bug in base-log, and add test.Gravatar aveitch2014-12-15
| | | | | | | | | | | The tests compute usable space in the log, but do so using subtraction on unsigned values and did not correctly account for number of blocks used per-core. This could lead underflow, and an incorrect space calculation. In addition, testing showed that with current defaults, tests would fail on a system with > ~64 cores. This can be alleviated through use of a larger log. An explicit check in the log initialization has been added for this case, and the log size increased if necessary. Change on 2014/12/15 by aveitch <aveitch@google.com> ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=82154432
* Add a test for useful.h.Gravatar ctiller2014-12-15
| | | | | | | | | Additionally add rotl, rotr which will be needed to implement some hashing functions shortly. Change on 2014/12/15 by ctiller <ctiller@google.com> ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=82149559
* Change the low level ping pong benchmark to run all tests by default.Gravatar klempner2014-12-15
| | | | | | | Change on 2014/12/12 by klempner <klempner@google.com> ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=82026092
* Binary header encoding.Gravatar ctiller2014-12-15
| | | | | | | | Also fixes a rather embarrassing bug in bin_encoder.c. Change on 2014/12/12 by ctiller <ctiller@google.com> ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=82024795
* Use '\0' instead of '0' in payload as java client actually checks that.Gravatar yangg2014-12-15
| | | | | | | Change on 2014/12/12 by yangg <yangg@google.com> ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=82023559
* Makefile will now build zlib and/or OpenSSL if needed.Gravatar nnoble2014-12-12
| | | | | | | | | | | | -) Detecting system and embedded presence of zlib and OpenSSL with ALPN. -) Automatically disabling secure targets if no OpenSSL present --> make all won't work if no OpenSSL is present, forcing the users to select the nonsecure Makefile targets explicitely. -) Removing build instructions for OpenSSL - this isn't really necessary anymore. -) Adding more blurb about OpenSSL and the new Makefile features. Change on 2014/12/12 by nnoble <nnoble@google.com> ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=82020890
* Adding base utils for JWT service account workflow. OpenSSL base64 decoding isGravatar jboeuf2014-12-12
| | | | | | | | a disaster and does not support url_safe which we need for the JWT. Change on 2014/12/12 by jboeuf <jboeuf@google.com> ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=82020601
* Getting the generated Makefile to support .proto files.Gravatar nnoble2014-12-12
| | | | | | | | | | -) Compiling the proto plugin using the HOSTCC compiler. -) Set up proper rules to invoke the plugin from protoc. -) Few various renaming hacks to fully get out of []. Change on 2014/12/12 by nnoble <nnoble@google.com> ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=82000361
* Tweaking log calls a bit.Gravatar nnoble2014-12-12
| | | | | | | | | -) Introducing gpr_vlog so to spare a few vsprintf later (at least one for now) -) Renaming statistics/log.* to statistics/census_log.* to avoid collisions. Change on 2014/12/12 by nnoble <nnoble@google.com> ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=81995756
* Make the default deadline gpr_inf_future to avoid mismatch betweenGravatar yangg2014-12-12
| | | | | | | | | | | | gpr_inf_future and time_point::max(). The redundant AbsoluteDeadline prefix is removed from the utility function names. Now the ClientContext holds a gpr_timespec instead of a time_point. A test will be added in the server side deadline support cl. Change on 2014/12/11 by yangg <yangg@google.com> ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=81920769
* Fixes package prefixesGravatar temiola2014-12-12
| | | | | | | | | | | | | | | | | Fixes how module names for messages with package prefixes are rendered. - detected while prototyping with beefcake - fixed on the internal beefcake fork here [] This change replicates that fix for the official code generator. TODO: add a test; what's normal done to test features like this the proto codebase? Add another test.proto/golden file? Change on 2014/12/11 by temiola <temiola@google.com> ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=81916292
* Fix ipv6.c build breakage on Windows.Gravatar jtattermusch2014-12-11
| | | | | | | Change on 2014/12/11 by jtattermusch <jtattermusch@google.com> ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=81910401
* Add batch file that builds and executes all GPR tests.Gravatar jtattermusch2014-12-11
| | | | | | | | | Removed bad format test to fix gpr_string_test. Also took care of some of the MS compiler warnings when compiling gpr_test_util. Change on 2014/12/11 by jtattermusch <jtattermusch@google.com> ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=81900639
* Cache encoded binary data on the metadata string object.Gravatar ctiller2014-12-11
| | | | | | | Change on 2014/12/11 by ctiller <ctiller@google.com> ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=81882793
* Add a grpc_ipv6_loopback_available() test utility, and only run IPv6-specificGravatar pmarks2014-12-11
| | | | | | | | | | tests on machines that support AF_INET6 sockets bound to ::1. Listening on :: or connecting to a mapped address should always work. Change on 2014/12/10 by pmarks <pmarks@google.com> ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=81837056
* Patch shutdown during write test to not fail or do a racy destroy if the writeGravatar klempner2014-12-11
| | | | | | | | completes successfully. Change on 2014/12/10 by klempner <klempner@google.com> ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=81831655
* Tell call/channel op handlers who is invoking them.Gravatar ctiller2014-12-11
| | | | | | | | | | This change adds a parameter to all op handlers specifying the invoking filter. It will be used to allow client_channel to distinguish which child channel is disconnecting or going away. Change on 2014/12/10 by ctiller <ctiller@google.com> ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=81823231
* Build CPP interop client in Git-on-[] as well as in [].Gravatar chenw2014-12-11
| | | | | | | | | | | | | | | | | | | | | | | | To build client in Git-on-[]: # regenerate Makefile net/grpc/tools/buildgen/generate_projects.sh # generate .pb.h and .pb.cc protoc --cpp_out=. --grpc_out=. --plugin=protoc-gen-grpc=[]-bin/net/grpc/compiler/cpp_plugin net/grpc/cpp/test/interop/test.proto net/grpc/cpp/test/interop/empty.proto net/grpc/cpp/test/interop/messages.proto # Complile and link net/grpc/tools/build_grpc_dev.sh bins/interop_client To test against GFE/ESF: # bring up server [] build net/grpc/testing/interop:server_components_env []-bin/net/grpc/testing/interop/server_components_env --manual --rpc_port=25000 # start client /tmp/grpc-codebase/bins/interop_client --enable_ssl=true --server_port="server ssl port listening port" To test [] build against GFE/ESF: [] run net/grpc/cpp:interop_client -- --enable_ssl=true --server_port="server ssl port listening port" Change on 2014/12/10 by chenw <chenw@google.com> ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=81821921
* Advertise h2-16, h2-15, h2-14, and accept any of them.Gravatar ctiller2014-12-10
| | | | | | | | (Fixing the rollback from earlier - we were passing '1' as the protocol count, not num_alpn_protocols) Change on 2014/12/10 by ctiller <ctiller@google.com> ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=81783755
* Automated g4 rollback of changelist 81719124.Gravatar ctiller2014-12-09
| | | | | | | | | | | | | | | | *** Reason for rollback *** Breaks interop tests *** Original change description *** Advertise h2-16, h2-15, h2-14, and accept any of them. *** Change on 2014/12/09 by ctiller <ctiller@google.com> ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=81723283
* Advertise h2-16, h2-15, h2-14, and accept any of them.Gravatar ctiller2014-12-09
| | | | | | | Change on 2014/12/09 by ctiller <ctiller@google.com> ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=81719124