Uh oh!
There was an error while loading. Please reload this page.
Convert JIT/CodeGenBringUpTests to a merged test group - #85847
Conversation
ghost
commented
May 5, 2023
Tagging subscribers to this area: @dotnet/area-system-reflection-metadata Issue Detailsnull
|
ghost
commented
May 5, 2023
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch Issue DetailsSee https://github.com/markples/utils/tree/for-PR-dotnet-runtime-85847-others for ILTransform tool. As usual, I recommend viewing the commit list since it partitions the changes in a more readable way.
|
markples
commented
May 6, 2023
/azp run runtime-coreclr outerloop, runtime-extra-platforms, runtime-coreclr gcstress0x3-gcstress0xc |
|
Azure Pipelines successfully started running 3 pipeline(s). |
markples
commented
May 12, 2023
Hi @clamp03@alpencolt - this PR is one of many that changes how we usually run tests. Very briefly, we combine many tests into one process for execution for efficiency. While this mode could theoretically be used directly for bringup testing, setting |
markples
commented
May 12, 2023
This is ready @trylek @dotnet/jit-contrib (though see my previous comment). I have built this directory with set BuildAsStandalone=true. |
clamp03
commented
May 13, 2023
@markples Thank you for the notification!!! @t-mustafin@gbalykov@alpencolt Could you check this? Thank you in advance. (cc @HJLeee@wscho77) |
t-mustafin
commented
May 15, 2023
@clamp03@markples thanks for notification. I checked this changes with our usual testing way. There are three things I want to share.
(gdb) bt full
#0 0x0000003ff6fde478 in MethodTable::GetWriteableData_NoLogging (this=0x1) at /home/runtime/src/coreclr/vm/methodtable.h:2753
No locals.
#1 0x0000003ff702a60c in MethodTable::IsRestored_NoLogging (this=0x1) at /home/runtime/src/coreclr/vm/methodtable.h:860
No locals.
#2 0x0000003ff71f01d6 in TypeHandle::IsRestored_NoLogging (this=0x3fffffd2d0) at /home/runtime/src/coreclr/vm/typehandle.cpp:1039
No locals.
#3 0x0000003ff71f0080 in TypeHandle::Verify (this=0x3fffffd2d0) at /home/runtime/src/coreclr/vm/typehandle.cpp:34
No locals.
#4 0x0000003ff70e41d8 in TypeHandle::TypeHandle (this=0x3fffffd2d0, aPtr=0x1) at /home/runtime/src/coreclr/vm/typehandle.h:116
No locals.
#5 0x0000003ff7300806 in JIT_NewS_MP_FastPortable (typeHnd_=0x1) at /home/runtime/src/coreclr/vm/jithelpers.cpp:2423 thread = 0x2aaab500e0
typeHandle = {{m_asTAddr = 0x1, m_asPtr = 0x1, m_asMT = 0x1, m_asTypeDesc = 0x1, m_asParamTypeDesc = 0x1, m_asTypeVarTypeDesc = 0x1, m_asFnPtrTypeDesc = 0x1}}
methodTable = 0x3fffffd9e8
allocContext = 0x3fffffd350
size = 0x3f78275b68
allocPtr = 0x0
object = 0x0
__me = 0x0#6 0x0000003f78275efc in ?? ()This SIGSEGV exists on RISCV64 and does not exists on x64. We had not got cause of this fault yet.
md5sum ./JIT/CodeGenBringUpTests/Add1_d/Add1_d.dll ./JIT/CodeGenBringUpTests/JIT.CodeGenBringUpTests/Add1_d.dll 94f09249559a851ea67177e102996859 ./JIT/CodeGenBringUpTests/Add1_d/Add1_d.dll
94f09249559a851ea67177e102996859 ./JIT/CodeGenBringUpTests/JIT.CodeGenBringUpTests/Add1_d.dllState main branch 4c0f2e7 with markples:JIT/CodeGenBringUpTests merged. |
markples
commented
May 15, 2023
Thank you for checking this, @t-mustafin
Great, I am, of course, happy to hear this.
Yes, this first part is expected. The general This adds some new code that runs before the actual tests. It is intended to be minimal. It contains build-time generated code to run tests that are marked with xunit-style attributes without things like runtime reflection. It looks like that is an allocation method, which perhaps isn't supported yet? If so, that would mean that
My guess is that this is a byproduct of msbuild handling the merged group application and the individual test libraries. This might be standard behavior for the intermediate steps ("obj" directories), but perhaps there is a way to avoid it in the final test artifacts since the individual test directories shouldn't need to exist. Thank you for the feedback! It sounds like this PR is ok to merge because of (1) but that there may be some future improvements that we can make. Am I summarizing your reply correctly? |
trylek
commented
May 15, 2023
I don't think we'll want to remove BuildAsStandalone anytime soon, we promised that to multiple stakeholders, in particular the JIT team and the low-level runtime people were super passionate about keeping the ability to run just a single test, period. From my perspective I'm much more looking forward to removing the obsolete xUnit wrapper generator crap and two variants of running the tests, both locally and in Helix, from the test build / execution scripts. |
t-mustafin
commented
May 16, 2023
Yes, it is correct. |
See https://github.com/markples/utils/tree/for-PR-dotnet-runtime-85847-others for ILTransform tool. As usual, I recommend viewing the commit list since it partitions the changes in a more readable way and paying more attention to manual changes.
pre-merge: