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

[wasm] Fix dotnet-runtime-perf build for wasm #2542

Merged
merged 2 commits into from
Aug 1, 2022

Conversation

radical
Copy link
Member

@radical radical commented Jul 30, 2022

The wasm builds on dotnet-runtime-perf started breaking after Fix UnsupportedOSPlatformAttribute usage in System.Net.NetworkInformation.cs
(dotnet/runtime#72792) was merged, with:

error CA1416: This call site is reachable on all platforms. 'IPInterfaceStatistics.IncomingUnknownProtocolPackets' is unsupported on: 'linux'. [/home/helixbot/work/AFE009B6/w/B4280986/e/performance/src/benchmarks/micro/MicroBenchmarks.csproj::TargetFramework=net7.0]
error CA1416: This call site is reachable on all platforms. 'IPInterfaceProperties.IsDynamicDnsEnabled' is supported on: 'windows'. [/home/helixbot/work/AFE009B6/w/B4280986/e/performance/src/benchmarks/micro/MicroBenchmarks.csproj::TargetFramework=net7.0]
error CA1416: This call site is reachable on all platforms. 'IPInterfaceStatistics.NonUnicastPacketsSent' is unsupported on: 'linux'. [/home/helixbot/work/AFE009B6/w/B4280986/e/performance/src/benchmarks/micro/MicroBenchmarks.csproj::TargetFramework=net7.0]
error CA1416: This call site is reachable on all platforms. 'IPInterfaceProperties.AnycastAddresses' is supported on: 'windows'. [/home/helixbot/work/AFE009B6/w/B4280986/e/performance/src/benchmarks/micro/MicroBenchmarks.csproj::TargetFramework=net7.0]

This commit adds guards around these calls.

The wasm builds on `dotnet-runtime-perf` started breaking after `Fix
UnsupportedOSPlatformAttribute usage in
System.Net.NetworkInformation.cs`
(dotnet/runtime#72792) was merged, with:

```
error CA1416: This call site is reachable on all platforms. 'IPInterfaceStatistics.IncomingUnknownProtocolPackets' is unsupported on: 'linux'. [/home/helixbot/work/AFE009B6/w/B4280986/e/performance/src/benchmarks/micro/MicroBenchmarks.csproj::TargetFramework=net7.0]
error CA1416: This call site is reachable on all platforms. 'IPInterfaceProperties.IsDynamicDnsEnabled' is supported on: 'windows'. [/home/helixbot/work/AFE009B6/w/B4280986/e/performance/src/benchmarks/micro/MicroBenchmarks.csproj::TargetFramework=net7.0]
error CA1416: This call site is reachable on all platforms. 'IPInterfaceStatistics.NonUnicastPacketsSent' is unsupported on: 'linux'. [/home/helixbot/work/AFE009B6/w/B4280986/e/performance/src/benchmarks/micro/MicroBenchmarks.csproj::TargetFramework=net7.0]
error CA1416: This call site is reachable on all platforms. 'IPInterfaceProperties.AnycastAddresses' is supported on: 'windows'. [/home/helixbot/work/AFE009B6/w/B4280986/e/performance/src/benchmarks/micro/MicroBenchmarks.csproj::TargetFramework=net7.0]
```

This commit adds guards around these calls.
Copy link
Member

@adamsitnik adamsitnik left a comment

Choose a reason for hiding this comment

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

LGTM, thank you @radical !

Copy link
Member

@adamsitnik adamsitnik left a comment

Choose a reason for hiding this comment

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

I just realized that the CI is red (Full Framework build)

@adamsitnik adamsitnik merged commit 142a5ce into dotnet:main Aug 1, 2022
@radical radical deleted the fix-build branch August 1, 2022 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants