diff --git a/ci/run-gradle.sh b/ci/run-gradle.sh index 6edc70d37f..3c219760cb 100755 --- a/ci/run-gradle.sh +++ b/ci/run-gradle.sh @@ -16,7 +16,21 @@ echo $PACKAGE_PATH set -e -x -o pipefail -readarray -t PROJECTS < <(find . -name gradlew.bat -printf '%h\n') +# We were using process substitution before for find/readarray, which started failing. +# Possibly related to https://github.com/git-for-windows/git/issues/2291, although +# we could not correlate with the software running on the hosted agents. +PROJECTS_FILE=$(mktemp proj-XXXXXX) +on_exit() { + local exit_code=$? + rm -f "$PROJECTS_FILE" + printf "Exiting with exit code %s\n" $exit_code + exit $exit_code +} +trap on_exit EXIT + +find . -name gradlew.bat -printf '%h\n' > "$PROJECTS_FILE" + +readarray -t PROJECTS < "$PROJECTS_FILE" for dir in "${PROJECTS[@]}"; do echo $dir diff --git a/samples/python/console/speech_synthesis_sample.py b/samples/python/console/speech_synthesis_sample.py index 832a8cb689..417bc0f80e 100644 --- a/samples/python/console/speech_synthesis_sample.py +++ b/samples/python/console/speech_synthesis_sample.py @@ -3,6 +3,9 @@ # Copyright (c) Microsoft. All rights reserved. # Licensed under the MIT license. See LICENSE.md file in the project root for full license information. +""" +Speech synthesis samples for the Microsoft Cognitive Services Speech SDK +""" try: import azure.cognitiveservices.speech as speechsdk