Skip to content

Commit

Permalink
Tests - Try fix GCS file being inaccessible right after upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Ark-kun committed Nov 30, 2018
1 parent 98cc6ee commit 36802a0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/presubmit-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,14 @@ remote_code_archive_uri="${code_archive_prefix}_${PULL_BASE_SHA}_${date_string}.
tar -czf "$local_code_archive_file" .
gsutil cp "$local_code_archive_file" "$remote_code_archive_uri"

#The file can be inaccessible right after upload.
#ServiceException: 401 Anonymous caller does not have storage.objects.get access to ml-pipeline-test
#See https://github.com/kubeflow/pipelines/issues/403
#Let's try to wait for it. This might not be enough to fix the issue though.
until gsutil ls "$remote_code_archive_uri"; do
sleep 5s
done

#Creating a new GKE cluster if needed
if [ "$CLUSTER_TYPE" == "create-gke" ]; then
echo "create test cluster"
Expand Down

0 comments on commit 36802a0

Please sign in to comment.