From 8ca8d4db65d09fb7208a69d00a5779eb04aad1a1 Mon Sep 17 00:00:00 2001 From: Kayla Reopelle Date: Wed, 4 Oct 2023 16:21:54 -0700 Subject: [PATCH] test: Skip flaky truffleruby tests This test is failing on unrelated PRs. Issue #1507 is created to resolve the source of the flakiness. --- .../test/opentelemetry/exporter/otlp/common/common_test.rb | 3 +++ .../opentelemetry/exporter/otlp/http/trace_exporter_test.rb | 3 +++ 2 files changed, 6 insertions(+) diff --git a/exporter/otlp-common/test/opentelemetry/exporter/otlp/common/common_test.rb b/exporter/otlp-common/test/opentelemetry/exporter/otlp/common/common_test.rb index ea0635ff1..1d079711d 100644 --- a/exporter/otlp-common/test/opentelemetry/exporter/otlp/common/common_test.rb +++ b/exporter/otlp-common/test/opentelemetry/exporter/otlp/common/common_test.rb @@ -41,6 +41,9 @@ end it 'translates all the things' do + # TODO: See issue #1507 to fix + skip 'Intermittently fails' if RUBY_ENGINE == 'truffleruby' + OpenTelemetry.tracer_provider = OpenTelemetry::SDK::Trace::TracerProvider.new(resource: OpenTelemetry::SDK::Resources::Resource.telemetry_sdk) tracer = OpenTelemetry.tracer_provider.tracer('tracer', 'v0.0.1') other_tracer = OpenTelemetry.tracer_provider.tracer('other_tracer') diff --git a/exporter/otlp-http/test/opentelemetry/exporter/otlp/http/trace_exporter_test.rb b/exporter/otlp-http/test/opentelemetry/exporter/otlp/http/trace_exporter_test.rb index 94ee8cab4..11f286595 100644 --- a/exporter/otlp-http/test/opentelemetry/exporter/otlp/http/trace_exporter_test.rb +++ b/exporter/otlp-http/test/opentelemetry/exporter/otlp/http/trace_exporter_test.rb @@ -468,6 +468,9 @@ end it 'translates all the things' do + # TODO: See issue #1507 to fix + skip 'Intermittently fails' if RUBY_ENGINE == 'truffleruby' + stub_request(:post, 'http://localhost:4318/v1/traces').to_return(status: 200) processor = OpenTelemetry::SDK::Trace::Export::BatchSpanProcessor.new(exporter) tracer = OpenTelemetry.tracer_provider.tracer('tracer', 'v0.0.1')