forked from grpc/grpc
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add distribtest flow support, try for C# and php
- Loading branch information
1 parent
7118953
commit 6b371fa
Showing
6 changed files
with
226 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#!/bin/bash | ||
# Copyright 2023 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 -e | ||
|
||
ARCHIVE_WITH_SUBMODULES="$1" | ||
BUILD_SCRIPT="$2" | ||
shift 2 | ||
|
||
# Extract grpc repo archive | ||
tar -xopf ${ARCHIVE_WITH_SUBMODULES} | ||
cd grpc | ||
|
||
# Extract all input archives with artifacts into input_artifacts directory | ||
mkdir -p input_artifacts | ||
pushd input_artifacts >/dev/null | ||
# all remaining args are .tar.gz archives with input artifacts | ||
for input_artifact_archive in "$@" | ||
do | ||
# extract the .tar.gz with artifacts into a directory named after a basename | ||
# of the archive itself (and strip the "artifact/" prefix) | ||
# Note that input artifacts from different dependencies can have files | ||
# with the same name, so disambiguating through the name of the archive | ||
# is important. | ||
tar --strip-components=1 --one-top-level -xopf ../../${input_artifact_archive} | ||
done | ||
popd >/dev/null | ||
|
||
ls -lR input_artifacts | ||
|
||
# Run build script passed as arg. | ||
"${BUILD_SCRIPT}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash | ||
# Copyright 2023 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 | ||
|
||
# List all input artifacts we obtained for easier troubleshooting. | ||
ls -lR input_artifacts | ||
|
||
# Put the input packages where the legacy logic for running | ||
# C# distribtest expects to find them. | ||
# See distribtest_targets.py for details. | ||
# TODO(jtattermusch): get rid of the manual renames of artifact files. | ||
export EXTERNAL_GIT_ROOT="$(pwd)" | ||
mv input_artifacts/package_csharp_linux/* input_artifacts/ || true | ||
|
||
test/distrib/csharp/run_distrib_test_dotnetcli.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash | ||
# Copyright 2023 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 | ||
|
||
# List all input artifacts we obtained for easier troubleshooting. | ||
ls -lR input_artifacts | ||
|
||
# Put the input packages where the legacy logic for running | ||
# PHP distribtest expects to find them. | ||
# See distribtest_targets.py for details. | ||
# TODO(jtattermusch): get rid of the manual renames of artifact files. | ||
export EXTERNAL_GIT_ROOT="$(pwd)" | ||
mv input_artifacts/artifact_php_linux_x64/* input_artifacts/ || true | ||
|
||
test/distrib/php/run_distrib_test.sh |