Skip to content

tests(bigtable): fix resource leaks in bigtable system tests - #9030

Open
feywind wants to merge 6 commits into
mainfrom
feywind-bigtable-tests
Open

tests(bigtable): fix resource leaks in bigtable system tests#9030
feywind wants to merge 6 commits into
mainfrom
feywind-bigtable-tests

Conversation

@feywind

@feywind feywind commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

While trying to get the handwritten split project finished, I ran into a lot of resource leaks in the bigtable system tests. These ended up being extensive enough changes that I moved them to their own PR (this one).

@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 refactors Bigtable system tests to optimize resource usage by scaling down cluster nodes and centralizing instance/backup reaping helpers into a shared utility. Feedback focuses on critical issues introduced in these changes, including potential runtime crashes in the reaping helper due to unsafe non-null assertions and label parsing, multiple gRPC connection leaks from unclosed Bigtable clients in test hooks, and a type mismatch where a numeric timestamp is assigned to instance labels instead of a string.

Comment thread handwritten/bigtable/system-test/common.ts
Comment thread handwritten/bigtable/system-test/read-rows.ts
Comment thread handwritten/bigtable/system-test/tpc-tests.ts
Comment thread handwritten/bigtable/system-test/client-side-metrics-all-methods.ts Outdated
Comment thread handwritten/bigtable/system-test/client-side-metrics.ts Outdated
Comment thread handwritten/bigtable/system-test/client-side-metrics-setup-table.ts
@feywind feywind changed the title tests: fix resource leaks in bigtable system tests tests(bigtable): fix resource leaks in bigtable system tests Jul 30, 2026
@feywind
feywind marked this pull request as ready for review July 30, 2026 22:01
@feywind
feywind requested a review from a team as a code owner July 30, 2026 22:01
@feywind
feywind enabled auto-merge (squash) July 30, 2026 22:02
@feywind feywind added the automerge Merge the pull request once unit tests and other checks pass. label Jul 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge Merge the pull request once unit tests and other checks pass.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant