Skip to content

skip certain tests when running on ARM #5906

@TimothyMothra

Description

@TimothyMothra

Package

OpenTelemetry.Exporter.OpenTelemetryProtocol

Is your feature request related to a problem?

I was experimenting with Windows on ARM and found one group of tests that fail.

This test fails when targeting net462, but pass when targeting either net8 or net9.

OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests
	
System.IO.IOException : Error loading native library "C:\REPOS\opentelemetry-dotnet\test\OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests\bin\Debug\net462\grpc_csharp_ext.x64.dll". LoadLibrary failed with error 193

Stack Trace: 
	UnmanagedLibrary.ctor(String[] libraryPathAlternatives)
	NativeExtension.LoadNativeMethodsUsingExplicitLoad()
	NativeExtension.ctor()
	NativeExtension.Get()
	GrpcEnvironment.GrpcNativeInit()
	GrpcEnvironment.ctor()
	GrpcEnvironment.AddRef()
	Channel.ctor(String target, ChannelCredentials credentials, IEnumerable`1 options)
	OtlpExporterOptionsExtensions.CreateChannel(OtlpExporterOptions options) line 49
	OtlpGrpcTraceExportClient.ctor(OtlpExporterOptions options, TraceServiceClient traceServiceClient) line 23

Blanch wrote a way to skip certain platforms in the contrib repo:
https://github.com/open-telemetry/opentelemetry-dotnet-contrib/blob/b8fe2cb419738f41c0855c25dbe77bb75de10a98/test/OpenTelemetry.Exporter.Geneva.Tests/UnixUserEventsDataTransportTests.cs#L55

I'm proposing that we consider something similar here:

What is the expected behavior?

N/A

Which alternative solutions or features have you considered?

N/A

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions