Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(storage): run metrics test only in grpc #11415

Merged
merged 2 commits into from
Jan 8, 2025
Merged

test(storage): run metrics test only in grpc #11415

merged 2 commits into from
Jan 8, 2025

Conversation

cojenco
Copy link
Contributor

@cojenco cojenco commented Jan 8, 2025

TestIntegration_MetricsEnablement performs a list object and no reads involved, so skipping bidiread should reduce some flakiness. I also looked into opentelemetry-go/sdk/metric and the tests look right. I suspect other flakiness is coming from test running too fast that metrics are not collected in time

Fixes #11397

@cojenco cojenco requested review from a team as code owners January 8, 2025 19:35
@product-auto-label product-auto-label bot added the api: storage Issues related to the Cloud Storage API. label Jan 8, 2025
@@ -637,6 +637,7 @@ func TestIntegration_DoNotDetectDirectConnectivityWhenDisabled(t *testing.T) {

func TestIntegration_MetricsEnablement(t *testing.T) {
ctx := skipHTTP("grpc only test")
ctx = skipExtraReadAPIs(ctx, "no reads in test")
mr := metric.NewManualReader()
Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, this guy being out of the multiTransportTest is probably the culprit, but yes we should skip anyway. Thanks Cathy!

@BrennaEpp BrennaEpp enabled auto-merge (squash) January 8, 2025 19:45
@BrennaEpp BrennaEpp merged commit 24b086c into main Jan 8, 2025
8 checks passed
@BrennaEpp BrennaEpp deleted the flaky-metrics branch January 8, 2025 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: storage Issues related to the Cloud Storage API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

storage: TestIntegration_MetricsEnablement failed
3 participants