Add check_upb_output to sanity test

pull/19777/head
Esun Kim 6 years ago
parent b8b6df08ae
commit e45c5f021b
  1. 12
      tools/codegen/core/gen_upb_api.sh
  2. 23
      tools/distrib/check_upb_output.sh
  3. 15
      tools/run_tests/sanity/sanity_tests.yaml

@ -17,6 +17,14 @@
# REQUIRES: Bazel
set -ex
if [ $# -eq 0 ]; then
UPB_OUTPUT_DIR=$PWD/src/core/ext/upb-generated
rm -rf $UPB_OUTPUT_DIR
mkdir $UPB_OUTPUT_DIR
else
UPB_OUTPUT_DIR=$1
fi
pushd third_party/protobuf
bazel build :protoc
PROTOC=$PWD/bazel-bin/protoc
@ -27,10 +35,6 @@ bazel build :protoc-gen-upb
UPB_PLUGIN=$PWD/bazel-bin/protoc-gen-upb
popd
UPB_OUTPUT_DIR=$PWD/src/core/ext/upb-generated
rm -rf $UPB_OUTPUT_DIR
mkdir $UPB_OUTPUT_DIR
proto_files=( \
"envoy/api/v2/auth/cert.proto" \
"envoy/api/v2/cds.proto" \

@ -0,0 +1,23 @@
#!/bin/bash
# Copyright 2019 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
readonly UPB_GENERATED_SRC=src/core/ext/upb-generated
readonly UPB_TMP_OUTPUT="$(mktemp -d)"
tools/codegen/core/gen_upb_api.sh "$UPB_TMP_OUTPUT"
diff -rq "$UPB_GENERATED_SRC" "$UPB_TMP_OUTPUT"

@ -2,7 +2,9 @@
- script: tools/run_tests/sanity/check_bad_dependencies.sh
- script: tools/run_tests/sanity/check_bazel_workspace.py
- script: tools/run_tests/sanity/check_cache_mk.sh
- script: tools/run_tests/sanity/check_deprecated_grpc++.py
- script: tools/run_tests/sanity/check_owners.sh
- script: tools/run_tests/sanity/check_port_platform.py
- script: tools/run_tests/sanity/check_qps_scenario_changes.py
- script: tools/run_tests/sanity/check_shellcheck.sh
- script: tools/run_tests/sanity/check_submodules.sh
@ -10,19 +12,18 @@
- script: tools/run_tests/sanity/check_tracer_sanity.py
- script: tools/run_tests/sanity/core_banned_functions.py
- script: tools/run_tests/sanity/core_untyped_structs.sh
- script: tools/run_tests/sanity/check_deprecated_grpc++.py
- script: tools/run_tests/sanity/check_port_platform.py
- script: tools/buildgen/generate_projects.sh -j 3
cpu_cost: 3
- script: tools/distrib/check_copyright.py
- script: tools/distrib/check_include_guards.py
- script: tools/distrib/check_nanopb_output.sh
- script: tools/distrib/check_trailing_newlines.sh
- script: tools/distrib/check_upb_output.sh
- script: tools/distrib/clang_format_code.sh
- script: tools/distrib/clang_tidy_code.sh
- script: tools/distrib/check_trailing_newlines.sh
- script: tools/distrib/check_nanopb_output.sh
- script: tools/distrib/check_include_guards.py
- script: tools/distrib/pylint_code.sh
- script: tools/distrib/yapf_code.sh
- script: tools/distrib/python/check_grpcio_tools.py
- script: tools/distrib/yapf_code.sh
cpu_cost: 1000
- script: tools/distrib/check_shadow_boringssl_symbol_list.sh
- script: tools/distrib/check_protobuf_pod_version.sh
- script: tools/distrib/check_shadow_boringssl_symbol_list.sh

Loading…
Cancel
Save