Commit Graph

12 Commits

Author SHA1 Message Date
Nathaniel Manista 5ee11a8e12 Stability fixes for python_plugin_test
The "normal" timeout is eliminated. The "short" timeout is changed to
be the length used in tests that will time out as part of their
execution and the "long" timeout is changed to be a ridiculously high
value that will have no bearing on passing tests.

The "pause" behavior of _ServicerMethods is changed to use a
threading.Condition's wait/notify methods rather than busy-sleeping.

Tests that used servicer delay to verify that asynchronous calls are
not affected by server delay are changed to use servicer pause to
verify that asynchronous calls return while the servicer is paused.

Busy-sleeping in testHalfDuplexCallWedged is replaced with use of a
threading.Condition's wait/notify methods.

Fixes https://github.com/grpc/grpc/issues/1900.
2015-06-11 15:50:13 +00:00
Nathaniel Manista 26a5bfad2f Cosmetic tweaks to python_plugin_test.py
No behavioral changes. Changes to comments are error correction, not
changes of specification.
2015-06-10 02:14:24 +00:00
Masood Malekghassemi e0281bbbf1 Set verbosity to 2 for Python tests
Fixes #1762.
2015-05-28 15:33:48 -07:00
Nathaniel Manista f492b16d48 Unify early_adopter construction functions
It was awkward for the generated code to call an API that offered
both insecure_server and secure_server as well as insecure_stub and
secure_stub. With this change there is just a single server function
and a single stub function and security is decided based on arguments
passed.
2015-03-30 18:14:52 +00:00
Masood Malekghassemi 89905ac55d Factor out interface-specific early_adopter code
Refactors early_adopter such that interface-specific code is located in
the framework module as a submodule `alpha`.
2015-03-17 18:54:24 -07:00
Masood Malekghassemi 53f8fea5df Move protoc output to temporary directory
Moves the Python protoc plugin output directory to an auto-generated
temporary directory. Has the build configuration set by environment
variable (consistent with `tools/run-tests/run_tests.py`'s set envvars).
2015-03-05 17:03:07 -08:00
Nathaniel Manista a60a77b63f Update Python codegen to early_adopter interface
With this change the Python code generated by the Python code generator
uses the grpc.early_adopter package and not the grpc.framework.face
package.
2015-03-02 08:30:49 +00:00
Masood Malekghassemi 6e0b280389 Merge pull request #855 from nathanielmanistaatgoogle/python-test-port
Drop fixed port from python_plugin_test
2015-02-27 10:56:25 -08:00
Nathaniel Manista 732cf09a93 Drop fixed port from python_plugin_test
There may be some aspect of mortal sin in the way that context
management is now done in this test.
2015-02-27 00:47:38 +00:00
Masood Malekghassemi 40e8cbd1ee Fix bugs in Python code generator
Fixes module path finding in the Python code generator and the signatures
of generated servicer methods.
2015-02-26 14:21:21 -08:00
Masood Malekghassemi 59d9ff4d9f Updated Python protoc plugin testing. 2015-02-24 19:11:08 -08:00
Masood Malekghassemi b13673dd7a Added compiler plugin test for Python. 2015-02-20 18:52:23 -08:00