mirror of https://github.com/grpc/grpc.git
commit
b5b0fbf085
62 changed files with 2164 additions and 1117 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@ -1 +1 @@ |
||||
Subproject commit 70ef9596bbcc11353b9bb8d4e91478694dd21439 |
||||
Subproject commit b29b21a81b32ec273f118f589f46d56ad3332420 |
@ -1 +1 @@ |
||||
Subproject commit dcd3e6e6ecddf059adb48fca45bc7346a108bdd9 |
||||
Subproject commit 8149b351bf797bd80e063787886b7618f508e451 |
@ -0,0 +1,26 @@ |
||||
# Copyright 2018 The 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_publish_packages.sh" |
||||
timeout_mins: 120 |
||||
action { |
||||
define_artifacts { |
||||
regex: "**/*sponge_log.xml" |
||||
regex: "github/grpc/reports/**" |
||||
regex: "github/grpc/artifacts/**" |
||||
} |
||||
} |
@ -0,0 +1,110 @@ |
||||
#!/bin/bash |
||||
# Copyright 2018 The 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 |
||||
|
||||
shopt -s nullglob |
||||
|
||||
export GOOGLE_APPLICATION_CREDENTIALS=${KOKORO_GFILE_DIR}/GrpcTesting-d0eeee2db331.json |
||||
|
||||
GCS_ROOT=gs://packages.grpc.io |
||||
MANIFEST_FILE=index.xml |
||||
ARCHIVE_UUID=${KOKORO_BUILD_ID:-$(uuidgen)} |
||||
GIT_BRANCH_NAME=master #${KOKORO_GITHUB_COMMIT:-master} |
||||
GIT_COMMIT=${KOKORO_GIT_COMMIT:-unknown} |
||||
ARCHIVE_TIMESTAMP=$(date -Iseconds) |
||||
TARGET_DIR=$(mktemp -d grpc_publish_packages.sh.XXXX) |
||||
YEAR_MONTH_PREFIX=$(date "+%Y/%m") |
||||
YEAR_PREFIX=${YEAR_MONTH_PREFIX%%/*} |
||||
UPLOAD_ROOT=$TARGET_DIR/$YEAR_PREFIX |
||||
RELATIVE_PATH=$YEAR_MONTH_PREFIX/$ARCHIVE_UUID |
||||
BUILD_ROOT=$TARGET_DIR/$RELATIVE_PATH |
||||
|
||||
LINUX_PACKAGES=$KOKORO_GFILE_DIR/github/grpc/artifacts |
||||
WINDOWS_PACKAGES=$KOKORO_GFILE_DIR/github/grpc/artifacts |
||||
# TODO(mmx): enable linux_extra |
||||
# LINUX_EXTRA_PACKAGES=$KOKORO_GFILE_DIR/github/grpc/artifacts |
||||
|
||||
PYTHON_PACKAGES=( |
||||
"$LINUX_PACKAGES"/grpcio-[0-9]*.whl |
||||
"$LINUX_PACKAGES"/grpcio-[0-9]*.tar.gz |
||||
"$LINUX_PACKAGES"/grpcio_tools-[0-9]*.whl |
||||
"$LINUX_PACKAGES"/grpcio-tools-[0-9]*.tar.gz |
||||
"$LINUX_PACKAGES"/grpcio-health-checking-[0-9]*.tar.gz |
||||
"$LINUX_PACKAGES"/grpcio-reflection-[0-9]*.tar.gz |
||||
"$LINUX_PACKAGES"/grpcio-testing-[0-9]*.tar.gz |
||||
#"$LINUX_EXTRA_PACKAGES"/grpcio-[0-9]*.whl |
||||
#"$LINUX_EXTRA_PACKAGES"/grpcio_tools-[0-9]*.whl |
||||
) |
||||
|
||||
PHP_PACKAGES=( |
||||
"$LINUX_PACKAGES"/grpc-[0-9]*.tgz |
||||
) |
||||
|
||||
RUBY_PACKAGES=( |
||||
"$LINUX_PACKAGES"/grpc-[0-9]*.gem |
||||
"$LINUX_PACKAGES"/grpc-tools-[0-9]*.gem |
||||
) |
||||
|
||||
CSHARP_PACKAGES=( |
||||
"$WINDOWS_PACKAGES"/csharp_nugets_windows_dotnetcli.zip |
||||
) |
||||
|
||||
function add_to_manifest() { |
||||
local xml_type=$1 |
||||
local xml_name |
||||
xml_name=$(basename "$2") |
||||
local xml_sha256 |
||||
xml_sha256=$(openssl sha256 -r "$2" | cut -d " " -f 1) |
||||
cp "$2" "$BUILD_ROOT" |
||||
echo "<artifact type='$xml_type' name='$xml_name' sha256='$xml_sha256' />" |
||||
} |
||||
|
||||
mkdir -p "$BUILD_ROOT" |
||||
|
||||
{ |
||||
cat <<EOF |
||||
<?xml version="1.0"?> |
||||
<?xml-stylesheet href="/web-assets/build.xsl" type="text/xsl"?> |
||||
EOF |
||||
echo "<build id='$ARCHIVE_UUID' timestamp='$ARCHIVE_TIMESTAMP'>" |
||||
echo "<metadata>" |
||||
echo "<branch>$GIT_BRANCH_NAME</branch>" |
||||
echo "<commit>$GIT_COMMIT</commit>" |
||||
echo "</metadata><artifacts>" |
||||
|
||||
for pkg in "${PYTHON_PACKAGES[@]}"; do add_to_manifest python "$pkg"; done |
||||
for pkg in "${CSHARP_PACKAGES[@]}"; do add_to_manifest csharp "$pkg"; done |
||||
for pkg in "${PHP_PACKAGES[@]}"; do add_to_manifest php "$pkg"; done |
||||
for pkg in "${RUBY_PACKAGES[@]}"; do add_to_manifest ruby "$pkg"; done |
||||
|
||||
echo "</artifacts></build>" |
||||
}> "$BUILD_ROOT/$MANIFEST_FILE" |
||||
|
||||
BUILD_XML_SHA=$(openssl sha256 -r "$BUILD_ROOT/$MANIFEST_FILE" | cut -d " " -f 1) |
||||
|
||||
PREV_HOME=$(mktemp old-XXXXX-$MANIFEST_FILE) |
||||
NEW_HOME=$(mktemp new-XXXXX-$MANIFEST_FILE) |
||||
gsutil cp "$GCS_ROOT/$MANIFEST_FILE" "$PREV_HOME" |
||||
|
||||
{ |
||||
head --lines=4 "$PREV_HOME" |
||||
echo "<build id='$ARCHIVE_UUID' timestamp='$ARCHIVE_TIMESTAMP' branch='$GIT_BRANCH_NAME' commit='$GIT_COMMIT' manifest='archive/$RELATIVE_PATH/$MANIFEST_FILE' manifest-sha256='$BUILD_XML_SHA' />" |
||||
tail --lines=+5 "$PREV_HOME" |
||||
}> "$NEW_HOME" |
||||
|
||||
gsutil -m cp -r "$UPLOAD_ROOT" "$GCS_ROOT/archive" |
||||
gsutil -h "Content-Type:application/xml" cp "$NEW_HOME" "$GCS_ROOT/$MANIFEST_FILE" |
||||
|
@ -0,0 +1,27 @@ |
||||
#!/usr/bin/env bash |
||||
# Copyright 2018 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. |
||||
# |
||||
# This script is invoked by Jenkins and runs a diff on the microbenchmarks |
||||
set -ex |
||||
|
||||
# List of benchmarks that provide good signal for analyzing performance changes in pull requests |
||||
|
||||
# Enter the gRPC repo root |
||||
cd $(dirname $0)/../../.. |
||||
|
||||
source tools/internal_ci/helper_scripts/prepare_build_macos_rc |
||||
|
||||
tools/profiling/ios_bin/binary_size.py \ |
||||
-d origin/$ghprbTargetBranch |
@ -0,0 +1,26 @@ |
||||
# Copyright 2018 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/macos/grpc_ios_binary_size.sh" |
||||
timeout_mins: 60 |
||||
gfile_resources: "/bigstore/grpc-testing-secrets/github_credentials/oauth_token.txt" |
||||
action { |
||||
define_artifacts { |
||||
regex: "**/*sponge_log.xml" |
||||
regex: "github/grpc/reports/**" |
||||
} |
||||
} |
Loading…
Reference in new issue