Skip to content

spanner: skip flaky TestIntegration_DbRemovalRecovery#14607

Merged
sakthivelmanii merged 1 commit into
mainfrom
skip-flaky-dbremovalrecovery
May 18, 2026
Merged

spanner: skip flaky TestIntegration_DbRemovalRecovery#14607
sakthivelmanii merged 1 commit into
mainfrom
skip-flaky-dbremovalrecovery

Conversation

@sakthivelmanii

Copy link
Copy Markdown
Contributor

Fixes b/514205001

@sakthivelmanii sakthivelmanii requested review from a team as code owners May 18, 2026 07:39
@product-auto-label product-auto-label Bot added the api: spanner Issues related to the Spanner API. label May 18, 2026

@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 skips the TestIntegration_DbRemovalRecovery integration test in spanner/integration_test.go due to flakiness. The reviewer pointed out that placing t.Skip before t.Parallel() makes the latter unreachable and is non-idiomatic in Go, suggesting that t.Parallel() should remain the first statement.

Comment thread spanner/integration_test.go Outdated

// Test client recovery on database recreation.
func TestIntegration_DbRemovalRecovery(t *testing.T) {
t.Skip("Flaky test, skipping for now (b/514205001)")

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.

medium

The t.Skip call terminates the test execution immediately, making the subsequent t.Parallel() call and other setup code unreachable. This is generally non-idiomatic in Go and may be flagged by static analysis tools like go vet. It is recommended to place t.Parallel() as the first statement in the test function, followed by the t.Skip call.

@sakthivelmanii sakthivelmanii force-pushed the skip-flaky-dbremovalrecovery branch from d8ff8b2 to 95bd562 Compare May 18, 2026 07:41
@sakthivelmanii sakthivelmanii enabled auto-merge (squash) May 18, 2026 07:45
@sakthivelmanii sakthivelmanii merged commit 585840f into main May 18, 2026
11 checks passed
@sakthivelmanii sakthivelmanii deleted the skip-flaky-dbremovalrecovery branch May 18, 2026 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: spanner Issues related to the Spanner API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants