Remove lifetime2 test and remove its crossgen2 test exclusion#117995
Remove lifetime2 test and remove its crossgen2 test exclusion#117995kg merged 2 commits intodotnet:mainfrom
Conversation
|
/azp run runtime-coreclr crossgen2 outerloop |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
Unfortunately the part I couldn't figure out how to refactor is the one that broke, and it doesn't fail on windows. This is kind of a recurring theme with R2R... things do not behave the same on linux/mac as they do on windows. runtime/src/tests/JIT/Directed/lifetime/lifetime2.cs Lines 137 to 151 in fdfd4c4 In this case, it seems like the test author expects the I could modify this part of the test to make it pass consistently by using NoInlining as I did on other parts of it but it feels like maybe it's intentionally trying to codify some fussy behavior in the JIT that we wish to preserve and that behavior is somehow only broken for composite R2R on linux/mac. cc @jkotas this is one of the tests I've been looking at. |
|
I would delete this test. I do not think it is testing anything interesting. |
|
(And whatever it was attempting to test is probably not going to be tested after it is fixed to be reliable.) |
There was a problem hiding this comment.
Pull Request Overview
This PR removes the lifetime2 test from the JIT test suite and eliminates its corresponding crossgen2 test exclusion. The change addresses issue #109313 by completely removing a test that was deemed unreliable and not testing anything of value that isn't already covered by other tests in the suite.
Key Changes:
- Complete removal of the
lifetime2test files and project - Removal of the crossgen2 exclusion entry for this test from the issues.targets file
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/tests/issues.targets | Removes the crossgen2 exclusion entry for the lifetime2 test |
| src/tests/JIT/Directed/lifetime/lifetime2.csproj | Completely removes the project file for the lifetime2 test |
| src/tests/JIT/Directed/lifetime/lifetime2.cs | Completely removes the C# source code for the lifetime2 test |
…riers since they are reliable Re enable lifetime2 for crossgen
Should fix #109313
EDIT: Based on jkotas's feedback below I'm removing this test. I agree that it is not testing anything of value that isn't already covered well by the rest of our test suite, and I couldn't see an easy way to refactor it into a reliable test that still attempts to do the same things.