Merge github.com:grpc/grpc into no_more_flag

pull/5092/head
Craig Tiller 9 years ago
commit 8c72d99b92
  1. 4
      examples/node/greeter_client.js
  2. 4
      examples/node/greeter_server.js
  3. 7
      examples/node/package.json
  4. 6
      examples/node/route_guide/route_guide_client.js
  5. 6
      examples/node/route_guide/route_guide_server.js
  6. 11
      src/core/iomgr/tcp_server.h
  7. 1
      tools/dockerfile/distribtest/csharp_centos7_x64/Dockerfile
  8. 2
      tools/dockerfile/distribtest/csharp_jessie_x64/Dockerfile
  9. 2
      tools/dockerfile/distribtest/csharp_jessie_x86/Dockerfile
  10. 2
      tools/dockerfile/distribtest/csharp_ubuntu1404_x64/Dockerfile
  11. 2
      tools/dockerfile/distribtest/csharp_ubuntu1504_x64/Dockerfile
  12. 2
      tools/dockerfile/distribtest/csharp_ubuntu1510_x64/Dockerfile
  13. 2
      tools/dockerfile/distribtest/csharp_ubuntu1604_x64/Dockerfile
  14. 2
      tools/dockerfile/distribtest/csharp_wheezy_x64/Dockerfile
  15. 1
      tools/dockerfile/distribtest/node_centos7_x64/Dockerfile
  16. 2
      tools/dockerfile/distribtest/node_jessie_x64/Dockerfile
  17. 2
      tools/dockerfile/distribtest/node_jessie_x86/Dockerfile
  18. 2
      tools/dockerfile/distribtest/node_ubuntu1204_x64/Dockerfile
  19. 2
      tools/dockerfile/distribtest/node_ubuntu1404_x64/Dockerfile
  20. 2
      tools/dockerfile/distribtest/node_ubuntu1504_x64/Dockerfile
  21. 2
      tools/dockerfile/distribtest/node_ubuntu1510_x64/Dockerfile
  22. 2
      tools/dockerfile/distribtest/node_ubuntu1604_x64/Dockerfile
  23. 1
      tools/dockerfile/distribtest/python_arch_x64/Dockerfile
  24. 1
      tools/dockerfile/distribtest/python_centos6_x64/Dockerfile
  25. 1
      tools/dockerfile/distribtest/python_centos7_x64/Dockerfile
  26. 7
      tools/dockerfile/distribtest/python_fedora20_x64/Dockerfile
  27. 7
      tools/dockerfile/distribtest/python_fedora21_x64/Dockerfile
  28. 7
      tools/dockerfile/distribtest/python_fedora22_x64/Dockerfile
  29. 7
      tools/dockerfile/distribtest/python_fedora23_x64/Dockerfile
  30. 4
      tools/dockerfile/distribtest/python_jessie_x64/Dockerfile
  31. 4
      tools/dockerfile/distribtest/python_jessie_x86/Dockerfile
  32. 2
      tools/dockerfile/distribtest/python_opensuse_x64/Dockerfile
  33. 6
      tools/dockerfile/distribtest/python_ubuntu1204_x64/Dockerfile
  34. 6
      tools/dockerfile/distribtest/python_ubuntu1404_x64/Dockerfile
  35. 6
      tools/dockerfile/distribtest/python_ubuntu1504_x64/Dockerfile
  36. 6
      tools/dockerfile/distribtest/python_ubuntu1510_x64/Dockerfile
  37. 6
      tools/dockerfile/distribtest/python_ubuntu1604_x64/Dockerfile
  38. 4
      tools/dockerfile/distribtest/python_wheezy_x64/Dockerfile
  39. 2
      tools/dockerfile/distribtest/ruby_centos6_x64/Dockerfile
  40. 2
      tools/dockerfile/distribtest/ruby_centos7_x64/Dockerfile
  41. 6
      tools/dockerfile/distribtest/ruby_fedora20_x64/Dockerfile
  42. 6
      tools/dockerfile/distribtest/ruby_fedora21_x64/Dockerfile
  43. 6
      tools/dockerfile/distribtest/ruby_fedora22_x64/Dockerfile
  44. 6
      tools/dockerfile/distribtest/ruby_fedora23_x64/Dockerfile
  45. 5
      tools/dockerfile/distribtest/ruby_jessie_x64/Dockerfile
  46. 5
      tools/dockerfile/distribtest/ruby_jessie_x86/Dockerfile
  47. 2
      tools/dockerfile/distribtest/ruby_opensuse_x64/Dockerfile
  48. 5
      tools/dockerfile/distribtest/ruby_ubuntu1204_x64/Dockerfile
  49. 5
      tools/dockerfile/distribtest/ruby_ubuntu1404_x64/Dockerfile
  50. 5
      tools/dockerfile/distribtest/ruby_ubuntu1504_x64/Dockerfile
  51. 5
      tools/dockerfile/distribtest/ruby_ubuntu1510_x64/Dockerfile
  52. 5
      tools/dockerfile/distribtest/ruby_ubuntu1604_x64/Dockerfile
  53. 5
      tools/dockerfile/distribtest/ruby_wheezy_x64/Dockerfile
  54. 3
      tools/jenkins/build_and_run_docker.sh
  55. 16
      tools/jenkins/docker_run.sh
  56. 1
      tools/run_tests/distribtest_targets.py

