google-cloud-rust icon indicating copy to clipboard operation
google-cloud-rust copied to clipboard

Storage quickstart sample is flaky

Open coryan opened this issue 1 month ago • 1 comments

We can close this bug when (a) we decide that running this quickstart is not important (and stop running it), or (b) we figure out a way to eliminate the flakyness.

Running the quickstart example is flaky (see below). It creates a bucket but (for simplicity?) does not set the idempotency flag and therefore does not retry. We easily go over the bucket rate creation policy and the request fails.


running 4 tests
  | test storage::mocking::tests::test_upload ... ok
  | test storage::mocking::tests::test_count_lines ... ok
  | test storage::driver::quickstart ... FAILED
  | test storage::driver::run ... ok
  |  
  | failures:
  |  
  | ---- storage::driver::quickstart stdout ----
  | error cleaning up quickstart bucket rust-sdk-testing-qke5gademgkamrxqiehfutf7rl9g0bymm9ihjzrwe85veg: the service reports an error with code NOT_FOUND described as: The specified bucket does not exist.
  |  
  | Caused by:
  | status: 'Some requested entity was not found', self: "The specified bucket does not exist.", metadata: {"pcx-high-bwd-bin": "KgUYDJgBDA", "pc-high-bwd-bin": "S2dVWURKZ0JEQQ", "endpoint-load-metrics-bin": "MTNXxa5RAWFASRiy+XxgNOQ/", "grpc-server-stats-bin": "AABSqAEHAAAAAA", "content-type": "application/grpc", "grpc-accept-encoding": "identity, deflate, gzip", "x-guploader-uploadid": "AOCedOEj4K5XY4Vg0eQbmozKSGORF28Ut41qGQOYhi4t2i-0auvxV3kDdgxzLdn66SwcJJM7", "content-length": "0", "date": "Tue, 25 Nov 2025 15:09:58 GMT"}
  | Error: the service reports an error with code RESOURCE_EXHAUSTED described as: Create Bucket quota limit limit exceeded on the Google Cloud project. Please slow down execution and try again.
  |  
  | Caused by:
  | status: 'Some resource has been exhausted', self: "Create Bucket quota limit limit exceeded on the Google Cloud project. Please slow down execution and try again.", metadata: {"pcx-high-bwd-bin": "KgUYE5gBEw", "pc-high-bwd-bin": "S2dVWUU1Z0JFdw", "endpoint-load-metrics-bin": "MfF8m/+YmWNASXwTByKCVOM/", "grpc-server-stats-bin": "AACMO2MCAAAAAA", "content-type": "application/grpc", "grpc-accept-encoding": "identity, deflate, gzip", "x-guploader-uploadid": "AOCedOERxdBrzj0UWsWMCMX3H3DVykLQZgnR6GYBuADaA6GP74tEXeBVDFSK_sYbhQ7t6dMy", "content-length": "0", "date": "Tue, 25 Nov 2025 15:09:58 GMT"}
  |  
  |  
  | failures:
  | storage::driver::quickstart
  |  
  | test result: FAILED. 3 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 13.29s
  |  

https://pantheon.corp.google.com/cloud-build/builds;region=us-central1/fe45a3e8-0384-400f-b085-bf834e2c26f3?e=SqlStudioMysqlLaunch::SqlStudioMysqlEnabled&mods=monitoring_api_staging&project=rust-sdk-testing

coryan avatar Nov 25 '25 15:11 coryan

Note that retrying the request may result in AlreadyExists errors, we can handle those, but that complicates the sample more than we probably want.

coryan avatar Nov 25 '25 15:11 coryan