-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[main] add a test that used to fail for grpcio (with old abseil) (#315)
automerged PR by conda-forge/automerge-action
- Loading branch information
Showing
6 changed files
with
59 additions
and
36 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
.ci_support/migrations/libabseil20230802_libgrpc157_libprotobuf4234.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
__migrator: | ||
build_number: 1 | ||
kind: version | ||
migration_number: 1 | ||
libabseil: | ||
- 20230802 | ||
libgrpc: | ||
- "1.57" | ||
libprotobuf: | ||
- 4.23.4 | ||
MACOSX_DEPLOYMENT_TARGET: # [osx and x86_64] | ||
- "10.13" # [osx and x86_64] | ||
migrator_ts: 1692632590.658328 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
MACOSX_DEPLOYMENT_TARGET: | ||
- '10.13' | ||
MACOSX_SDK_VERSION: | ||
- '10.13' | ||
c_ares: | ||
- '1' | ||
c_compiler: | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import os | ||
import signal | ||
import subprocess | ||
import sys | ||
import time | ||
|
||
# this test assumes it is being run in examples/python/helloworld, | ||
# after having generated the helloworld_pb2{,_grpc} modules (see meta.yaml) | ||
import grpc | ||
import helloworld_pb2 | ||
import helloworld_pb2_grpc | ||
|
||
|
||
# start server (and wait a little) | ||
print('Starting server...') | ||
pid = subprocess.Popen([sys.executable, "greeter_server.py"]).pid | ||
time.sleep(5) | ||
|
||
# run this a couple times because it happens randomly, see | ||
# https://github.com/conda-forge/grpc-cpp-feedstock/issues/281 | ||
print('Running client...') | ||
for _ in range(1000): | ||
with grpc.insecure_channel('localhost:50051') as channel: | ||
stub = helloworld_pb2_grpc.GreeterStub(channel) | ||
response = stub.SayHello(helloworld_pb2.HelloRequest(name='you')) | ||
|
||
# tear down server | ||
print('Terminating server...') | ||
os.kill(pid, signal.SIGTERM) | ||
|
||
print('Success!') |