Skip to content
This repository was archived by the owner on Jan 23, 2026. It is now read-only.

Commit d34c638

Browse files
chore: Migrate gsutil usage to gcloud storage
1 parent d4b451a commit d34c638

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

cloudbuild_interpreters.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ steps:
2424
waitFor: ['interpreter-builder']
2525

2626
# Upload them to tbe build-id location
27-
- name: gcr.io/cloud-builders/gsutil:latest
28-
args: ['cp', '/workspace/runtime-image/*.tar.gz', 'gs://python-interpreters/$BUILD_ID/']
27+
- name: gcr.io/cloud-builders/gcloud:latest
28+
args: ['storage', 'cp', '/workspace/runtime-image/*.tar.gz', 'gs://python-interpreters/$BUILD_ID/']
2929
waitFor: ['build-3.4', 'build-3.5', 'build-3.6', 'build-3.7']
3030

3131
# "Tag" this as latest
32-
- name: gcr.io/cloud-builders/gsutil:latest
33-
args: ['cp', '-r', 'gs://python-interpreters/$BUILD_ID/*', 'gs://python-interpreters/latest/']
32+
- name: gcr.io/cloud-builders/gcloud:latest
33+
args: ['storage', 'cp', '--recursive', 'gs://python-interpreters/$BUILD_ID/*', 'gs://python-interpreters/latest/']

tests/benchmark/benchmark_between_releases.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,14 @@ done
5151
gcloud config set project cloud-python-runtime-qa
5252

5353
# Get the list of existing release data on Cloud Storage and skip if the current TAG1 or TAG2 existing in the list
54-
gsutil ls gs://python-runtime-benchmark > existing_releases
54+
gcloud storage ls gs://python-runtime-benchmark > existing_releases
5555

5656
for container_tag in $TAG1 $TAG2; do
5757
if grep --fixed-strings --quiet "$container_tag" existing_releases; then
5858
echo "Performance data of $container_tag existed, so skip processing it."
5959
else
6060
# Upload the CSV files to Cloud Storage
61-
gsutil cp -r $container_tag gs://python-runtime-benchmark
61+
gcloud storage cp --recursive $container_tag gs://python-runtime-benchmark
6262
# Load the CSV files from Cloud Storage to Big Query table
6363
# Load the performance data of each function
6464
for path_to_file in $container_tag/py2.7.csv $container_tag/py3.4.csv $container_tag/py3.5.csv; do

0 commit comments

Comments
 (0)