Skip to content

ci(storage): add GCS read microbenchmark runner and Cloud Build config - #18298

Open
shradhakatyal wants to merge 2 commits into
googleapis:mainfrom
shradhakatyal:feat-gcs-read-benchmark-runner
Open

ci(storage): add GCS read microbenchmark runner and Cloud Build config#18298
shradhakatyal wants to merge 2 commits into
googleapis:mainfrom
shradhakatyal:feat-gcs-read-benchmark-runner

Conversation

@shradhakatyal

Copy link
Copy Markdown

Add automated Cloud Build CI workflow and test runner script for high-bandwidth GCS DirectPath read microbenchmarks against rapid zonal buckets.

  • Add benchmarks-cloudbuild.yaml to orchestrate VM lifecycle and private SSH runs.
  • Add run_benchmark_tests.sh for VM environment setup and pytest execution.
  • Display formatted performance results table directly in Cloud Build logs.

Add automated Cloud Build CI workflow and test runner script for high-bandwidth
GCS DirectPath read microbenchmarks against rapid zonal buckets.

- Add benchmarks-cloudbuild.yaml to orchestrate VM lifecycle and private SSH runs.
- Add run_benchmark_tests.sh for VM environment setup and pytest execution.
- Display formatted performance results table directly in Cloud Build logs.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a Cloud Build pipeline (benchmarks-cloudbuild.yaml) and a runner script (run_benchmark_tests.sh) to automate running GCS DirectPath read microbenchmarks on high-bandwidth GCE VMs. The review feedback highlights several critical improvements: implementing a bash trap to guarantee the VM is stopped on early exit, adding defensive type-validation for loaded JSON data to comply with the repository style guide, fixing potential TypeError and ValueError bugs during benchmark result parsing, and verifying that the runtime patching of conftest.py does not fail silently.

Comment thread packages/google-cloud-storage/cloudbuild/benchmarks-cloudbuild.yaml
Comment thread packages/google-cloud-storage/cloudbuild/run_benchmark_tests.sh
Comment thread packages/google-cloud-storage/cloudbuild/benchmarks-cloudbuild.yaml
Comment thread packages/google-cloud-storage/cloudbuild/run_benchmark_tests.sh
… and type validation

- Add EXIT trap to ensure standing VM shutdown on failure.
- Check SSH connection success and fail if connection times out.
- Add target existence validation when patching conftest.py.
- Add defensive type validation (isinstance) for parsed JSON results.
- Wrap float conversion for network throughput in try-except.
@shradhakatyal

shradhakatyal commented Sep 10, 2026

Copy link
Copy Markdown
Author

/gcbrun e682ba4

@shradhakatyal
shradhakatyal marked this pull request as ready for review September 10, 2026 05:45
@shradhakatyal
shradhakatyal requested a review from a team as a code owner September 10, 2026 05:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants