Merge pull request #16311 from jtattermusch/fix_build_packages_mkdir_race

Fix mkdir race in build_packages task
pull/16315/head
Jan Tattermusch 6 years ago committed by GitHub
commit 730931e308
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      tools/run_tests/dockerize/build_and_run_docker.sh

@ -73,6 +73,10 @@ docker run \
# Copy output artifacts
if [ "$OUTPUT_DIR" != "" ]
then
# Create the artifact directory in advance to avoid a race in "docker cp" if tasks
# that were running in parallel finish at the same time.
# see https://github.com/grpc/grpc/issues/16155
mkdir -p "$git_root/$OUTPUT_DIR"
docker cp "$CONTAINER_NAME:/var/local/git/grpc/$OUTPUT_DIR" "$git_root" || FAILED="true"
fi

Loading…
Cancel
Save