@ -1,6 +1,6 @@
/*
*
* Copyright 2015, Google Inc.
* Copyright 2015-2016, Google Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -33,7 +33,7 @@
var PROTO_PATH = __dirname + '/helloworld.proto';
var grpc = require('../../');
var grpc = require('grpc');
var hello_proto = grpc.load(PROTO_PATH).helloworld;
function main() {

@ -1,6 +1,6 @@
/*
*
* Copyright 2015, Google Inc.
* Copyright 2015-2016, Google Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -33,7 +33,7 @@
var PROTO_PATH = __dirname + '/helloworld.proto';
var grpc = require('../../');
var grpc = require('grpc');
var hello_proto = grpc.load(PROTO_PATH).helloworld;
/**

@ -0,0 +1,7 @@
{
"name": "grpc-examples",
"version": "0.1.0",
"dependencies": {
"grpc": "0.12.0"
}
}

@ -1,6 +1,6 @@
/*
*
* Copyright 2015, Google Inc.
* Copyright 2015-2016, Google Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -30,13 +30,13 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/
var async = require('async');
var fs = require('fs');
var parseArgs = require('minimist');
var path = require('path');
var _ = require('lodash');
var grpc = require('../../../');
var grpc = require('grpc');
var routeguide = grpc.load(__dirname + '/route_guide.proto').routeguide;
var client = new routeguide.RouteGuide('localhost:50051',
grpc.Credentials.createInsecure());

@ -1,6 +1,6 @@
/*
*
* Copyright 2015, Google Inc.
* Copyright 2015-2016, Google Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -30,12 +30,12 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/
var fs = require('fs');
var parseArgs = require('minimist');
var path = require('path');
var _ = require('lodash');
var grpc = require('../../../');
var grpc = require('grpc');
var routeguide = grpc.load(__dirname + '/route_guide.proto').routeguide;
var COORD_FACTOR = 1e7;

@ -40,15 +40,14 @@
/* Forward decl of grpc_tcp_server */
typedef struct grpc_tcp_server grpc_tcp_server;
typedef struct grpc_tcp_server_acceptor grpc_tcp_server_acceptor;
struct grpc_tcp_server_acceptor {
typedef struct grpc_tcp_server_acceptor {
/* grpc_tcp_server_cb functions share a ref on from_server that is valid
until the function returns. */
grpc_tcp_server *from_server;
/* Indices that may be passed to grpc_tcp_server_port_fd(). */
unsigned port_index;
unsigned fd_index;
};
} grpc_tcp_server_acceptor;
/* Called for newly connected TCP connections. */
typedef void (*grpc_tcp_server_cb)(grpc_exec_ctx *exec_ctx, void *arg,
@ -57,7 +56,7 @@ typedef void (*grpc_tcp_server_cb)(grpc_exec_ctx *exec_ctx, void *arg,
/* Create a server, initially not bound to any ports. The caller owns one ref.
If shutdown_complete is not NULL, it will be used by
grpc_tcp_server_unref(). */
grpc_tcp_server_unref() when the ref count reaches zero. */
grpc_tcp_server *grpc_tcp_server_create(grpc_closure *shutdown_complete);
/* Start listening to bound ports */
@ -84,7 +83,7 @@ unsigned grpc_tcp_server_port_fd_count(grpc_tcp_server *s, unsigned port_index);
/* Returns the file descriptor of the Mth (fd_index) listening socket of the Nth
(port_index) call to add_port() on this server, or -1 if the indices are out
of bounds. The file descriptor remains owned by the server, and will be
cleaned up when grpc_tcp_server_destroy is called. */
cleaned up when the ref count reaches zero. */
int grpc_tcp_server_port_fd(grpc_tcp_server *s, unsigned port_index,
unsigned fd_index);
@ -97,7 +96,7 @@ grpc_tcp_server *grpc_tcp_server_ref(grpc_tcp_server *s);
void grpc_tcp_server_shutdown_starting_add(grpc_tcp_server *s,
grpc_closure *shutdown_starting);
/* If the recount drops to zero, delete s, and call (exec_ctx==NULL) or enqueue
/* If the refcount drops to zero, delete s, and call (exec_ctx==NULL) or enqueue
a call (exec_ctx!=NULL) to shutdown_complete. */
void grpc_tcp_server_unref(grpc_exec_ctx *exec_ctx, grpc_tcp_server *s);

@ -33,6 +33,5 @@ RUN rpm --import "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3FA7E03
RUN yum-config-manager --add-repo http://download.mono-project.com/repo/centos/
RUN yum install -y mono
RUN yum install -y git
RUN yum install -y unzip
RUN yum install -y nuget

@ -40,4 +40,4 @@ RUN apt-get update && apt-get install -y \
ca-certificates-mono \
nuget
RUN apt-get update && apt-get install -y git unzip
RUN apt-get update && apt-get install -y unzip

@ -40,4 +40,4 @@ RUN apt-get update && apt-get install -y \
ca-certificates-mono \
nuget
RUN apt-get update && apt-get install -y git unzip
RUN apt-get update && apt-get install -y unzip

@ -37,4 +37,4 @@ RUN apt-get update && apt-get install -y \
ca-certificates-mono \
nuget
RUN apt-get update && apt-get install -y git unzip
RUN apt-get update && apt-get install -y unzip

@ -37,4 +37,4 @@ RUN apt-get update && apt-get install -y \
ca-certificates-mono \
nuget
RUN apt-get update && apt-get install -y git unzip
RUN apt-get update && apt-get install -y unzip

@ -37,4 +37,4 @@ RUN apt-get update && apt-get install -y \
ca-certificates-mono \
nuget
RUN apt-get update && apt-get install -y git unzip
RUN apt-get update && apt-get install -y unzip

@ -34,4 +34,4 @@ RUN apt-get update && apt-get install -y \
ca-certificates-mono \
nuget
RUN apt-get update && apt-get install -y git unzip
RUN apt-get update && apt-get install -y unzip

@ -29,4 +29,4 @@
FROM mono:4.2.2.30
RUN apt-get update && apt-get install -y git unzip
RUN apt-get update && apt-get install -y unzip

@ -29,7 +29,6 @@
FROM centos:7
RUN yum install -y git
RUN yum install -y curl
# Install nvm

@ -29,7 +29,7 @@
FROM debian:jessie
RUN apt-get update && apt-get install -y curl git
RUN apt-get update && apt-get install -y curl
# Install nvm
RUN touch .profile

@ -29,7 +29,7 @@
FROM 32bit/debian:jessie
RUN apt-get update && apt-get install -y curl git
RUN apt-get update && apt-get install -y git
# Install nvm
RUN touch .profile

@ -29,7 +29,7 @@
FROM ubuntu:12.04
RUN apt-get update && apt-get install -y curl git
RUN apt-get update && apt-get install -y curl
# Install nvm
RUN touch .profile

@ -29,7 +29,7 @@
FROM ubuntu:14.04
RUN apt-get update && apt-get install -y curl git
RUN apt-get update && apt-get install -y curl
# Install nvm
RUN touch .profile

@ -29,7 +29,7 @@
FROM ubuntu:15.04
RUN apt-get update && apt-get install -y curl git
RUN apt-get update && apt-get install -y curl
# Install nvm
RUN touch .profile

@ -29,7 +29,7 @@
FROM ubuntu:15.10
RUN apt-get update && apt-get install -y curl git
RUN apt-get update && apt-get install -y curl
# Install nvm
RUN touch .profile

@ -29,7 +29,7 @@
FROM ubuntu:16.04
RUN apt-get update && apt-get install -y curl git
RUN apt-get update && apt-get install -y curl
# Install nvm
RUN touch .profile

@ -30,7 +30,6 @@
FROM base/archlinux
RUN pacman --noconfirm -Syy
RUN pacman --noconfirm -S git
RUN pacman --noconfirm -S openssl
RUN pacman --noconfirm -S python2
RUN pacman --noconfirm -S python2-pip

@ -29,7 +29,6 @@
FROM centos:6
RUN yum install -y git
RUN yum install -y python
RUN rpm -ivh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

@ -29,7 +29,6 @@
FROM centos:7
RUN yum install -y git
RUN yum install -y python
RUN yum install -y epel-release
RUN yum install -y python-pip

@ -29,9 +29,4 @@
FROM fedora:20
RUN yum clean all
RUN yum update -y
RUN yum install -y git
RUN yum install -y python
RUN yum install -y python-pip
RUN yum clean all && yum update -y && yum install -y python python-pip

@ -29,9 +29,4 @@
FROM fedora:21
RUN yum clean all
RUN yum update -y
RUN yum install -y git
RUN yum install -y python
RUN yum install -y python-pip
RUN yum clean all && yum update -y && yum install -y python python-pip

@ -29,9 +29,4 @@
FROM fedora:22
RUN yum clean all
RUN yum update -y
RUN yum install -y git
RUN yum install -y python
RUN yum install -y python-pip
RUN yum clean all && yum update -y && yum install -y python python-pip

@ -29,9 +29,4 @@
FROM fedora:23
RUN yum clean all
RUN yum update -y
RUN yum install -y git
RUN yum install -y python
RUN yum install -y python-pip
RUN yum clean all && yum update -y && yum install -y python python-pip

@ -29,6 +29,4 @@
FROM debian:jessie
RUN apt-get update
RUN apt-get install -y git python python-pip
RUN apt-get update && apt-get install -y python python-pip

@ -29,6 +29,4 @@
FROM 32bit/debian:jessie
RUN apt-get update
RUN apt-get install -y git python python-pip
RUN apt-get update && apt-get install -y python python-pip

@ -29,7 +29,5 @@
FROM opensuse:42.1
RUN zypper --non-interactive install git
RUN zypper --non-interactive install python
RUN zypper --non-interactive install python-pip

@ -29,8 +29,4 @@
FROM ubuntu:12.04
RUN apt-get update -y
RUN apt-get install -y git
RUN apt-get install -y python
RUN apt-get install -y python-pip
RUN apt-get update -y && apt-get install -y python python-pip

@ -29,8 +29,4 @@
FROM ubuntu:14.04
RUN apt-get update -y
RUN apt-get install -y git
RUN apt-get install -y python
RUN apt-get install -y python-pip
RUN apt-get update -y && apt-get install -y python python-pip

@ -29,8 +29,4 @@
FROM ubuntu:15.04
RUN apt-get update -y
RUN apt-get install -y git
RUN apt-get install -y python
RUN apt-get install -y python-pip
RUN apt-get update -y && apt-get install -y python python-pip

@ -29,8 +29,4 @@
FROM ubuntu:15.10
RUN apt-get update -y
RUN apt-get install -y git
RUN apt-get install -y python
RUN apt-get install -y python-pip
RUN apt-get update -y && apt-get install -y python python-pip

@ -29,8 +29,4 @@
FROM ubuntu:16.04
RUN apt-get update -y
RUN apt-get install -y git
RUN apt-get install -y python
RUN apt-get install -y python-pip
RUN apt-get update -y && apt-get install -y python python-pip

@ -29,6 +29,4 @@
FROM debian:wheezy
RUN apt-get update
RUN apt-get install -y git python python-pip
RUN apt-get update -y && apt-get install -y python python-pip

@ -29,6 +29,4 @@
FROM centos:6
RUN yum install -y git
RUN yum install -y ruby

@ -29,6 +29,4 @@
FROM centos:7
RUN yum install -y git
RUN yum install -y ruby

@ -29,8 +29,4 @@
FROM fedora:20
RUN yum clean all
RUN yum update -y
RUN yum install -y git
RUN yum install -y ruby
RUN yum clean all && yum update -y && yum install -y ruby

@ -29,8 +29,4 @@
FROM fedora:21
RUN yum clean all
RUN yum update -y
RUN yum install -y git
RUN yum install -y ruby
RUN yum clean all && yum update -y && yum install -y ruby

@ -29,8 +29,4 @@
FROM fedora:22
RUN yum clean all
RUN yum update -y
RUN yum install -y git
RUN yum install -y ruby
RUN yum clean all && yum update -y && yum install -y ruby

@ -29,8 +29,4 @@
FROM fedora:23
RUN yum clean all
RUN yum update -y
RUN yum install -y git
RUN yum install -y ruby
RUN yum clean all && yum update -y && yum install -y ruby

@ -29,7 +29,4 @@
FROM debian:jessie
RUN apt-get update
RUN apt-get install -y git
RUN apt-get install -y ruby-full
RUN apt-get update && apt-get install -y ruby-full

@ -29,7 +29,4 @@
FROM 32bit/debian:jessie
RUN apt-get update
RUN apt-get install -y git
RUN apt-get install -y ruby-full
RUN apt-get update && apt-get install -y ruby-full

@ -29,6 +29,4 @@
FROM opensuse:42.1
RUN zypper --non-interactive install git
RUN zypper --non-interactive install ruby

@ -29,7 +29,4 @@
FROM ubuntu:12.04
RUN apt-get update -y
RUN apt-get install -y git
RUN apt-get install -y ruby-full
RUN apt-get update -y && apt-get install -y ruby-full

@ -29,7 +29,4 @@
FROM ubuntu:14.04
RUN apt-get update -y
RUN apt-get install -y git
RUN apt-get install -y ruby-full
RUN apt-get update -y && apt-get install -y ruby-full

@ -29,7 +29,4 @@
FROM ubuntu:15.04
RUN apt-get update -y
RUN apt-get install -y git
RUN apt-get install -y ruby-full
RUN apt-get update -y && apt-get install -y ruby-full

@ -29,7 +29,4 @@
FROM ubuntu:15.10
RUN apt-get update -y
RUN apt-get install -y git
RUN apt-get install -y ruby-full
RUN apt-get update -y && apt-get install -y ruby-full

@ -29,7 +29,4 @@
FROM ubuntu:16.04
RUN apt-get update -y
RUN apt-get install -y git
RUN apt-get install -y ruby-full
RUN apt-get update -y && apt-get install -y ruby-full

@ -29,7 +29,4 @@
FROM debian:wheezy
RUN apt-get update
RUN apt-get install -y git
RUN apt-get install -y ruby-full
RUN apt-get update && apt-get install -y ruby-full

@ -37,9 +37,6 @@ cd $(dirname $0)/../..
git_root=$(pwd)
cd -
# Create a local branch so the child Docker script won't complain
git branch -f jenkins-docker
# Inputs
# DOCKERFILE_DIR - Directory in which Dockerfile file is located.
# DOCKER_RUN_SCRIPT - Script to run under docker (relative to grpc repo root)

@ -31,18 +31,24 @@
# This script is invoked by build_docker_* inside a docker
# container. You should never need to call this script on your own.
set -e
set -ex
mkdir -p /var/local/git
git clone --recursive "$EXTERNAL_GIT_ROOT" /var/local/git/grpc
if [ "$RELATIVE_COPY_PATH" == "" ]
then
mkdir -p /var/local/git
git clone --recursive "$EXTERNAL_GIT_ROOT" /var/local/git/grpc
else
mkdir -p "/var/local/git/grpc/$RELATIVE_COPY_PATH"
cp -r "$EXTERNAL_GIT_ROOT/$RELATIVE_COPY_PATH"/* "/var/local/git/grpc/$RELATIVE_COPY_PATH"
fi
if [ -x "$(command -v rvm)" ]
then
rvm use ruby-2.1
fi
cd /var/local/git/grpc
nvm use 4 || true
cd /var/local/git/grpc
$RUN_COMMAND

@ -38,6 +38,7 @@ def create_docker_jobspec(name, dockerfile_dir, shell_command, environ={},
"""Creates jobspec for a task running under docker."""
environ = environ.copy()
environ['RUN_COMMAND'] = shell_command
environ['RELATIVE_COPY_PATH'] = 'test/distrib'
docker_args=[]
for k,v in environ.iteritems():

Loading…
Cancel
Save