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] Unhandled System.PlatformNotSupportedException for crypto tests #94820

Closed
radical opened this issue Nov 16, 2023 · 5 comments · Fixed by #94844
Closed

[wasm] Unhandled System.PlatformNotSupportedException for crypto tests #94820

radical opened this issue Nov 16, 2023 · 5 comments · Fixed by #94844
Labels
arch-wasm WebAssembly architecture area-System.Security blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab

Comments

@radical
Copy link
Member

radical commented Nov 16, 2023

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=471563
Build error leg or test failing: WasmTestOnBrowser-System.Security.Cryptography.Tests.WorkItemExecution
Pull request: #92095

Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": "warn: System.PlatformNotSupportedException: System.Security.Cryptography.X509Certificates is not supported on this platform.",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

The tests seem to have the appropriate SkipOnPlatform or other attributes, but the .cctor gets executed anyway, which throws.

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=471563
Error message validated: warn: System.PlatformNotSupportedException: System.Security.Cryptography.X509Certificates is not supported on this platform.
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 11/16/2023 12:33:09 AM UTC

Report

Build Definition Test Pull Request
483435 dotnet/runtime WasmTestOnBrowser-System.Security.Cryptography.Tests.WorkItemExecution #95274
483253 dotnet/runtime WasmTestOnBrowser-System.Security.Cryptography.Tests.WorkItemExecution #95377
483232 dotnet/runtime WasmTestOnBrowser-System.Security.Cryptography.Tests.WorkItemExecution #95380
482571 dotnet/runtime WasmTestOnBrowser-System.Security.Cryptography.Tests.WorkItemExecution #93220
482507 dotnet/runtime WasmTestOnBrowser-System.Security.Cryptography.Tests.WorkItemExecution #85978
482460 dotnet/runtime WasmTestOnBrowser-System.Security.Cryptography.Tests.WorkItemExecution #95260
482446 dotnet/runtime WasmTestOnBrowser-System.Security.Cryptography.Tests.WorkItemExecution #94970
481870 dotnet/runtime WasmTestOnBrowser-System.Security.Cryptography.Tests.WorkItemExecution #95308
481483 dotnet/runtime WasmTestOnBrowser-System.Security.Cryptography.Tests.WorkItemExecution #94684
480974 dotnet/runtime WasmTestOnBrowser-System.Security.Cryptography.Tests.WorkItemExecution #94169
480425 dotnet/runtime WasmTestOnBrowser-System.Security.Cryptography.Tests.WorkItemExecution #95175
477221 dotnet/runtime WasmTestOnBrowser-System.Security.Cryptography.Tests.WorkItemExecution #95041
474390 dotnet/runtime WasmTestOnBrowser-System.Security.Cryptography.Tests.WorkItemExecution #92546
473405 dotnet/runtime WasmTestOnBrowser-System.Security.Cryptography.Tests.WorkItemExecution #94888
473284 dotnet/runtime WasmTestOnBrowser-System.Security.Cryptography.Tests.WorkItemExecution #94886
472825 dotnet/runtime WasmTestOnBrowser-System.Security.Cryptography.Tests.WorkItemExecution #94861
472239 dotnet/runtime WasmTestOnBrowser-System.Security.Cryptography.Tests.WorkItemExecution #94839
472133 dotnet/runtime WasmTestOnBrowser-System.Security.Cryptography.Tests.WorkItemExecution #88620
471954 dotnet/runtime WasmTestOnBrowser-System.Security.Cryptography.Tests.WorkItemExecution #92521
471563 dotnet/runtime WasmTestOnBrowser-System.Security.Cryptography.Tests.WorkItemExecution #92095
470599 dotnet/runtime WasmTestOnBrowser-System.Security.Cryptography.Tests.WorkItemExecution #93220

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
3 11 21
@radical radical added blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab labels Nov 16, 2023
@ghost ghost added the untriaged New issue has not been triaged by the area owner label Nov 16, 2023
@radical radical added the arch-wasm WebAssembly architecture label Nov 16, 2023
@ghost
Copy link

ghost commented Nov 16, 2023

Tagging subscribers to this area: @dotnet/area-infrastructure-libraries
See info in area-owners.md if you want to be subscribed.

Issue Details

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=471563
Build error leg or test failing: WasmTestOnBrowser-System.Security.Cryptography.Tests.WorkItemExecution
Pull request: #92095

Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": "warn: System.PlatformNotSupportedException: System.Security.Cryptography.X509Certificates is not supported on this platform.",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

The tests seem to have the appropriate SkipOnPlatform or other attributes, but the .cctor gets executed anyway, which throws.

Author: radical
Assignees: -
Labels:

area-Infrastructure-libraries, blocking-clean-ci, Known Build Error

Milestone: -

@lewing
Copy link
Member

lewing commented Nov 16, 2023

This looks like an exception in the static cctor before the test has been filtered out. Probably exposed by #77513 or similar. Ideally it wouls be possible to separate this case from a failure in the Fact

@ViktorHofer
Copy link
Member

@radical please don't let the bot flag all of these issues as infrastructure-libraries. This has happened multiple times now and it results in us being tagged in such issues and then needing to re-assign them.

@ghost
Copy link

ghost commented Nov 16, 2023

Tagging subscribers to this area: @dotnet/area-system-security, @bartonjs, @vcsjones
See info in area-owners.md if you want to be subscribed.

Issue Details

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=471563
Build error leg or test failing: WasmTestOnBrowser-System.Security.Cryptography.Tests.WorkItemExecution
Pull request: #92095

Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": "warn: System.PlatformNotSupportedException: System.Security.Cryptography.X509Certificates is not supported on this platform.",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

The tests seem to have the appropriate SkipOnPlatform or other attributes, but the .cctor gets executed anyway, which throws.

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=471563
Error message validated: warn: System.PlatformNotSupportedException: System.Security.Cryptography.X509Certificates is not supported on this platform.
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 11/16/2023 12:33:09 AM UTC

Report

Build Definition Test Pull Request
471954 dotnet/runtime WasmTestOnBrowser-System.Security.Cryptography.Tests.WorkItemExecution #92521
471563 dotnet/runtime WasmTestOnBrowser-System.Security.Cryptography.Tests.WorkItemExecution #92095
470599 dotnet/runtime WasmTestOnBrowser-System.Security.Cryptography.Tests.WorkItemExecution #93220

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
3 3 3
Author: radical
Assignees: -
Labels:

arch-wasm, area-System.Security, blocking-clean-ci, untriaged, Known Build Error

Milestone: -

@ghost ghost added the in-pr There is an active PR which will close this issue when it is merged label Nov 16, 2023
@radical
Copy link
Member Author

radical commented Nov 16, 2023

@radical please don't let the bot flag all of these issues as infrastructure-libraries. This has happened multiple times now and it results in us being tagged in such issues and then needing to re-assign them.

Sorry about that!

@ghost ghost removed in-pr There is an active PR which will close this issue when it is merged untriaged New issue has not been triaged by the area owner labels Nov 29, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Dec 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-wasm WebAssembly architecture area-System.Security blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants