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

Unset FEATURE_EVENTSOURCE_XPLAT in macOS builds #48244

Merged
merged 1 commit into from
Feb 15, 2021

Conversation

sywhang
Copy link
Contributor

@sywhang sywhang commented Feb 12, 2021

Fix #48233

@sdmaclea would it be possible for you to run the failing tests on this branch? I don't have an M1 mac at hand to test this.

cc @noahfalk

@ghost
Copy link

ghost commented Feb 12, 2021

Tagging subscribers to this area: @tommcdon
See info in area-owners.md if you want to be subscribed.

Issue Details

Fix #48233

@sdmaclea would it be possible for you to run the tests on this branch? I don't have an M1 mac at hand to test this.

cc @noahfalk

Author: sywhang
Assignees: -
Labels:

area-Diagnostics-coreclr

Milestone: -

@sdmaclea
Copy link
Contributor

Running tests now. It might take a while (I am running gcstress in another terminal).

@sdmaclea
Copy link
Contributor

This fixed most of the issues. There are three failing tracing tests still. Do these need to be disabled for MacOS?.

tracing/tracevalidation/tracelogging/tracelogging/tracelogging.sh

Unhandled exception. System.InvalidOperationException: Reflection failed.
   at Tracing.Tests.Common.TraceConfiguration..ctor(String outputFile, UInt32 circularBufferMB) in /Users/stmaclea/git/runtime/src/tests/tracing/common/TraceC
onfiguration.cs:line 30                                                                                                                                       
   at Tracing.Tests.Common.EventSourceTestSuite.GenerateConfiguration() in /Users/stmaclea/git/runtime/src/tests/tracing/tracevalidation/tracelogging/EventSou
rceTest.cs:line 107                                                            
   at Tracing.Tests.Common.EventSourceTestSuite.RunTests() in /Users/stmaclea/git/runtime/src/tests/tracing/tracevalidation/tracelogging/EventSourceTest.cs:li
ne 53                                                                          
   at Tracing.Tests.TraceLogging.Main(String[] args) in /Users/stmaclea/git/runtime/src/tests/tracing/tracevalidation/tracelogging/TraceLogging.cs:line 123   
/Users/stmaclea/git/runtime/artifacts/tests/coreclr/OSX.arm64.Checked/tracing/tracevalidation/tracelogging/tracelogging/tracelogging.sh: line 395:  9522 Abort trap: 6           $LAUNCHER $ExePath "${CLRTestExecutionArguments[@]}" 
tracing/tracevalidation/rundown/rundown/rundown.sh                                 
                                                                                                                                                              
Unhandled exception. System.TypeInitializationException: The type initializer for 'Tracing.Tests.Common.TraceControl' threw an exception.                     
 ---> System.InvalidOperationException: Reflection failed.                                                                                                    
   at Tracing.Tests.Common.TraceControl..cctor() in /Users/stmaclea/git/runtime/src/tests/tracing/common/TraceControl.cs:line 82                              
   --- End of inner exception stack trace ---                                  
   at Tracing.Tests.TraceValidationRundown.Main(String[] args) in /Users/stmaclea/git/runtime/src/tests/tracing/tracevalidation/rundown/Rundown.cs:line 30    
/Users/stmaclea/git/runtime/artifacts/tests/coreclr/OSX.arm64.Checked/tracing/tracevalidation/rundown/rundown/rundown.sh: line 402:  9525 Abort trap: 6       
    $LAUNCHER $ExePath "${CLRTestExecutionArguments[@]}"              
tracing/tracevalidation/jittingstarted/JittingStarted/JittingStarted.sh

Unhandled exception. System.TypeInitializationException: The type initializer for 'Tracing.Tests.Common.TraceControl' threw an exception.                     
 ---> System.InvalidOperationException: Reflection failed.                                                                                                    
   at Tracing.Tests.Common.TraceControl..cctor() in /Users/stmaclea/git/runtime/src/tests/tracing/common/TraceControl.cs:line 82                              
   --- End of inner exception stack trace ---                                                                                                                 
   at Tracing.Tests.Common.TraceControl.EnableDefault(String outputFile) in /Users/stmaclea/git/runtime/src/tests/tracing/common/TraceControl.cs:line 21      
   at Tracing.Tests.TraceValidationJittingStarted.Main(String[] args) in /Users/stmaclea/git/runtime/src/tests/tracing/tracevalidation/jittingstarted/JittingS
tarted.cs:line 26                 
/Users/stmaclea/git/runtime/artifacts/tests/coreclr/OSX.arm64.Checked/tracing/tracevalidation/jittingstarted/JittingStarted/JittingStarted.sh: line 402:  9518
 Abort trap: 6           $LAUNCHER $ExePath "${CLRTestExecutionArguments[@]}"                                                                                 

@sywhang
Copy link
Contributor Author

sywhang commented Feb 13, 2021

@sdmaclea Those tests were removed from #48053. To give you a little bit more context, those tests depended on a removed internal API that was provided for an internal customer but we moved that customer off that, so all the tests that were testing that feature were removed with it.

@sdmaclea
Copy link
Contributor

Interesting. I saw the failures and wondered if they might be dependent on the flag you set, so I rebuilt the tests. However I didn't delete the originally compiled tests, so I think they must have just ended up in the XUnit Wrappers anyway.

@@ -120,9 +120,9 @@ endif(FEATURE_GDBJIT_LANGID_CS)
if(FEATURE_GDBJIT_SYMTAB)
add_definitions(-DFEATURE_GDBJIT_SYMTAB)
endif(FEATURE_GDBJIT_SYMTAB)
if(CLR_CMAKE_TARGET_UNIX)
if(CLR_CMAKE_TARGET_LINUX)
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if this should actually be controlled by the cmake FeatureXplatEventSource property set above. That would keep them consistent.

@sywhang sywhang merged commit 6055dfa into dotnet:master Feb 15, 2021
@sywhang sywhang deleted the dev/suwhang/48233 branch February 15, 2021 01:58
@ghost ghost locked as resolved and limited conversation to collaborators Mar 17, 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.

Regression causing new Apple Silicon failures
2 participants