From 79d8d83c8bfacdca5c41fa4b33a97751167c7553 Mon Sep 17 00:00:00 2001 From: Jan Tattermusch Date: Fri, 25 Mar 2022 10:46:41 +0100 Subject: [PATCH] unbreak C# build_package targets --- .../artifacts/build_package_csharp.sh | 19 +++++++++++++++++++ tools/run_tests/artifacts/package_targets.py | 4 +++- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100755 tools/run_tests/artifacts/build_package_csharp.sh diff --git a/tools/run_tests/artifacts/build_package_csharp.sh b/tools/run_tests/artifacts/build_package_csharp.sh new file mode 100755 index 00000000000..04bcb0cfb8a --- /dev/null +++ b/tools/run_tests/artifacts/build_package_csharp.sh @@ -0,0 +1,19 @@ +#!/bin/bash +# Copyright 2022 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 + +# Nothing to do here. C# has been removed from this repository. This script is a placeholder +# to prevent C# tests from becoming red (until they get eventually disabled). diff --git a/tools/run_tests/artifacts/package_targets.py b/tools/run_tests/artifacts/package_targets.py index 6dfd24b2a23..3895708da22 100644 --- a/tools/run_tests/artifacts/package_targets.py +++ b/tools/run_tests/artifacts/package_targets.py @@ -95,7 +95,9 @@ class CSharpPackage: os.getenv('GRPC_CSHARP_BUILD_SINGLE_PLATFORM_NUGET', '') } - build_script = 'src/csharp/build_unitypackage.sh' if self.unity else 'src/csharp/build_nuget.sh' + # C# has been removed from the repo. Provide a dummy script to prevent + # the build task from failing. + build_script = 'tools/run_tests/artifacts/build_package_csharp.sh' if self.platform == 'linux': return create_docker_jobspec(