commit
76eab735f4
66 changed files with 732 additions and 233 deletions
@ -1,7 +1,7 @@ |
|||||||
<!-- This file is generated --> |
<!-- This file is generated --> |
||||||
<Project> |
<Project> |
||||||
<PropertyGroup> |
<PropertyGroup> |
||||||
<GrpcCsharpVersion>1.7.0-dev</GrpcCsharpVersion> |
<GrpcCsharpVersion>1.8.0-dev</GrpcCsharpVersion> |
||||||
<GoogleProtobufVersion>3.3.0</GoogleProtobufVersion> |
<GoogleProtobufVersion>3.3.0</GoogleProtobufVersion> |
||||||
</PropertyGroup> |
</PropertyGroup> |
||||||
</Project> |
</Project> |
||||||
|
@ -0,0 +1,32 @@ |
|||||||
|
%YAML 1.2 |
||||||
|
--- | |
||||||
|
<%! |
||||||
|
def grpc_public_headers_no_dir(libs): |
||||||
|
excluded_files = ["include/grpc/support/atm_gcc_sync.h", |
||||||
|
"include/grpc/support/atm_windows.h", |
||||||
|
"include/grpc/support/sync_windows.h", |
||||||
|
"include/grpc/support/tls_gcc.h", |
||||||
|
"include/grpc/support/tls_msvc.h", |
||||||
|
"include/grpc/impl/codegen/atm_gcc_sync.h", |
||||||
|
"include/grpc/impl/codegen/atm_windows.h", |
||||||
|
"include/grpc/impl/codegen/sync_windows.h"] |
||||||
|
out = [] |
||||||
|
for lib in libs: |
||||||
|
if lib.name in ("grpc", "gpr"): |
||||||
|
out += lib.get('public_headers', []) |
||||||
|
out = [f for f in out if f not in excluded_files] |
||||||
|
out = [hdr.split('/', 2)[2] for hdr in out] |
||||||
|
return out |
||||||
|
|
||||||
|
def header_lines(files): |
||||||
|
return ('\n ').join('header "%s"' % f for f in files) |
||||||
|
%> |
||||||
|
framework module grpc { |
||||||
|
umbrella header "grpc.h" |
||||||
|
|
||||||
|
${header_lines(grpc_public_headers_no_dir(libs))} |
||||||
|
|
||||||
|
export * |
||||||
|
module * { export * } |
||||||
|
} |
||||||
|
|
@ -0,0 +1 @@ |
|||||||
|
Subproject commit 73594cde8c9a52a102c4341c244c833aa61b9c06 |
@ -0,0 +1,24 @@ |
|||||||
|
# Copyright 2017 gRPC authors. |
||||||
|
# |
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License"); |
||||||
|
# you may not use this file except in compliance with the License. |
||||||
|
# You may obtain a copy of the License at |
||||||
|
# |
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0 |
||||||
|
# |
||||||
|
# Unless required by applicable law or agreed to in writing, software |
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS, |
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||||
|
# See the License for the specific language governing permissions and |
||||||
|
# limitations under the License. |
||||||
|
|
||||||
|
# Config file for the internal CI (in protobuf text format) |
||||||
|
|
||||||
|
# Location of the continuous shell script in repository. |
||||||
|
build_file: "grpc/tools/internal_ci/linux/grpc_coverage.sh" |
||||||
|
timeout_mins: 420 |
||||||
|
action { |
||||||
|
define_artifacts { |
||||||
|
regex: "github/grpc/reports/**" |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,30 @@ |
|||||||
|
#!/usr/bin/env bash |
||||||
|
# Copyright 2017 gRPC authors. |
||||||
|
# |
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License"); |
||||||
|
# you may not use this file except in compliance with the License. |
||||||
|
# You may obtain a copy of the License at |
||||||
|
# |
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0 |
||||||
|
# |
||||||
|
# Unless required by applicable law or agreed to in writing, software |
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS, |
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||||
|
# See the License for the specific language governing permissions and |
||||||
|
# limitations under the License. |
||||||
|
|
||||||
|
set -ex |
||||||
|
|
||||||
|
# Enter the gRPC repo root |
||||||
|
cd $(dirname $0)/../../.. |
||||||
|
|
||||||
|
source tools/internal_ci/helper_scripts/prepare_build_linux_rc |
||||||
|
|
||||||
|
python tools/run_tests/run_tests.py \ |
||||||
|
--use_docker \ |
||||||
|
-t \ |
||||||
|
-l all \ |
||||||
|
-c gcov \ |
||||||
|
-x report.xml \ |
||||||
|
-j 16 |
||||||
|
|
@ -0,0 +1,99 @@ |
|||||||
|
#!/usr/bin/env python2.7 |
||||||
|
# |
||||||
|
# Copyright 2017 gRPC authors. |
||||||
|
# |
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License"); |
||||||
|
# you may not use this file except in compliance with the License. |
||||||
|
# You may obtain a copy of the License at |
||||||
|
# |
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0 |
||||||
|
# |
||||||
|
# Unless required by applicable law or agreed to in writing, software |
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS, |
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||||
|
# See the License for the specific language governing permissions and |
||||||
|
# limitations under the License. |
||||||
|
|
||||||
|
import argparse |
||||||
|
import glob |
||||||
|
import multiprocessing |
||||||
|
import os |
||||||
|
import shutil |
||||||
|
import subprocess |
||||||
|
import sys |
||||||
|
|
||||||
|
sys.path.append( |
||||||
|
os.path.join( |
||||||
|
os.path.dirname(sys.argv[0]), '..', '..', 'run_tests', 'python_utils')) |
||||||
|
import comment_on_pr |
||||||
|
|
||||||
|
argp = argparse.ArgumentParser( |
||||||
|
description='Perform diff on microbenchmarks') |
||||||
|
|
||||||
|
argp.add_argument( |
||||||
|
'-d', |
||||||
|
'--diff_base', |
||||||
|
type=str, |
||||||
|
help='Commit or branch to compare the current one to') |
||||||
|
|
||||||
|
argp.add_argument( |
||||||
|
'-j', |
||||||
|
'--jobs', |
||||||
|
type=int, |
||||||
|
default=multiprocessing.cpu_count()) |
||||||
|
|
||||||
|
args = argp.parse_args() |
||||||
|
|
||||||
|
LIBS = [ |
||||||
|
'libgrpc.so', |
||||||
|
'libgrpc++.so', |
||||||
|
] |
||||||
|
|
||||||
|
def build(where): |
||||||
|
subprocess.check_call('make -j%d' % args.jobs, |
||||||
|
shell=True, cwd='.') |
||||||
|
shutil.rmtree('bloat_diff_%s' % where, ignore_errors=True) |
||||||
|
os.rename('libs', 'bloat_diff_%s' % where) |
||||||
|
|
||||||
|
build('new') |
||||||
|
|
||||||
|
if args.diff_base: |
||||||
|
old = 'old' |
||||||
|
where_am_i = subprocess.check_output( |
||||||
|
['git', 'rev-parse', '--abbrev-ref', 'HEAD']).strip() |
||||||
|
subprocess.check_call(['git', 'checkout', args.diff_base]) |
||||||
|
subprocess.check_call(['git', 'submodule', 'update']) |
||||||
|
try: |
||||||
|
try: |
||||||
|
build('old') |
||||||
|
except subprocess.CalledProcessError, e: |
||||||
|
subprocess.check_call(['make', 'clean']) |
||||||
|
build('old') |
||||||
|
finally: |
||||||
|
subprocess.check_call(['git', 'checkout', where_am_i]) |
||||||
|
subprocess.check_call(['git', 'submodule', 'update']) |
||||||
|
|
||||||
|
subprocess.check_call('make -j%d' % args.jobs, |
||||||
|
shell=True, cwd='third_party/bloaty') |
||||||
|
|
||||||
|
text = '' |
||||||
|
for lib in LIBS: |
||||||
|
text += '****************************************************************\n\n' |
||||||
|
text += lib + '\n\n' |
||||||
|
old_version = glob.glob('bloat_diff_old/opt/%s' % lib) |
||||||
|
new_version = glob.glob('bloat_diff_new/opt/%s' % lib) |
||||||
|
assert len(new_version) == 1 |
||||||
|
cmd = 'third_party/bloaty/bloaty -d compileunits,symbols' |
||||||
|
if old_version: |
||||||
|
assert len(old_version) == 1 |
||||||
|
text += subprocess.check_output('%s %s -- %s' % |
||||||
|
(cmd, new_version[0], old_version[0]), |
||||||
|
shell=True) |
||||||
|
else: |
||||||
|
text += subprocess.check_output('%s %s' % |
||||||
|
(cmd, new_version[0]), |
||||||
|
shell=True) |
||||||
|
text += '\n\n' |
||||||
|
|
||||||
|
print text |
||||||
|
comment_on_pr.comment_on_pr('```\n%s\n```' % text) |
File diff suppressed because it is too large
Load Diff
Loading…
Reference in new issue