Commit Graph

59 Commits

Author SHA1 Message Date
Masood Malekghassemi a12e6d8037 Merge pull request #8367 from soltanmm-google/blurb
Partially implement gRPC Python server reflection
2016-10-28 13:30:16 -07:00
Masood Malekghassemi cad0908a2b Break out of build process if in vanilla MSYS 2016-10-26 15:08:13 -07:00
Masood Malekghassemi aff6936cf7 Partially implement gRPC Python server reflection
Some features relating to proto2 extension querying are missing due to
missing upstream features required to support them (see
https://github.com/google/protobuf/issues/2248).
2016-10-20 12:47:06 -07:00
Muxi Yan d924b01482 Merge pull request #7554 from muxi/fix-cronet-interop-test
Fix Objective-C test pods for Cronet tests
2016-08-02 16:29:30 -07:00
Muxi Yan 6f74893735 Fix Jenkins test error 2016-08-02 10:10:28 -07:00
Ken Payson 6f156b7576 Downgrade docker setuptools 2016-08-01 17:59:25 -07:00
murgatroid99 316f73f6c1 Merge v1.0.x into master 2016-07-22 11:00:34 -07:00
Ken Payson dd24c1ece4 Polish grpcio_health_checking package
-Rename namespace to grpc_health->grpc to match spec
-Proper use of NOT_FOUND status code
-Improve testing
-Add source distribution to artifact build
2016-07-18 12:50:13 -07:00
Masood Malekghassemi d66be0b6f6 Set more build-flags in `setup.py`s
Removes MinGW flags from various build scripts, since they're now set in
our `setup.py`s by default. Also removes the arguments for the
extensions in grpcio's setup.py; that function was already accessing
globals anyway, might as well go whole-hog.
2016-07-13 14:33:33 -07:00
Masood Malekghassemi fbf15e436f Make build_python.sh script smarter
Now reasonable defaults are auto-detected by platform (and by specific
Python implementation).
2016-07-08 12:36:15 -07:00
Masood Malekghassemi 586e3835fe Make Python build standalone on Windows 2016-07-08 12:36:04 -07:00
Masood Malekghassemi 1c062bdd8c Remove gcov special-casing for Python tests
We'll need to fix coverage testing in the future anyway (see #6894).
2016-07-01 10:18:46 -07:00
Masood Malekghassemi 0bd13ed8d0 Fall back to default python for test virtualenvs 2016-07-01 10:18:46 -07:00
Masood Malekghassemi 3b5b20682b Make running individual Python tests less painful
Before this change, running Python tests individually required
building a tox environment via the run_tests script and then specifying
long environment variables to filter out just the test we wanted to run
(and then we wouldn't be able to get the output on interrupt, nor would
we have an easy way of determining the PID of the process for debugger
attachment). Now invoking the build_python.sh script creates a workable
python virtual environment that includes all necessary libraries and
tests (s.t. running a single test is now possible by just knowing the
module name). This does not change existing supported means of running
tests (e.g. through run_tests.py).

An additional way of running individual tests has been introduced.
Following invocation of `./tools/run_tests/build_python.sh` (or
run_tests.py), one may invoke

  ./$VENV/bin/python -m $TEST_MODULE_NAME

and acquire a single running process that *is* the test process (rather
than a parent of the process). $VENV is the virtual environment name
specified to `build_python.sh` (defaults to `py27`) and
$TEST_MODULE_NAME is what it says on the tin.
2016-07-01 10:18:45 -07:00
Masood Malekghassemi 1ff429da2a Organize Python tests to use grpcio-tools directly
Moves all tests into a separate package. This does not change existing
supported means of running tests (e.g. through run_tests.py).
2016-07-01 10:18:45 -07:00
Ken Payson 1efb6017ec Initial Python3 support
Notable Changes:
  -Convert all str types to byte types at cython layer (ascii encoding)
  -Use six for packages that have different names in Python2/Python3
  -By default, unit tests are compiled/run in Python2.7 and Python3.4
  -Ensure MACOSX_BUILD_TARGET is at least 10.7
2016-06-10 11:48:24 -07:00
Ken Payson 4df964780f Reworked python health checking and added tests 2016-05-04 17:39:28 -07:00
Jan Tattermusch 825471c387 Add --compiler python3.4 option to run_tests.py 2016-04-26 18:19:45 -07:00
Craig Tiller 64a12c55df Merge github.com:grpc/grpc into copyright-fix 2016-03-31 07:49:58 -07:00
Craig Tiller 6169d5f7b0 Update copyrights 2016-03-31 07:46:18 -07:00
Masood Malekghassemi 7d8ac466d6 Don't allow precompiled binaries in tests
Before it was possible for precompiled binaries of the Cython layer to
be downloaded during a test run if the metadata of the host machine's
gRPC Python project matched the metadata of a file in cloud storage. Now
we disallow this, and fix a bug where the relevant environment variable
was ineffectual.
2016-03-24 12:48:47 -07:00
Masood Malekghassemi 68a94c8f07 Don't set linetrace unless testing coverage 2016-03-09 16:18:13 -08:00
Jan Tattermusch 66a6d014a4 run build_ext in build_python step 2016-03-03 12:35:08 -08:00
Jan Tattermusch 072ebaa153 make python test suites run in parallel 2016-03-02 17:46:18 -08:00
murgatroid99 3466c4b55d Updated copyrights 2016-01-12 10:26:04 -08:00
Masood Malekghassemi 387e116fd6 Use BoringSSL for Python gRPC 2016-01-11 11:32:42 -08:00
Masood Malekghassemi 116982ea89 Include core in Python distribution 2016-01-07 09:43:42 -08:00
Masood Malekghassemi eaa7d203b5 Fix interop Python test invocation
The ideal fix would be to have a tox test command for running the
interop server and client.
2015-12-07 15:52:46 -08:00
Masood Malekghassemi d00241e65c Use tox 2015-12-04 17:26:07 -08:00
Masood Malekghassemi 7566c9a85d Make Python testing predictable again
This reorganizes the Python code, scraps the current testing
infrastructure, and implements a simple test discovery and run script
based on the standard Python unittest library so we can trust that our
tests are running.
2015-12-03 16:59:14 -08:00
Masood Malekghassemi 60e5f91a39 Enable pip caching on Jenkins slaves 2015-10-06 11:40:11 -07:00
Masood Malekghassemi 9554534b5e Clean up build_python.sh
This is in preparation for the eventual refactoring of the run_tests.py
system.
2015-10-05 18:02:51 -07:00
Masood Malekghassemi 12dadafd22 Add health-checking to Python
Adds the initial reference implementation for health-checking in gRPC
Python as a separate project (but within the same grpc package to keep
namespaces consistent). Only installs the package to test the
build-proto-modules custom command introduced in the health-checking
project.
2015-08-12 14:03:23 -07:00
Masood Malekghassemi 2b84162bd4 Use py.test from run_tests.py
Also updates the version of grpcio_test. Now that grpcio and its tests
are in different project packages, the version numbers should be kept in
sync.
2015-07-31 14:13:11 -07:00
Masood Malekghassemi fe8dc883d0 Reorganize Python packages
This is in preparation of moving all tests into a separate package to
enable ease of coverage checking and testing.
2015-07-30 16:25:55 -07:00
Masood Malekghassemi e5f7002617 Add Python3 testing support
Conditionally runs the tests depending on the availability of Python
versions (because Travis is the worst).
2015-07-09 12:41:04 -07:00
Masood Malekghassemi 743c10ccd5 Cython refactor of Python C wrapping layer
Also set up environment-related details needed for a smooth Cython
experience: have the test script avoid rebuilding all dependencies if the
virtualenv directory already exists, have the PyPI distribution script
distribute the Cython generated C code rather than the .pyx files.
2015-06-30 17:33:28 -07:00
Masood Malekghassemi 9d3fbcf0ba Make warnings errors when building Python tests 2015-06-16 13:15:47 -07:00
Masood Malekghassemi 4b4181ed1c Ensure C89 compatibility in Linux tests 2015-06-10 17:37:55 -07:00
Masood Malekghassemi ee6f1bffc6 Redirect build_python.sh to requirements.txt 2015-06-02 17:37:30 -07:00
Nicolas "Pixel" Noble b98188e826 Upgrading third_party/protobuf to version v3.0.0-alpha-1-150-g7d5cf8d. 2015-05-19 11:30:14 -07:00
Masood Malekghassemi 65af063ad7 Fix Python test ignorance of build config 2015-03-17 11:46:58 -07:00
Nathaniel Manista a25af852c7 Include interop tests in python_tests.json 2015-03-07 00:20:03 +00:00
murgatroid99 5c4052d771 Removed logging, returned other tests to .travis.yml 2015-03-02 13:28:12 -08:00
murgatroid99 cedab130c2 Put tests back in a useful state 2015-03-02 10:42:24 -08:00
murgatroid99 a2af8a1a98 Changed how python versions are specified 2015-03-02 10:31:40 -08:00
murgatroid99 d1d1626263 Added another log line 2015-02-27 16:44:32 -08:00
murgatroid99 b7063f1416 Added python tests to .travis.yml 2015-02-27 16:12:24 -08:00
Jan Tattermusch f0a801eb5e running python tests on travis 2015-02-26 16:57:43 -08:00
Craig Tiller ce5021b0b9 Add missing new-lines at end of file 2015-02-18 09:25:21 -08:00