Skip to content

Commit 1aabd31

Browse files
chore: migrate cleanup commands from gsutil to gcloud storage (#13732)
* chore: migrate cleanup commands from gsutil to gcloud storage * chore: migrate cleanup commands from gsutil to gcloud storage --------- Co-authored-by: Jennifer Davis <sigje@google.com>
1 parent e55d3a7 commit 1aabd31

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

people-and-planet-ai/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def bucket_name(test_name: str, location: str, unique_id: str) -> Iterable[str]:
8484
# Try to remove all files before deleting the bucket.
8585
# Deleting a bucket with too many files results in an error.
8686
try:
87-
run_cmd("gsutil", "-m", "rm", "-rf", f"gs://{bucket_name}/*")
87+
run_cmd("gcloud", "storage", "rm", "--recursive", f"gs://{bucket_name}/**")
8888
except RuntimeError:
8989
# If no files were found and it fails, ignore the error.
9090
pass

pubsublite/spark-connector/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Get the connector's uber jar from this [public Cloud Storage location]. Alternat
5454
```bash
5555
export BUCKET_ID=your-gcs-bucket-id
5656

57-
gsutil mb gs://$BUCKET_ID
57+
gcloud storage buckets create gs://$BUCKET_ID
5858
```
5959

6060
## Python setup

0 commit comments

Comments
 (0)