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

[iOS] Follow up changes for 61590 #61670

Merged
merged 6 commits into from
Nov 18, 2021

Conversation

MaximLipnin
Copy link
Contributor

@MaximLipnin MaximLipnin commented Nov 16, 2021

This is a follow up PR for #61590.

It should include:

  • additional UnsupportedOSPlatform annotations for some System.Diagnostics.Process APIs throwing PNSE on iOS/tvOS (they started doing so after excluding some managed logic around librpoc )

  • fixing a bit ugly workaround for CS0649 (see https://github.com/dotnet/runtime/pull/61590/files#r749525127) - used a local pragma in the ThreadInfo class.

  • skipping the respective S.D.P. tests ( it will address [iOS/tvOS] System.Diagnostics.Tests.ProcessTests.TestGetProcesses fails on devices #60588 as well):

  • TestModuleProperties

  • Modules_Get_ContainsHostFileName

  • StartTime_GetNotStarted_ThrowsInvalidOperationException

  • TestMainModule

  • UserProcessorTime_GetNotStarted_ThrowsInvalidOperationException

  • PriviledgedProcessorTime_GetNotStarted_ThrowsInvalidOperationException

  • TotalProcessorTime_GetNotStarted_ThrowsInvalidOperationException

  • TestGetProcesses

  • GetProcessesByName_ProcessName_ReturnsExpected

  • GetProcessesByName_ProcessNameMachineName_ReturnsExpected

  • GetProcessesByName_NoSuchProcess_ReturnsEmpty

  • GetProcessesByName_NullMachineName_ThrowsArgumentNullException

  • GetProcessesByName_EmptyMachineName_ThrowsArgumentException

  • StartInfo_SetGet_ReturnsExpected

  • RefreshResetsAllRefreshableFields

  • TestThreadCount

  • TestStartAddressProperty

  • Kill_EntireProcessTree_True_ProcessNotStarted_ThrowsInvalidOperationException

  • Kill_EntireProcessTree_True_CalledOnCallingProcess_ThrowsInvalidOperationException

@dotnet-issue-labeler
Copy link

Note regarding the new-api-needs-documentation label:

This serves as a reminder for when your PR is modifying a ref *.cs file and adding/modifying public APIs, to please make sure the API implementation in the src *.cs file is documented with triple slash comments, so the PR reviewers can sign off that change.

@ghost
Copy link

ghost commented Nov 16, 2021

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

Issue Details

This is a follow up PR for #61590.

It should include:

Author: MaximLipnin
Assignees: -
Labels:

area-System.Diagnostics.Process, new-api-needs-documentation

Milestone: -

@MaximLipnin MaximLipnin marked this pull request as ready for review November 17, 2021 15:01
@MaximLipnin
Copy link
Contributor Author

/azp run runtime-staging-manual

@azure-pipelines
Copy link

Azure Pipelines could not run because the pipeline triggers exclude this branch/path.

@MaximLipnin
Copy link
Contributor Author

/azp run runtime-manual

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@akoeplinger
Copy link
Member

/azp run runtime-manual

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@carlossanlop carlossanlop added the os-ios Apple iOS label Nov 18, 2021
@ghost
Copy link

ghost commented Nov 18, 2021

Tagging subscribers to 'os-ios': @steveisok, @akoeplinger
See info in area-owners.md if you want to be subscribed.

Issue Details

This is a follow up PR for #61590.

It should include:

  • additional UnsupportedOSPlatform annotations for some System.Diagnostics.Process APIs throwing PNSE on iOS/tvOS (they started doing so after excluding some managed logic around librpoc )

  • fixing a bit ugly workaround for CS0649 (see https://github.com/dotnet/runtime/pull/61590/files#r749525127) - used a local pragma in the ThreadInfo class.

  • skipping the respective S.D.P. tests ( it will address [iOS/tvOS] System.Diagnostics.Tests.ProcessTests.TestGetProcesses fails on devices #60588 as well):

  • TestModuleProperties

  • Modules_Get_ContainsHostFileName

  • StartTime_GetNotStarted_ThrowsInvalidOperationException

  • TestMainModule

  • UserProcessorTime_GetNotStarted_ThrowsInvalidOperationException

  • PriviledgedProcessorTime_GetNotStarted_ThrowsInvalidOperationException

  • TotalProcessorTime_GetNotStarted_ThrowsInvalidOperationException

  • TestGetProcesses

  • GetProcessesByName_ProcessName_ReturnsExpected

  • GetProcessesByName_ProcessNameMachineName_ReturnsExpected

  • GetProcessesByName_NoSuchProcess_ReturnsEmpty

  • GetProcessesByName_NullMachineName_ThrowsArgumentNullException

  • GetProcessesByName_EmptyMachineName_ThrowsArgumentException

  • StartInfo_SetGet_ReturnsExpected

  • RefreshResetsAllRefreshableFields

  • TestThreadCount

  • TestStartAddressProperty

  • Kill_EntireProcessTree_True_ProcessNotStarted_ThrowsInvalidOperationException

  • Kill_EntireProcessTree_True_CalledOnCallingProcess_ThrowsInvalidOperationException

Author: MaximLipnin
Assignees: -
Labels:

area-System.Diagnostics.Process, new-api-needs-documentation, os-ios

Milestone: -

@carlossanlop carlossanlop added the os-tvos Apple tvOS label Nov 18, 2021
@MaximLipnin
Copy link
Contributor Author

The failures on the mobile lanes are known and not related to the current S.D.P. changes.
The only new thing is Abort message: '/__w/1/s/src/libraries/Native/Unix/System.Security.Cryptography.Native.Android/pal_hmac.c:88 (CryptoNative_HmacUpdate): Parameter 'data' must be a valid pointer' on Android lanes, which might be related to the recent changes in Crypto.

@MaximLipnin
Copy link
Contributor Author

Filed #61783 for a crash in S.S.Cryptography.Tests on Android.

@MaximLipnin MaximLipnin merged commit 62c29ff into dotnet:main Nov 18, 2021
@MaximLipnin MaximLipnin deleted the followup-for-61590 branch November 18, 2021 16:32
MaximLipnin added a commit to MaximLipnin/runtime that referenced this pull request Nov 18, 2021
MaximLipnin added a commit to MaximLipnin/runtime that referenced this pull request Dec 1, 2021
This is a follow up PR for dotnet#61590.

It includes:

- additional UnsupportedOSPlatform annotations for some System.Diagnostics.Process APIs throwing PNSE on iOS/tvOS (they started doing so after excluding some managed logic around librpoc )

- fixing a bit ugly workaround for CS0649 (see https://github.com/dotnet/runtime/pull/61590/files#r749525127) - used a local pragma in the ThreadInfo class.

- skipping the respective S.D.P. tests ( it will address [iOS/tvOS] System.Diagnostics.Tests.ProcessTests.TestGetProcesses fails on devices dotnet#60588 as well)
steveisok pushed a commit that referenced this pull request Dec 2, 2021
#62235)

* Exclude the managed code around libproc on iOS/tvOS (#61590)

Since libproc is a private Apple API, it is not available on iOS/tvOS and should be excluded (see #61265 (comment) and above for more details).  
This PR excludes $(CommonPath)Interop\OSX\Interop.libproc.cs on the iOS/tvOS as well as makes some methods in Process, ProcessManager, and ProcessThread classes calling that API throw PNSE so that for iOS/tvOS it's possible to re-use the respective *.UnknownUnix.cs parts.

* [iOS] Follow up changes for 61590 (#61670)

This is a follow up PR for #61590.

It includes:

- additional UnsupportedOSPlatform annotations for some System.Diagnostics.Process APIs throwing PNSE on iOS/tvOS (they started doing so after excluding some managed logic around librpoc )

- fixing a bit ugly workaround for CS0649 (see https://github.com/dotnet/runtime/pull/61590/files#r749525127) - used a local pragma in the ThreadInfo class.

- skipping the respective S.D.P. tests ( it will address [iOS/tvOS] System.Diagnostics.Tests.ProcessTests.TestGetProcesses fails on devices #60588 as well)

* Skip System.Diagnostics.TextWriterTraceListenerTests.XmlWriterTraceListenerTests on iOS/tvOS (#61807)

This marks System.Diagnostics.TextWriterTraceListenerTests.XmlWriterTraceListenerTests withSkipOnPlatform attribute for iOS/tvOS as those tests try to create a process info, which throws PNSE after S.D.Process API's around libproc have been excluded in #61590.

* Disable several failing tests on iOSSimulator arm64 #61826

A few tests popped up as failures on the rolling build due to parts of System.Diagnostics.Process throwing PNSE. Disabled the functional tests from running on arm64 as mlaunch can't detect the return code.

* Use separate partials for iOS&tvOS instead of UnknowUnix in System.Diagnostics.Process (#61871)

* Remove NoWarn removal
@ghost ghost locked as resolved and limited conversation to collaborators Dec 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants