Skip to content

Fix Clean Up GCP Resources workflow - #40813

Merged
Amar3tto merged 1 commit into
masterfrom
fix-cleanup
Oct 26, 2026
Merged

Amar3tto merged 1 commit into
masterfrom
fix-cleanup

Conversation

@Amar3tto

Copy link
Copy Markdown
Collaborator

@Amar3tto
Amar3tto requested a review from damccorm October 26, 2026 15:17
@github-actions github-actions Bot added infra size/s S: 10-49 lines changed labels Oct 26, 2026

@github-actions github-actions 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.

📋 Review Summary

This PR updates .test-infra/tools/stale_cbt_instances_cleaner.sh to include bt-cdc-tests in the cleanup templates and disables Bigtable change streams on tables before attempting to delete stale instances. The changes are clean, modernize the shell syntax, and directly resolve the instance deletion failures in the GCP resource cleanup workflow.

🔍 General Feedback

  • Disabling change streams via --clear-change-stream-retention-period prior to cbt deleteinstance properly addresses Bigtable's restriction against deleting instances containing tables with active change streams.
  • Shell modernizations ($(...) command substitutions and proper variable quoting) improve script safety and readability.

💡 Tip: Comment /gemini review on this pull request to trigger a new Gemini code review.

@damccorm damccorm 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.

Thanks

@Amar3tto
Amar3tto merged commit b25beaa into master Oct 26, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infra size/s S: 10-49 lines changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The Clean Up GCP Resources job is flaky

2 participants